diff options
| author | Dezhi Wu <wu543065657@163.com> | 2022-08-18 10:13:37 +0800 |
|---|---|---|
| committer | Dezhi Wu <wu543065657@163.com> | 2022-08-31 18:24:55 +0800 |
| commit | 8d76b2ffb9df53225e7ac08abcf90b1f9eefccae (patch) | |
| tree | 5fa0342cb870ebff0fff70b7526275ce13cbd4a6 | |
| parent | 5e494b424380fdf8d38c3887e1ba7343123ad30e (diff) | |
| download | rust-8d76b2ffb9df53225e7ac08abcf90b1f9eefccae.tar.gz rust-8d76b2ffb9df53225e7ac08abcf90b1f9eefccae.zip | |
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
| -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..4aeb1e3aab9 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 intrinsics {}", intrinsic), } return; }; |
