rust/src/librustc_mir
bors 088fc7384c 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
2018-10-04 06:48:13 +00:00
..
borrow_check Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis 2018-10-03 10:49:27 +00:00
build Auto merge of #54447 - KiChjang:issue-54331, r=nikomatsakis 2018-10-04 00:26:00 +00:00
dataflow Shrink StatementKind::InlineAsm. 2018-09-24 18:45:49 +10:00
hair Auto merge of #54447 - KiChjang:issue-54331, r=nikomatsakis 2018-10-04 00:26:00 +00:00
interpret Auto merge of #54693 - RalfJung:ctfe-scalar-pair-undef, r=oli-obk 2018-10-01 22:32:26 +00:00
monomorphize do not normalize non-scalar constants to a ConstValue::ScalarPair 2018-09-30 12:37:00 +02:00
transform Only promote calls to #[rustc_promotable] const fns 2018-10-03 10:07:05 +02:00
util Auto merge of #54526 - nnethercote:shrink-StatementKind, r=nagisa 2018-09-26 23:22:48 +00:00
Cargo.toml Use optimized SmallVec implementation 2018-08-23 10:45:53 +03:00
const_eval.rs Only promote calls to #[rustc_promotable] const fns 2018-10-03 10:07:05 +02:00
diagnostics.rs Change the diagnostic number from 714 to 716. 2018-09-25 15:23:57 +01:00
lib.rs Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
shim.rs Shrink StatementKind::Assign. 2018-09-24 18:45:37 +10:00