| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -252/+0 | |
| 2022-12-31 | Add missing extern crate rustc_driver | bjorn3 | -0/+5 | |
| 2022-11-28 | Keep track of the start of the argument block of a closure | Sarthak Singh | -0/+1 | |
| 2022-11-17 | Use `ThinVec` in `ast::Path`. | Nicholas Nethercote | -1/+3 | |
| 2022-11-17 | Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, types, and ↵ | Nicholas Nethercote | -13/+17 | |
| patterns. | ||||
| 2022-08-22 | Use `AttrVec` in more places. | Nicholas Nethercote | -3/+2 | |
| In some places we use `Vec<Attribute>` and some places we use `ThinVec<Attribute>` (a.k.a. `AttrVec`). This results in various points where we have to convert between `Vec` and `ThinVec`. This commit changes the places that use `Vec<Attribute>` to use `AttrVec`. A lot of this is mechanical and boring, but there are some interesting parts: - It adds a few new methods to `ThinVec`. - It implements `MapInPlace` for `ThinVec`, and introduces a macro to avoid the repetition of this trait for `Vec`, `SmallVec`, and `ThinVec`. Overall, it makes the code a little nicer, and has little effect on performance. But it is a precursor to removing `rustc_data_structures::thin_vec::ThinVec` and replacing it with `thin_vec::ThinVec`, which is implemented more efficiently. | ||||
| 2022-08-10 | Adapt ui-fulldeps test. | Camille GILLOT | -2/+2 | |
| 2022-07-12 | Parse closure binders | Maybe Waffle | -0/+1 | |
| This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature | ||||
| 2022-02-23 | rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`. | Eduard-Mihai Burtescu | -1/+1 | |
| 2021-09-03 | Detect bare blocks with type ascription that were meant to be a `struct` literal | Esteban Kuber | -0/+1 | |
| Address part of #34255. Potential improvement: silence the other knock down errors in `issue-34255-1.rs`. | ||||
| 2021-08-15 | Introduce hir::ExprKind::Let - Take 2 | Caio | -1/+1 | |
| 2021-07-08 | Rework SESSION_GLOBALS API to prevent overwriting it | Guillaume Gomez | -1/+1 | |
| 2021-06-10 | Add support for using qualified paths with structs in expression and pattern | Ryan Levick | -67/+60 | |
| position. | ||||
| 2021-03-16 | ast: Reduce size of `ExprKind` by boxing fields of `ExprKind::Struct` | Vadim Petrochenkov | -1/+3 | |
| 2020-11-11 | Implement destructuring assignment for structs and slices | Fabian Zaiser | -1/+1 | |
| Co-authored-by: varkor <github@varkor.com> | ||||
| 2020-09-10 | Fully integrate token collection for additional AST structs | Aaron Hill | -1/+2 | |
| This commit contains miscellaneous changes that don't fit into any of the other commits in this PR | ||||
| 2020-08-20 | Capture tokens for Pat used in macro_rules! argument | Aaron Hill | -0/+1 | |
| This extends PR #73293 to handle patterns (Pat). Unlike expressions, patterns do not support custom attributes, so we only need to capture tokens during macro_rules! argument parsing. | ||||
| 2020-08-17 | rust_ast::ast => rustc_ast | Ujjwal Sharma | -1/+1 | |
| 2020-08-08 | Eliminate the `SessionGlobals` from `librustc_ast`. | Nicholas Nethercote | -1/+1 | |
| By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session` | ||||
| 2020-07-09 | Eliminate confusing "globals" terminology. | Nicholas Nethercote | -1/+1 | |
| There are some structures that are called "globals", but are they global to a compilation session, and not truly global. I have always found this highly confusing, so this commit renames them as "session globals" and adds a comment explaining things. Also, the commit fixes an unnecessary nesting of `set()` calls `src/librustc_errors/json/tests.rs` | ||||
| 2020-06-10 | Fix pprust-expr-roundtrip | Aaron Hill | -2/+2 | |
| 2020-05-24 | Collect tokens for `ast::Expr` | Aaron Hill | -0/+2 | |
| 2020-05-08 | Fix tests | Camille GILLOT | -0/+1 | |
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -5/+5 | |
| 2020-02-17 | Rename `FunctionRetTy` to `FnRetTy` | Yuki Okushi | -1/+1 | |
| 2020-02-13 | IsAsync -> enum Async { Yes { span: Span, .. }, No } | Mazdak Farrokhzad | -1/+1 | |
| use new span for better diagnostics. | ||||
| 2020-02-01 | fix fallout in tests | Mazdak Farrokhzad | -2/+4 | |
| 2020-01-02 | fix src/test fallout | Mazdak Farrokhzad | -2/+3 | |
| 2019-12-30 | Rename `libsyntax_ext` and `libsyntax_expand` in code | Vadim Petrochenkov | -1/+0 | |
| 2019-12-23 | Add span information to `ExprKind::Assign` | varkor | -2/+2 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -1/+1 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-11-24 | Add tests for raw_ref_op | Matthew Jasper | -1/+4 | |
| 2019-11-20 | Delete ProcessCfgMod | Mark Rousskov | -2/+1 | |
| The previous commit removes the use of this, and now we cleanup. | ||||
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -1/+2 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
| 2019-11-10 | move config.rs to libsyntax_expand | Mazdak Farrokhzad | -3/+5 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -2/+2 | |
| 2019-09-28 | syntax: don't keep a redundant c_variadic flag in the AST. | Eduard-Mihai Burtescu | -1/+0 | |
| 2019-09-26 | Fix ui-fulldeps tests | varkor | -1/+1 | |
| 2019-09-26 | Rename `Pat.node` to `Pat.kind` | varkor | -1/+1 | |
| 2019-09-26 | Rename `Expr.node` to `Expr.kind` | varkor | -2/+2 | |
| For both `ast::Expr` and `hir::Expr`. | ||||
| 2019-09-07 | Rollup merge of #64192 - estebank:turbofish-madness, r=petrochenkov | Mazdak Farrokhzad | -22/+25 | |
| Bail out when encountering likely missing turbofish in parser When encountering a likely intended turbofish without `::`, bubble up the diagnostic instead of emitting it to allow the parser to recover more gracefully and avoid uneccessary type errors that are likely to be wrong. Fix #61329. | ||||
| 2019-09-05 | Fix test | Esteban Küber | -22/+25 | |
| 2019-09-05 | or-patterns: fix pprust-expr-roundtrip due to AST change. | Mazdak Farrokhzad | -3/+3 | |
| 2019-07-27 | tests: Move run-pass tests without naming conflicts to ui | Vadim Petrochenkov | -0/+230 | |
