@@ -2229,9 +2229,9 @@ use rustc_ast::expand::autodiff_attrs::DiffActivity;
2229
2229
// autodiff macro on top). Here we want to make sure that shadows are mutable internally.
2230
2230
// We know the outermost ref/ptr indirection is mutability - we generate it like that.
2231
2231
// 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
2233
2233
// 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...
2235
2235
pub fn fnc_typetrees < ' tcx > (
2236
2236
tcx : TyCtxt < ' tcx > ,
2237
2237
fn_ty : Ty < ' tcx > ,
@@ -2272,7 +2272,7 @@ pub fn fnc_typetrees<'tcx>(
2272
2272
visited. clear ( ) ;
2273
2273
if ty. is_raw_ptr ( ) || ty. is_ref ( ) || ty. is_box ( ) {
2274
2274
if ty. is_fn_ptr ( ) {
2275
- unimplemented ! ( "what to do whith fn ptr?" ) ;
2275
+ unimplemented ! ( "what to do with fn ptr?" ) ;
2276
2276
}
2277
2277
let ( inner_ty, _is_mut) = match ty. kind ( ) {
2278
2278
ty:: RawPtr ( inner_ty, mutbl) => ( * inner_ty, * mutbl == hir:: Mutability :: Mut ) ,
@@ -2348,7 +2348,7 @@ fn typetree_from_ty<'a>(
2348
2348
2349
2349
if ty. is_raw_ptr ( ) || ty. is_ref ( ) || ty. is_box ( ) {
2350
2350
if ty. is_fn_ptr ( ) {
2351
- unimplemented ! ( "what to do whith fn ptr?" ) ;
2351
+ unimplemented ! ( "what to do with fn ptr?" ) ;
2352
2352
}
2353
2353
2354
2354
let ( inner_ty, is_mut) = match ty. kind ( ) {
0 commit comments