We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 235ee34 commit d75723eCopy full SHA for d75723e
src/librustc_mir/interpret/validity.rs
@@ -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
+
7
use std::fmt::Write;
8
use std::ops::RangeInclusive;
9
0 commit comments