1 // rustfmt-normalize_comments: true
5 let square = (|i: i32| i * i);
7 let commented = |// first
10 b: WithType, // argument
14 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
15 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
19 let block_body = move |xxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
20 ref yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy| {
21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxx + yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
24 let loooooooooooooong_name = |field| {
26 if field.node.attrs.len() > 0 {
27 field.node.attrs[0].span.lo()
33 let unblock_me = |trivial| closure();
48 |big_argument_name, test123| looooooooooooooooooong_function_naaaaaaaaaaaaaaaaame();
51 |big_argument_name, test123| looooooooooooooooooong_function_naaaaaaaaaaaaaaaaame();
53 let simple_closure = move || -> () {};
55 let closure = |input: Ty| -> Option<String> { foo() };
57 let closure_with_return_type =
58 |aaaaaaaaaaaaaaaaaaaaaaarg1, aaaaaaaaaaaaaaaaaaaaaaarg2| -> Strong { "sup".to_owned() };
60 |arg1, arg2, _, _, arg3, arg4| {
61 let temp = arg4 + arg3;
65 let block_body_with_comment = args.iter().map(|a| {
66 // Emitting only dep-info is possible only for final crate type, as
67 // as others may emit required metadata for dependent crate types
68 if a.starts_with("--emit") && is_final_crate_type && !self.workspace_mode {
77 let func = |x| println!("{}", x);
83 let closure = |x| match x {
90 let hash: &Fn(&&Block) -> u64 = &|block| -> u64 {
91 let mut h = SpanlessHash::new(cx);
96 let hash: &Fn(&&Block) -> u64 = &|block| -> u64 {
97 let mut h = SpanlessHash::new(cx);
103 impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
104 pub fn eq_expr(&self, left: &Expr, right: &Expr) -> bool {
105 match (&left.node, &right.node) {
106 (&ExprBinary(l_op, ref ll, ref lr), &ExprBinary(r_op, ref rl, ref rr)) => {
107 l_op.node == r_op.node && self.eq_expr(ll, rl) && self.eq_expr(lr, rr)
108 || swap_binop(l_op.node, ll, lr).map_or(false, |(l_op, ll, lr)| {
109 l_op == r_op.node && self.eq_expr(ll, rl) && self.eq_expr(lr, rr)
117 lifetimes_iter___map(|lasdfasfd| {
118 let hi = if l.bounds.is_empty() {
125 open_raw_fd(fd, b'r').and_then(|file| {
126 Capture::new_raw(None, |_, err| unsafe { raw::pcap_fopen_offline(file, err) })
131 let vertex_buffer = frame.scope(|ctx| {
132 let buffer = ctx.create_host_visible_buffer::<VertexBuffer<Vertex>>(&vertices);
133 ctx.create_device_local_buffer(buffer)
141 let explicit_arg_decls = explicit_arguments.into_iter().enumerate().map(
142 |(index, (ty, pattern))| {
143 let lvalue = Lvalue::Arg(index as u32);
144 block = this.pattern(
147 hair::PatternRef::Hair(pattern),
162 push_closure_out_to_100_chars: iter(otherwise_it_works_ok.into_iter().map(|f| Ok(f))),
178 || unsafe { xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx };
183 A_VERY_LONG_CONST_VARIABLE_NAME,
184 move |arg1, arg2, arg3, arg4| arg1 + arg2 + arg3 + arg4,
190 |_referencefffffffff: _, _target_reference: _, _oid: _, _target_oid: _| {
191 format!("refs/pull/{}/merge", pr_id)
198 || recurse(left, is_less, pred, limit),
199 || recurse(right, is_less, Some(pivot), limit),
204 || recurse(left, is_less, pred, limit),
206 || recurse(right, is_less, Some(pivot), limit),
211 |ctx: Ctx<(String, String)>| -> io::Result<Response> {
212 Ok(Response::new().with_body(ctx.params.0))