Skip to content

Commit bfb2016

Browse files
committed
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
2 parents d60e930 + 3d9cee1 commit bfb2016

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/abi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
342342

343343
let ret_place = codegen_place(fx, destination);
344344

345-
// Handle special calls like instrinsics and empty drop glue.
345+
// Handle special calls like intrinsics and empty drop glue.
346346
let instance = if let ty::FnDef(def_id, substs) = *fn_ty.kind() {
347347
let instance = ty::Instance::resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
348348
.unwrap()

src/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool {
5959
ErrorHandled::TooGeneric => {
6060
span_bug!(
6161
constant.span,
62-
"codgen encountered polymorphic constant: {:?}",
62+
"codegen encountered polymorphic constant: {:?}",
6363
err
6464
);
6565
}

src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
203203
sym::transmute => {
204204
crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info);
205205
}
206-
_ => unimplemented!("unsupported instrinsic {}", intrinsic),
206+
_ => unimplemented!("unsupported intrinsic {}", intrinsic),
207207
}
208208
return;
209209
};

0 commit comments

Comments
 (0)