Skip to content

Commit 51e205b

Browse files
committed
docify some comments
1 parent 5cf0a7b commit 51e205b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/machine.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ impl fmt::Display for MiriMemoryKind {
123123
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
124124
pub struct Tag {
125125
pub alloc_id: AllocId,
126-
// Stacked Borrows tag.
126+
/// Stacked Borrows tag.
127127
pub sb: SbTag,
128128
}
129129

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

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

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

0 commit comments

Comments
 (0)