comment
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
@@ -504,7 +504,7 @@ impl<'tcx> Validator<'_, 'tcx> {
|
||||
// ptr-to-int casts are not possible in consts and thus not promotable
|
||||
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => return Err(Unpromotable),
|
||||
|
||||
// all ohter casts including int-to-ptr casts are fine, they just use the integer value
|
||||
// all other casts including int-to-ptr casts are fine, they just use the integer value
|
||||
// at pointer type.
|
||||
Rvalue::Cast(_, operand, _) => {
|
||||
self.validate_operand(operand)?;
|
||||
|
||||
Reference in New Issue
Block a user