summary refs log tree commit diff
path: root/src/librustc_parse/parser/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-01-17Change `next_point` when `shrink_to_hi` is more appropriateEsteban Küber-1/+1
(cherry picked from commit b93ef68245807bac97cd17ea9eaa13169380d815)
2019-12-05rustc_parser: cleanup importsMazdak Farrokhzad-8/+5
2019-12-02Address review commentsVadim Petrochenkov-1/+2
2019-12-02syntax: Use `ast::MacArgs` for attributesVadim Petrochenkov-6/+5
2019-12-02syntax: Introduce a struct `MacArgs` for macro argumentsVadim Petrochenkov-21/+43
2019-11-26Refactor 'parse_enum_item' to use 'parse_delim_comma_seq'Janusz Marcinkiewicz-2/+20
2019-11-22Rollup merge of #66183 - Centril:empty-vis-trait-decl, r=petrochenkovMazdak Farrokhzad-2/+6
*Syntactically* permit visibilities on trait items & enum variants Fixes #65041 Suppose we have `$vis trait_item` or `$vis enum_variant` and `$vis` is a `:vis` macro fragment. Before this PR, this would fail to parse. This is now instead allowed as per language team consensus in https://github.com/rust-lang/rust/issues/65041#issuecomment-538105286. (See added tests for elaboration.) Moreover, we now also permit visibility modifiers on trait items & enum variants *syntactically* but reject them with semantic checks (in `ast_validation`): ```rust #[cfg(FALSE)] trait Foo { pub fn bar(); } // OK #[cfg(FALSE)] enum E { pub U } // OK ```
2019-11-16parse: Use string literal parsing in the `asm` macroVadim Petrochenkov-42/+12
2019-11-16parse: Support parsing optional literalsVadim Petrochenkov-8/+7
Revert weird renaming of the former `LitError::report`
2019-11-16ast: Keep string literals in ABIs preciselyVadim Petrochenkov-4/+7
2019-11-16ast: Keep `extern` qualifiers in functions more preciselyVadim Petrochenkov-15/+9
2019-11-14Clean some error codes diagnosticsGuillaume Gomez-8/+8
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-0/+2
2019-11-13parser: don't use `unreachable!()` in `fn unexpected`.Mazdak Farrokhzad-1/+3
2019-11-11syntactically allow visibility on trait item & enum variantMazdak Farrokhzad-2/+6
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-0/+1393
also move MACRO_ARGUMENTS -> librustc_parse