]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/large_vec.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / large_vec.rs
CommitLineData
f20569fa
XL
1// See #1470.
2
3impl Environment {
4 pub fn new_root() -> Rc<RefCell<Environment>> {
5 let mut env = Environment::new();
6 let builtin_functions = &[("println",
7 Function::NativeVoid(CallSign {
8 num_params: 0,
9 variadic: true,
10 param_types: vec![],
11 },
12 native_println)),
13 ("run_http_server",
14 Function::NativeVoid(CallSign {
15 num_params: 1,
16 variadic: false,
17 param_types:
18 vec![Some(ConstraintType::Function)],
19 },
20 native_run_http_server)),
21 ("len",
22 Function::NativeReturning(CallSign {
23 num_params: 1,
24 variadic: false,
25 param_types: vec![None],
26 },
27 native_len))];
28 }
29}