We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 154f1f5 commit 89fdfe6Copy full SHA for 89fdfe6
compiler/rustc_symbol_mangling/src/v0.rs
@@ -504,6 +504,7 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
504
505
match ct.ty.kind() {
506
ty::Uint(_) => {}
507
+ ty::Bool => {}
508
_ => {
509
bug!("symbol_names: unsupported constant of type `{}` ({:?})", ct.ty, ct);
510
}
src/test/ui/symbol-names/issue-76365.rs
@@ -0,0 +1,18 @@
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() {}
0 commit comments