rust/src/libsyntax
bors eb1d018c01 Auto merge of #25570 - oli-obk:const_indexing, r=nikomatsakis
This PR allows the constant evaluation of index operations on constant arrays and repeat expressions. This allows index expressions to appear in the expression path of the length expression of a repeat expression or an array type.

An example is

```rust
const ARR: [usize; 5] = [1, 2, 3, 4, 5];
const ARR2: [usize; ARR[1]] = [42, 99];
```

In most other locations llvm's const evaluator figures it out already. This is not specific to index expressions and could be remedied in the future.
2015-12-01 19:47:38 +00:00
..
diagnostics remove Tt prefix from TokenType variants 2015-11-06 14:52:02 +01:00
ext Auto merge of #30064 - fhartwig:macro-suggestions, r=sanxiyn 2015-11-27 18:41:53 +00:00
parse Use last_span for macro spans 2015-11-28 23:54:54 -06:00
print Avoid some code duplication around getting names of numeric types. 2015-11-23 15:59:36 +01:00
util Introduce max_suggestion_distance function to avoid duplicating the heuristic 2015-11-27 17:52:29 +01:00
abi.rs Port the standard crates to PNaCl/NaCl. 2015-10-28 17:23:28 -05:00
ast.rs Avoid some code duplication around getting names of numeric types. 2015-11-23 15:59:36 +01:00
ast_util.rs Avoid some code duplication around getting names of numeric types. 2015-11-23 15:59:36 +01:00
attr.rs Rename #[deprecated] to #[rustc_deprecated] 2015-11-20 16:11:20 +03:00
codemap.rs Add -Zinput-stats 2015-11-12 09:23:37 +13:00
config.rs Use deref coercions 2015-11-10 20:16:28 +09:00
diagnostic.rs Detect confusing unicode characters and show the alternative 2015-11-17 12:14:28 +05:30
entry.rs Cleanup interfaces of Name, SyntaxContext and Ident 2015-09-24 23:05:02 +03:00
feature_gate.rs Auto merge of #25570 - oli-obk:const_indexing, r=nikomatsakis 2015-12-01 19:47:38 +00:00
fold.rs rename ast::ImplItem_::*ImplItem to ast::ImplItemKind::* 2015-11-16 10:35:30 +01:00
lib.rs Auto merge of #30064 - fhartwig:macro-suggestions, r=sanxiyn 2015-11-27 18:41:53 +00:00
owned_slice.rs Fill in some missing parts in the default AST visitor 2015-09-28 23:06:43 +03:00
ptr.rs syntax: remove #![feature(box_syntax, box_patterns)] 2015-04-21 10:07:48 -07:00
show_span.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
std_inject.rs Stop re-exporting AttrStyle's variants and rename them. 2015-10-01 18:03:34 +02:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Fix match_ref_pats flagged by Clippy 2015-11-17 23:24:49 +09:00
visit.rs Auto merge of #29887 - sanxiyn:match-ref-pats, r=sfackler 2015-11-17 20:10:25 +00:00