1
Fork 0

Auto merge of #91279 - scottmcm:small-refactor, r=nagisa

Small mir-opt refactor

Hopefully-non-controversial changes from some not-ready-yet work that I'd figured I'd submit on their own.
This commit is contained in:
bors 2021-12-06 13:04:18 +00:00
commit 0fb1c371d4
4 changed files with 11 additions and 23 deletions

View file

@ -1519,6 +1519,7 @@ impl Statement<'_> {
}
/// Changes a statement to a nop and returns the original statement.
#[must_use = "If you don't need the statement, use `make_nop` instead"]
pub fn replace_nop(&mut self) -> Self {
Statement {
source_info: self.source_info,