Skip to content

Commit 581c34d

Browse files
Rollup merge of rust-lang#88875 - notriddle:notriddle/cleanup-unused-trait-selection, r=Mark-Simulacrum
cleanup(rustc_trait_selection): remove vestigial code from rustc_on_unimplemented This isn't allowed by the validator, and seems to be unused. When it was added in ed10a3f, it was used on `Sized`, and that usage is gone.
2 parents 0dd5e22 + e1873ba commit 581c34d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

compiler/rustc_span/src/symbol.rs

-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ symbols! {
934934
panic_unwind,
935935
panicking,
936936
param_attrs,
937-
parent_trait,
938937
partial_cmp,
939938
partial_ord,
940939
passes,

compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs

-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
154154
flags.push((sym::from_method, Some(method.to_string())));
155155
}
156156
}
157-
if let Some((t, _)) = self.get_parent_trait_ref(&obligation.cause.code) {
158-
flags.push((sym::parent_trait, Some(t)));
159-
}
160157

161158
if let Some(k) = obligation.cause.span.desugaring_kind() {
162159
flags.push((sym::from_desugaring, None));

0 commit comments

Comments
 (0)