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 7497d93 commit f9644c1Copy full SHA for f9644c1
src/librustc/mir/interpret/value.rs
@@ -170,6 +170,10 @@ impl<Tag> From<Double> for Scalar<Tag> {
170
}
171
172
impl Scalar<()> {
173
+ /// Make sure the `data` fits in `size`.
174
+ /// This is guaranteed by all constructors here, but since the enum variants are public,
175
+ /// it could still be violated (even though no code outside this file should
176
+ /// construct `Scalar`s).
177
#[inline(always)]
178
fn check_data(data: u128, size: u8) {
179
debug_assert_eq!(
0 commit comments