088fc7384c
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 |
||
---|---|---|
.. | ||
borrow_check | ||
build | ||
dataflow | ||
hair | ||
interpret | ||
monomorphize | ||
transform | ||
util | ||
Cargo.toml | ||
const_eval.rs | ||
diagnostics.rs | ||
lib.rs | ||
shim.rs |