Skip to content

Commit 73f2e2f

Browse files
committed
typoes fixing
Signed-off-by: Karan Janthe <[email protected]>
1 parent 70d5ff8 commit 73f2e2f

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+4
-4
lines changed

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,9 +2231,9 @@ use rustc_ast::expand::autodiff_attrs::DiffActivity;
22312231
// autodiff macro on top). Here we want to make sure that shadows are mutable internally.
22322232
// We know the outermost ref/ptr indirection is mutability - we generate it like that.
22332233
// We now have to make sure that inner ptr/ref are mutable too, or issue a warning.
2234-
// Not an error, becaues it only causes issues if they are actually read, which we don't check
2234+
// Not an error, because it only causes issues if they are actually read, which we don't check
22352235
// yet. We should add such analysis to relibably either issue an error or accept without warning.
2236-
// If there only were some reasearch to do that...
2236+
// If there only were some research to do that...
22372237
pub fn fnc_typetrees<'tcx>(
22382238
tcx: TyCtxt<'tcx>,
22392239
fn_ty: Ty<'tcx>,
@@ -2274,7 +2274,7 @@ pub fn fnc_typetrees<'tcx>(
22742274
visited.clear();
22752275
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
22762276
if ty.is_fn_ptr() {
2277-
unimplemented!("what to do whith fn ptr?");
2277+
unimplemented!("what to do with fn ptr?");
22782278
}
22792279
let (inner_ty, _is_mut) = match ty.kind() {
22802280
ty::RawPtr(inner_ty, mutbl) => (*inner_ty, *mutbl == hir::Mutability::Mut),
@@ -2350,7 +2350,7 @@ fn typetree_from_ty<'a>(
23502350

23512351
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
23522352
if ty.is_fn_ptr() {
2353-
unimplemented!("what to do whith fn ptr?");
2353+
unimplemented!("what to do with fn ptr?");
23542354
}
23552355

23562356
let (inner_ty, is_mut) = match ty.kind() {

0 commit comments

Comments
 (0)