fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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