@@ -1193,38 +1193,10 @@ fn check_fixable_warning() {
1193
1193
. build ( ) ;
1194
1194
1195
1195
foo. cargo ( "check" )
1196
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1197
1196
. with_stderr_contains ( "[..] (run `cargo fix --lib -p foo` to apply 1 suggestion)" )
1198
1197
. run ( ) ;
1199
1198
}
1200
1199
1201
- #[ cargo_test]
1202
- fn check_fixable_not_nightly ( ) {
1203
- let foo = project ( )
1204
- . file (
1205
- "Cargo.toml" ,
1206
- r#"
1207
- [package]
1208
- name = "foo"
1209
- version = "0.0.1"
1210
- "# ,
1211
- )
1212
- . file ( "src/lib.rs" , "use std::io;" )
1213
- . build ( ) ;
1214
-
1215
- let rustc_message = raw_rustc_output ( & foo, "src/lib.rs" , & [ ] ) ;
1216
- let expected_output = format ! (
1217
- "\
1218
- [CHECKING] foo v0.0.1 ([..])
1219
- {}\
1220
- [WARNING] `foo` (lib) generated 1 warning
1221
- [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
1222
- " ,
1223
- rustc_message
1224
- ) ;
1225
- foo. cargo ( "check" ) . with_stderr ( expected_output) . run ( ) ;
1226
- }
1227
-
1228
1200
#[ cargo_test]
1229
1201
fn check_fixable_test_warning ( ) {
1230
1202
let foo = project ( )
@@ -1250,7 +1222,6 @@ mod tests {
1250
1222
. build ( ) ;
1251
1223
1252
1224
foo. cargo ( "check --all-targets" )
1253
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1254
1225
. with_stderr_contains ( "[..] (run `cargo fix --lib -p foo --tests` to apply 1 suggestion)" )
1255
1226
. run ( ) ;
1256
1227
foo. cargo ( "fix --lib -p foo --tests --allow-no-vcs" ) . run ( ) ;
@@ -1285,7 +1256,6 @@ fn check_fixable_error_no_fix() {
1285
1256
rustc_message
1286
1257
) ;
1287
1258
foo. cargo ( "check" )
1288
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1289
1259
. with_status ( 101 )
1290
1260
. with_stderr ( expected_output)
1291
1261
. run ( ) ;
@@ -1325,7 +1295,6 @@ fn check_fixable_warning_workspace() {
1325
1295
. build ( ) ;
1326
1296
1327
1297
p. cargo ( "check" )
1328
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1329
1298
. with_stderr_contains ( "[..] (run `cargo fix --lib -p foo` to apply 1 suggestion)" )
1330
1299
. with_stderr_contains ( "[..] (run `cargo fix --lib -p bar` to apply 1 suggestion)" )
1331
1300
. run ( ) ;
@@ -1350,7 +1319,6 @@ fn check_fixable_example() {
1350
1319
. file ( "examples/ex1.rs" , "use std::fmt; fn main() {}" )
1351
1320
. build ( ) ;
1352
1321
p. cargo ( "check --all-targets" )
1353
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1354
1322
. with_stderr_contains ( "[..] (run `cargo fix --example \" ex1\" ` to apply 1 suggestion)" )
1355
1323
. run ( ) ;
1356
1324
}
@@ -1393,7 +1361,6 @@ fn check_fixable_bench() {
1393
1361
)
1394
1362
. build ( ) ;
1395
1363
p. cargo ( "check --all-targets" )
1396
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1397
1364
. with_stderr_contains ( "[..] (run `cargo fix --bench \" bench\" ` to apply 1 suggestion)" )
1398
1365
. run ( ) ;
1399
1366
}
@@ -1441,7 +1408,6 @@ fn check_fixable_mixed() {
1441
1408
)
1442
1409
. build ( ) ;
1443
1410
p. cargo ( "check --all-targets" )
1444
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1445
1411
. with_stderr_contains ( "[..] (run `cargo fix --bin \" foo\" --tests` to apply 2 suggestions)" )
1446
1412
. with_stderr_contains ( "[..] (run `cargo fix --example \" ex1\" ` to apply 1 suggestion)" )
1447
1413
. with_stderr_contains ( "[..] (run `cargo fix --bench \" bench\" ` to apply 1 suggestion)" )
@@ -1490,7 +1456,6 @@ fn check_fixable_warning_for_clippy() {
1490
1456
"RUSTC_WORKSPACE_WRAPPER" ,
1491
1457
clippy_driver. bin ( "clippy-driver" ) ,
1492
1458
)
1493
- . masquerade_as_nightly_cargo ( & [ "auto-fix note" ] )
1494
1459
. with_stderr_contains ( "[..] (run `cargo clippy --fix --lib -p foo` to apply 1 suggestion)" )
1495
1460
. run ( ) ;
1496
1461
}
0 commit comments