| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-06-16 | diagnostics: fix trailing space | klensy | -68/+68 | |
| 2022-06-14 | suggest adding a `#[macro_export]` to a private macro | Takayuki Maeda | -4/+4 | |
| 2022-05-21 | Remove `crate` visibility modifier in libs, tests | Jacob Pratt | -26/+26 | |
| 2022-05-12 | Auto merge of #96150 - est31:unused_macro_rules, r=petrochenkov | bors | -2/+2 | |
| Implement a lint to warn about unused macro rules This implements a new lint to warn about unused macro rules (arms/matchers), similar to the `unused_macros` lint added by #41907 that warns about entire macros. ```rust macro_rules! unused_empty { (hello) => { println!("Hello, world!") }; () => { println!("empty") }; //~ ERROR: 1st rule of macro `unused_empty` is never used } fn main() { unused_empty!(hello); } ``` Builds upon #96149 and #96156. Fixes #73576 | ||||
| 2022-05-07 | Add test. | Camille GILLOT | -0/+48 | |
| 2022-05-05 | Allow unused rules in the testsuite where the lint triggers | est31 | -2/+2 | |
| 2022-04-03 | Improve method name suggestions | Oliver Downard | -0/+4 | |
| Attempts to improve method name suggestions when a matching method name is not found. The approach taken is use the Levenshtein distance and account for substrings having a high distance but can sometimes be very close to the intended method (eg. empty vs is_empty). | ||||
| 2022-03-25 | resolve: Do not build expensive suggestions if they are not actually used | Vadim Petrochenkov | -190/+19 | |
| Also remove a redundant parameter from `fn resolve_path(_with_ribs)`, `crate_lint: CrateLint` is a more detailed version of `record_used: bool` with `CrateLint::No` meaning `false` and anything else meaning `true`. | ||||
| 2022-03-04 | Rollup merge of #94595 - ↵ | Dylan DPC | -0/+15 | |
| TaKO8Ki:fix-invalid-unresolved-imports-errors-for-asterisk-wildcard-syntax, r=estebank Fix invalid `unresolved imports` errors for a single-segment import closes #90248 | ||||
| 2022-03-04 | fix invalid `unresolved imports` errors the asterisk wildcard syntax causes | Takayuki Maeda | -0/+15 | |
| use a path variabale | ||||
| 2022-03-03 | Cleanup feature gates. | Camille GILLOT | -4/+2 | |
| 2022-01-27 | Improve suggestion for escaping reserved keywords | Noah Lev | -2/+2 | |
| 2022-01-23 | Remove deduplication of early lints | Aaron Hill | -14/+269 | |
| We already have a general mechanism for deduplicating reported lints, so there's no need to have an additional one for early lints specifically. This allows us to remove some `PartialEq` impls. | ||||
| 2021-12-01 | Improve suggestion for extern crate self error message | Michael | -4/+20 | |
| 2021-11-20 | Clarify error messages caused by re-exporting `pub(crate)` visibility to outside | Ken Matsui | -2/+2 | |
| 2021-10-30 | Add #[must_use] to remaining std functions (A-N) | John Kugelman | -4/+4 | |
| 2021-10-25 | Edit error messages for rustc_resolve::AmbiguityKind variants | pierwill | -10/+20 | |
| Emit description of the ambiguity as a note. Co-authored-by: Noah Lev <camelidcamel@gmail.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | ||||
| 2021-10-17 | Rollup merge of #89738 - eddyb:extern-crate-recursion, r=nagisa | Matthias Krüger | -0/+66 | |
| ty::pretty: prevent infinite recursion for `extern crate` paths. Fixes #55779, fixes #87932. This fix is based on `@estebank's` idea in https://github.com/rust-lang/rust/issues/55779#issuecomment-614758510 - but instead of trying to get `try_print_visible_def_path_recur`'s cycle detection to work in this case, this PR "just" disables the "visible path" feature when printing the path to an `extern crate`, so that the old recursion chain of `try_print_visible_def_path -> print_def_path -> try_print_visible_def_path`, is now impossible. Both tests have been confirmed to crash `rustc` because of a stack overflow, without the fix. | ||||
| 2021-10-15 | Bless tests | Cameron Steffen | -2/+2 | |
| 2021-10-10 | ty::pretty: prevent infinite recursion for `extern crate` paths. | Eduard-Mihai Burtescu | -0/+66 | |
| 2021-09-02 | Bless tests. | Camille GILLOT | -2/+4 | |
| 2021-08-11 | Modify structured suggestion output | Esteban Küber | -137/+205 | |
| * On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span | ||||
| 2021-06-25 | Address PR feedback | Ryan Levick | -139/+135 | |
| 2021-06-25 | Change how edition based future compatibility warnings are handled | Ryan Levick | -107/+107 | |
| 2021-05-12 | Show macro name in 'this error originates in macro' message | Aaron Hill | -2/+2 | |
| When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error. | ||||
| 2021-05-04 | Auto merge of #83213 - rylev:update-lints-to-errors, r=nikomatsakis | bors | -40/+4 | |
| Update BARE_TRAIT_OBJECT and ELLIPSIS_INCLUSIVE_RANGE_PATTERNS to errors in Rust 2021 This addresses https://github.com/rust-lang/rust/pull/81244 by updating two lints to errors in the Rust 2021 edition. r? `@estebank` | ||||
| 2021-04-23 | Tweak suggestion output | Esteban Küber | -0/+6 | |
| 2021-04-16 | Fix tests | Ryan Levick | -40/+4 | |
| 2020-05-07 | reword "possible candidate" import suggestion | Andy Russell | -1/+1 | |
| 2020-04-23 | Moving more build-pass tests to check-pass | Val Markovic | -7/+7 | |
| One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277 | ||||
| 2020-04-11 | rustc: Add a warning count upon completion | RoccoDev | -0/+10 | |
| 2020-03-07 | resolve: `directive` -> `import` | Vadim Petrochenkov | -2/+2 | |
| 2020-02-06 | rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. | Eduard-Mihai Burtescu | -0/+4 | |
| 2020-01-24 | Normalise notes with the/is | varkor | -19/+19 | |
| 2020-01-09 | Update tests | Vadim Petrochenkov | -3/+42 | |
| 2019-11-10 | Make error and warning annotations mandatory in UI tests | Tomasz Miąsko | -10/+20 | |
| This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations. | ||||
| 2019-11-04 | Use check-pass in ui tests where appropriate | Tomasz Miąsko | -1/+1 | |
| 2019-10-24 | Increase spacing for suggestions in diagnostics | Esteban Küber | -0/+69 | |
| Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages. | ||||
| 2019-10-13 | Bring attention to suggestions when the only difference is capitalization | Esteban Küber | -1/+1 | |
| 2019-09-30 | Fixed grammar in one diagnostic and blessed tests. | Alexander Regueiro | -3/+3 | |
| 2019-09-09 | Rollup merge of #64054 - estebank:unused-import-is-to-eager, r=petrochenkov | Mazdak Farrokhzad | -4/+4 | |
| Always emit unresolved import errors and hide unused import lint Fix https://github.com/rust-lang/rust/issues/63724. r? @petrochenkov | ||||
| 2019-09-08 | Give method not found a primary span label | Esteban Küber | -3/+3 | |
| 2019-09-08 | Always emit unresolved import errors and hide unused import lint | Esteban Küber | -4/+4 | |
| 2019-08-10 | diagnostics: Describe crate root modules in `DefKind::Mod` as "crate" | Vadim Petrochenkov | -10/+10 | |
| 2019-08-09 | Deprecate `try!` macro | BO41 | -1/+3 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Oliver Middleton <olliemail27@gmail.com> | ||||
| 2019-07-26 | Introduce built-in macros through libcore | Vadim Petrochenkov | -14/+7 | |
| 2019-07-17 | normalize use of backticks in compiler messages for librustc/lint | Samy Kacimi | -8/+8 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-03 | Migrate compile-pass annotations to build-pass | Yuki Okushi | -16/+16 | |
| 2019-06-18 | Improve the explicit_outlives_requirements lint | Matthew Jasper | -413/+3194 | |
| * Don't use Strings to compare parameters * Extend the lint to lifetime bounds * Extend the lint to enums and unions * Use the correct span for where clauses in tuple structs * Try to early-out where possible | ||||
| 2019-04-25 | Do not suggest use over extern crate w/ alias. | David Wood | -18/+20 | |
| This commit stops `unused_extern_crates` lints from occuring on `extern crate` statements that alias the crate as the suggestion to change to a `use` statement would result in the aliased name no longer being added to the prelude, thereby causing compilation errors if other imports expected this to be the case. | ||||
