Skip to content

Commit 9551713

Browse files
committed
Fix wordings in message and code comment
1 parent 6fa4f43 commit 9551713

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fn main() {
264264
let mut rustc_args = vec![];
265265
let mut after_dashdash = false;
266266

267-
// If user has explicitly enabled isolation
267+
// If user has explicitly enabled/disabled isolation
268268
let mut isolation_enabled: Option<bool> = None;
269269
for arg in env::args() {
270270
if rustc_args.is_empty() {

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn report_error<'tcx, 'mir>(
8484
#[rustfmt::skip]
8585
let helps = match info {
8686
UnsupportedInIsolation(_) =>
87-
vec![(None, format!("pass the flag `-Zmiri-disable-isolation` to disable isolation; or pass `-Zmiri-isolation-error=warn to configure miri to warn about isolation and continue instead of aborting"))],
87+
vec![(None, format!("pass the flag `-Zmiri-disable-isolation` to disable isolation; or pass `-Zmiri-isolation-error=warn to configure Miri to return an error code from isolated operations and continue with a warning"))],
8888
ExperimentalUb { url, .. } =>
8989
vec![
9090
(None, format!("this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental")),

0 commit comments

Comments
 (0)