about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-04 06:48:13 +0000
committerbors <bors@rust-lang.org>2018-10-04 06:48:13 +0000
commit088fc7384c1ac3f7670d66880c7dcc0ec9160c79 (patch)
treea904b7f1880e2ec018f5dff0ddbde98f9e7a1de4 /src/libstd/error.rs
parentc67ea54d4466f1c082f72b194c100bb4954449e6 (diff)
parentc793391e6d04106df57a4f431c7deeb4258a0592 (diff)
downloadrust-088fc7384c1ac3f7670d66880c7dcc0ec9160c79.tar.gz
rust-088fc7384c1ac3f7670d66880c7dcc0ec9160c79.zip
Auto merge of #53851 - oli-obk:local_promotion, r=eddyb
Limit the promotion of const fns to the libstd and the `rustc_promotable` attribute

There are so many questions around promoting const fn calls... it seems saner to try to limit automatic promotion to const fns which were explicitly opted in for promotion.

I added the attribute to all public stable const fns that were already promotable (e.g. not Cell::new) in order to not cause any breakage

r? @eddyb

cc @nikomatsakis
Diffstat (limited to 'src/libstd/error.rs')
0 files changed, 0 insertions, 0 deletions