]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/large_vec.rs
Auto merge of #85259 - Smittyvb:thir-unsafeck-inline-asm, r=nikomatsakis
[rust.git] / src / tools / rustfmt / tests / target / large_vec.rs
1 // See #1470.
2
3 impl Environment {
4     pub fn new_root() -> Rc<RefCell<Environment>> {
5         let mut env = Environment::new();
6         let builtin_functions = &[
7             (
8                 "println",
9                 Function::NativeVoid(
10                     CallSign {
11                         num_params: 0,
12                         variadic: true,
13                         param_types: vec![],
14                     },
15                     native_println,
16                 ),
17             ),
18             (
19                 "run_http_server",
20                 Function::NativeVoid(
21                     CallSign {
22                         num_params: 1,
23                         variadic: false,
24                         param_types: vec![Some(ConstraintType::Function)],
25                     },
26                     native_run_http_server,
27                 ),
28             ),
29             (
30                 "len",
31                 Function::NativeReturning(
32                     CallSign {
33                         num_params: 1,
34                         variadic: false,
35                         param_types: vec![None],
36                     },
37                     native_len,
38                 ),
39             ),
40         ];
41     }
42 }