Skip to content

Commit

Permalink
rustc_lint: deny(unused_lifetimes).
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jun 11, 2019
1 parent 26a0340 commit 7dc3494
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_lint/builtin.rs
Expand Up @@ -96,7 +96,7 @@ declare_lint! {
declare_lint_pass!(BoxPointers => [BOX_POINTERS]);

impl BoxPointers {
fn check_heap_type<'a, 'tcx>(&self, cx: &LateContext<'_, '_>, span: Span, ty: Ty<'_>) {
fn check_heap_type(&self, cx: &LateContext<'_, '_>, span: Span, ty: Ty<'_>) {
for leaf_ty in ty.walk() {
if leaf_ty.is_box() {
let m = format!("type uses owned (Box type) pointers: {}", ty);
Expand Down
1 change: 1 addition & 0 deletions src/librustc_lint/lib.rs
Expand Up @@ -21,6 +21,7 @@

#![deny(rust_2018_idioms)]
#![deny(internal)]
#![deny(unused_lifetimes)]

#[macro_use]
extern crate rustc;
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_lint/types.rs
Expand Up @@ -202,7 +202,7 @@ fn report_bin_hex_error(
// - `uX` => `uY`
//
// No suggestion for: `isize`, `usize`.
fn get_type_suggestion<'a>(
fn get_type_suggestion(
t: Ty<'_>,
val: u128,
negative: bool,
Expand Down

0 comments on commit 7dc3494

Please sign in to comment.