| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-01-11 | {syntax -> rustc_ast_passes}::feature_gate | Mazdak Farrokhzad | -730/+0 | |
| 2020-01-11 | get_features -> rustc_parse::config | Mazdak Farrokhzad | -171/+4 | |
| 2020-01-11 | gating diagnostics -> rustc_session::parse | Mazdak Farrokhzad | -69/+4 | |
| 2020-01-11 | Rollup merge of #68050 - Centril:canon-error, r=Mark-Simulacrum | Yuki Okushi | -1/+1 | |
| Canonicalize rustc_error imports r? @Mark-Simulacrum | ||||
| 2020-01-10 | nix syntax::errors & prefer rustc_errors over errors | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-10 | Introduce `#![feature(half_open_range_patterns)]`. | Mazdak Farrokhzad | -0/+1 | |
| This feature adds `X..`, `..X`, and `..=X` patterns. | ||||
| 2020-01-09 | Add `const_trait_bound_opt_out` feature gate | Dylan MacKenzie | -0/+1 | |
| 2020-01-09 | Add `const_trait_impl` feature gate | Dylan MacKenzie | -0/+1 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -17/+11 | |
| - remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors | ||||
| 2020-01-05 | Add backticks to various diagnostics | varkor | -2/+2 | |
| 2020-01-02 | Normalize `syntax::edition` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -10/+9 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -178/+269 | |
| 2019-12-20 | Rollup merge of #67131 - Centril:item-merge, r=petrochenkov | Mazdak Farrokhzad | -22/+20 | |
| Merge `TraitItem` & `ImplItem into `AssocItem` In this PR we: - Merge `{Trait,Impl}Item{Kind?}` into `AssocItem{Kind?}` as discussed in https://github.com/rust-lang/rust/issues/65041#issuecomment-538105286. - This is done by using the cover grammar of both forms. - In particular, it requires that we syntactically allow (under `#[cfg(FALSE)]`): - `default`ness on `trait` items, - `impl` items without a body / definition (`const`, `type`, and `fn`), - and associated `type`s in `impl`s with bounds, e.g., `type Foo: Ord;`. - The syntactic restrictions are replaced by semantic ones in `ast_validation`. - Move syntactic restrictions around C-variadic parameters from the parser into `ast_validation`: - `fn`s in all contexts now syntactically allow `...`, - `...` can occur anywhere in the list syntactically (`fn foo(..., x: usize) {}`), - and `...` can be the sole parameter (`fn foo(...) {}`. r? @petrochenkov | ||||
| 2019-12-14 | Revert "Stabilize the `never_type`, written `!`." | Niko Matsakis | -0/+18 | |
| This reverts commit 15c30ddd69d6cc3fffe6d304c6dc968a5ed046f1. | ||||
| 2019-12-12 | `AssocImplKind::{Method -> Fn}`. | Mazdak Farrokhzad | -2/+2 | |
| 2019-12-12 | Remove `ast::{Impl,Trait}{Item,ItemKind}`. | Mazdak Farrokhzad | -3/+3 | |
| 2019-12-12 | Unify assoc item visitors more. | Mazdak Farrokhzad | -18/+14 | |
| 2019-12-12 | Unify associated item visitor. | Mazdak Farrokhzad | -2/+2 | |
| 2019-12-12 | Unify `{Trait,Impl}ItemKind::TyAlias` structures. | Mazdak Farrokhzad | -2/+4 | |
| 2019-12-12 | `TraitItemKind::Type` -> `TraitItemKind::TyAlias`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-30 | derive(Default) for Features | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-30 | move GateIssue to rustc_feature & simplify emit_feature_err | Mazdak Farrokhzad | -43/+11 | |
| 2019-11-30 | check.rs: inline a constant | Mazdak Farrokhzad | -4/+4 | |
| 2019-11-30 | move UnstableFeatures -> rustc_feature | Mazdak Farrokhzad | -38/+2 | |
| 2019-11-30 | inline two explanation constants | Mazdak Farrokhzad | -6/+0 | |
| 2019-11-30 | builtin_attrs.rs -> rustc_feature | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-30 | builtin_attrs: inline some strings | Mazdak Farrokhzad | -5/+0 | |
| 2019-11-30 | move Stability to rustc_feature | Mazdak Farrokhzad | -8/+0 | |
| 2019-11-30 | introduce crate rustc_feature and move active, accepted, and removed to it | Mazdak Farrokhzad | -3/+2 | |
| 2019-11-26 | Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC | Tyler Mandry | -3/+2 | |
| Various tweaks to diagnostic output | ||||
| 2019-11-25 | Tweak removed feature error | Esteban Küber | -3/+2 | |
| 2019-11-24 | Parse and feature gate raw address of expressions | Matthew Jasper | -0/+1 | |
| 2019-11-21 | Stabilize the `never_type`, written `!`. | Mazdak Farrokhzad | -18/+0 | |
| 2019-11-16 | ast: Keep string literals in ABIs precisely | Vadim Petrochenkov | -3/+3 | |
| 2019-11-16 | ast: Keep `extern` qualifiers in functions more precisely | Vadim Petrochenkov | -4/+12 | |
| 2019-11-15 | Rollup merge of #66197 - Centril:transparent-ast, r=varkor | Tyler Mandry | -20/+26 | |
| Push `ast::{ItemKind, ImplItemKind}::OpaqueTy` hack down into lowering We currently have a hack in the form of `ast::{ItemKind, ImplItemKind}::OpaqueTy` which is constructed literally when you write `type Alias = impl Trait;` but not e.g. `type Alias = Vec<impl Trait>;`. Per https://github.com/rust-lang/rfcs/pull/2515, this needs to change to allow `impl Trait` in nested positions. This PR achieves this change for the syntactic aspect but not the semantic one, which will require changes in lowering and def collection. In the interim, `TyKind::opaque_top_hack` is introduced to avoid knock-on changes in lowering, collection, and resolve. These hacks can then be removed and fixed one by one until the desired semantics are supported. r? @varkor | ||||
| 2019-11-14 | TAIT: feature gate recursive locations | Mazdak Farrokhzad | -20/+26 | |
| 2019-11-14 | Update to use new librustc_error_codes library | Guillaume Gomez | -0/+3 | |
| 2019-11-11 | support issue = "none" in unstable attributes | Ross MacArthur | -15/+16 | |
| - Use `Option<NonZeroU32>` to represent issue numbers. | ||||
| 2019-11-09 | move attr meta grammar to parse::validate_atr + ast_validation | Mazdak Farrokhzad | -20/+3 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-07 | Rollup merge of #65974 - Centril:matcher-friendly-gating, r=petrochenkov | Mazdak Farrokhzad | -7/+5 | |
| A scheme for more macro-matcher friendly pre-expansion gating Pre-expansion gating will now avoid gating macro matchers that did not result in `Success(...)`. That is, the following is now OK despite `box 42` being a valid `expr` and that form being pre-expansion gated: ```rust macro_rules! m { ($e:expr) => { 0 }; // This fails on the input below due to `, foo`. (box $e:expr, foo) => { 1 }; // Successful matcher, we should get `2`. } fn main() { assert_eq!(1, m!(box 42, foo)); } ``` Closes https://github.com/rust-lang/rust/issues/65846. r? @petrochenkov cc @Mark-Simulacrum | ||||
| 2019-11-07 | parser: don't hardcode ABIs into grammar | Mazdak Farrokhzad | -28/+35 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -1/+2 | |
| `AttrKind` is a new type with two variants, `Normal` and `DocComment`. It's a big performance win (over 10% in some cases) because `DocComment` lets doc comments (which are common) be represented very cheaply. `Attribute` gets some new helper methods to ease the transition: - `has_name()`: check if the attribute name matches a single `Symbol`; for `DocComment` variants it succeeds if the symbol is `sym::doc`. - `is_doc_comment()`: check if it has a `DocComment` kind. - `{get,unwrap}_normal_item()`: extract the item from a `Normal` variant; panic otherwise. Fixes #60935. | ||||
| 2019-11-06 | Remove unnecessary `Deref` impl for `Attribute`. | Nicholas Nethercote | -1/+1 | |
| This kind of thing just makes the code harder to read. | ||||
| 2019-11-06 | rollback gating for failing macro matchers | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-06 | revamp pre-expansion gating infra | Mazdak Farrokhzad | -6/+4 | |
