You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// It is important that each progress report is slightly different, since
431
424
// identical diagnostics are being deduplicated.
432
-
vec![
433
-
(None, format!("so far, {block_count} basic blocks have been executed")),
434
-
]
425
+
vec![(None, format!("so far, {block_count} basic blocks have been executed"))]
435
426
}
436
427
_ => vec![],
437
428
};
438
429
439
430
let helps = match e {
440
431
Int2Ptr{details:true} =>
441
432
vec![
442
-
(None, format!("This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,")),
443
-
(None, format!("which means that Miri might miss pointer bugs in this program.")),
444
-
(None, format!("See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.")),
445
-
(None, format!("To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead.")),
446
-
(None, format!("You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.")),
447
-
(None, format!("Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.")),
433
+
(
434
+
None,
435
+
format!(
436
+
"This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,"
437
+
),
438
+
),
439
+
(
440
+
None,
441
+
format!("which means that Miri might miss pointer bugs in this program."),
442
+
),
443
+
(
444
+
None,
445
+
format!(
446
+
"See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation."
447
+
),
448
+
),
449
+
(
450
+
None,
451
+
format!(
452
+
"To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead."
453
+
),
454
+
),
455
+
(
456
+
None,
457
+
format!(
458
+
"You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics."
459
+
),
460
+
),
461
+
(
462
+
None,
463
+
format!(
464
+
"Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning."
0 commit comments