2 // rustmft-use_small_heuristics:Max
3 // rustmft-merge_derives:false
4 // These are the same rustfmt configuration options that are used
5 // in the comiler as of ce39461ca75a and 8eb7c58dbb7b
6 // These are commits in https://github.com/rust-lang/rust
8 #![no_std] // inner attribute comment
9 // inner attribute comment
10 #![no_implicit_prelude]
11 // post inner attribute comment
13 #[cfg(not(miri))] // inline comment
20 #[cfg(not(miri))] // inline comment
21 extern crate foo as bar;
23 #[cfg(not(miri))] // inline comment
24 // between attribute and use
27 #[cfg(not(miri))] // inline comment
34 #[cfg(not(miri))] // inline comment
35 use foo::bar as FooBar;
37 #[cfg(not(miri))] // inline comment
40 since = "5.2", // inline inner comment
41 note = "FOO was rarely used. Users should instead use BAR"
47 #[export_name = "FOO"]
48 #[cfg(not(miri))] // inline comment
51 note = "FOO was rarely used. Users should instead use BAR"
55 #[cfg(not(miri))] // inline comment
56 #[export_name = "FOO"]
57 static BAR: &'static str = "bar";
59 #[cfg(not(miri))] // inline comment
62 #[cfg(not(miri))] // inline comment
64 #[link_section = ".example_section"]
66 #[cfg(not(miri))] // inline comment
67 println!("hello world!");
70 #[cfg(not(miri))] // inline comment
73 #[cfg(not(miri))] // inline comment
75 fn my_c_function(x: i32) -> bool;
78 #[cfg(not(miri))] // inline comment
79 #[link(name = "CoreFoundation", kind = "framework")]
82 #[link_name = "actual_symbol_name"] // inline comment
83 // between attribute and function
84 fn my_c_function(x: i32) -> bool;
87 #[cfg(not(miri))] // inline comment
88 pub extern "C" fn callable_from_c(x: i32) -> bool {
92 #[cfg(not(miri))] // inline comment
93 /* between attribute block comment */
95 /* between attribute and type */
99 #[cfg(not(miri))] // inline comment
100 #[non_exhaustive] // inline comment
107 #[cfg(not(miri))] /* inline comment */
112 #[cfg(not(miri))] // inline comment
118 #[cfg(not(miri))] // inline comment
121 #[cfg(not(miri))] // inline comment
122 trait Foo = Bar + Quux;
124 #[cfg(not(miri))] // inline comment
127 #[cfg(not(miri))] // inline comment
133 #[cfg(not(miri))] // inline comment
134 // between attribute and use
137 #[cfg(not(miri))] // inline comment
140 #[cfg(not(miri))] // inline comment
143 #[cfg(not(miri))] // inline comment
144 use foo::bar as FooBar;
146 #[cfg(not(miri))] // inline comment
147 static FOO: i32 = 42;
149 #[cfg(not(miri))] // inline comment
150 static FOO: i32 = 42;
152 #[cfg(not(miri))] // inline comment
153 static FOO: &'static str = "bar";
155 #[cfg(not(miri))] // inline comment
158 #[cfg(not(miri))] // inline comment
160 #[cfg(not(miri))] // inline comment
161 println!("hello world!");
164 #[cfg(not(miri))] // inline comment
167 #[cfg(not(miri))] // inline comment
170 #[cfg(not(miri))] // inline comment
172 fn my_c_function(x: i32) -> bool;
175 #[cfg(not(miri))] // inline comment
176 #[link(name = "CoreFoundation", kind = "framework")]
179 #[link_name = "actual_symbol_name"] // inline comment
180 // between attribute and function
181 fn my_c_function(x: i32) -> bool;
184 #[cfg(not(miri))] // inline comment
185 pub extern "C" fn callable_from_c(x: i32) -> bool {
189 #[cfg(not(miri))] // inline comment
192 #[cfg(not(miri))] // inline comment
193 #[non_exhaustive] // inline comment
197 #[attribute_2] // comment
202 #[attribute_2] /* comment */
209 #[cfg(not(miri))] // inline comment
214 #[cfg(not(miri))] // inline comment
217 #[attribute_2] /* comment */
219 #[attribute_4] // comment
224 #[cfg(not(miri))] // inline comment
225 #[allow(missing_docs)]
227 #[must_use] /* comment
233 #[allow(missing_docs)]
234 #[cfg(not(miri))] // inline comment
235 trait Foo = Bar + Quux;
237 #[allow(missing_docs)]
238 #[cfg(not(miri))] // inline comment
241 #[cfg(not(miri))] // inline comment