Skip to content

Commit 4e2bbfe

Browse files
committed
Remove needless allows
1 parent 4dada60 commit 4e2bbfe

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

compiler/rustc_middle/src/ty/print/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ pub use self::pretty::*;
1212

1313
pub type PrintError = std::fmt::Error;
1414

15-
// FIXME(eddyb) false positive, the lifetime parameters are used with `P: Printer<...>`.
16-
#[allow(unused_lifetimes)]
1715
pub trait Print<'tcx, P> {
1816
fn print(&self, cx: &mut P) -> Result<(), PrintError>;
1917
}

compiler/rustc_middle/src/ty/print/pretty.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2719,11 +2719,8 @@ macro_rules! define_print {
27192719
(($self:ident, $cx:ident): $($ty:ty $print:block)+) => {
27202720
$(impl<'tcx, P: PrettyPrinter<'tcx>> Print<'tcx, P> for $ty {
27212721
fn print(&$self, $cx: &mut P) -> Result<(), PrintError> {
2722-
#[allow(unused_mut)]
2723-
let mut $cx = $cx;
27242722
define_scoped_cx!($cx);
27252723
let _: () = $print;
2726-
#[allow(unreachable_code)]
27272724
Ok(())
27282725
}
27292726
})+

0 commit comments

Comments
 (0)