Update *.stderr files
This commit is contained in:
parent
90ba09d299
commit
8af35fe3f0
80
src/test/ui-fulldeps/internal-lints/pass_ty_by_ref.stderr
Normal file
80
src/test/ui-fulldeps/internal-lints/pass_ty_by_ref.stderr
Normal file
@ -0,0 +1,80 @@
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:13:13
|
||||
|
|
||||
LL | ty_ref: &Ty<'_>,
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/pass_ty_by_ref.rs:4:9
|
||||
|
|
||||
LL | #![deny(ty_pass_by_reference)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:15:18
|
||||
|
|
||||
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:19:28
|
||||
|
|
||||
LL | fn ty_multi_ref(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:19:55
|
||||
|
|
||||
LL | fn ty_multi_ref(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:26:17
|
||||
|
|
||||
LL | ty_ref: &Ty<'_>,
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:28:22
|
||||
|
|
||||
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:31:41
|
||||
|
|
||||
LL | fn ty_multi_ref_in_trait(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>);
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:31:68
|
||||
|
|
||||
LL | fn ty_multi_ref_in_trait(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>);
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:53:17
|
||||
|
|
||||
LL | ty_ref: &Ty<'_>,
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:55:22
|
||||
|
|
||||
LL | ty_ctxt_ref: &TyCtxt<'_, '_, '_>,
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: passing `Ty<'_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:59:38
|
||||
|
|
||||
LL | fn ty_multi_ref_assoc(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
|
||||
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
||||
|
||||
error: passing `TyCtxt<'_, '_, '_>` by reference
|
||||
--> $DIR/pass_ty_by_ref.rs:59:65
|
||||
|
|
||||
LL | fn ty_multi_ref_assoc(ty_multi: &&Ty<'_>, ty_ctxt_multi: &&&&TyCtxt<'_, '_, '_>) {}
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: try passing by value: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: aborting due to 12 previous errors
|
||||
|
@ -0,0 +1,20 @@
|
||||
error: usage of qualified `ty::Ty<'_>`
|
||||
--> $DIR/qualified_ty_ty_ctxt.rs:25:11
|
||||
|
|
||||
LL | ty_q: ty::Ty<'_>,
|
||||
| ^^^^^^^^^^ help: try using it unqualified: `Ty<'_>`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/qualified_ty_ty_ctxt.rs:4:9
|
||||
|
|
||||
LL | #![deny(usage_of_qualified_ty)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: usage of qualified `ty::TyCtxt<'_, '_, '_>`
|
||||
--> $DIR/qualified_ty_ty_ctxt.rs:27:16
|
||||
|
|
||||
LL | ty_ctxt_q: ty::TyCtxt<'_, '_, '_>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ help: try using it unqualified: `TyCtxt<'_, '_, '_>`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
@ -190,7 +190,7 @@ error: usage of `ty::TyKind`
|
||||
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: try using `ty::Ty` instead
|
||||
= help: try using `Ty` instead
|
||||
|
||||
error: aborting due to 31 previous errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user