Fix warnings about unnecessary lifetime bounds

Rustup https://github.com/rust-lang/rust/pull/61172
This commit is contained in:
Lzu Tao
2019-06-20 01:36:23 +07:00
parent 149a988146
commit 4fa498a3eb
34 changed files with 83 additions and 87 deletions

View File

@@ -605,7 +605,7 @@ pub fn get_parent_expr<'c>(cx: &'c LateContext<'_, '_>, e: &Expr) -> Option<&'c
})
}
pub fn get_enclosing_block<'a, 'tcx: 'a>(cx: &LateContext<'a, 'tcx>, hir_id: HirId) -> Option<&'tcx Block> {
pub fn get_enclosing_block<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, hir_id: HirId) -> Option<&'tcx Block> {
let map = &cx.tcx.hir();
let enclosing_node = map
.get_enclosing_scope(hir_id)