Refactor: Remove utils::opt_def_id

This removes some indirection. Probably this method was uplifted to
rustc at some point?
This commit is contained in:
Philipp Hansch
2019-03-08 14:14:41 +01:00
parent 00baf7a111
commit 9d97ed6faa
18 changed files with 41 additions and 47 deletions

View File

@@ -799,10 +799,6 @@ pub fn remove_blocks(expr: &Expr) -> &Expr {
}
}
pub fn opt_def_id(def: Def) -> Option<DefId> {
def.opt_def_id()
}
pub fn is_self(slf: &Arg) -> bool {
if let PatKind::Binding(.., name, _) = slf.pat.node {
name.name == keywords::SelfLower.name()