@@ -514,8 +514,6 @@ fn main() {
514514
515515 let mut rustc_args = vec ! [ ] ;
516516 let mut after_dashdash = false ;
517- // If user has explicitly enabled/disabled isolation
518- let mut isolation_enabled: Option < bool > = None ;
519517
520518 // Note that we require values to be given with `=`, not with a space.
521519 // This matches how rustc parses `-Z`.
@@ -550,13 +548,6 @@ fn main() {
550548 } else if arg == "-Zmiri-symbolic-alignment-check" {
551549 miri_config. check_alignment = miri:: AlignmentCheck :: Symbolic ;
552550 } 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- }
560551 miri_config. isolated_op = miri:: IsolatedOp :: Allow ;
561552 } else if arg == "-Zmiri-disable-leak-backtraces" {
562553 miri_config. collect_leak_backtraces = false ;
@@ -565,14 +556,6 @@ fn main() {
565556 } else if arg == "-Zmiri-track-weak-memory-loads" {
566557 miri_config. track_outdated_loads = true ;
567558 } 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-
576559 miri_config. isolated_op = match param {
577560 "abort" => miri:: IsolatedOp :: Reject ( miri:: RejectOpWith :: Abort ) ,
578561 "hide" => miri:: IsolatedOp :: Reject ( miri:: RejectOpWith :: NoWarning ) ,
0 commit comments