From 6d0349d2ea97e2a3e208e0342a6a95d6b90d92ea Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Tue, 12 Apr 2022 21:36:09 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Goulet Co-authored-by: Rémy Rakic --- compiler/rustc_typeck/src/coherence/orphan.rs | 2 +- src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)]