File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/librustc_mir/interpret Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,11 @@ fn write_path(out: &mut String, path: &Vec<PathElem>) {
114114 ClosureVar ( name) => write ! ( out, ".<closure-var({})>" , name) ,
115115 TupleElem ( idx) => write ! ( out, ".{}" , idx) ,
116116 ArrayElem ( idx) => write ! ( out, "[{}]" , idx) ,
117- Deref => {
118- // This does not match Rust syntax, but it is more readable for long paths -- and
119- // some of the other items here also are not Rust syntax. Actually we can't
120- // even use the usual syntax because we are just showing the projections,
121- // not the root.
122- write ! ( out, ".<deref>" )
123- }
117+ // `.<deref>` does not match Rust syntax, but it is more readable for long paths -- and
118+ // some of the other items here also are not Rust syntax. Actually we can't
119+ // even use the usual syntax because we are just showing the projections,
120+ // not the root.
121+ Deref => write ! ( out, ".<deref>" ) ,
124122 Tag => write ! ( out, ".<enum-tag>" ) ,
125123 DynDowncast => write ! ( out, ".<dyn-downcast>" ) ,
126124 }
You can’t perform that action at this time.
0 commit comments