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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user