Skip to content

Commit 6d0349d

Browse files
oli-obkcompiler-errorslqd
authored
Apply suggestions from code review
Co-authored-by: Michael Goulet <[email protected]> Co-authored-by: Rémy Rakic <[email protected]>
1 parent 93a3cfb commit 6d0349d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_typeck/src/coherence/orphan.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn orphan_check_impl(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Result<(), ErrorGua
191191
return Err(reported);
192192
}
193193
}
194-
span_bug!(sp, "opque type not found, but `has_opaque_types` is set")
194+
span_bug!(sp, "opaque type not found, but `has_opaque_types` is set")
195195
}
196196

197197
Ok(())

src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Another example from issue #84660, this time weaponized as a safe transmut: an opaque type in an
1+
// Another example from issue #84660, this time weaponized as a safe transmute: an opaque type in an
22
// impl header being accepted was used to create unsoundness.
33

44
#![feature(type_alias_impl_trait)]

0 commit comments

Comments
 (0)