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