File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
compiler/rustc_middle/src/ty/print Expand file tree Collapse file tree 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::*;
1212
1313pub type PrintError = std:: fmt:: Error ;
1414
15- // FIXME(eddyb) false positive, the lifetime parameters are used with `P: Printer<...>`.
16- #[ allow( unused_lifetimes) ]
1715pub trait Print < ' tcx , P > {
1816 fn print ( & self , cx : & mut P ) -> Result < ( ) , PrintError > ;
1917}
Original file line number Diff line number Diff 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 } ) +
You can’t perform that action at this time.
0 commit comments