Skip to content

Commit 8af35fe

Browse files
committed
Update *.stderr files
1 parent 90ba09d commit 8af35fe

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
error: passing `Ty<'_>` by reference
2+
--> $DIR/pass_ty_by_ref.rs:13:13
3+
|
4+
LL | ty_ref: &Ty<'_>,
5+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
6+
|
7+
note: lint level defined here
8+
--> $DIR/pass_ty_by_ref.rs:4:9
9+
|
10+
LL | #![deny(ty_pass_by_reference)]
11+
| ^^^^^^^^^^^^^^^^^^^^
12+
13+
error: passing `TyCtxt<'_, '_, '_>` by reference
14+
--> $DIR/pass_ty_by_ref.rs:15:18
15+
|
16+
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
17+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
18+
19+
error: passing `Ty<'_>` by reference
20+
--> $DIR/pass_ty_by_ref.rs:19:28
21+
|
22+
LL | fn ty_multi_ref(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
23+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
24+
25+
error: passing `TyCtxt<'_, '_, '_>` by reference
26+
--> $DIR/pass_ty_by_ref.rs:19:55
27+
|
28+
LL | fn ty_multi_ref(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
29+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
30+
31+
error: passing `Ty<'_>` by reference
32+
--> $DIR/pass_ty_by_ref.rs:26:17
33+
|
34+
LL | ty_ref: &Ty<'_>,
35+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
36+
37+
error: passing `TyCtxt<'_, '_, '_>` by reference
38+
--> $DIR/pass_ty_by_ref.rs:28:22
39+
|
40+
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
41+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
42+
43+
error: passing `Ty<'_>` by reference
44+
--> $DIR/pass_ty_by_ref.rs:31:41
45+
|
46+
LL | fn ty_multi_ref_in_trait(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>);
47+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
48+
49+
error: passing `TyCtxt<'_, '_, '_>` by reference
50+
--> $DIR/pass_ty_by_ref.rs:31:68
51+
|
52+
LL | fn ty_multi_ref_in_trait(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>);
53+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
54+
55+
error: passing `Ty<'_>` by reference
56+
--> $DIR/pass_ty_by_ref.rs:53:17
57+
|
58+
LL | ty_ref: &Ty<'_>,
59+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
60+
61+
error: passing `TyCtxt<'_, '_, '_>` by reference
62+
--> $DIR/pass_ty_by_ref.rs:55:22
63+
|
64+
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
65+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
66+
67+
error: passing `Ty<'_>` by reference
68+
--> $DIR/pass_ty_by_ref.rs:59:38
69+
|
70+
LL | fn ty_multi_ref_assoc(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
71+
| ^^^^^^^ help: try passing by value: `Ty<'_>`
72+
73+
error: passing `TyCtxt<'_, '_, '_>` by reference
74+
--> $DIR/pass_ty_by_ref.rs:59:65
75+
|
76+
LL | fn ty_multi_ref_assoc(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
77+
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
78+
79+
error: aborting due to 12 previous errors
80+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error: usage of qualified `ty::Ty<'_>`
2+
--> $DIR/qualified_ty_ty_ctxt.rs:25:11
3+
|
4+
LL | ty_q: ty::Ty<'_>,
5+
| ^^^^^^^^^^ help: try using it unqualified: `Ty<'_>`
6+
|
7+
note: lint level defined here
8+
--> $DIR/qualified_ty_ty_ctxt.rs:4:9
9+
|
10+
LL | #![deny(usage_of_qualified_ty)]
11+
| ^^^^^^^^^^^^^^^^^^^^^
12+
13+
error: usage of qualified `ty::TyCtxt<'_, '_, '_>`
14+
--> $DIR/qualified_ty_ty_ctxt.rs:27:16
15+
|
16+
LL | ty_ctxt_q: ty::TyCtxt<'_, '_, '_>,
17+
| ^^^^^^^^^^^^^^^^^^^^^^ help: try using it unqualified: `TyCtxt<'_, '_, '_>`
18+
19+
error: aborting due to 2 previous errors
20+

src/test/ui-fulldeps/internal-lints/ty_tykind_usage.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ error: usage of `ty::TyKind`
190190
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
191191
| ^^^^^^^^^^
192192
|
193-
= help: try using `ty::Ty` instead
193+
= help: try using `Ty` instead
194194

195195
error: aborting due to 31 previous errors
196196

0 commit comments

Comments
 (0)