diff --git a/compiler/rustc_typeck/src/coherence/orphan.rs b/compiler/rustc_typeck/src/coherence/orphan.rs index f9e2e4c41aad..77a537448291 100644 --- a/compiler/rustc_typeck/src/coherence/orphan.rs +++ b/compiler/rustc_typeck/src/coherence/orphan.rs @@ -191,7 +191,7 @@ fn orphan_check_impl(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Result<(), ErrorGua 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(()) diff --git a/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs b/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs index ee6eb605c5be..f12d1b6d953c 100644 --- a/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs +++ b/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs @@ -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. #![feature(type_alias_impl_trait)]