@@ -4346,11 +4346,9 @@ pub struct Foo {
4346
4346
}
4347
4347
4348
4348
pub fn testfn(arg: &mut Foo) {
4349
- $0arg.field = 8; // write access
4350
- println!("{}", arg.field); // read access$0
4349
+ $0arg.field = 8;$0
4351
4350
// Simulating access after the extracted portion
4352
- arg.field = 16; // write access
4353
- println!("{}", arg.field); // read access
4351
+ arg.field = 16;
4354
4352
}
4355
4353
"# ,
4356
4354
r#"
@@ -4359,15 +4357,13 @@ pub struct Foo {
4359
4357
}
4360
4358
4361
4359
pub fn testfn(arg: &mut Foo) {
4362
- fun_name(arg); // read access
4360
+ fun_name(arg);
4363
4361
// Simulating access after the extracted portion
4364
- arg.field = 16; // write access
4365
- println!("{}", arg.field); // read access
4362
+ arg.field = 16;
4366
4363
}
4367
4364
4368
4365
fn $0fun_name(arg: &mut Foo) {
4369
4366
arg.field = 8;
4370
- println!("{}", arg.field);
4371
4367
}
4372
4368
"# ,
4373
4369
) ;
@@ -4383,8 +4379,7 @@ pub struct Foo {
4383
4379
}
4384
4380
4385
4381
pub fn testfn(arg: &mut Foo) {
4386
- $0arg.field = 8; // write access
4387
- println!("{}", arg.field); // read access$0
4382
+ $0arg.field = 8;$0
4388
4383
}
4389
4384
"# ,
4390
4385
r#"
@@ -4393,12 +4388,11 @@ pub struct Foo {
4393
4388
}
4394
4389
4395
4390
pub fn testfn(arg: &mut Foo) {
4396
- fun_name(arg); // read access
4391
+ fun_name(arg);
4397
4392
}
4398
4393
4399
4394
fn $0fun_name(arg: &mut Foo) {
4400
4395
arg.field = 8;
4401
- println!("{}", arg.field);
4402
4396
}
4403
4397
"# ,
4404
4398
) ;
0 commit comments