diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-10-03 00:31:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-03 00:31:17 +0200 |
| commit | eff63980142872227dcd66bf429f7337b1b68c31 (patch) | |
| tree | 807dbc3a528785d6119b683c2a511bbc2f9629f9 /compiler | |
| parent | 23408de992598d89bf6ed697b4b86bbefc0f2df0 (diff) | |
| parent | 89fdfe682870bd60e759a38c0509af605eaff759 (diff) | |
Rollup merge of #77452 - Mark-Simulacrum:fix-symbol-v0, r=eddyb
Permit ty::Bool in const generics for v0 mangling This should unbreak using new-symbol-mangling = true in config.toml (once it lands in beta anyway). Fixes #76365 (well, it will, but seems fine to close as soon as we have support) r? @eddyb (for mangling) but I'm okay with some other reviewer too :)
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/v0.rs | 1 |
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); } |
