Fix small typo

transmutting -> transmuting
This commit is contained in:
Camelid 2021-01-10 21:24:15 -08:00
parent 26d451f4b3
commit e2d3a25161

View File

@ -78,7 +78,7 @@ fn check_transmute(&self, span: Span, from: Ty<'tcx>, to: Ty<'tcx>) {
return;
}
// Special-case transmutting from `typeof(function)` and
// Special-case transmuting from `typeof(function)` and
// `Option<typeof(function)>` to present a clearer error.
let from = unpack_option_like(self.tcx, from);
if let (&ty::FnDef(..), SizeSkeleton::Known(size_to)) = (from.kind(), sk_to) {