File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
compiler/rustc_middle/src/ty/print
const-generics/adt_const_params Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -3177,8 +3177,9 @@ define_print! {
31773177 write!( p, "` can be evaluated" ) ?;
31783178 }
31793179 ty:: ClauseKind :: UnstableFeature ( symbol) => {
3180- write!( p, "unstable feature: " ) ?;
3180+ write!( p, "unstable feature " ) ?;
31813181 write!( p, "`{symbol}`" ) ?;
3182+ write!( p, " is enabled" ) ?;
31823183 }
31833184 }
31843185 }
Original file line number Diff line number Diff line change 77LL | struct A([u8]);
88 | ---- this field does not implement `ConstParamTy_`
99 |
10- note: the `ConstParamTy_` impl for `[u8]` requires that `unstable feature: `unsized_const_params``
10+ note: the `ConstParamTy_` impl for `[u8]` requires that `unstable feature `unsized_const_params` is enabled `
1111 --> $DIR/unsized_field-1.rs:10:10
1212 |
1313LL | struct A([u8]);
2222LL | struct B(&'static [u8]);
2323 | ------------- this field does not implement `ConstParamTy_`
2424 |
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 `unstable feature `unsized_const_params` is enabled `
2626 --> $DIR/unsized_field-1.rs:14:10
2727 |
2828LL | struct B(&'static [u8]);
3737LL | struct D(unsized_const_param::GenericNotUnsizedParam<&'static [u8]>);
3838 | ---------------------------------------------------------- this field does not implement `ConstParamTy_`
3939 |
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 `unstable feature `unsized_const_params` is enabled `
4141 --> $DIR/unsized_field-1.rs:21:10
4242 |
4343LL | 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 {}
66 |
77 = note: conflicting implementation in crate `unstable_impl_coherence_aux`:
88 - impl<T> Trait for T
9- where unstable feature: `foo`;
9+ where unstable feature `foo` is enabled ;
1010
1111error: aborting due to 1 previous error
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LL | impl aux::Trait for LocalTy {}
66 |
77 = note: conflicting implementation in crate `unstable_impl_coherence_aux`:
88 - impl<T> Trait for T
9- where unstable feature: `foo`;
9+ where unstable feature `foo` is enabled ;
1010
1111error: aborting due to 1 previous error
1212
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | vec![].foo();
77 = note: multiple `impl`s satisfying `Vec<_>: Trait` found in the `unstable_impl_method_selection_aux` crate:
88 - impl Trait for Vec<u32>;
99 - impl Trait for Vec<u64>
10- where unstable feature: `bar`;
10+ where unstable feature `bar` is enabled ;
1111
1212error: aborting due to 1 previous error
1313
You can’t perform that action at this time.
0 commit comments