@@ -514,8 +514,6 @@ fn main() {
514
514
515
515
let mut rustc_args = vec ! [ ] ;
516
516
let mut after_dashdash = false ;
517
- // If user has explicitly enabled/disabled isolation
518
- let mut isolation_enabled: Option < bool > = None ;
519
517
520
518
// Note that we require values to be given with `=`, not with a space.
521
519
// This matches how rustc parses `-Z`.
@@ -550,13 +548,6 @@ fn main() {
550
548
} else if arg == "-Zmiri-symbolic-alignment-check" {
551
549
miri_config. check_alignment = miri:: AlignmentCheck :: Symbolic ;
552
550
} else if arg == "-Zmiri-disable-isolation" {
553
- if matches ! ( isolation_enabled, Some ( true ) ) {
554
- show_error ! (
555
- "-Zmiri-disable-isolation cannot be used along with -Zmiri-isolation-error"
556
- ) ;
557
- } else {
558
- isolation_enabled = Some ( false ) ;
559
- }
560
551
miri_config. isolated_op = miri:: IsolatedOp :: Allow ;
561
552
} else if arg == "-Zmiri-disable-leak-backtraces" {
562
553
miri_config. collect_leak_backtraces = false ;
@@ -565,14 +556,6 @@ fn main() {
565
556
} else if arg == "-Zmiri-track-weak-memory-loads" {
566
557
miri_config. track_outdated_loads = true ;
567
558
} else if let Some ( param) = arg. strip_prefix ( "-Zmiri-isolation-error=" ) {
568
- if matches ! ( isolation_enabled, Some ( false ) ) {
569
- show_error ! (
570
- "-Zmiri-isolation-error cannot be used along with -Zmiri-disable-isolation"
571
- ) ;
572
- } else {
573
- isolation_enabled = Some ( true ) ;
574
- }
575
-
576
559
miri_config. isolated_op = match param {
577
560
"abort" => miri:: IsolatedOp :: Reject ( miri:: RejectOpWith :: Abort ) ,
578
561
"hide" => miri:: IsolatedOp :: Reject ( miri:: RejectOpWith :: NoWarning ) ,
0 commit comments