rust/tests/ui/const-generics/adt_const_params
Esteban Küber 5b54286640 Remove detail from label/note that is already available in other note
Remove the "which is required by `{root_obligation}`" post-script in
"the trait `X` is not implemented for `Y`" explanation in E0277. This
information is already conveyed in the notes explaining requirements,
making it redundant while making the text (particularly in labels)
harder to read.

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
vs the prior

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`, which is required by `Option<NotCopy>: Copy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
2024-10-29 16:26:57 +00:00
..
auxiliary Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
116308.rs Special-case alias ty in try_from_lit 2024-08-16 08:37:19 +08:00
alias_const_param_ty-1.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
alias_const_param_ty-1.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
alias_const_param_ty-2.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_bad_empty_array.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_bad_empty_array.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
const_param_ty_bad.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_bad.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_dyn_compatibility.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
const_param_ty_dyn_compatibility.stderr UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
const_param_ty_generic_bounds_do_not_hold.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_generic_bounds_do_not_hold.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
const_param_ty_good.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_bad_field.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_bad_field.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_no_structural_eq.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_no_structural_eq.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_union.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
const_param_ty_impl_union.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
index-oob-ice-83993.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
index-oob-ice-83993.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
nested_bad_const_param_ty.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
nested_bad_const_param_ty.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
opaque_type_with_non-universal_region_substs_ice-111911.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
reference_pointee_is_const_param-1.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
reference_pointee_is_const_param-1.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
reference_pointee_is_const_param-2.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
reference_pointee_is_const_param-2.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
suggest_feature_only_when_possible.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
suggest_feature_only_when_possible.stderr fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
trait_objects_as_a_const_generic.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
trait_objects_as_a_const_generic.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
transmutable-ice-110969.rs safe transmute: Rename BikeshedIntrinsicFrom to TransmuteFrom 2024-08-27 14:05:54 +00:00
transmutable-ice-110969.stderr safe transmute: Rename BikeshedIntrinsicFrom to TransmuteFrom 2024-08-27 14:05:54 +00:00
unsized_field-1.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
unsized_field-1.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
unsized_field-2.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
unsized_field-2.stderr Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
unsizing-wfcheck-issue-126272.rs WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00
unsizing-wfcheck-issue-126272.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00