File tree 2 files changed +0
-5
lines changed
compiler/rustc_middle/src/ty/print
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ pub use self::pretty::*;
12
12
13
13
pub type PrintError = std:: fmt:: Error ;
14
14
15
- // FIXME(eddyb) false positive, the lifetime parameters are used with `P: Printer<...>`.
16
- #[ allow( unused_lifetimes) ]
17
15
pub trait Print < ' tcx , P > {
18
16
fn print ( & self , cx : & mut P ) -> Result < ( ) , PrintError > ;
19
17
}
Original file line number Diff line number Diff line change @@ -2719,11 +2719,8 @@ macro_rules! define_print {
2719
2719
( ( $self: ident, $cx: ident) : $( $ty: ty $print: block) +) => {
2720
2720
$( impl <' tcx, P : PrettyPrinter <' tcx>> Print <' tcx, P > for $ty {
2721
2721
fn print( & $self, $cx: & mut P ) -> Result <( ) , PrintError > {
2722
- #[ allow( unused_mut) ]
2723
- let mut $cx = $cx;
2724
2722
define_scoped_cx!( $cx) ;
2725
2723
let _: ( ) = $print;
2726
- #[ allow( unreachable_code) ]
2727
2724
Ok ( ( ) )
2728
2725
}
2729
2726
} ) +
You can’t perform that action at this time.
0 commit comments