Allow needless_lifetime to pass dogfood.sh

This commit is contained in:
Florian Hartwig 2015-10-27 18:28:36 +01:00
parent 5ca7ebb6d2
commit c5b6fda399

View File

@ -255,6 +255,7 @@ pub fn get_parent_expr<'c>(cx: &'c LateContext, e: &Expr) -> Option<&'c Expr> {
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> {
let map = &cx.tcx.map;
let enclosing_node = map.get_enclosing_scope(node)