rust/compiler
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
..
rustc
rustc_abi Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errors 2024-10-28 10:18:50 -07:00
rustc_arena
rustc_ast fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_ast_ir
rustc_ast_lowering Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_ast_passes
rustc_ast_pretty fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_builtin_macros
rustc_codegen_cranelift cg_clif: Rename LayoutS to LayoutData 2024-10-27 22:32:40 -07:00
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #132216 - klensy:c_uint, r=cuviper 2024-10-29 03:11:42 -07:00
rustc_codegen_ssa Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_const_eval compiler: Add is_uninhabited and use LayoutS accessors 2024-10-28 09:58:30 -07:00
rustc_data_structures
rustc_driver
rustc_driver_impl fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_error_codes Auto merge of #132145 - RalfJung:stdarch, r=Amanieu 2024-10-28 16:25:56 +00:00
rustc_error_messages
rustc_errors Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_expand Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Rollup merge of #132194 - compiler-errors:rpitit-super-wc, r=spastorino 2024-10-29 03:11:41 -07:00
rustc_hir_pretty
rustc_hir_typeck Remove ObligationCause::span() method 2024-10-27 23:54:06 +00:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_interface fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_lexer
rustc_lint Auto merge of #132277 - workingjubilee:rollup-5e6q6e4, r=workingjubilee 2024-10-29 07:32:45 +00:00
rustc_lint_defs
rustc_llvm correct LLVMRustDIBuilderCreateOpLLVMFragment return type 2024-10-29 00:47:20 +03:00
rustc_log
rustc_macros give a better error for tuple structs in derive(Diagnostic) 2024-10-27 21:23:28 -04:00
rustc_metadata Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_middle Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_mir_build
rustc_mir_dataflow compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
rustc_mir_transform compiler: Add is_uninhabited and use LayoutS accessors 2024-10-28 09:58:30 -07:00
rustc_monomorphize
rustc_next_trait_solver
rustc_parse fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_parse_format
rustc_passes Auto merge of #132277 - workingjubilee:rollup-5e6q6e4, r=workingjubilee 2024-10-29 07:32:45 +00:00
rustc_pattern_analysis compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
rustc_privacy
rustc_query_impl
rustc_query_system fix clippy::clone_on_ref_ptr for compiler 2024-10-28 18:05:08 +03:00
rustc_resolve Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_sanitizers
rustc_serialize
rustc_session Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_smir stable_mir: Directly use types from rustc_abi 2024-10-28 10:13:19 -07:00
rustc_span Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustc_symbol_mangling compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
rustc_target
rustc_trait_selection Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
rustc_traits
rustc_transmute Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errors 2024-10-28 10:18:50 -07:00
rustc_ty_utils Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errors 2024-10-28 10:18:50 -07:00
rustc_type_ir
rustc_type_ir_macros
stable_mir