about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-01-04 02:19:46 +0100
committerGitHub <noreply@github.com>2020-01-04 02:19:46 +0100
commit85277ff772f20293799b1f99f673e0b3f733b0b6 (patch)
treeefa474206ba03e3b18454e170c9fa96e422a86aa /src/test/debuginfo/enum-thinlto.rs
parenta436293994b7ff8c15f515faf1aa42623769cf5d (diff)
parent368ac73c11662dbb860db178dc170768078b282d (diff)
downloadrust-85277ff772f20293799b1f99f673e0b3f733b0b6.tar.gz
rust-85277ff772f20293799b1f99f673e0b3f733b0b6.zip
Rollup merge of #67531 - RalfJung:tame-promotion, r=nikomatsakis
no longer promote non-pattern const functions

This is trying to pack-pedal a bit on promotion feature creep, as proposed by @eddyb [here](https://github.com/rust-lang/const-eval/issues/19#issuecomment-472799062): possibly, a sane subset of `const fn` that we could promote are those that are just constructors -- the same subset that we might want to allow in pattern position at some point.

So, this removes the `rustc_promotable` attribute from the three functions they identified that do not fit this pattern. The first step is to run crater to see if there is code in the wild that relies on this being promotable.

r? @oli-obk
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions