File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
compiler/rustc_codegen_ssa/src/debuginfo Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -209,20 +209,21 @@ fn push_debuginfo_type_name<'tcx>(
209209 output. push ( ']' ) ;
210210 }
211211 }
212- ty:: DynStar ( ..) => unimplemented ! ( ) ,
213- ty:: Dynamic ( ref trait_data, ..) => {
212+ // ty::DynStar(..) => unimplemented!(),
213+ ty:: Dynamic ( ref trait_data, ..) | ty :: DynStar ( ref trait_data , .. ) => {
214214 let auto_traits: SmallVec < [ DefId ; 4 ] > = trait_data. auto_traits ( ) . collect ( ) ;
215+ let is_dyn_star = t. is_dyn_star ( ) ;
215216
216217 let has_enclosing_parens = if cpp_like_debuginfo {
217- output. push_str ( " dyn$<") ;
218+ output. push_str ( if is_dyn_star { "dyns$<" } else { " dyn$<" } ) ;
218219 false
219220 } else {
220221 if trait_data. len ( ) > 1 && auto_traits. len ( ) != 0 {
221222 // We need enclosing parens because there is more than one trait
222- output. push_str ( "(dyn " ) ;
223+ output. push_str ( if is_dyn_star { "(dyn* " } else { "(dyn " } ) ;
223224 true
224225 } else {
225- output. push_str ( "dyn " ) ;
226+ output. push_str ( if is_dyn_star { "dyn* " } else { "dyn " } ) ;
226227 false
227228 }
228229 } ;
You can’t perform that action at this time.
0 commit comments