@@ -36,7 +36,7 @@ LL | unsafe fn bad5() { unsafe { unsf() } }
36
36
| |
37
37
| because it's nested under this `unsafe` fn
38
38
|
39
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
39
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
40
40
= note: `#[allow(unsafe_op_in_unsafe_fn)]` on by default
41
41
42
42
error: unnecessary `unsafe` block
@@ -60,7 +60,7 @@ LL | unsafe {
60
60
LL | unsafe {
61
61
| ^^^^^^ unnecessary `unsafe` block
62
62
|
63
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
63
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
64
64
65
65
error: unnecessary `unsafe` block
66
66
--> $DIR/lint-unused-unsafe.rs:71:9
@@ -281,7 +281,7 @@ LL | unsafe {
281
281
LL | unsafe { unsf() }
282
282
| ^^^^^^ unnecessary `unsafe` block
283
283
|
284
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
284
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
285
285
note: the lint level is defined here
286
286
--> $DIR/lint-unused-unsafe.rs:191:13
287
287
|
@@ -297,7 +297,7 @@ LL | unsafe fn granularity_2() {
297
297
LL | unsafe { unsf() }
298
298
| ^^^^^^ unnecessary `unsafe` block
299
299
|
300
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
300
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
301
301
302
302
error: unnecessary `unsafe` block
303
303
--> $DIR/lint-unused-unsafe.rs:196:13
@@ -308,7 +308,7 @@ LL | unsafe fn granularity_2() {
308
308
LL | unsafe { unsf() }
309
309
| ^^^^^^ unnecessary `unsafe` block
310
310
|
311
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
311
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
312
312
313
313
error: unnecessary `unsafe` block
314
314
--> $DIR/lint-unused-unsafe.rs:202:9
@@ -318,7 +318,7 @@ LL | unsafe fn top_level_used_2() {
318
318
LL | unsafe {
319
319
| ^^^^^^ unnecessary `unsafe` block
320
320
|
321
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
321
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
322
322
note: the lint level is defined here
323
323
--> $DIR/lint-unused-unsafe.rs:200:13
324
324
|
@@ -334,7 +334,7 @@ LL | unsafe fn top_level_used_2() {
334
334
LL | unsafe { unsf() }
335
335
| ^^^^^^ unnecessary `unsafe` block
336
336
|
337
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
337
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
338
338
339
339
error: unnecessary `unsafe` block
340
340
--> $DIR/lint-unused-unsafe.rs:205:13
@@ -345,7 +345,7 @@ LL | unsafe fn top_level_used_2() {
345
345
LL | unsafe { unsf() }
346
346
| ^^^^^^ unnecessary `unsafe` block
347
347
|
348
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
348
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
349
349
350
350
error: unnecessary `unsafe` block
351
351
--> $DIR/lint-unused-unsafe.rs:206:13
@@ -356,7 +356,7 @@ LL | unsafe fn top_level_used_2() {
356
356
LL | unsafe { unsf() }
357
357
| ^^^^^^ unnecessary `unsafe` block
358
358
|
359
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
359
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
360
360
361
361
error: unnecessary `unsafe` block
362
362
--> $DIR/lint-unused-unsafe.rs:217:17
@@ -405,7 +405,7 @@ LL | unsafe fn granular_disallow_op_in_unsafe_fn_3() {
405
405
LL | unsafe {
406
406
| ^^^^^^ unnecessary `unsafe` block
407
407
|
408
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
408
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
409
409
note: the lint level is defined here
410
410
--> $DIR/lint-unused-unsafe.rs:249:13
411
411
|
@@ -639,7 +639,7 @@ LL | let _ = || unsafe {
639
639
LL | let _ = || unsafe { unsf() };
640
640
| ^^^^^^ unnecessary `unsafe` block
641
641
|
642
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
642
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
643
643
note: the lint level is defined here
644
644
--> $DIR/lint-unused-unsafe.rs:403:13
645
645
|
@@ -655,7 +655,7 @@ LL | unsafe fn granularity_2() {
655
655
LL | let _ = || unsafe { unsf() };
656
656
| ^^^^^^ unnecessary `unsafe` block
657
657
|
658
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
658
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
659
659
660
660
error: unnecessary `unsafe` block
661
661
--> $DIR/lint-unused-unsafe.rs:408:24
@@ -666,7 +666,7 @@ LL | unsafe fn granularity_2() {
666
666
LL | let _ = || unsafe { unsf() };
667
667
| ^^^^^^ unnecessary `unsafe` block
668
668
|
669
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
669
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
670
670
671
671
error: unnecessary `unsafe` block
672
672
--> $DIR/lint-unused-unsafe.rs:414:20
@@ -676,7 +676,7 @@ LL | unsafe fn top_level_used_2() {
676
676
LL | let _ = || unsafe {
677
677
| ^^^^^^ unnecessary `unsafe` block
678
678
|
679
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
679
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
680
680
note: the lint level is defined here
681
681
--> $DIR/lint-unused-unsafe.rs:412:13
682
682
|
@@ -692,7 +692,7 @@ LL | unsafe fn top_level_used_2() {
692
692
LL | let _ = || unsafe { unsf() };
693
693
| ^^^^^^ unnecessary `unsafe` block
694
694
|
695
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
695
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
696
696
697
697
error: unnecessary `unsafe` block
698
698
--> $DIR/lint-unused-unsafe.rs:417:24
@@ -703,7 +703,7 @@ LL | unsafe fn top_level_used_2() {
703
703
LL | let _ = || unsafe { unsf() };
704
704
| ^^^^^^ unnecessary `unsafe` block
705
705
|
706
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
706
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
707
707
708
708
error: unnecessary `unsafe` block
709
709
--> $DIR/lint-unused-unsafe.rs:418:24
@@ -714,7 +714,7 @@ LL | unsafe fn top_level_used_2() {
714
714
LL | let _ = || unsafe { unsf() };
715
715
| ^^^^^^ unnecessary `unsafe` block
716
716
|
717
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
717
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
718
718
719
719
error: unnecessary `unsafe` block
720
720
--> $DIR/lint-unused-unsafe.rs:429:28
@@ -763,7 +763,7 @@ LL | unsafe fn granular_disallow_op_in_unsafe_fn_3() {
763
763
LL | let _ = || unsafe {
764
764
| ^^^^^^ unnecessary `unsafe` block
765
765
|
766
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
766
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
767
767
note: the lint level is defined here
768
768
--> $DIR/lint-unused-unsafe.rs:461:13
769
769
|
@@ -997,7 +997,7 @@ LL | let _ = || unsafe {
997
997
LL | let _ = || unsafe { let _ = || unsf(); };
998
998
| ^^^^^^ unnecessary `unsafe` block
999
999
|
1000
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1000
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1001
1001
note: the lint level is defined here
1002
1002
--> $DIR/lint-unused-unsafe.rs:616:13
1003
1003
|
@@ -1013,7 +1013,7 @@ LL | unsafe fn granularity_2() {
1013
1013
LL | let _ = || unsafe { let _ = || unsf(); };
1014
1014
| ^^^^^^ unnecessary `unsafe` block
1015
1015
|
1016
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1016
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1017
1017
1018
1018
error: unnecessary `unsafe` block
1019
1019
--> $DIR/lint-unused-unsafe.rs:621:24
@@ -1024,7 +1024,7 @@ LL | unsafe fn granularity_2() {
1024
1024
LL | let _ = || unsafe { let _ = || unsf(); };
1025
1025
| ^^^^^^ unnecessary `unsafe` block
1026
1026
|
1027
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1027
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1028
1028
1029
1029
error: unnecessary `unsafe` block
1030
1030
--> $DIR/lint-unused-unsafe.rs:627:20
@@ -1034,7 +1034,7 @@ LL | unsafe fn top_level_used_2() {
1034
1034
LL | let _ = || unsafe {
1035
1035
| ^^^^^^ unnecessary `unsafe` block
1036
1036
|
1037
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1037
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1038
1038
note: the lint level is defined here
1039
1039
--> $DIR/lint-unused-unsafe.rs:625:13
1040
1040
|
@@ -1050,7 +1050,7 @@ LL | unsafe fn top_level_used_2() {
1050
1050
LL | let _ = || unsafe { let _ = || unsf(); };
1051
1051
| ^^^^^^ unnecessary `unsafe` block
1052
1052
|
1053
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1053
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1054
1054
1055
1055
error: unnecessary `unsafe` block
1056
1056
--> $DIR/lint-unused-unsafe.rs:630:24
@@ -1061,7 +1061,7 @@ LL | unsafe fn top_level_used_2() {
1061
1061
LL | let _ = || unsafe { let _ = || unsf(); };
1062
1062
| ^^^^^^ unnecessary `unsafe` block
1063
1063
|
1064
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1064
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1065
1065
1066
1066
error: unnecessary `unsafe` block
1067
1067
--> $DIR/lint-unused-unsafe.rs:631:24
@@ -1072,7 +1072,7 @@ LL | unsafe fn top_level_used_2() {
1072
1072
LL | let _ = || unsafe { let _ = || unsf(); };
1073
1073
| ^^^^^^ unnecessary `unsafe` block
1074
1074
|
1075
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1075
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1076
1076
1077
1077
error: unnecessary `unsafe` block
1078
1078
--> $DIR/lint-unused-unsafe.rs:642:28
@@ -1121,7 +1121,7 @@ LL | unsafe fn granular_disallow_op_in_unsafe_fn_3() {
1121
1121
LL | let _ = || unsafe {
1122
1122
| ^^^^^^ unnecessary `unsafe` block
1123
1123
|
1124
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1124
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1125
1125
note: the lint level is defined here
1126
1126
--> $DIR/lint-unused-unsafe.rs:674:13
1127
1127
|
@@ -1144,7 +1144,7 @@ LL | unsafe fn multiple_unsafe_op_in_unsafe_fn_allows() {
1144
1144
LL | unsafe {
1145
1145
| ^^^^^^ unnecessary `unsafe` block
1146
1146
|
1147
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1147
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1148
1148
note: the lint level is defined here
1149
1149
--> $DIR/lint-unused-unsafe.rs:721:21
1150
1150
|
@@ -1199,7 +1199,7 @@ LL | async unsafe fn async_blocks() {
1199
1199
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1200
1200
| ^^^^^^ unnecessary `unsafe` block
1201
1201
|
1202
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1202
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1203
1203
note: the lint level is defined here
1204
1204
--> $DIR/lint-unused-unsafe.rs:747:17
1205
1205
|
@@ -1215,7 +1215,7 @@ LL | async unsafe fn async_blocks() {
1215
1215
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1216
1216
| ^^^^^^ unnecessary `unsafe` block
1217
1217
|
1218
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1218
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1219
1219
1220
1220
error: unnecessary `unsafe` block
1221
1221
--> $DIR/lint-unused-unsafe.rs:752:33
@@ -1226,7 +1226,7 @@ LL | async unsafe fn async_blocks() {
1226
1226
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1227
1227
| ^^^^^^ unnecessary `unsafe` block
1228
1228
|
1229
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1229
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1230
1230
1231
1231
error: unnecessary `unsafe` block
1232
1232
--> $DIR/lint-unused-unsafe.rs:754:29
@@ -1237,7 +1237,7 @@ LL | async unsafe fn async_blocks() {
1237
1237
LL | let _ = async { unsafe {
1238
1238
| ^^^^^^ unnecessary `unsafe` block
1239
1239
|
1240
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1240
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1241
1241
1242
1242
error: unnecessary `unsafe` block
1243
1243
--> $DIR/lint-unused-unsafe.rs:756:33
@@ -1248,7 +1248,7 @@ LL | async unsafe fn async_blocks() {
1248
1248
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1249
1249
| ^^^^^^ unnecessary `unsafe` block
1250
1250
|
1251
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1251
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1252
1252
1253
1253
error: unnecessary `unsafe` block
1254
1254
--> $DIR/lint-unused-unsafe.rs:757:33
@@ -1259,7 +1259,7 @@ LL | async unsafe fn async_blocks() {
1259
1259
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1260
1260
| ^^^^^^ unnecessary `unsafe` block
1261
1261
|
1262
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1262
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1263
1263
1264
1264
error: unnecessary `unsafe` block
1265
1265
--> $DIR/lint-unused-unsafe.rs:758:33
@@ -1270,7 +1270,7 @@ LL | async unsafe fn async_blocks() {
1270
1270
LL | let _ = async { unsafe { let _ = async { unsf() }; }};
1271
1271
| ^^^^^^ unnecessary `unsafe` block
1272
1272
|
1273
- = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe` fn
1273
+ = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn`
1274
1274
1275
1275
error: unnecessary `unsafe` block
1276
1276
--> $DIR/lint-unused-unsafe.rs:768:22
0 commit comments