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
format!("created tag {tag:?} at {alloc_id:?}{range:?}"),
398
-
PoppedPointerTag(item, tag) =>
399
-
match tag {
400
-
None =>
401
-
format!(
402
-
"popped tracked tag for item {item:?} due to deallocation",
403
-
),
404
-
Some((tag, access)) => {
405
-
format!(
406
-
"popped tracked tag for item {item:?} due to {access:?} access for {tag:?}",
407
-
)
408
-
}
409
-
},
410
-
CreatedCallId(id) =>
411
-
format!("function call with id {id}"),
412
-
CreatedAlloc(AllocId(id), size, align, kind) =>
413
-
format!(
414
-
"created {kind} allocation of {size} bytes (alignment {align} bytes) with id {id}",
415
-
size = size.bytes(),
416
-
align = align.bytes(),
417
-
),
418
-
FreedAlloc(AllocId(id)) =>
419
-
format!("freed allocation with id {id}"),
420
-
RejectedIsolatedOp(ref op) =>
421
-
format!("{op} was made to return an error due to isolation"),
422
-
ProgressReport{ .. } =>
423
-
format!("progress report: current operation being executed is here"),
424
-
Int2Ptr{ .. } =>
425
-
format!("integer-to-pointer cast"),
426
-
WeakMemoryOutdatedLoad =>
427
-
format!("weak memory emulation: outdated value returned from load"),
428
-
};
429
-
430
-
let notes = match e {
431
-
ProgressReport{ block_count } => {
432
-
// It is important that each progress report is slightly different, since
433
-
// identical diagnostics are being deduplicated.
434
-
vec![
435
-
(None, format!("so far, {block_count} basic blocks have been executed")),
436
-
]
437
-
}
438
-
_ => vec![],
439
-
};
440
-
441
-
let helps = match e {
442
-
Int2Ptr{details:true} =>
443
-
vec![
444
-
(None, format!("This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,")),
445
-
(None, format!("which means that Miri might miss pointer bugs in this program.")),
446
-
(None, format!("See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.")),
447
-
(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.")),
448
-
(None, format!("You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.")),
449
-
(None, format!("Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.")),
format!("created tag {tag:?} at {alloc_id:?}{range:?}"),
396
+
PoppedPointerTag(item, tag) =>
397
+
match tag {
398
+
None =>
399
+
format!(
400
+
"popped tracked tag for item {item:?} due to deallocation",
401
+
),
402
+
Some((tag, access)) => {
403
+
format!(
404
+
"popped tracked tag for item {item:?} due to {access:?} access for {tag:?}",
405
+
)
406
+
}
407
+
},
408
+
CreatedCallId(id) =>
409
+
format!("function call with id {id}"),
410
+
CreatedAlloc(AllocId(id), size, align, kind) =>
411
+
format!(
412
+
"created {kind} allocation of {size} bytes (alignment {align} bytes) with id {id}",
413
+
size = size.bytes(),
414
+
align = align.bytes(),
415
+
),
416
+
FreedAlloc(AllocId(id)) =>
417
+
format!("freed allocation with id {id}"),
418
+
RejectedIsolatedOp(ref op) =>
419
+
format!("{op} was made to return an error due to isolation"),
420
+
ProgressReport{ .. } =>
421
+
format!("progress report: current operation being executed is here"),
422
+
Int2Ptr{ .. } =>
423
+
format!("integer-to-pointer cast"),
424
+
WeakMemoryOutdatedLoad =>
425
+
format!("weak memory emulation: outdated value returned from load"),
426
+
};
427
+
428
+
let notes = match e {
429
+
ProgressReport{ block_count } => {
430
+
// It is important that each progress report is slightly different, since
431
+
// identical diagnostics are being deduplicated.
432
+
vec![
433
+
(None, format!("so far, {block_count} basic blocks have been executed")),
434
+
]
435
+
}
436
+
_ => vec![],
437
+
};
438
+
439
+
let helps = match e {
440
+
Int2Ptr{details:true} =>
441
+
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.")),
0 commit comments