File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_hir_pretty/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ pub trait PpAnn {
4949}
5050
5151pub struct NoAnn ;
52+
5253impl PpAnn for NoAnn { }
53- pub const NO_ANN : & dyn PpAnn = & NoAnn ;
5454
5555impl PpAnn for & dyn rustc_hir:: intravisit:: Map < ' _ > {
5656 fn nested ( & self , state : & mut State < ' _ > , nested : Nested ) {
@@ -183,15 +183,15 @@ where
183183}
184184
185185pub 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) )
187187}
188188
189189pub 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 ) )
191191}
192192
193193pub 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) )
195195}
196196
197197impl < ' a > State < ' a > {
You can’t perform that action at this time.
0 commit comments