about summary refs log tree commit diff
path: root/src/librustc_parse/parser/pat.rs
AgeCommit message (Collapse)AuthorLines
2020-07-01Remove `token::FlattenGroup`Vadim Petrochenkov-1/+1
2020-06-26proc_macro: Stop flattening groups with dummy spansVadim Petrochenkov-1/+1
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-2/+2
2020-04-19Dogfood more or_patterns in the compilerJosh Stone-1/+1
2020-03-26Throw error when encountering `...` instead of `..` while destructing a patternRakshith Ravi-0/+21
Added tests and stderr output
2020-03-21Rollup merge of #70187 - matthiaskrgr:cl2ppy, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
more clippy fixes * remove redundant returns (clippy::needless_return) * remove redundant import (clippy::single_component_path_imports) * remove redundant format!() call (clippy::useless_format) * don't use ok() before calling expect() (clippy::ok_expect)
2020-03-20remove redundant returns (clippy::needless_return)Matthias Krüger-1/+1
2020-03-20can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs.Mazdak Farrokhzad-1/+1
2020-03-12ast: `Mac`/`Macro` -> `MacCall`Vadim Petrochenkov-7/+5
2020-03-10use check_path moreMazdak Farrokhzad-1/+1
2020-03-09Use `Token::uninterpolate` in couple more places matching on `(Nt)Ident`Vadim Petrochenkov-1/+1
2020-03-03Use .next() instead of .nth(0) on iterators.Matthias Krüger-1/+1
2020-03-01Rollup merge of #69579 - petrochenkov:noprevspan, r=CentrilYuki Okushi-19/+18
parser: Remove `Parser::prev_span` Follow-up to https://github.com/rust-lang/rust/pull/69384. r? @Centril
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-5/+7
2020-02-29parser: `prev_span` -> `prev_token.span`Vadim Petrochenkov-19/+18
2020-02-29use .to_string() instead of format!() macro to create stringsMatthias Krüger-1/+1
2020-02-17parse: recover `mut (x @ y)` as `(mut x @ mut y)`.Mazdak Farrokhzad-16/+13
2020-02-11Invert control in struct_lint_level.jumbatm-1/+1
Caller now passes in a `decorate` function, which is only run if the lint is allowed.
2020-02-09Don't parse `mut a @ b` as `mut a @ mut b`Matthew Jasper-4/+7
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-1/+1
2020-01-18remove rustc_error_codes deps except in rustc_driverMazdak Farrokhzad-1/+0
2020-01-12Fix formatting ellipses at the end of some diagnosticsvarkor-2/+2
2020-01-11Ban `...X` pats, harden tests, and improve diagnostics.Mazdak Farrokhzad-3/+23
Also fix a bug with the span passed in `mk_range`.
2020-01-10Introduce `#![feature(half_open_range_patterns)]`.Mazdak Farrokhzad-187/+132
This feature adds `X..`, `..X`, and `..=X` patterns.
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-31parser::pat: remove .fatal callsMazdak Farrokhzad-11/+15
2019-12-31parser: span_fatal -> struct_span_errMazdak Farrokhzad-1/+3
2019-12-31parser: call .struct_span_err directlyMazdak Farrokhzad-14/+12
2019-12-29Auto merge of #67112 - Centril:expr-polish, r=estebankbors-2/+2
Refactor expression parsing thoroughly Based on https://github.com/rust-lang/rust/pull/66994 together with which this has refactored basically the entirety of `expr.rs`. r? @estebank
2019-12-23Introduce `#![feature(bindings_after_at)]`.Mazdak Farrokhzad-0/+1
Under the gate, `x @ Some(y)` is allowed. This is subject to various restrictions for soundness.
2019-12-23extract parse_not_exprMazdak Farrokhzad-2/+2
2019-12-22Format the worldMark Rousskov-100/+101
2019-12-21Rollup merge of #67355 - Centril:merge-mut, r=oli-obkMazdak Farrokhzad-8/+8
Merge `ast::Mutability` and `mir::Mutability` r? @oli-obk
2019-12-20introduce 'type AttrVec'Mazdak Farrokhzad-6/+5
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-8/+8
2. mir::Mutability -> ast::Mutability.
2019-12-13parser: recover on `&'lifetime mut $pat`.Mazdak Farrokhzad-6/+16
2019-12-05rustc_parser: cleanup importsMazdak Farrokhzad-2/+2
2019-12-02syntax: Remove redundant span from `ast::Mac`Vadim Petrochenkov-3/+2
Also remove a couple of redundant `visit_mac` asserts
2019-12-02syntax: Introduce a struct `MacArgs` for macro argumentsVadim Petrochenkov-3/+2
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-0/+1015
also move MACRO_ARGUMENTS -> librustc_parse