Skip to content

Commit

Permalink
docify some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 18, 2021
1 parent 5cf0a7b commit 51e205b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ impl fmt::Display for MiriMemoryKind {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Tag {
pub alloc_id: AllocId,
// Stacked Borrows tag.
/// Stacked Borrows tag.
pub sb: SbTag,
}

impl Provenance for Tag {
// We use absolute addresses in the `offset` of a `Pointer<Tag>`.
/// We use absolute addresses in the `offset` of a `Pointer<Tag>`.
const OFFSET_IS_ADDR: bool = true;

// We cannot err on partial overwrites, it happens too often in practice (due to unions).
/// We cannot err on partial overwrites, it happens too often in practice (due to unions).
const ERR_ON_PARTIAL_PTR_OVERWRITE: bool = false;

fn fmt(ptr: &Pointer<Self>, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit 51e205b

Please sign in to comment.