mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
give some unwind-related terminators a more clear name
This commit is contained in:
parent
4ddc6a780e
commit
59f9c95ec0
3 changed files with 5 additions and 5 deletions
|
@ -1057,7 +1057,7 @@ impl MirBody {
|
||||||
TerminatorKind::FalseEdge { .. }
|
TerminatorKind::FalseEdge { .. }
|
||||||
| TerminatorKind::FalseUnwind { .. }
|
| TerminatorKind::FalseUnwind { .. }
|
||||||
| TerminatorKind::Goto { .. }
|
| TerminatorKind::Goto { .. }
|
||||||
| TerminatorKind::Resume
|
| TerminatorKind::UnwindResume
|
||||||
| TerminatorKind::GeneratorDrop
|
| TerminatorKind::GeneratorDrop
|
||||||
| TerminatorKind::Abort
|
| TerminatorKind::Abort
|
||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
|
|
|
@ -160,7 +160,7 @@ fn moved_out_of_ref(db: &dyn HirDatabase, body: &MirBody) -> Vec<MovedOutOfRef>
|
||||||
TerminatorKind::FalseEdge { .. }
|
TerminatorKind::FalseEdge { .. }
|
||||||
| TerminatorKind::FalseUnwind { .. }
|
| TerminatorKind::FalseUnwind { .. }
|
||||||
| TerminatorKind::Goto { .. }
|
| TerminatorKind::Goto { .. }
|
||||||
| TerminatorKind::Resume
|
| TerminatorKind::UnwindResume
|
||||||
| TerminatorKind::GeneratorDrop
|
| TerminatorKind::GeneratorDrop
|
||||||
| TerminatorKind::Abort
|
| TerminatorKind::Abort
|
||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
|
@ -280,7 +280,7 @@ fn ever_initialized_map(
|
||||||
let targets = match &terminator.kind {
|
let targets = match &terminator.kind {
|
||||||
TerminatorKind::Goto { target } => vec![*target],
|
TerminatorKind::Goto { target } => vec![*target],
|
||||||
TerminatorKind::SwitchInt { targets, .. } => targets.all_targets().to_vec(),
|
TerminatorKind::SwitchInt { targets, .. } => targets.all_targets().to_vec(),
|
||||||
TerminatorKind::Resume
|
TerminatorKind::UnwindResume
|
||||||
| TerminatorKind::Abort
|
| TerminatorKind::Abort
|
||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
| TerminatorKind::Unreachable => vec![],
|
| TerminatorKind::Unreachable => vec![],
|
||||||
|
@ -371,7 +371,7 @@ fn mutability_of_locals(
|
||||||
};
|
};
|
||||||
match &terminator.kind {
|
match &terminator.kind {
|
||||||
TerminatorKind::Goto { .. }
|
TerminatorKind::Goto { .. }
|
||||||
| TerminatorKind::Resume
|
| TerminatorKind::UnwindResume
|
||||||
| TerminatorKind::Abort
|
| TerminatorKind::Abort
|
||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
| TerminatorKind::Unreachable
|
| TerminatorKind::Unreachable
|
||||||
|
|
|
@ -265,7 +265,7 @@ impl Filler<'_> {
|
||||||
self.fill_operand(discr)?;
|
self.fill_operand(discr)?;
|
||||||
}
|
}
|
||||||
TerminatorKind::Goto { .. }
|
TerminatorKind::Goto { .. }
|
||||||
| TerminatorKind::Resume
|
| TerminatorKind::UnwindResume
|
||||||
| TerminatorKind::Abort
|
| TerminatorKind::Abort
|
||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
| TerminatorKind::Unreachable
|
| TerminatorKind::Unreachable
|
||||||
|
|
Loading…
Reference in a new issue