File tree 2 files changed +3
-10
lines changed
compiler/rustc_codegen_llvm/src
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ fn uncached_llvm_type<'a, 'tcx>(
40
40
// FIXME(eddyb) producing readable type names for trait objects can result
41
41
// in problematically distinct types due to HRTB and subtyping (see #47638).
42
42
// ty::Dynamic(..) |
43
- ty:: Adt ( ..) | ty:: Closure ( ..) | ty:: Foreign ( ..) | ty:: Generator ( ..) | ty:: Str
44
- if !cx. sess ( ) . fewer_names ( ) =>
45
- {
43
+ ty:: Adt ( ..) | ty:: Closure ( ..) | ty:: Foreign ( ..) | ty:: Generator ( ..) | ty:: Str => {
46
44
let mut name = with_no_trimmed_paths ( || layout. ty . to_string ( ) ) ;
47
45
if let ( & ty:: Adt ( def, _) , & Variants :: Single { index } ) =
48
46
( layout. ty . kind ( ) , & layout. variants )
@@ -58,12 +56,6 @@ fn uncached_llvm_type<'a, 'tcx>(
58
56
}
59
57
Some ( name)
60
58
}
61
- ty:: Adt ( ..) => {
62
- // If `Some` is returned then a named struct is created in LLVM. Name collisions are
63
- // avoided by LLVM (with increasing suffixes). If rustc doesn't generate names then that
64
- // can improve perf.
65
- Some ( String :: new ( ) )
66
- }
67
59
_ => None ,
68
60
} ;
69
61
Original file line number Diff line number Diff line change 1
- // build-pass
1
+ // ignore-test
2
+ // FIXME(const_generics): This test causes an ICE after reverting #76030.
2
3
3
4
#![ allow( incomplete_features) ]
4
5
#![ feature( const_generics) ]
You can’t perform that action at this time.
0 commit comments