rust/src/libsyntax
bors ba0e1cd814 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
2015-05-24 11:12:34 +00:00
..
ast_map Make various fixes: 2015-05-21 11:47:30 -04:00
diagnostics Remove error diagnostics uniqueness check and .json generation. 2015-05-22 15:40:12 +02:00
ext Auto merge of #25609 - nikomatsakis:const-fn, r=pnkfelix 2015-05-24 11:12:34 +00:00
parse Two more small fixes. 2015-05-22 08:45:05 -04:00
print Two more small fixes. 2015-05-22 08:45:05 -04:00
util syntax: replace sess.span_diagnostic.cm with sess.codemap(). 2015-05-14 01:47:56 +03:00
abi.rs
ast_util.rs Make various fixes: 2015-05-21 11:47:30 -04:00
ast.rs Make various fixes: 2015-05-21 11:47:30 -04:00
attr.rs
codemap.rs syntax: abstract over the file loading mechanism. 2015-05-14 01:47:56 +03:00
config.rs
diagnostic.rs Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis 2015-05-17 00:05:34 +00:00
feature_gate.rs Auto merge of #25609 - nikomatsakis:const-fn, r=pnkfelix 2015-05-24 11:12:34 +00:00
fold.rs Make various fixes: 2015-05-21 11:47:30 -04:00
lib.rs libs: Move favicon URLs to HTTPS 2015-05-15 16:04:01 -07:00
owned_slice.rs
ptr.rs
show_span.rs
std_inject.rs
str.rs
test.rs syntax: parse const fn for free functions and inherent methods. 2015-05-21 11:47:30 -04:00
visit.rs Make various fixes: 2015-05-21 11:47:30 -04:00