rust/src/libsyntax
Mazdak Farrokhzad 9f22708ced
Rollup merge of #61654 - Electron-libre:use_slice_patterns_in_rustc, r=oli-obk,Centril
use pattern matching for slices destructuring

refs #61542

Use slices pattern where it seems to make sense .
2019-06-12 04:22:50 +02:00
..
attr syntax: Move most of the TokenKind methods to Token 2019-06-08 22:38:12 +03:00
diagnostics use default binding mode in match clauses 2019-06-08 13:29:43 +02:00
ext syntax: Rename variants of SyntaxExtension for consistency 2019-06-10 21:34:26 +03:00
parse Rollup merge of #61654 - Electron-libre:use_slice_patterns_in_rustc, r=oli-obk,Centril 2019-06-12 04:22:50 +02:00
print syntax: Remove Deref impl from Token 2019-06-08 22:38:23 +03:00
util syntax: Move most of the TokenKind methods to Token 2019-06-08 22:38:12 +03:00
ast.rs syntax: Treat error literals in more principled way 2019-06-07 18:01:50 +03:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of looping 2019-04-15 15:20:05 +02:00
config.rs parser: self.span -> self.token.span 2019-06-07 13:51:23 +03:00
early_buffered_lints.rs Some code cleanup and tidy/test fixes 2019-06-06 14:04:02 +03:00
entry.rs Remove the equality operation between Symbol and strings. 2019-05-13 09:31:30 +10:00
error_codes.rs Added the E0704 error with a link to the Rust reference. 2019-05-01 12:01:52 +02:00
feature_gate.rs Implement RFC 2645 (transparent enums and unions) 2019-06-10 22:07:24 -07:00
json.rs Make -Zemit-artifact-notifications also emit the artifact type 2019-05-21 13:51:36 -07:00
lib.rs Add deny(unused_lifetimes) to all the crates that have deny(internal). 2019-06-11 14:11:59 +03:00
mut_visit.rs syntax: Treat error literals in more principled way 2019-06-07 18:01:50 +03:00
ptr.rs Aggregation of drive-by cosmetic changes. 2019-06-05 21:09:26 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
source_map.rs syntax/rustc: move mark_span_with_reason back. 2019-06-03 10:20:35 +01:00
std_inject.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
test.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
test_snippet.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
tokenstream.rs syntax: Remove Deref impl from Token 2019-06-08 22:38:23 +03:00
visit.rs syntax: Treat error literals in more principled way 2019-06-07 18:01:50 +03:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: