mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Apply suggestions from code review
Co-authored-by: Michael Goulet <michael@errs.io> Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
This commit is contained in:
parent
93a3cfb748
commit
6d0349d2ea
@ -191,7 +191,7 @@ fn orphan_check_impl(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Result<(), ErrorGua
|
|||||||
return Err(reported);
|
return Err(reported);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
span_bug!(sp, "opque type not found, but `has_opaque_types` is set")
|
span_bug!(sp, "opaque type not found, but `has_opaque_types` is set")
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Another example from issue #84660, this time weaponized as a safe transmut: an opaque type in an
|
// Another example from issue #84660, this time weaponized as a safe transmute: an opaque type in an
|
||||||
// impl header being accepted was used to create unsoundness.
|
// impl header being accepted was used to create unsoundness.
|
||||||
|
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
|
Loading…
Reference in New Issue
Block a user