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 /src | |
| parent | 23408de992598d89bf6ed697b4b86bbefc0f2df0 (diff) | |
| parent | 89fdfe682870bd60e759a38c0509af605eaff759 (diff) | |
| download | rust-eff63980142872227dcd66bf429f7337b1b68c31.tar.gz rust-eff63980142872227dcd66bf429f7337b1b68c31.zip | |
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 'src')
| -rw-r--r-- | src/test/ui/symbol-names/issue-76365.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/symbol-names/issue-76365.rs b/src/test/ui/symbol-names/issue-76365.rs new file mode 100644 index 00000000000..61ba255dac0 --- /dev/null +++ b/src/test/ui/symbol-names/issue-76365.rs @@ -0,0 +1,18 @@ +// check-pass +// revisions: legacy v0 +//[legacy]compile-flags: -Z symbol-mangling-version=legacy --crate-type=lib + //[v0]compile-flags: -Z symbol-mangling-version=v0 --crate-type=lib + +#![feature(min_const_generics)] + +pub struct Bar<const F: bool>; + +impl Bar<true> { + pub fn foo() {} +} + +impl<const F: bool> Bar<F> { + pub fn bar() {} +} + +fn main() {} |
