File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
compiler/rustc_middle/src/ty/print
const-generics/adt_const_params Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3177,8 +3177,7 @@ define_print! {
3177
3177
write!( p, "` can be evaluated" ) ?;
3178
3178
}
3179
3179
ty:: ClauseKind :: UnstableFeature ( symbol) => {
3180
- write!( p, "unstable feature: " ) ?;
3181
- write!( p, "`{symbol}`" ) ?;
3180
+ write!( p, "feature({symbol}) is enabled" ) ?;
3182
3181
}
3183
3182
}
3184
3183
}
Original file line number Diff line number Diff line change 7
7
LL | struct A([u8]);
8
8
| ---- this field does not implement `ConstParamTy_`
9
9
|
10
- note: the `ConstParamTy_` impl for `[u8]` requires that `unstable feature: ` unsized_const_params` `
10
+ note: the `ConstParamTy_` impl for `[u8]` requires that `feature( unsized_const_params) is enabled `
11
11
--> $DIR/unsized_field-1.rs:10:10
12
12
|
13
13
LL | struct A([u8]);
22
22
LL | struct B(&'static [u8]);
23
23
| ------------- this field does not implement `ConstParamTy_`
24
24
|
25
- note: the `ConstParamTy_` impl for `&'static [u8]` requires that `unstable feature: ` unsized_const_params` `
25
+ note: the `ConstParamTy_` impl for `&'static [u8]` requires that `feature( unsized_const_params) is enabled `
26
26
--> $DIR/unsized_field-1.rs:14:10
27
27
|
28
28
LL | struct B(&'static [u8]);
37
37
LL | struct D(unsized_const_param::GenericNotUnsizedParam<&'static [u8]>);
38
38
| ---------------------------------------------------------- this field does not implement `ConstParamTy_`
39
39
|
40
- note: the `ConstParamTy_` impl for `GenericNotUnsizedParam<&'static [u8]>` requires that `unstable feature: ` unsized_const_params` `
40
+ note: the `ConstParamTy_` impl for `GenericNotUnsizedParam<&'static [u8]>` requires that `feature( unsized_const_params) is enabled `
41
41
--> $DIR/unsized_field-1.rs:21:10
42
42
|
43
43
LL | struct D(unsized_const_param::GenericNotUnsizedParam<&'static [u8]>);
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LL | impl aux::Trait for LocalTy {}
6
6
|
7
7
= note: conflicting implementation in crate `unstable_impl_coherence_aux`:
8
8
- impl<T> Trait for T
9
- where unstable feature: ` foo` ;
9
+ where feature( foo) is enabled ;
10
10
11
11
error: aborting due to 1 previous error
12
12
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LL | impl aux::Trait for LocalTy {}
6
6
|
7
7
= note: conflicting implementation in crate `unstable_impl_coherence_aux`:
8
8
- impl<T> Trait for T
9
- where unstable feature: ` foo` ;
9
+ where feature( foo) is enabled ;
10
10
11
11
error: aborting due to 1 previous error
12
12
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | vec![].foo();
7
7
= note: multiple `impl`s satisfying `Vec<_>: Trait` found in the `unstable_impl_method_selection_aux` crate:
8
8
- impl Trait for Vec<u32>;
9
9
- impl Trait for Vec<u64>
10
- where unstable feature: ` bar` ;
10
+ where feature( bar) is enabled ;
11
11
12
12
error: aborting due to 1 previous error
13
13
You can’t perform that action at this time.
0 commit comments