Skip to content

Commit d75723e

Browse files
committed
mod-level doc comment for validity check
1 parent 235ee34 commit d75723e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_mir/interpret/validity.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! Check the validity invariant of a given value, and tell the user
2+
//! where in the value it got violated.
3+
//! In const context, this goes even further and tries to approximate const safety.
4+
//! That's useful because it means other passes (e.g. promotion) can rely on `const`s
5+
//! to be const-safe.
6+
17
use std::fmt::Write;
28
use std::ops::RangeInclusive;
39

0 commit comments

Comments
 (0)