mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
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 ed10a3faae
,
it was used on `Sized`, and that usage is gone.
This commit is contained in:
parent
641e02f388
commit
e1873ba007
@ -934,7 +934,6 @@ symbols! {
|
||||
panic_unwind,
|
||||
panicking,
|
||||
param_attrs,
|
||||
parent_trait,
|
||||
partial_cmp,
|
||||
partial_ord,
|
||||
passes,
|
||||
|
@ -154,9 +154,6 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
||||
flags.push((sym::from_method, Some(method.to_string())));
|
||||
}
|
||||
}
|
||||
if let Some((t, _)) = self.get_parent_trait_ref(&obligation.cause.code) {
|
||||
flags.push((sym::parent_trait, Some(t)));
|
||||
}
|
||||
|
||||
if let Some(k) = obligation.cause.span.desugaring_kind() {
|
||||
flags.push((sym::from_desugaring, None));
|
||||
|
Loading…
Reference in New Issue
Block a user