about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-10-02 09:28:05 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-10-02 09:45:48 -0400
commit89fdfe682870bd60e759a38c0509af605eaff759 (patch)
tree51fd7ff2efc411e68edb5ad60cbf7c912de3f3fc /compiler
parent154f1f544dd68f7b53ff8d9952811e855f4c2d7c (diff)
Permit ty::Bool in const generics for v0 mangling
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_symbol_mangling/src/v0.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs
index 091d488138e..da9c93143bf 100644
--- a/compiler/rustc_symbol_mangling/src/v0.rs
+++ b/compiler/rustc_symbol_mangling/src/v0.rs
@@ -504,6 +504,7 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
 
         match ct.ty.kind() {
             ty::Uint(_) => {}
+            ty::Bool => {}
             _ => {
                 bug!("symbol_names: unsupported constant of type `{}` ({:?})", ct.ty, ct);
             }