Add a new debug_assertions instrinsic (compiler)
And in clippy
This commit is contained in:
parent
7a827028a5
commit
6ca819f202
@ -174,7 +174,7 @@ fn check_rvalue<'tcx>(
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_), _) | Rvalue::ShallowInitBox(_, _) => {
|
Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::DebugAssertions, _) | Rvalue::ShallowInitBox(_, _) => {
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
Rvalue::UnaryOp(_, operand) => {
|
Rvalue::UnaryOp(_, operand) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user