Skip to content

Commit 07685f3

Browse files
committed
typoes fixing
Signed-off-by: Karan Janthe <[email protected]>
1 parent aad9b6e commit 07685f3

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
@@ -2365,9 +2365,9 @@ use rustc_ast::expand::autodiff_attrs::DiffActivity;
23652365
// autodiff macro on top). Here we want to make sure that shadows are mutable internally.
23662366
// We know the outermost ref/ptr indirection is mutability - we generate it like that.
23672367
// We now have to make sure that inner ptr/ref are mutable too, or issue a warning.
2368-
// Not an error, becaues it only causes issues if they are actually read, which we don't check
2368+
// Not an error, because it only causes issues if they are actually read, which we don't check
23692369
// yet. We should add such analysis to relibably either issue an error or accept without warning.
2370-
// If there only were some reasearch to do that...
2370+
// If there only were some research to do that...
23712371
pub fn fnc_typetrees<'tcx>(
23722372
tcx: TyCtxt<'tcx>,
23732373
fn_ty: Ty<'tcx>,
@@ -2408,7 +2408,7 @@ pub fn fnc_typetrees<'tcx>(
24082408
visited.clear();
24092409
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
24102410
if ty.is_fn_ptr() {
2411-
unimplemented!("what to do whith fn ptr?");
2411+
unimplemented!("what to do with fn ptr?");
24122412
}
24132413
let (inner_ty, _is_mut) = match ty.kind() {
24142414
ty::RawPtr(inner_ty, mutbl) => (*inner_ty, *mutbl == hir::Mutability::Mut),
@@ -2484,7 +2484,7 @@ fn typetree_from_ty<'a>(
24842484

24852485
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
24862486
if ty.is_fn_ptr() {
2487-
unimplemented!("what to do whith fn ptr?");
2487+
unimplemented!("what to do with fn ptr?");
24882488
}
24892489

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

0 commit comments

Comments
 (0)