Skip to content

Commit 26a0340

Browse files
committed
rustc_incremental: deny(unused_lifetimes).
1 parent 774724b commit 26a0340

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fn dump_graph(tcx: TyCtxt<'_, '_, '_>) {
258258
pub struct GraphvizDepGraph<'q>(FxHashSet<&'q DepNode>,
259259
Vec<(&'q DepNode, &'q DepNode)>);
260260

261-
impl<'a, 'tcx, 'q> dot::GraphWalk<'a> for GraphvizDepGraph<'q> {
261+
impl<'a, 'q> dot::GraphWalk<'a> for GraphvizDepGraph<'q> {
262262
type Node = &'q DepNode;
263263
type Edge = (&'q DepNode, &'q DepNode);
264264
fn nodes(&self) -> dot::Nodes<'_, &'q DepNode> {
@@ -276,7 +276,7 @@ impl<'a, 'tcx, 'q> dot::GraphWalk<'a> for GraphvizDepGraph<'q> {
276276
}
277277
}
278278

279-
impl<'a, 'tcx, 'q> dot::Labeller<'a> for GraphvizDepGraph<'q> {
279+
impl<'a, 'q> dot::Labeller<'a> for GraphvizDepGraph<'q> {
280280
type Node = &'q DepNode;
281281
type Edge = (&'q DepNode, &'q DepNode);
282282
fn graph_id(&self) -> dot::Id<'_> {

src/librustc_incremental/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#![deny(rust_2018_idioms)]
1111
#![deny(internal)]
12+
#![deny(unused_lifetimes)]
1213

1314
#[macro_use] extern crate rustc;
1415
#[allow(unused_extern_crates)]

0 commit comments

Comments
 (0)