mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-03 03:16:23 +00:00
Remove obsolete workaround
This commit is contained in:
parent
62db392730
commit
ac39dc290b
@ -256,7 +256,6 @@ pub fn get_parent_expr<'c>(cx: &'c LateContext, e: &Expr) -> Option<&'c Expr> {
|
|||||||
if let NodeExpr(parent) = node { Some(parent) } else { None } )
|
if let NodeExpr(parent) = node { Some(parent) } else { None } )
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(needless_lifetimes)] // workaround for https://github.com/Manishearth/rust-clippy/issues/417
|
|
||||||
pub fn get_enclosing_block<'c>(cx: &'c LateContext, node: NodeId) -> Option<&'c Block> {
|
pub fn get_enclosing_block<'c>(cx: &'c LateContext, node: NodeId) -> Option<&'c Block> {
|
||||||
let map = &cx.tcx.map;
|
let map = &cx.tcx.map;
|
||||||
let enclosing_node = map.get_enclosing_scope(node)
|
let enclosing_node = map.get_enclosing_scope(node)
|
||||||
|
Loading…
Reference in New Issue
Block a user