File tree 2 files changed +4
-2
lines changed
rustc_codegen_llvm/src/debuginfo
rustc_codegen_ssa/src/debuginfo
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2662,11 +2662,13 @@ fn vtable_type_metadata<'ll, 'tcx>(
2662
2662
}
2663
2663
ty:: VtblEntry :: Method ( _) => {
2664
2664
// Note: This code does not try to give a proper name to each method
2665
- // because their might be multiple methods with the same name
2665
+ // because there might be multiple methods with the same name
2666
2666
// (coming from different traits).
2667
2667
( format ! ( "__method{}" , index) , void_pointer_type_debuginfo)
2668
2668
}
2669
2669
ty:: VtblEntry :: TraitVPtr ( _) => {
2670
+ // Note: In the future we could try to set the type of this pointer
2671
+ // to the type that we generate for the corresponding vtable.
2670
2672
( format ! ( "__super_trait_ptr{}" , index) , void_pointer_type_debuginfo)
2671
2673
}
2672
2674
ty:: VtblEntry :: MetadataAlign => ( "align" . to_string ( ) , usize_debuginfo) ,
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ fn push_debuginfo_type_name<'tcx>(
470
470
}
471
471
472
472
pub enum VTableNameKind {
473
- // Is the name for const/static holding the vtable?
473
+ // Is the name for the const/static holding the vtable?
474
474
GlobalVariable ,
475
475
// Is the name for the type of the vtable?
476
476
Type ,
You can’t perform that action at this time.
0 commit comments