We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6199b69 commit 98f74b4Copy full SHA for 98f74b4
compiler/rustc_middle/src/mir/syntax.rs
@@ -1307,6 +1307,9 @@ pub enum Rvalue<'tcx> {
1307
/// If the type of the place is an array, this is the array length. For slices (`[T]`, not
1308
/// `&[T]`) this accesses the place's metadata to determine the length. This rvalue is
1309
/// ill-formed for places of other types.
1310
+ ///
1311
+ /// This cannot be a `UnOp(PtrMetadata, _)` because that expects a value, and we only
1312
+ /// have a place, and `UnOp(PtrMetadata, RawPtr(place))` is not a thing.
1313
Len(Place<'tcx>),
1314
1315
/// Performs essentially all of the casts that can be performed via `as`.
0 commit comments