Skip the use_existential_projection_new_instead field in the Debug impl#152813
Skip the use_existential_projection_new_instead field in the Debug impl#152813rust-bors[bot] merged 1 commit intorust-lang:mainfrom
use_existential_projection_new_instead field in the Debug impl#152813Conversation
|
r? @chenyukang rustbot has assigned @chenyukang. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? @lcnr |
| pub def_id: I::DefId, | ||
|
|
||
| /// This field exists to prevent the creation of `AliasTy` without using [`AliasTy::new_from_args`]. | ||
| #[derive_where(skip(Debug))] |
There was a problem hiding this comment.
I believe this should be kept, to avoid having to update a manual Debug impl whenever this struct changes, and this directive for derive_where to skip this field in the derived Debug impl should be used for the ExistentialProjection::use_existential_projection_new_instead field instead.
There was a problem hiding this comment.
I am pretty sure that the skip attribute is only valid for traits derive_where is controlling. It doesn't compile if I keep this...
There was a problem hiding this comment.
Indeed, it controls the derive, which has to be present for the skip to work. So you should keep both.
@rustbot author
| pub def_id: I::DefId, | ||
|
|
||
| /// This field exists to prevent the creation of `AliasTerm` without using [`AliasTerm::new_from_args`]. | ||
| #[derive_where(skip(Debug))] |
This comment has been minimized.
This comment has been minimized.
|
r? lqd |
use_existential_projection_new_instead field in the Debug impl
|
Thanks! @bors r+ rollup |
…uwer Rollup of 9 pull requests Successful merges: - #146832 (Not linting irrefutable_let_patterns on let chains) - #146972 (Support importing path-segment keyword with renaming) - #152241 (For panic=unwind on Wasm targets, define __cpp_exception tag) - #152527 (Remove -Zemit-thin-lto flag) - #152769 (Do not cancel try builds after first job failure) - #152907 (Add tests for delegation generics) - #152455 (Remove the translation `-Z` options and the `Translator` type. ) - #152813 (Skip the `use_existential_projection_new_instead` field in the `Debug` impl) - #152912 (Expose Span for all DefIds in rustc_public)
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#146832 (Not linting irrefutable_let_patterns on let chains) - rust-lang/rust#146972 (Support importing path-segment keyword with renaming) - rust-lang/rust#152241 (For panic=unwind on Wasm targets, define __cpp_exception tag) - rust-lang/rust#152527 (Remove -Zemit-thin-lto flag) - rust-lang/rust#152769 (Do not cancel try builds after first job failure) - rust-lang/rust#152907 (Add tests for delegation generics) - rust-lang/rust#152455 (Remove the translation `-Z` options and the `Translator` type. ) - rust-lang/rust#152813 (Skip the `use_existential_projection_new_instead` field in the `Debug` impl) - rust-lang/rust#152912 (Expose Span for all DefIds in rustc_public)
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#146832 (Not linting irrefutable_let_patterns on let chains) - rust-lang/rust#146972 (Support importing path-segment keyword with renaming) - rust-lang/rust#152241 (For panic=unwind on Wasm targets, define __cpp_exception tag) - rust-lang/rust#152527 (Remove -Zemit-thin-lto flag) - rust-lang/rust#152769 (Do not cancel try builds after first job failure) - rust-lang/rust#152907 (Add tests for delegation generics) - rust-lang/rust#152455 (Remove the translation `-Z` options and the `Translator` type. ) - rust-lang/rust#152813 (Skip the `use_existential_projection_new_instead` field in the `Debug` impl) - rust-lang/rust#152912 (Expose Span for all DefIds in rustc_public)
Resolves: #152807 .
Simply slap a
#derive_where[skip(Debug)]on that field.