Skip to content

Commit 199cffe

Browse files
committed
typoes fixing
Signed-off-by: Karan Janthe <[email protected]>
1 parent a394b65 commit 199cffe

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
@@ -2229,9 +2229,9 @@ use rustc_ast::expand::autodiff_attrs::DiffActivity;
22292229
// autodiff macro on top). Here we want to make sure that shadows are mutable internally.
22302230
// We know the outermost ref/ptr indirection is mutability - we generate it like that.
22312231
// We now have to make sure that inner ptr/ref are mutable too, or issue a warning.
2232-
// Not an error, becaues it only causes issues if they are actually read, which we don't check
2232+
// Not an error, because it only causes issues if they are actually read, which we don't check
22332233
// yet. We should add such analysis to relibably either issue an error or accept without warning.
2234-
// If there only were some reasearch to do that...
2234+
// If there only were some research to do that...
22352235
pub fn fnc_typetrees<'tcx>(
22362236
tcx: TyCtxt<'tcx>,
22372237
fn_ty: Ty<'tcx>,
@@ -2272,7 +2272,7 @@ pub fn fnc_typetrees<'tcx>(
22722272
visited.clear();
22732273
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
22742274
if ty.is_fn_ptr() {
2275-
unimplemented!("what to do whith fn ptr?");
2275+
unimplemented!("what to do with fn ptr?");
22762276
}
22772277
let (inner_ty, _is_mut) = match ty.kind() {
22782278
ty::RawPtr(inner_ty, mutbl) => (*inner_ty, *mutbl == hir::Mutability::Mut),
@@ -2348,7 +2348,7 @@ fn typetree_from_ty<'a>(
23482348

23492349
if ty.is_raw_ptr() || ty.is_ref() || ty.is_box() {
23502350
if ty.is_fn_ptr() {
2351-
unimplemented!("what to do whith fn ptr?");
2351+
unimplemented!("what to do with fn ptr?");
23522352
}
23532353

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

0 commit comments

Comments
 (0)