File tree 2 files changed +4
-4
lines changed
compiler/rustc_symbol_mangling/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -771,9 +771,9 @@ impl<'tcx> Printer<'tcx> for &mut SymbolMangler<'tcx> {
771
771
disambiguated_data : & DisambiguatedDefPathData ,
772
772
) -> Result < Self :: Path , Self :: Error > {
773
773
let ns = match disambiguated_data. data {
774
- // FIXME: It shouldn't be necessary to add anything for extern block segments,
775
- // but we add 't' for backward compatibility .
776
- DefPathData :: ForeignMod => 't' ,
774
+ // Extern block segments can be skipped, names from extern blocks
775
+ // are effectively living in their parent modules .
776
+ DefPathData :: ForeignMod => return print_prefix ( self ) ,
777
777
778
778
// Uppercase categories are more stable than lowercase ones.
779
779
DefPathData :: TypeNs ( _) => 't' ,
Original file line number Diff line number Diff line change 1
- error: symbol-name(_RMCsCRATE_HASH_13foreign_typesINtB<REF>_5CheckNvNtB <REF>_011ForeignTypeE )
1
+ error: symbol-name(_RMCsCRATE_HASH_13foreign_typesINtB<REF>_5CheckNvB <REF>_11ForeignTypeE )
2
2
--> $DIR/foreign-types.rs:13:1
3
3
|
4
4
LL | #[rustc_symbol_name]
You can’t perform that action at this time.
0 commit comments