1
Fork 0

Remove LocalKind::Var.

This commit is contained in:
Camille GILLOT 2023-03-10 10:29:19 +00:00
parent d31386a52b
commit 50d0959a2f
7 changed files with 17 additions and 18 deletions

View file

@ -401,8 +401,6 @@ impl<'tcx> Body<'tcx> {
LocalKind::ReturnPointer
} else if index < self.arg_count + 1 {
LocalKind::Arg
} else if self.local_decls[local].is_user_variable() {
LocalKind::Var
} else {
LocalKind::Temp
}
@ -668,9 +666,7 @@ impl Atom for Local {
/// Classifies locals into categories. See `Body::local_kind`.
#[derive(Clone, Copy, PartialEq, Eq, Debug, HashStable)]
pub enum LocalKind {
/// User-declared variable binding.
Var,
/// Compiler-introduced temporary.
/// User-declared variable binding or compiler-introduced temporary.
Temp,
/// Function argument.
Arg,