rust icon indicating copy to clipboard operation
rust copied to clipboard

Suggest parentheses for possible range method calling

Open chenyukang opened this issue 3 years ago • 7 comments

Fixes #102396

chenyukang avatar Sep 29 '22 05:09 chenyukang

r? @TaKO8Ki

(rust-highfive has picked a reviewer for you, use r? to override)

rust-highfive avatar Sep 29 '22 05:09 rust-highfive

The job x86_64-gnu-llvm-13 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
failures:

---- [ui] src/test/ui/methods/issues/issue-90315.rs stdout ----
normalized stdout:
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 19 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:4:15: 4:33 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 11 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 10 }, kind: Lit(Spanned { node: Int(0, Unsuffixed), span: $DIR/issue-90315.rs:4:15: 4:16 (#0) }), span: $DIR/issue-90315.rs:4:15: 4:16 (#0) }, span: $DIR/issue-90315.rs:4:15: 4:16 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 18 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 17 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 12 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:4:18: 4:21 (#0) }, [], $DIR/issue-90315.rs:4:22: 4:27 (#0)), span: $DIR/issue-90315.rs:4:18: 4:27 (#0) }, [], $DIR/issue-90315.rs:4:28: 4:33 (#0)), span: $DIR/issue-90315.rs:4:18: 4:33 (#0) }, span: $DIR/issue-90315.rs:4:18: 4:33 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:4:15: 4:33 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 17 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 12 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:4:18: 4:21 (#0) }, [], $DIR/issue-90315.rs:4:22: 4:27 (#0)), span: $DIR/issue-90315.rs:4:18: 4:27 (#0) }, [], $DIR/issue-90315.rs:4:28: 4:33 (#0)), span: $DIR/issue-90315.rs:4:18: 4:33 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:4:18: 4:21 (#0) }, [], $DIR/issue-90315.rs:4:22: 4:27 (#0)), span: $DIR/issue-90315.rs:4:18: 4:27 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 51 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:11:14: 11:25 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 46 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 45 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:11:14: 11:15 (#0) }), span: $DIR/issue-90315.rs:11:14: 11:15 (#0) }, span: $DIR/issue-90315.rs:11:14: 11:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 50 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 49 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 47 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }, [], $DIR/issue-90315.rs:11:20: 11:25 (#0)), span: $DIR/issue-90315.rs:11:17: 11:25 (#0) }, span: $DIR/issue-90315.rs:11:17: 11:25 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:11:14: 11:25 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 49 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 47 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }, [], $DIR/issue-90315.rs:11:20: 11:25 (#0)), span: $DIR/issue-90315.rs:11:17: 11:25 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }), span: $DIR/issue-90315.rs:11:17: 11:19 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 90 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:17:14: 17:26 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 84 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 83 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:17:14: 17:15 (#0) }), span: $DIR/issue-90315.rs:17:14: 17:15 (#0) }, span: $DIR/issue-90315.rs:17:14: 17:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 89 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 88 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 85 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:17:17: 17:20 (#0) }, [], $DIR/issue-90315.rs:17:21: 17:26 (#0)), span: $DIR/issue-90315.rs:17:17: 17:26 (#0) }, span: $DIR/issue-90315.rs:17:17: 17:26 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:17:14: 17:26 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 88 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 85 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:17:17: 17:20 (#0) }, [], $DIR/issue-90315.rs:17:21: 17:26 (#0)), span: $DIR/issue-90315.rs:17:17: 17:26 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:17:17: 17:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 125 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:22:14: 22:32 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 117 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 116 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:22:14: 22:15 (#0) }), span: $DIR/issue-90315.rs:22:14: 22:15 (#0) }, span: $DIR/issue-90315.rs:22:14: 22:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 124 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 123 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 118 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:17: 22:26 (#0) }, [], $DIR/issue-90315.rs:22:27: 22:32 (#0)), span: $DIR/issue-90315.rs:22:17: 22:32 (#0) }, span: $DIR/issue-90315.rs:22:17: 22:32 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:22:14: 22:32 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 123 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 118 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:17: 22:26 (#0) }, [], $DIR/issue-90315.rs:22:27: 22:32 (#0)), span: $DIR/issue-90315.rs:22:17: 22:32 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:24: 22:25 (#0) }), span: $DIR/issue-90315.rs:22:17: 22:26 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 160 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:27:8: 27:31 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 152 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 151 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:27:8: 27:9 (#0) }), span: $DIR/issue-90315.rs:27:8: 27:9 (#0) }, span: $DIR/issue-90315.rs:27:8: 27:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 159 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 158 }, kind: MethodCall(PathSegment { ident: is_empty#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 153 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:11: 27:20 (#0) }, [], $DIR/issue-90315.rs:27:21: 27:31 (#0)), span: $DIR/issue-90315.rs:27:11: 27:31 (#0) }, span: $DIR/issue-90315.rs:27:11: 27:31 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:27:8: 27:31 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 158 }, kind: MethodCall(PathSegment { ident: is_empty#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 153 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:11: 27:20 (#0) }, [], $DIR/issue-90315.rs:27:21: 27:31 (#0)), span: $DIR/issue-90315.rs:27:11: 27:31 (#0) }
item_name: is_empty#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:18: 27:19 (#0) }), span: $DIR/issue-90315.rs:27:11: 27:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [(Binder(TraitPredicate(<Idx as std::marker::Sized>, polarity:Positive), []), None, Some(ObligationCause { span: $DIR/issue-90315.rs:27:21: 27:29 (#0), body_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 268 }, code: InternedObligationCauseCode { code: None } })), (Binder(TraitPredicate(<Idx as std::cmp::PartialOrd>, polarity:Positive), []), None, Some(ObligationCause { span: $DIR/issue-90315.rs:27:21: 27:29 (#0), body_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 268 }, code: InternedObligationCauseCode { code: None } }))], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 175 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:33:8: 33:32 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 167 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 166 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:33:8: 33:9 (#0) }), span: $DIR/issue-90315.rs:33:8: 33:9 (#0) }, span: $DIR/issue-90315.rs:33:8: 33:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 174 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 173 }, kind: MethodCall(PathSegment { ident: is_sorted#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 168 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:11: 33:20 (#0) }, [], $DIR/issue-90315.rs:33:21: 33:32 (#0)), span: $DIR/issue-90315.rs:33:11: 33:32 (#0) }, span: $DIR/issue-90315.rs:33:11: 33:32 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:33:8: 33:32 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 173 }, kind: MethodCall(PathSegment { ident: is_sorted#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 168 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:11: 33:20 (#0) }, [], $DIR/issue-90315.rs:33:21: 33:32 (#0)), span: $DIR/issue-90315.rs:33:11: 33:32 (#0) }
item_name: is_sorted#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: $DIR/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:18: 33:19 (#0) }), span: $DIR/issue-90315.rs:33:11: 33:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 188 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:39:8: 39:29 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 182 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 181 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: $DIR/issue-90315.rs:39:8: 39:9 (#0) }), span: $DIR/issue-90315.rs:39:8: 39:9 (#0) }, span: $DIR/issue-90315.rs:39:8: 39:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 187 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 186 }, kind: MethodCall(PathSegment { ident: error_method#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 183 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:39:11: 39:14 (#0) }, [], $DIR/issue-90315.rs:39:15: 39:29 (#0)), span: $DIR/issue-90315.rs:39:11: 39:29 (#0) }, span: $DIR/issue-90315.rs:39:11: 39:29 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:39:8: 39:29 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 186 }, kind: MethodCall(PathSegment { ident: error_method#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 183 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:39:11: 39:14 (#0) }, [], $DIR/issue-90315.rs:39:15: 39:29 (#0)), span: $DIR/issue-90315.rs:39:11: 39:29 (#0) }
item_name: error_method#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:39:11: 39:14 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 218 }, kind: Struct(LangItem(Range, $DIR/issue-90315.rs:50:21: 50:31 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 213 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 212 }, kind: Lit(Spanned { node: Int(3, Unsuffixed), span: $DIR/issue-90315.rs:50:21: 50:22 (#0) }), span: $DIR/issue-90315.rs:50:21: 50:22 (#0) }, span: $DIR/issue-90315.rs:50:21: 50:22 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 217 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 216 }, kind: MethodCall(PathSegment { ident: sum#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 214 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }, [], $DIR/issue-90315.rs:50:26: 50:31 (#0)), span: $DIR/issue-90315.rs:50:24: 50:31 (#0) }, span: $DIR/issue-90315.rs:50:24: 50:31 (#0), is_shorthand: false }], None), span: $DIR/issue-90315.rs:50:21: 50:31 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 216 }, kind: MethodCall(PathSegment { ident: sum#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 214 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }, [], $DIR/issue-90315.rs:50:26: 50:31 (#0)), span: $DIR/issue-90315.rs:50:24: 50:31 (#0) }
item_name: sum#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }), span: $DIR/issue-90315.rs:50:24: 50:25 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 242 }, kind: Call(Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 241 }, kind: Path(LangItem(RangeInclusiveNew, $DIR/issue-90315.rs:58:15: 58:26 (#0), None)), span: $DIR/issue-90315.rs:58:15: 58:26 (#0) }, [Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 236 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:58:15: 58:16 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 227 }), segments: [PathSegment { ident: a#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 235 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 227 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:58:15: 58:16 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 240 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 237 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:58:19: 58:20 (#0) }, [], $DIR/issue-90315.rs:58:21: 58:26 (#0)), span: $DIR/issue-90315.rs:58:19: 58:26 (#0) }]), span: $DIR/issue-90315.rs:58:15: 58:26 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 240 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 237 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:58:19: 58:20 (#0) }, [], $DIR/issue-90315.rs:58:21: 58:26 (#0)), span: $DIR/issue-90315.rs:58:19: 58:26 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: $DIR/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: $DIR/issue-90315.rs:58:19: 58:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))


The actual stdout differed from the expected stdout.
Actual stdout saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/methods/issues/issue-90315/issue-90315.stdout
Actual stdout saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/methods/issues/issue-90315/issue-90315.stdout
diff of stderr:

2   --> $DIR/issue-90315.rs:4:28
3    |
4 LL |     for _i in 0..arr.len().rev() {
+    |                            ^^^ `usize` is not an iterator
6    |
6    |
- help: you must surround the range in parentheses to call the `rev` function
-    |
- LL |     for _i in (0..arr.len()).rev() {
+    = note: the following trait bounds were not satisfied:
+            `usize: Iterator`
+            which is required by `&mut usize: Iterator`
11 
11 
- error[E0599]: `{integer}` is not an iterator
+ error[E0689]: can't call method `rev` on ambiguous numeric type `{integer}`
14    |
14    |
15 LL |     for i in 1..11.rev() {
16    |                    ^^^
17    |
17    |
- help: you must surround the range in parentheses to call the `rev` function
+ help: you must specify a concrete type for this numeric value, like `i32`
19    |
- LL |     for i in (1..11).rev() {
-    |              +     +
+ LL |     for i in 1..11_i32.rev() {
22 
23 error[E0599]: `usize` is not an iterator
24   --> $DIR/issue-90315.rs:17:21


25    |
26 LL |     for i in 1..end.rev() {
+    |                     ^^^ `usize` is not an iterator
28    |
28    |
- help: you must surround the range in parentheses to call the `rev` function
-    |
- LL |     for i in (1..end).rev() {
+    = note: the following trait bounds were not satisfied:
+            `usize: Iterator`
+            which is required by `&mut usize: Iterator`
33 
33 
34 error[E0599]: `usize` is not an iterator
35   --> $DIR/issue-90315.rs:22:27

36    |
37 LL |     for i in 1..(end + 1).rev() {
+    |                           ^^^ `usize` is not an iterator
39    |
39    |
- help: you must surround the range in parentheses to call the `rev` function
-    |
- LL |     for i in (1..(end + 1)).rev() {
+    = note: the following trait bounds were not satisfied:
+            `usize: Iterator`
+            which is required by `&mut usize: Iterator`
44 
44 
- error[E0599]: `usize` is not an iterator
+ error[E0599]: no method named `is_empty` found for type `usize` in the current scope
47    |
47    |
48 LL |     if 1..(end + 1).is_empty() {
-    |                     ^^^^^^^^
-    |
-    |
- help: you must surround the range in parentheses to call the `is_empty` function
-    |
- LL |     if (1..(end + 1)).is_empty() {
+    |                     ^^^^^^^^ method not found in `usize`
55 
56 error[E0308]: mismatched types
57   --> $DIR/issue-90315.rs:27:8
57   --> $DIR/issue-90315.rs:27:8

66   --> $DIR/issue-90315.rs:33:21
67    |
68 LL |     if 1..(end + 1).is_sorted() {
+    |                     ^^^^^^^^^ `usize` is not an iterator
70    |
- help: you must surround the range in parentheses to call the `is_sorted` function
-    |
-    |
- LL |     if (1..(end + 1)).is_sorted() {
+    = note: the following trait bounds were not satisfied:
+            `usize: Iterator`
+            which is required by `&mut usize: Iterator`
75 
75 
76 error[E0308]: mismatched types
77   --> $DIR/issue-90315.rs:33:8

97    = note: expected type `bool`
98             found struct `std::ops::Range<{integer}>`
99 
- error[E0599]: `{integer}` is not an iterator
+ error[E0689]: can't call method `take` on ambiguous numeric type `{integer}`
102    |
102    |
103 LL |     let _res: i32 = 3..6.take(1).sum();
104    |                          ^^^^
105    |
105    |
- help: you must surround the range in parentheses to call the `take` function
+ help: you must specify a concrete type for this numeric value, like `i32`
107    |
- LL |     let _res: i32 = (3..6).take(1).sum();
-    |                     +    +
+ LL |     let _res: i32 = 3..6_i32.take(1).sum();
110 
111 error[E0308]: mismatched types
112   --> $DIR/issue-90315.rs:45:21


119    = note: expected type `i32`
120             found struct `std::ops::Range<{integer}>`
121 
- error[E0599]: `{integer}` is not an iterator
+ error[E0689]: can't call method `sum` on ambiguous numeric type `{integer}`
124    |
124    |
125 LL |     let _sum: i32 = 3..6.sum();
126    |                          ^^^
127    |
127    |
- help: you must surround the range in parentheses to call the `sum` function
+ help: you must specify a concrete type for this numeric value, like `i32`
129    |
- LL |     let _sum: i32 = (3..6).sum();
-    |                     +    +
+ LL |     let _sum: i32 = 3..6_i32.sum();
132 
133 error[E0308]: mismatched types
134   --> $DIR/issue-90315.rs:50:21

---
To only update this specific test, also pass `--test-args methods/issues/issue-90315.rs`

error: 2 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/methods/issues/issue-90315.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/methods/issues/issue-90315" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/methods/issues/issue-90315/auxiliary"
--- stdout -------------------------------
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 19 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:4:15: 4:33 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 11 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 10 }, kind: Lit(Spanned { node: Int(0, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:15: 4:16 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:15: 4:16 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:15: 4:16 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 18 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 17 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 12 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:4:22: 4:27 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:27 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:4:28: 4:33 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:33 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:33 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:15: 4:33 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 17 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 12 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:4:22: 4:27 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:27 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:4:28: 4:33 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:33 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 16 }, kind: MethodCall(PathSegment { ident: len#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 13 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 15 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), segments: [PathSegment { ident: arr#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 14 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 9 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:21 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:4:22: 4:27 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:4:18: 4:27 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 51 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:11:14: 11:25 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 46 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 45 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:14: 11:15 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:14: 11:15 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:14: 11:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 50 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 49 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 47 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:11:20: 11:25 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:25 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:25 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:14: 11:25 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 49 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 47 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:11:20: 11:25 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:25 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 48 }, kind: Lit(Spanned { node: Int(11, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:11:17: 11:19 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 90 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:17:14: 17:26 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 84 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 83 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:14: 17:15 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:14: 17:15 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:14: 17:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 89 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 88 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 85 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:17:21: 17:26 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:26 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:26 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:14: 17:26 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 88 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 85 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:17:21: 17:26 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:26 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 87 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 86 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:17:17: 17:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 125 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:22:14: 22:32 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 117 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 116 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:14: 22:15 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:14: 22:15 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:14: 22:15 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 124 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 123 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 118 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:26 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:22:27: 22:32 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:32 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:32 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:14: 22:32 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 123 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 118 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:26 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:22:27: 22:32 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:32 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 122 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:22: 22:23 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 120 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 119 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:18: 22:21 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 121 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:24: 22:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:22:17: 22:26 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 160 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8: 27:31 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 152 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 151 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8: 27:9 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8: 27:9 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8: 27:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 159 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 158 }, kind: MethodCall(PathSegment { ident: is_empty#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 153 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:27:21: 27:31 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:31 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:31 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8: 27:31 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 158 }, kind: MethodCall(PathSegment { ident: is_empty#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 153 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:27:21: 27:31 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:31 (#0) }
item_name: is_empty#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 157 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:16: 27:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 155 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 154 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:12: 27:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 156 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:18: 27:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:11: 27:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [(Binder(TraitPredicate(<Idx as std::marker::Sized>, polarity:Positive), []), None, Some(ObligationCause { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:21: 27:29 (#0), body_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 268 }, code: InternedObligationCauseCode { code: None } })), (Binder(TraitPredicate(<Idx as std::cmp::PartialOrd>, polarity:Positive), []), None, Some(ObligationCause { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:27:21: 27:29 (#0), body_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 268 }, code: InternedObligationCauseCode { code: None } }))], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 175 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8: 33:32 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 167 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 166 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8: 33:9 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8: 33:9 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8: 33:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 174 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 173 }, kind: MethodCall(PathSegment { ident: is_sorted#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 168 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:33:21: 33:32 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:32 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:32 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8: 33:32 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 173 }, kind: MethodCall(PathSegment { ident: is_sorted#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 168 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:33:21: 33:32 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:32 (#0) }
item_name: is_sorted#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 172 }, kind: Binary(Spanned { node: Add, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:16: 33:17 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 170 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 169 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:12: 33:15 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 171 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:18: 33:19 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:33:11: 33:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 188 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8: 39:29 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 182 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 181 }, kind: Lit(Spanned { node: Int(1, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8: 39:9 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8: 39:9 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8: 39:9 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 187 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 186 }, kind: MethodCall(PathSegment { ident: error_method#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 183 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:39:15: 39:29 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:29 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:29 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8: 39:29 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 186 }, kind: MethodCall(PathSegment { ident: error_method#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 183 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:39:15: 39:29 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:29 (#0) }
item_name: error_method#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 185 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), segments: [PathSegment { ident: end#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 184 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 82 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:39:11: 39:14 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 218 }, kind: Struct(LangItem(Range, /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21: 50:31 (#0), None), [ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 213 }, ident: start#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 212 }, kind: Lit(Spanned { node: Int(3, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21: 50:22 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21: 50:22 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21: 50:22 (#0), is_shorthand: false }, ExprField { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 217 }, ident: end#0, expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 216 }, kind: MethodCall(PathSegment { ident: sum#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 214 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:50:26: 50:31 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:31 (#0) }, span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:31 (#0), is_shorthand: false }], None), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21: 50:31 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 216 }, kind: MethodCall(PathSegment { ident: sum#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 214 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:50:26: 50:31 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:31 (#0) }
item_name: sum#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 215 }, kind: Lit(Spanned { node: Int(6, Unsuffixed), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:50:24: 50:25 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
parent_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 242 }, kind: Call(Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 241 }, kind: Path(LangItem(RangeInclusiveNew, /checkout/src/test/ui/methods/issues/issue-90315.rs:58:15: 58:26 (#0), None)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:15: 58:26 (#0) }, [Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 236 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:15: 58:16 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 227 }), segments: [PathSegment { ident: a#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 235 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 227 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:15: 58:16 (#0) }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 240 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 237 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:58:21: 58:26 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:26 (#0) }]), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:15: 58:26 (#0) }
range_ty: std::ops::Range<Idx>
call_expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 240 }, kind: MethodCall(PathSegment { ident: rev#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 237 }, res: Err, args: None, infer_args: true }, Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0) }, [], /checkout/src/test/ui/methods/issues/issue-90315.rs:58:21: 58:26 (#0)), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:26 (#0) }
item_name: rev#0
expr: Expr { hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 239 }, kind: Path(Resolved(None, Path { span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0), res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), segments: [PathSegment { ident: b#0, hir_id: HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 238 }, res: Local(HirId { owner: OwnerId { def_id: DefId(0:3 ~ issue_90315[8b94]::main) }, local_id: 234 }), args: None, infer_args: true }] })), span: /checkout/src/test/ui/methods/issues/issue-90315.rs:58:19: 58:20 (#0) }
pick: Err(NoMatch(NoMatchData { static_candidates: [], unsatisfied_predicates: [], out_of_scope_traits: [], lev_candidate: None, mode: MethodCall }))
--- stderr -------------------------------
error[E0599]: `usize` is not an iterator
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:4:28
   |
   |
LL |     for _i in 0..arr.len().rev() { //~ERROR not an iterator
   |                            ^^^ `usize` is not an iterator
   = note: the following trait bounds were not satisfied:
           `usize: Iterator`
           which is required by `&mut usize: Iterator`


error[E0689]: can't call method `rev` on ambiguous numeric type `{integer}`
   |
   |
LL |     for i in 1..11.rev() {
   |
   |
help: you must specify a concrete type for this numeric value, like `i32`
   |
LL |     for i in 1..11_i32.rev() {

error[E0599]: `usize` is not an iterator
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:17:21
   |
   |
LL |     for i in 1..end.rev() {
   |                     ^^^ `usize` is not an iterator
   = note: the following trait bounds were not satisfied:
           `usize: Iterator`
           which is required by `&mut usize: Iterator`


error[E0599]: `usize` is not an iterator
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:22:27
   |
LL |     for i in 1..(end + 1).rev() {
   |                           ^^^ `usize` is not an iterator
   = note: the following trait bounds were not satisfied:
           `usize: Iterator`
           which is required by `&mut usize: Iterator`


error[E0599]: no method named `is_empty` found for type `usize` in the current scope
   |
   |
LL |     if 1..(end + 1).is_empty() {
   |                     ^^^^^^^^ method not found in `usize`
error[E0308]: mismatched types
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:27:8
   |
   |
LL |     if 1..(end + 1).is_empty() {
   |        ^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found struct `std::ops::Range`
   = note: expected type `bool`
            found struct `std::ops::Range<{integer}>`

error[E0599]: `usize` is not an iterator
error[E0599]: `usize` is not an iterator
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:33:21
   |
LL |     if 1..(end + 1).is_sorted() {
   |                     ^^^^^^^^^ `usize` is not an iterator
   = note: the following trait bounds were not satisfied:
           `usize: Iterator`
           which is required by `&mut usize: Iterator`


error[E0308]: mismatched types
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:33:8
   |
LL |     if 1..(end + 1).is_sorted() {
   |        ^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found struct `std::ops::Range`
   = note: expected type `bool`
            found struct `std::ops::Range<{integer}>`


error[E0599]: no method named `error_method` found for type `usize` in the current scope
   |
   |
LL |     if 1..end.error_method() {
   |               ^^^^^^^^^^^^ method not found in `usize`
error[E0308]: mismatched types
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:39:8
   |
   |
LL |     if 1..end.error_method() {
   |        ^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found struct `std::ops::Range`
   = note: expected type `bool`
            found struct `std::ops::Range<{integer}>`


error[E0689]: can't call method `take` on ambiguous numeric type `{integer}`
   |
   |
LL |     let _res: i32 = 3..6.take(1).sum();
   |
   |
help: you must specify a concrete type for this numeric value, like `i32`
   |
LL |     let _res: i32 = 3..6_i32.take(1).sum();

error[E0308]: mismatched types
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:45:21
   |
   |
LL |     let _res: i32 = 3..6.take(1).sum();
   |               ---   ^^^^^^^^^^^^^^^^^^ expected `i32`, found struct `std::ops::Range`
   |               expected due to this
   |
   = note: expected type `i32`
            found struct `std::ops::Range<{integer}>`
            found struct `std::ops::Range<{integer}>`

error[E0689]: can't call method `sum` on ambiguous numeric type `{integer}`
   |
   |
LL |     let _sum: i32 = 3..6.sum();
   |
   |
help: you must specify a concrete type for this numeric value, like `i32`
   |
LL |     let _sum: i32 = 3..6_i32.sum();

error[E0308]: mismatched types
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:50:21
   |
   |
LL |     let _sum: i32 = 3..6.sum();
   |               ---   ^^^^^^^^^^ expected `i32`, found struct `std::ops::Range`
   |               expected due to this
   |
   = note: expected type `i32`
            found struct `std::ops::Range<{integer}>`
            found struct `std::ops::Range<{integer}>`

error[E0599]: `usize` is not an iterator
  --> /checkout/src/test/ui/methods/issues/issue-90315.rs:58:21
   |
LL |     for _a in a..=b.rev() {
   |                     ^^^ `usize` is not an iterator
   = note: the following trait bounds were not satisfied:
           `usize: Iterator`
           which is required by `&mut usize: Iterator`

rust-log-analyzer avatar Sep 30 '22 12:09 rust-log-analyzer

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

rustbot avatar Oct 01 '22 08:10 rustbot

:umbrella: The latest upstream changes (presumably #102395) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Oct 04 '22 07:10 bors

r? @lcnr Help me on merging it, afraid need to rebase with master again, 😁

chenyukang avatar Oct 13 '22 04:10 chenyukang

@bors r+ rollup

lcnr avatar Oct 17 '22 12:10 lcnr

:pushpin: Commit 151001c1cb1c054d7f259e90ed44b31c25ba2db7 has been approved by lcnr

It is now in the queue for this repository.

bors avatar Oct 17 '22 12:10 bors