File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
compiler/rustc_symbol_mangling/src Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,7 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
504504
505505 match ct. ty . kind ( ) {
506506 ty:: Uint ( _) => { }
507+ ty:: Bool => { }
507508 _ => {
508509 bug ! ( "symbol_names: unsupported constant of type `{}` ({:?})" , ct. ty, ct) ;
509510 }
Original file line number Diff line number Diff line change 1+ // check-pass
2+ // revisions: legacy v0
3+ //[legacy]compile-flags: -Z symbol-mangling-version=legacy --crate-type=lib
4+ //[v0]compile-flags: -Z symbol-mangling-version=v0 --crate-type=lib
5+
6+ #![ feature( min_const_generics) ]
7+
8+ pub struct Bar < const F : bool > ;
9+
10+ impl Bar < true > {
11+ pub fn foo ( ) { }
12+ }
13+
14+ impl < const F : bool > Bar < F > {
15+ pub fn bar ( ) { }
16+ }
17+
18+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments