@@ -2365,9 +2365,9 @@ use rustc_ast::expand::autodiff_attrs::DiffActivity;
2365
2365
// autodiff macro on top). Here we want to make sure that shadows are mutable internally.
2366
2366
// We know the outermost ref/ptr indirection is mutability - we generate it like that.
2367
2367
// 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
2369
2369
// 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...
2371
2371
pub fn fnc_typetrees < ' tcx > (
2372
2372
tcx : TyCtxt < ' tcx > ,
2373
2373
fn_ty : Ty < ' tcx > ,
@@ -2408,7 +2408,7 @@ pub fn fnc_typetrees<'tcx>(
2408
2408
visited. clear ( ) ;
2409
2409
if ty. is_raw_ptr ( ) || ty. is_ref ( ) || ty. is_box ( ) {
2410
2410
if ty. is_fn_ptr ( ) {
2411
- unimplemented ! ( "what to do whith fn ptr?" ) ;
2411
+ unimplemented ! ( "what to do with fn ptr?" ) ;
2412
2412
}
2413
2413
let ( inner_ty, _is_mut) = match ty. kind ( ) {
2414
2414
ty:: RawPtr ( inner_ty, mutbl) => ( * inner_ty, * mutbl == hir:: Mutability :: Mut ) ,
@@ -2484,7 +2484,7 @@ fn typetree_from_ty<'a>(
2484
2484
2485
2485
if ty. is_raw_ptr ( ) || ty. is_ref ( ) || ty. is_box ( ) {
2486
2486
if ty. is_fn_ptr ( ) {
2487
- unimplemented ! ( "what to do whith fn ptr?" ) ;
2487
+ unimplemented ! ( "what to do with fn ptr?" ) ;
2488
2488
}
2489
2489
2490
2490
let ( inner_ty, is_mut) = match ty. kind ( ) {
0 commit comments