diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2022-04-12 21:36:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-12 21:36:09 +0200 |
| commit | 6d0349d2ea97e2a3e208e0342a6a95d6b90d92ea (patch) | |
| tree | 51efa29bbbada9dbbf7bd0e9716f31d6cff74899 | |
| parent | 93a3cfb748546ba7729db68f2e962e8b29eafa77 (diff) | |
| download | rust-6d0349d2ea97e2a3e208e0342a6a95d6b90d92ea.tar.gz rust-6d0349d2ea97e2a3e208e0342a6a95d6b90d92ea.zip | |
Apply suggestions from code review
Co-authored-by: Michael Goulet <michael@errs.io> Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
| -rw-r--r-- | compiler/rustc_typeck/src/coherence/orphan.rs | 2 | ||||
| -rw-r--r-- | 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 f9e2e4c41aa..77a53744829 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 ee6eb605c5b..f12d1b6d953 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)] |
