Skip to content

Commit 43fdb12

Browse files
committed
review comment: change wording
1 parent 97ec2be commit 43fdb12

30 files changed

+55
-55
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
30123012
}
30133013
}
30143014
let mut a = "a";
3015-
let mut this = "this";
3015+
let mut this = "this bound";
30163016
let mut note = None;
30173017
let mut help = None;
30183018
if let ty::PredicateKind::Clause(clause) = predicate.kind().skip_binder()
@@ -3038,7 +3038,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
30383038
.any(|param| tcx.def_span(param.def_id) == span)
30393039
{
30403040
a = "an implicit `Sized`";
3041-
this = "the implicit `Sized` requirement on this";
3041+
this = "the implicit `Sized` requirement on this type parameter";
30423042
}
30433043
if let Some(hir::Node::TraitItem(hir::TraitItem {
30443044
ident,
@@ -3108,7 +3108,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
31083108
};
31093109
let descr = format!("required by {a} bound in `{item_name}`");
31103110
if span.is_visible(sm) {
3111-
let msg = format!("required by {this} bound in `{short_item_name}`");
3111+
let msg = format!("required by {this} in `{short_item_name}`");
31123112
multispan.push_span_label(span, msg);
31133113
err.span_note(multispan, descr);
31143114
} else {

tests/ui/associated-types/issue-20005.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ note: required by an implicit `Sized` bound in `From`
88
--> $DIR/issue-20005.rs:1:12
99
|
1010
LL | trait From<Src> {
11-
| ^^^ required by the implicit `Sized` requirement on this bound in `From`
11+
| ^^^ required by the implicit `Sized` requirement on this type parameter in `From`
1212
help: consider further restricting `Self`
1313
|
1414
LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self>, Self: Sized {

tests/ui/dst/dst-sized-trait-param.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `Foo`
99
--> $DIR/dst-sized-trait-param.rs:5:11
1010
|
1111
LL | trait Foo<T> : Sized { fn take(self, x: &T) { } } // Note: T is sized
12-
| ^ required by the implicit `Sized` requirement on this bound in `Foo`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `Foo`
1313
help: consider relaxing the implicit `Sized` restriction
1414
|
1515
LL | trait Foo<T: ?Sized> : Sized { fn take(self, x: &T) { } } // Note: T is sized

tests/ui/extern/extern-types-unsized.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `assert_sized`
99
--> $DIR/extern-types-unsized.rs:19:17
1010
|
1111
LL | fn assert_sized<T>() {}
12-
| ^ required by the implicit `Sized` requirement on this bound in `assert_sized`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `assert_sized`
1313
help: consider relaxing the implicit `Sized` restriction
1414
|
1515
LL | fn assert_sized<T: ?Sized>() {}
@@ -31,7 +31,7 @@ note: required by an implicit `Sized` bound in `assert_sized`
3131
--> $DIR/extern-types-unsized.rs:19:17
3232
|
3333
LL | fn assert_sized<T>() {}
34-
| ^ required by the implicit `Sized` requirement on this bound in `assert_sized`
34+
| ^ required by the implicit `Sized` requirement on this type parameter in `assert_sized`
3535
help: consider relaxing the implicit `Sized` restriction
3636
|
3737
LL | fn assert_sized<T: ?Sized>() {}
@@ -53,7 +53,7 @@ note: required by an implicit `Sized` bound in `assert_sized`
5353
--> $DIR/extern-types-unsized.rs:19:17
5454
|
5555
LL | fn assert_sized<T>() {}
56-
| ^ required by the implicit `Sized` requirement on this bound in `assert_sized`
56+
| ^ required by the implicit `Sized` requirement on this type parameter in `assert_sized`
5757
help: consider relaxing the implicit `Sized` restriction
5858
|
5959
LL | fn assert_sized<T: ?Sized>() {}
@@ -75,7 +75,7 @@ note: required by an implicit `Sized` bound in `assert_sized`
7575
--> $DIR/extern-types-unsized.rs:19:17
7676
|
7777
LL | fn assert_sized<T>() {}
78-
| ^ required by the implicit `Sized` requirement on this bound in `assert_sized`
78+
| ^ required by the implicit `Sized` requirement on this type parameter in `assert_sized`
7979
help: consider relaxing the implicit `Sized` restriction
8080
|
8181
LL | fn assert_sized<T: ?Sized>() {}

tests/ui/generic-associated-types/issue-88287.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ note: required by an implicit `Sized` bound in `<T as SearchableResourceExt<Crit
1111
--> $DIR/issue-88287.rs:24:6
1212
|
1313
LL | impl<T, Criteria> SearchableResourceExt<Criteria> for T
14-
| ^ required by the implicit `Sized` requirement on this bound in `<T as SearchableResourceExt<Criteria>>`
14+
| ^ required by the implicit `Sized` requirement on this type parameter in `<T as SearchableResourceExt<Criteria>>`
1515
help: consider removing the `?Sized` bound to make the type parameter `Sized`
1616
|
1717
LL - A: SearchableResource<B> + ?Sized + 'f,

tests/ui/impl-trait/in-trait/wf-bounds.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ note: required by an implicit `Sized` bound in `Wf`
1919
--> $DIR/wf-bounds.rs:7:10
2020
|
2121
LL | trait Wf<T> {
22-
| ^ required by the implicit `Sized` requirement on this bound in `Wf`
22+
| ^ required by the implicit `Sized` requirement on this type parameter in `Wf`
2323
help: consider relaxing the implicit `Sized` restriction
2424
|
2525
LL | trait Wf<T: ?Sized> {

tests/ui/issues/issue-10412.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ note: required by an implicit `Sized` bound in `Serializable`
6262
--> $DIR/issue-10412.rs:1:27
6363
|
6464
LL | trait Serializable<'self, T> {
65-
| ^ required by the implicit `Sized` requirement on this bound in `Serializable`
65+
| ^ required by the implicit `Sized` requirement on this type parameter in `Serializable`
6666
help: consider relaxing the implicit `Sized` restriction
6767
|
6868
LL | trait Serializable<'self, T: ?Sized> {

tests/ui/issues/issue-18919.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `Option`
99
--> $DIR/issue-18919.rs:7:13
1010
|
1111
LL | enum Option<T> {
12-
| ^ required by the implicit `Sized` requirement on this bound in `Option`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `Option`
1313
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
1414
--> $DIR/issue-18919.rs:7:13
1515
|

tests/ui/issues/issue-23281.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `Vec`
99
--> $DIR/issue-23281.rs:8:12
1010
|
1111
LL | struct Vec<T> {
12-
| ^ required by the implicit `Sized` requirement on this bound in `Vec`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `Vec`
1313
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
1414
--> $DIR/issue-23281.rs:8:12
1515
|

tests/ui/issues/issue-87199.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ note: required by an implicit `Sized` bound in `ref_arg`
2727
--> $DIR/issue-87199.rs:10:12
2828
|
2929
LL | fn ref_arg<T: ?Send>(_: &T) {}
30-
| ^ required by the implicit `Sized` requirement on this bound in `ref_arg`
30+
| ^ required by the implicit `Sized` requirement on this type parameter in `ref_arg`
3131
help: consider relaxing the implicit `Sized` restriction
3232
|
3333
LL | fn ref_arg<T: ?Send + ?Sized>(_: &T) {}

tests/ui/malformed/do-not-ice-on-note_and_explain.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ note: required by an implicit `Sized` bound in `A`
6464
--> $DIR/do-not-ice-on-note_and_explain.rs:1:10
6565
|
6666
LL | struct A<B>(B);
67-
| ^ required by the implicit `Sized` requirement on this bound in `A`
67+
| ^ required by the implicit `Sized` requirement on this type parameter in `A`
6868
help: you could relax the implicit `Sized` bound on `B` if it were used through indirection like `&B` or `Box<B>`
6969
--> $DIR/do-not-ice-on-note_and_explain.rs:1:10
7070
|

tests/ui/methods/issues/issue-61525.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ note: required by an implicit `Sized` bound in `Example::query`
1111
--> $DIR/issue-61525.rs:2:14
1212
|
1313
LL | fn query<Q>(self, q: Q);
14-
| ^ required by the implicit `Sized` requirement on this bound in `Example::query`
14+
| ^ required by the implicit `Sized` requirement on this type parameter in `Example::query`
1515
help: consider relaxing the implicit `Sized` restriction
1616
|
1717
LL | fn query<Q: ?Sized>(self, q: Q);

tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ note: required by an implicit `Sized` bound in `Bar`
2626
--> $DIR/object-safety-supertrait-mentions-Self.rs:4:11
2727
|
2828
LL | trait Bar<T> {
29-
| ^ required by the implicit `Sized` requirement on this bound in `Bar`
29+
| ^ required by the implicit `Sized` requirement on this type parameter in `Bar`
3030
help: consider further restricting `Self`
3131
|
3232
LL | trait Baz : Bar<Self> + Sized {

tests/ui/str/str-mut-idx.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `bot`
99
--> $DIR/str-mut-idx.rs:1:8
1010
|
1111
LL | fn bot<T>() -> T { loop {} }
12-
| ^ required by the implicit `Sized` requirement on this bound in `bot`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `bot`
1313
help: consider relaxing the implicit `Sized` restriction
1414
|
1515
LL | fn bot<T: ?Sized>() -> T { loop {} }

tests/ui/suggestions/adt-param-with-implicit-sized-bound.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note: required by an implicit `Sized` bound in `X`
1010
--> $DIR/adt-param-with-implicit-sized-bound.rs:18:10
1111
|
1212
LL | struct X<T>(T);
13-
| ^ required by the implicit `Sized` requirement on this bound in `X`
13+
| ^ required by the implicit `Sized` requirement on this type parameter in `X`
1414
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
1515
--> $DIR/adt-param-with-implicit-sized-bound.rs:18:10
1616
|
@@ -34,7 +34,7 @@ note: required by an implicit `Sized` bound in `Struct1`
3434
--> $DIR/adt-param-with-implicit-sized-bound.rs:8:16
3535
|
3636
LL | struct Struct1<T>{
37-
| ^ required by the implicit `Sized` requirement on this bound in `Struct1`
37+
| ^ required by the implicit `Sized` requirement on this type parameter in `Struct1`
3838
help: consider further restricting `Self`
3939
|
4040
LL | fn func1() -> Struct1<Self> where Self: Sized;
@@ -54,7 +54,7 @@ note: required by an implicit `Sized` bound in `Struct2`
5454
--> $DIR/adt-param-with-implicit-sized-bound.rs:11:20
5555
|
5656
LL | struct Struct2<'a, T>{
57-
| ^ required by the implicit `Sized` requirement on this bound in `Struct2`
57+
| ^ required by the implicit `Sized` requirement on this type parameter in `Struct2`
5858
help: consider further restricting `Self`
5959
|
6060
LL | fn func2<'a>() -> Struct2<'a, Self> where Self: Sized;
@@ -74,7 +74,7 @@ note: required by an implicit `Sized` bound in `Struct3`
7474
--> $DIR/adt-param-with-implicit-sized-bound.rs:14:16
7575
|
7676
LL | struct Struct3<T>{
77-
| ^ required by the implicit `Sized` requirement on this bound in `Struct3`
77+
| ^ required by the implicit `Sized` requirement on this type parameter in `Struct3`
7878
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
7979
--> $DIR/adt-param-with-implicit-sized-bound.rs:14:16
8080
|
@@ -97,7 +97,7 @@ note: required by an implicit `Sized` bound in `Struct4`
9797
--> $DIR/adt-param-with-implicit-sized-bound.rs:20:16
9898
|
9999
LL | struct Struct4<T>{
100-
| ^ required by the implicit `Sized` requirement on this bound in `Struct4`
100+
| ^ required by the implicit `Sized` requirement on this type parameter in `Struct4`
101101
help: consider further restricting `Self`
102102
|
103103
LL | fn func4() -> Struct4<Self> where Self: Sized;

tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: required by an implicit `Sized` bound in `A`
99
--> $DIR/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs:4:10
1010
|
1111
LL | struct A<T>(T) where T: Send;
12-
| ^ required by the implicit `Sized` requirement on this bound in `A`
12+
| ^ required by the implicit `Sized` requirement on this type parameter in `A`
1313
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
1414
--> $DIR/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs:4:10
1515
|

tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note: required by an implicit `Sized` bound in `Wrapper`
1010
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
1111
|
1212
LL | struct Wrapper<T>(T);
13-
| ^ required by the implicit `Sized` requirement on this bound in `Wrapper`
13+
| ^ required by the implicit `Sized` requirement on this type parameter in `Wrapper`
1414
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
1515
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
1616
|
@@ -39,7 +39,7 @@ note: required by an implicit `Sized` bound in `Wrapper`
3939
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
4040
|
4141
LL | struct Wrapper<T>(T);
42-
| ^ required by the implicit `Sized` requirement on this bound in `Wrapper`
42+
| ^ required by the implicit `Sized` requirement on this type parameter in `Wrapper`
4343
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
4444
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
4545
|
@@ -64,7 +64,7 @@ note: required by an implicit `Sized` bound in `Wrapper`
6464
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
6565
|
6666
LL | struct Wrapper<T>(T);
67-
| ^ required by the implicit `Sized` requirement on this bound in `Wrapper`
67+
| ^ required by the implicit `Sized` requirement on this type parameter in `Wrapper`
6868
help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
6969
--> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
7070
|

tests/ui/trait-bounds/unsized-bound.stderr

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ note: required by an implicit `Sized` bound in `Trait`
1111
--> $DIR/unsized-bound.rs:1:13
1212
|
1313
LL | trait Trait<A> {}
14-
| ^ required by the implicit `Sized` requirement on this bound in `Trait`
14+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait`
1515
help: consider removing the `?Sized` bound to make the type parameter `Sized`
1616
|
1717
LL - impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
@@ -50,7 +50,7 @@ note: required by an implicit `Sized` bound in `Trait`
5050
--> $DIR/unsized-bound.rs:1:13
5151
|
5252
LL | trait Trait<A> {}
53-
| ^ required by the implicit `Sized` requirement on this bound in `Trait`
53+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait`
5454
help: consider removing the `?Sized` bound to make the type parameter `Sized`
5555
|
5656
LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
@@ -100,7 +100,7 @@ note: required by an implicit `Sized` bound in `Trait2`
100100
--> $DIR/unsized-bound.rs:9:14
101101
|
102102
LL | trait Trait2<A> {}
103-
| ^ required by the implicit `Sized` requirement on this bound in `Trait2`
103+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait2`
104104
help: consider removing the `?Sized` bound to make the type parameter `Sized`
105105
|
106106
LL - impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
@@ -138,7 +138,7 @@ note: required by an implicit `Sized` bound in `Trait3`
138138
--> $DIR/unsized-bound.rs:13:14
139139
|
140140
LL | trait Trait3<A> {}
141-
| ^ required by the implicit `Sized` requirement on this bound in `Trait3`
141+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait3`
142142
help: consider removing the `?Sized` bound to make the type parameter `Sized`
143143
|
144144
LL - impl<A> Trait3<A> for A where A: ?Sized {}
@@ -161,7 +161,7 @@ note: required by an implicit `Sized` bound in `Trait4`
161161
--> $DIR/unsized-bound.rs:16:14
162162
|
163163
LL | trait Trait4<A> {}
164-
| ^ required by the implicit `Sized` requirement on this bound in `Trait4`
164+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait4`
165165
help: consider removing the `?Sized` bound to make the type parameter `Sized`
166166
|
167167
LL - impl<A: ?Sized> Trait4<A> for A {}
@@ -184,7 +184,7 @@ note: required by an implicit `Sized` bound in `Trait5`
184184
--> $DIR/unsized-bound.rs:19:14
185185
|
186186
LL | trait Trait5<A, B> {}
187-
| ^ required by the implicit `Sized` requirement on this bound in `Trait5`
187+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait5`
188188
help: consider removing the `?Sized` bound to make the type parameter `Sized`
189189
|
190190
LL - impl<X, Y> Trait5<X, Y> for X where X: ?Sized {}
@@ -207,7 +207,7 @@ note: required by an implicit `Sized` bound in `Trait6`
207207
--> $DIR/unsized-bound.rs:22:14
208208
|
209209
LL | trait Trait6<A, B> {}
210-
| ^ required by the implicit `Sized` requirement on this bound in `Trait6`
210+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait6`
211211
help: consider removing the `?Sized` bound to make the type parameter `Sized`
212212
|
213213
LL - impl<X: ?Sized, Y> Trait6<X, Y> for X {}
@@ -230,7 +230,7 @@ note: required by an implicit `Sized` bound in `Trait7`
230230
--> $DIR/unsized-bound.rs:25:17
231231
|
232232
LL | trait Trait7<A, B> {}
233-
| ^ required by the implicit `Sized` requirement on this bound in `Trait7`
233+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait7`
234234
help: consider removing the `?Sized` bound to make the type parameter `Sized`
235235
|
236236
LL - impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {}
@@ -253,7 +253,7 @@ note: required by an implicit `Sized` bound in `Trait8`
253253
--> $DIR/unsized-bound.rs:28:17
254254
|
255255
LL | trait Trait8<A, B> {}
256-
| ^ required by the implicit `Sized` requirement on this bound in `Trait8`
256+
| ^ required by the implicit `Sized` requirement on this type parameter in `Trait8`
257257
help: consider removing the `?Sized` bound to make the type parameter `Sized`
258258
|
259259
LL - impl<X, Y: ?Sized> Trait8<X, Y> for X {}

tests/ui/traits/issue-28576.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ note: required by an implicit `Sized` bound in `Foo`
2929
--> $DIR/issue-28576.rs:1:15
3030
|
3131
LL | pub trait Foo<RHS=Self> {
32-
| ^^^^^^^^ required by the implicit `Sized` requirement on this bound in `Foo`
32+
| ^^^^^^^^ required by the implicit `Sized` requirement on this type parameter in `Foo`
3333
help: consider further restricting `Self`
3434
|
3535
LL | pub trait Bar: Foo<Assoc=()> + Sized {
@@ -49,7 +49,7 @@ note: required by an implicit `Sized` bound in `Foo`
4949
--> $DIR/issue-28576.rs:1:15
5050
|
5151
LL | pub trait Foo<RHS=Self> {
52-
| ^^^^^^^^ required by the implicit `Sized` requirement on this bound in `Foo`
52+
| ^^^^^^^^ required by the implicit `Sized` requirement on this type parameter in `Foo`
5353
help: consider further restricting `Self`
5454
|
5555
LL | ) where Self: Sized;

tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ LL | needs_bar::<T::Assoc1>();
2626
| ^^^^^^^^^
2727
|
2828
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`recursive_self_normalization_2`)
29-
note: required by a bound in `needs_bar`
29+
note: required by an implicit `Sized` bound in `needs_bar`
3030
--> $DIR/recursive-self-normalization-2.rs:12:14
3131
|
3232
LL | fn needs_bar<S: Bar>() {}
33-
| ^ required by this bound in `needs_bar`
33+
| ^ required by the implicit `Sized` requirement on this type parameter in `needs_bar`
3434
help: consider relaxing the implicit `Sized` restriction
3535
|
3636
LL | fn needs_bar<S: Bar + ?Sized>() {}

tests/ui/traits/next-solver/overflow/recursive-self-normalization.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ LL | needs_bar::<T::Assoc>();
2626
| ^^^^^^^^
2727
|
2828
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`recursive_self_normalization`)
29-
note: required by a bound in `needs_bar`
29+
note: required by an implicit `Sized` bound in `needs_bar`
3030
--> $DIR/recursive-self-normalization.rs:8:14
3131
|
3232
LL | fn needs_bar<S: Bar>() {}
33-
| ^ required by this bound in `needs_bar`
33+
| ^ required by the implicit `Sized` requirement on this type parameter in `needs_bar`
3434
help: consider relaxing the implicit `Sized` restriction
3535
|
3636
LL | fn needs_bar<S: Bar + ?Sized>() {}

0 commit comments

Comments
 (0)