| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-09-13 | pprust: Do not print spaces before some tokens | Vadim Petrochenkov | -4/+4 | |
| 2019-08-09 | More explicit diagnostic when using a `vec![]` in a pattern | Esteban Küber | -1/+1 | |
| ``` error: unexpected `(` after qualified path --> $DIR/vec-macro-in-pattern.rs:3:14 | LL | Some(vec![x]) => (), | ^^^^^^^ | | | unexpected `(` after qualified path | in this macro invocation | use a slice pattern here instead | = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) ``` | ||||
| 2019-08-03 | Move special treatment of `derive(Copy, PartialEq, Eq)` from expansion ↵ | Vadim Petrochenkov | -36/+36 | |
| infrastructure to elsewhere | ||||
| 2019-07-27 | tests: Move run-pass tests with naming conflicts to ui | Vadim Petrochenkov | -0/+190 | |
| 2019-07-27 | tests: Move run-pass tests without naming conflicts to ui | Vadim Petrochenkov | -0/+1298 | |
| 2019-07-26 | Introduce built-in macros through libcore | Vadim Petrochenkov | -17/+10 | |
| 2019-07-23 | Normalize use of backticks in compiler messages for libsyntax/* | Samy Kacimi | -1/+1 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-19 | Auto merge of #62684 - petrochenkov:scopevisit, r=davidtwco | bors | -81/+40 | |
| resolve: Improve candidate search for unresolved macro suggestions Use same scope visiting machinery for both collecting suggestion candidates and actually resolving the names. The PR is better read in per-commit fashion with whitespace changes ignored (the first commit in particular moves some code around). This should be the last pre-requisite for https://github.com/rust-lang/rust/pull/62086. r? @davidtwco | ||||
| 2019-07-18 | resolve: Visit all scopes to collect suggestion candidates for unresolved macros | Vadim Petrochenkov | -8/+8 | |
| 2019-07-18 | resolve: Use `feature(custom_attribute)` fallback only if the feature is enabled | Vadim Petrochenkov | -75/+34 | |
| Normally `#![feature(...)]` shouldn't change behavior, but custom attributes in particular are in the process of retirement, and we should not produce a message telling to enable them. It also helps with unifying diagnostics for unresolved macros. | ||||
| 2019-07-17 | normalize use of backticks in compiler messages for librustc/lint | Samy Kacimi | -2/+2 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-15 | Rollup merge of #62646 - estebank:wording, r=petrochenkov | Mark Rousskov | -2/+2 | |
| Tweak wording in feature gate errors | ||||
| 2019-07-15 | pprust: Fix formatting regressions from the previous commits | Vadim Petrochenkov | -1/+1 | |
| Fix some remaining cases of bad formatting Update some failing tests | ||||
| 2019-07-15 | pprust: Use `print_mac_common` for delimited token groups | Vadim Petrochenkov | -11/+11 | |
| 2019-07-13 | review comments | Esteban Küber | -8/+8 | |
| 2019-07-13 | Tweak wording in feature gate errors | Esteban Küber | -10/+10 | |
| 2019-07-11 | pretty-print: Do not lose the `$crate` printing flag in `print_tt` | Vadim Petrochenkov | -10/+10 | |
| 2019-07-11 | Add a regression test for #44692 | Vadim Petrochenkov | -1/+1 | |
| Add a test for the issue resolved by removing `resolve_macro_path` Add a test making sure that extern prelude entries introduced from an opaque macro are not visible anywhere, even it that macro Fix test output after rebase | ||||
| 2019-07-11 | resolve/expand: Catch macro kind mismatches early in resolve | Vadim Petrochenkov | -16/+72 | |
| This way we are processing all of them in a single point, rather than separately for each syntax extension kind. Also, the standard expected/found wording is used. | ||||
| 2019-07-11 | resolve: Make proc macro stubs less stubby | Vadim Petrochenkov | -29/+47 | |
| Create real working and registered (even if dummy) `SyntaxExtension`s for them. This improves error recovery and allows to avoid all special cases for proc macro stubs (except for the error on use, of course). The introduced dummy `SyntaxExtension`s can be used for any other inappropriately resolved macros as well. | ||||
| 2019-07-10 | Rollup merge of #62393 - petrochenkov:notto-disu, r=Mark-Simulacrum | Mazdak Farrokhzad | -8/+153 | |
| Fix pretty-printing of `$crate` (take 4) Pretty-print `$crate` as `crate` or `crate_name` in unstructured tokens like `a $crate c` in `foo!(a $crate c)`, but only if those tokens are printed as a part of AST pretty-printing, rather than as a standalone token stream. Fixes https://github.com/rust-lang/rust/issues/62325 Previous iterations - https://github.com/rust-lang/rust/pull/56647, https://github.com/rust-lang/rust/pull/57155, https://github.com/rust-lang/rust/pull/57915. | ||||
| 2019-07-09 | Add a test case with `$crate` from other crate | Vadim Petrochenkov | -0/+66 | |
| 2019-07-09 | Resolve `$crate` in all hygienic contexts for pretty-pringing | Vadim Petrochenkov | -25/+15 | |
| Stop visiting AST to discover those contexts, just iterate through hygiene data instead | ||||
| 2019-07-09 | Pretty-print `$crate` as `crate`/`::my_crate` in tokens | Vadim Petrochenkov | -8/+8 | |
| ...but only if those tokens are printed from inside of AST pretty-printing. | ||||
| 2019-07-09 | Add a test for `$crate` inside macro invocation | Vadim Petrochenkov | -0/+89 | |
| 2019-07-09 | normalize use of backticks in compiler messages for libsyntax/feature_gate | Samy Kacimi | -39/+39 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-06 | resolve: Reserve cfg/cfg_attr/derive only in attribute sub-namespace | Vadim Petrochenkov | -6/+6 | |
| 2019-07-05 | Rollup merge of #62133 - petrochenkov:norustc, r=eddyb | Mazdak Farrokhzad | -6/+15 | |
| Feature gate `rustc` attributes harder Fixes https://github.com/rust-lang/rust/issues/62116 | ||||
| 2019-07-03 | Migrate compile-pass annotations to build-pass | Yuki Okushi | -11/+11 | |
| 2019-06-30 | Feature gate `rustc` attributes harder | Vadim Petrochenkov | -2/+13 | |
| 2019-06-30 | Make sure `#[rustc_doc_only_macro]` and other rustc attributes are registered | Vadim Petrochenkov | -6/+4 | |
| 2019-06-24 | Address review comments. | Mazdak Farrokhzad | -0/+1 | |
| 2019-06-08 | Remove some more `#![feature(custom_attribute)]`s | Vadim Petrochenkov | -6/+25 | |
| 2019-05-29 | Rollup merge of #61024 - petrochenkov:proctest, r=nikomatsakis | Mazdak Farrokhzad | -525/+475 | |
| tests: Centralize proc macros commonly used for testing Many proc macros in `ui\proc-macro\auxiliary` were doing same things. (I added a fair share of those myself.) Now commonly used macros (empty, identity, etc) are collected in one place - `ui\proc-macro\auxiliary\test-macros.rs`. | ||||
| 2019-05-25 | Reword malformed attribute input diagnostics | Esteban Küber | -45/+43 | |
| - Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser | ||||
| 2019-05-24 | Tweak macro parse errors when reaching EOF during macro call parse | Esteban Küber | -2/+2 | |
| - Add detail on origin of current parser when reaching EOF and stop saying "found <eof>" and point at the end of macro calls - Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error | ||||
| 2019-05-22 | tests: Centralize proc macros commonly used for testing | Vadim Petrochenkov | -525/+475 | |
| 2019-05-11 | Add #[doc(hidden)] attribute on compiler generated proc-macro module. | Mike Boutin | -0/+16 | |
| Stops unavoidable `missing_docs` warning/error on proc-macro crates. Resolves #42008. | ||||
| 2019-04-22 | Remove double trailing newlines | varkor | -2/+0 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -4/+4 | |
| 2019-04-16 | this panic occurs not just on Windows, normalize it away everywhere | Ralf Jung | -6/+6 | |
| 2019-04-15 | normalize away some Windows-only panic printing | Ralf Jung | -3/+15 | |
| 2019-04-11 | Reword tracking issue note | Esteban Küber | -33/+33 | |
| 2019-04-10 | Tweak unstable diagnostic output | Esteban Küber | -33/+66 | |
| 2019-04-05 | Include trailing comma in multiline Debug representation | David Tolnay | -80/+80 | |
| This commit changes the behavior of Formatter::debug_struct, debug_tuple, debug_list, debug_set, and debug_map to render trailing commas in {:#?} mode, which is the dominant style in modern Rust code. Before: Language { name: "Rust", trailing_commas: false } After: Language { name: "Rust", trailing_commas: true, } | ||||
| 2019-03-25 | Auto merge of #59258 - euclio:suggestions-filter-crate, r=oli-obk | bors | -1/+1 | |
| filter suggestions from extern prelude Fixes #59027. Modifies the candidate gathering code to call `filter_fn` on extern crates, which causes them to be filtered out when looking for a type. | ||||
| 2019-03-23 | Mark duplicate import removal suggestion tool only | Esteban Küber | -1/+0 | |
| 2019-03-23 | Tweak unnecessary import suggestion | Esteban Küber | -8/+6 | |
| 2019-03-18 | filter suggestions from extern prelude | Andy Russell | -1/+1 | |
| 2019-03-16 | syntax: Introduce `Ident::can_be_raw` | Vadim Petrochenkov | -1/+1 | |
