diff options
| author | bors <bors@rust-lang.org> | 2022-09-01 05:39:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-01 05:39:58 +0000 |
| commit | bfb2016a7ea703f4ffbb9dd4ad7ad25ee4b549f5 (patch) | |
| tree | 0e45e37a1731de90a15f425550a8a3f58853e729 /src | |
| parent | d60e93035f155e02d1b12b5bab13ebfb4d908891 (diff) | |
| parent | 3d9cee13dd4b6cf7fac4d8489ef33d8b669aa2b8 (diff) | |
| download | rust-bfb2016a7ea703f4ffbb9dd4ad7ad25ee4b549f5.tar.gz rust-bfb2016a7ea703f4ffbb9dd4ad7ad25ee4b549f5.zip | |
Auto merge of #100707 - dzvon:fix-typo, r=davidtwco
Fix a bunch of typo This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
Diffstat (limited to 'src')
| -rw-r--r-- | src/abi/mod.rs | 2 | ||||
| -rw-r--r-- | src/constant.rs | 2 | ||||
| -rw-r--r-- | src/intrinsics/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 815450f689e..0497c2570e6 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -342,7 +342,7 @@ pub(crate) fn codegen_terminator_call<'tcx>( let ret_place = codegen_place(fx, destination); - // Handle special calls like instrinsics and empty drop glue. + // Handle special calls like intrinsics and empty drop glue. let instance = if let ty::FnDef(def_id, substs) = *fn_ty.kind() { let instance = ty::Instance::resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs) .unwrap() diff --git a/src/constant.rs b/src/constant.rs index cb5d73a7e0b..9224f499339 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -59,7 +59,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool { ErrorHandled::TooGeneric => { span_bug!( constant.span, - "codgen encountered polymorphic constant: {:?}", + "codegen encountered polymorphic constant: {:?}", err ); } diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 95239f415a9..39e9e784a47 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -203,7 +203,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>( sym::transmute => { crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info); } - _ => unimplemented!("unsupported instrinsic {}", intrinsic), + _ => unimplemented!("unsupported intrinsic {}", intrinsic), } return; }; |
