1 // rustfmt-normalize_comments: true
2 itemmacro!(this, is.now().formatted(yay));
6 long.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbb()
11 itemmacro!{this, is.bracket().formatted()}
13 peg_file! modname("mygrammarfile.rustpeg");
22 baz!(1 + 2 + 3, quux.kaas());
25 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,
26 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
35 trailingcomma!(a, b, c,);
36 // Preserve trailing comma only when necessary.
37 ok!(file.seek(SeekFrom::Start(
38 table.map(|table| fixture.offset(table)).unwrap_or(0),
41 noexpr!( i am not an expression, OK? );
64 vec![a /* comment */];
66 // Trailing spaces after a comma
86 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
88 vec![a; unsafe { x + 1 }];
90 unknown_bracket_macro__comma_should_not_be_stripped![a,];
96 macrowithbraces! {dont, format, me}
118 let image = gray_image!(
124 chain!(input, a:take!(max_size), || []);
132 println!("dsfs"); // a comment
136 let hello = &format!(
137 "HTTP/1.1 200 OK\r\nServer: {}\r\n\r\n{}",
138 "65454654654654654654654655464",
145 (#[$attr:meta] $name:ident) => {}
160 b: types::Timestamptz,
169 init_size[1] - extreeeeeeeeeeeeeeeeeeeeeeeem..init_size[1],
171 ]).par_map_inplace(|el| *el = 0.);
182 .collect::<Vec<_>>();
188 fn test(a: String, s: String, b: String) -> TestResult {
189 if a.find(&s).is_none() {
191 TestResult::from_bool(true)
193 TestResult::discard()
203 static ref ONE: u32 = 1;
204 static ref TWO: u32 = 2;
205 static ref THREE: u32 = 3;
206 static ref FOUR: u32 = {
223 vbuf: gfx::VertexBuffer<Vertex> = (),
224 out: gfx::RenderTarget<ColorFormat> = "Target0",
229 fn __bindgen_test_layout_HandleWithDtor_open0_int_close0_instantiation() {
231 ::std::mem::size_of::<HandleWithDtor<::std::os::raw::c_int>>(),
234 "Size of template specialization: ",
235 stringify!(HandleWithDtor<::std::os::raw::c_int>)
239 ::std::mem::align_of::<HandleWithDtor<::std::os::raw::c_int>>(),
242 "Alignment of template specialization: ",
243 stringify!(HandleWithDtor<::std::os::raw::c_int>)
249 macro_rules! try_opt {
250 ($expr:expr) => (match $expr {
253 None => { return None; }
258 // macro call whose argument is an array with trailing comma.
261 str_searcher_ascii_haystack,
274 fn special_case_macros() {
277 "Arr! While plunderin' the hold, we got '{}' when given '{}' (we expected '{}')",
278 result, input, expected
284 "Arr! While plunderin' the hold, we got '{}' when given '{}' (we expected '{}')",
285 result, input, expected