Skip to content

Commit 713e0dd

Browse files
committed
Fix comments error for CtfeProvenance
1 parent 2cb4e7d commit 713e0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/interpret/pointer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl CtfeProvenance {
167167
}
168168

169169
impl Provenance for CtfeProvenance {
170-
// With the `AllocId` as provenance, the `offset` is interpreted *relative to the allocation*,
170+
// With the `CtfeProvenance` as provenance, the `offset` is interpreted *relative to the allocation*,
171171
// so ptr-to-int casts are not possible (since we do not know the global physical offset).
172172
const OFFSET_IS_ADDR: bool = false;
173173

0 commit comments

Comments
 (0)