about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-24 11:12:34 +0000
committerbors <bors@rust-lang.org>2015-05-24 11:12:34 +0000
commitba0e1cd8147d452c356aacb29fb87568ca26f111 (patch)
tree0cf03636be9210de94e30bb07467097aeb5273c7 /src/test/codegen/stack-alloc-string-slice.rs
parentcc56c20ba4ccc12f58e1c844b77168bc4805cbb6 (diff)
parent82ded3cd03e001e82b9dce9aedac621a5292231b (diff)
downloadrust-ba0e1cd8147d452c356aacb29fb87568ca26f111.tar.gz
rust-ba0e1cd8147d452c356aacb29fb87568ca26f111.zip
Auto merge of #25609 - nikomatsakis:const-fn, r=pnkfelix
This is a port of @eddyb's `const-fn` branch. I rebased it, tweaked a few things, and added tests as well as a feature gate. The set of tests is still pretty rudimentary, I'd appreciate suggestions on new tests to write. Also, a double-check that the feature-gate covers all necessary cases.

One question: currently, the feature-gate allows the *use* of const functions from stable code, just not the definition. This seems to fit our usual strategy, and implies that we might (perhaps) allow some constant functions in libstd someday, even before stabilizing const-fn, if we were willing to commit to the existence of const fns but found some details of their impl unsatisfactory.

r? @pnkfelix 
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions