File tree 1 file changed +4
-4
lines changed
compiler/rustc_hir_pretty/src 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ pub trait PpAnn {
49
49
}
50
50
51
51
pub struct NoAnn ;
52
+
52
53
impl PpAnn for NoAnn { }
53
- pub const NO_ANN : & dyn PpAnn = & NoAnn ;
54
54
55
55
impl PpAnn for & dyn rustc_hir:: intravisit:: Map < ' _ > {
56
56
fn nested ( & self , state : & mut State < ' _ > , nested : Nested ) {
@@ -183,15 +183,15 @@ where
183
183
}
184
184
185
185
pub fn ty_to_string ( ty : & hir:: Ty < ' _ > ) -> String {
186
- to_string ( NO_ANN , |s| s. print_type ( ty) )
186
+ to_string ( & NoAnn , |s| s. print_type ( ty) )
187
187
}
188
188
189
189
pub fn qpath_to_string ( segment : & hir:: QPath < ' _ > ) -> String {
190
- to_string ( NO_ANN , |s| s. print_qpath ( segment, false ) )
190
+ to_string ( & NoAnn , |s| s. print_qpath ( segment, false ) )
191
191
}
192
192
193
193
pub fn pat_to_string ( pat : & hir:: Pat < ' _ > ) -> String {
194
- to_string ( NO_ANN , |s| s. print_pat ( pat) )
194
+ to_string ( & NoAnn , |s| s. print_pat ( pat) )
195
195
}
196
196
197
197
impl < ' a > State < ' a > {
You can’t perform that action at this time.
0 commit comments