You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: compiler/rustc_hir_analysis/messages.ftl
+1
Original file line number
Diff line number
Diff line change
@@ -347,6 +347,7 @@ hir_analysis_rpitit_refined = impl trait in impl method signature does not match
347
347
.label = return type from trait method defined here
348
348
.unmatched_bound_label = this bound is stronger than that defined on the trait
349
349
.note = add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
350
+
.feedback_note = we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
350
351
351
352
hir_analysis_self_in_impl_self =
352
353
`Self` is not valid in the self type of an impl block
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
11
+
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
11
12
note: the lint level is defined here
12
13
--> $DIR/async-example-desugared-boxed.rs:13:12
13
14
|
14
15
LL | #[warn(refining_impl_trait)]
15
16
| ^^^^^^^^^^^^^^^^^^^
17
+
= note: `#[warn(refining_impl_trait_reachable)]` implied by `#[warn(refining_impl_trait)]`
16
18
help: replace the return type so that it matches the trait
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
11
+
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
11
12
note: the lint level is defined here
12
13
--> $DIR/async-example-desugared-manual.rs:21:12
13
14
|
14
15
LL | #[warn(refining_impl_trait)]
15
16
| ^^^^^^^^^^^^^^^^^^^
17
+
= note: `#[warn(refining_impl_trait_reachable)]` implied by `#[warn(refining_impl_trait)]`
16
18
help: replace the return type so that it matches the trait
| ^^ this bound is stronger than that defined on the trait
23
23
|
24
24
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
25
-
= note: `#[warn(refining_impl_trait)]` on by default
25
+
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
26
+
= note: `#[warn(refining_impl_trait_reachable)]` on by default
26
27
help: replace the return type so that it matches the trait
warning: impl trait in impl method signature does not match trait method signature
2
+
--> $DIR/foreign.rs:23:21
3
+
|
4
+
LL | fn bar(self) -> Arc<String> {
5
+
| ^^^^^^^^^^^
6
+
|
7
+
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
8
+
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
9
+
note: the lint level is defined here
10
+
--> $DIR/foreign.rs:22:12
11
+
|
12
+
LL | #[warn(refining_impl_trait)]
13
+
| ^^^^^^^^^^^^^^^^^^^
14
+
= note: `#[warn(refining_impl_trait_internal)]` implied by `#[warn(refining_impl_trait)]`
15
+
help: replace the return type so that it matches the trait
warning: impl trait in impl method signature does not match trait method signature
21
+
--> $DIR/foreign.rs:33:21
22
+
|
23
+
LL | fn bar(self) -> Arc<String> {
24
+
| ^^^^^^^^^^^
25
+
|
26
+
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
27
+
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
28
+
note: the lint level is defined here
29
+
--> $DIR/foreign.rs:31:12
30
+
|
31
+
LL | #[warn(refining_impl_trait)]
32
+
| ^^^^^^^^^^^^^^^^^^^
33
+
help: replace the return type so that it matches the trait
0 commit comments