| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-04 | Structured `use` suggestion on privacy error | Esteban Küber | -3/+48 | |
| When encoutering a privacy error on an item through a re-export that is accessible in an alternative path, provide a structured suggestion with that path. ``` error[E0603]: module import `mem` is private --> $DIR/private-std-reexport-suggest-public.rs:4:14 | LL | use foo::mem; | ^^^ private module import | note: the module import `mem` is defined here... --> $DIR/private-std-reexport-suggest-public.rs:8:9 | LL | use std::mem; | ^^^^^^^^ note: ...and refers to the module `mem` which is defined here --> $SRC_DIR/std/src/lib.rs:LL:COL | = note: you could import this help: import `mem` through the re-export | LL | use std::mem; | ~~~~~~~~ ``` Fix #42909. | ||||
| 2023-12-01 | vis note for no pub reexports glob import | bohan | -2/+44 | |
| 2023-11-24 | Show number in error message even for one error | Nilstrieb | -58/+58 | |
| Co-authored-by: Adrian <adrian.iosdev@gmail.com> | ||||
| 2023-10-26 | Tweak suggestion spans for invalid crate-level inner attribute | Esteban Küber | -2/+3 | |
| CC #89566. | ||||
| 2023-10-25 | Rollup merge of #117009 - fmease:diag-disambig-sugg-crate, r=b-naber | Matthias Krüger | -6/+6 | |
| On unresolved imports, suggest a disambiguated path if necessary to avoid collision with local items Fixes #116970. | ||||
| 2023-10-22 | use visibility to check unused imports and delete some stmts | bohan | -12/+72 | |
| 2023-10-21 | on unresolved import disambiguate suggested path if it would collide | León Orell Valerian Liehr | -6/+6 | |
| 2023-10-05 | Add a note to duplicate diagnostics | Alex Macleod | -0/+3 | |
| 2023-09-13 | resolve: determined binding after parent module macro expand | bohan | -69/+136 | |
| 2023-08-31 | fix(resolve): update def if binding is warning ambiguity | bohan | -1/+1 | |
| 2023-08-02 | Rollup merge of #114166 - Enselic:libc-unavailable, r=Nilstrieb | Nilstrieb | -0/+22 | |
| Add regression test for resolving `--extern libc=test.rlib` Closes #26043 I could not find a test for this particular use case. The closest I got was [`tests/ui/imports/issue-37887.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/imports/issue-37887.rs), but that is a regression test for a different use case (see https://github.com/rust-lang/rust/issues/37887). | ||||
| 2023-07-31 | Rollup merge of #113920 - bvanjoi:fix-81413, r=petrochenkov | Matthias Krüger | -0/+34 | |
| fix(resolve): report unresolved imports firstly Fixes #81413 An easy fix, r? ```@petrochenkov``` | ||||
| 2023-07-29 | Add regression test for resolving `--extern libc=test.rlib` | Martin Nordholts | -0/+22 | |
| I could not find a test for this particular use case. The closest I got was `tests/ui/imports/issue-37887.rs`, but that is a regression test for a different use case. | ||||
| 2023-07-29 | fix(resolve): update the ambiguity glob binding as warning recursively | bohan | -7/+1257 | |
| 2023-07-29 | fix(resolve): report unresolved imports firstly | bohan | -0/+34 | |
| 2023-07-25 | fix(resolve): skip panic when resolution is dummy | bohan | -0/+15 | |
| 2023-07-01 | fix(resolve): skip assertion judgment when `NonModule` is dummy | bohan | -0/+27 | |
| 2023-06-29 | resolve: Remove artificial import ambiguity errors | Vadim Petrochenkov | -8/+12 | |
| 2023-05-27 | Add warn-by-default lint for local binding shadowing exported glob re-export ↵ | 许杰友 Jieyou Xu (Joe) | -3/+4 | |
| item | ||||
| 2023-05-23 | fix(resolve): not defined `extern crate shadow_name` | bohan | -0/+28 | |
| 2023-05-18 | fix(resolve): replace bindings to dummy for unresolved imports | bohan | -0/+21 | |
| 2023-04-12 | Special-case item attributes in the suggestion output | Esteban Küber | -6/+0 | |
| 2023-04-12 | Tweak output for 'add line' suggestion | Esteban Küber | -6/+12 | |
| 2023-04-03 | remove invalid ignore-pretty | Pietro Albini | -1/+0 | |
| 2023-03-23 | Rollup merge of #109487 - GuillaumeGomez:move-useless-reexport-check, ↵ | Matthias Krüger | -4/+4 | |
| r=petrochenkov Move useless_anynous_reexport lint into unused_imports As mentioned in https://github.com/rust-lang/rust/pull/109003, this check should have been merged with `unused_imports` in the start. r? `@petrochenkov` | ||||
| 2023-03-23 | Rollup merge of #107880 - jieyouxu:issue-107563, r=petrochenkov | Matthias Krüger | -7/+10 | |
| Lint ambiguous glob re-exports Attempts to fix #107563. We currently already emit errors for ambiguous re-exports when two names are re-exported *specifically*, i.e. not from glob exports. This PR attempts to emit deny-by-default lints for ambiguous glob re-exports. | ||||
| 2023-03-22 | Move useless_anynous_reexport lint into unused_imports | Guillaume Gomez | -4/+4 | |
| 2023-03-20 | Lint ambiguous glob re-exports | 许杰友 Jieyou Xu (Joe) | -7/+10 | |
| 2023-03-12 | Update failing ui tests | Guillaume Gomez | -4/+4 | |
| 2023-01-28 | Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank | bors | -1/+1 | |
| Remove overlapping parts of multipart suggestions This PR adds a debug assertion that the parts of a single substitution cannot overlap, fixes a overlapping substitution from the testsuite, and fixes https://github.com/rust-lang/rust/issues/106870. Note that a single suggestion can still have multiple overlapping substitutions / possible edits, we just don't suggest overlapping replacements in a single edit anymore. I've also included a fix for an unrelated bug where rustfix for `explicit_outlives_requirements` would produce multiple trailing commas for a where clause. | ||||
| 2023-01-20 | diagnostics: add `};` only if `{` was added too | Michael Howell | -0/+55 | |
| 2023-01-20 | diagnostics: suggest changing `s@self::{macro}@::macro` for exported | Michael Howell | -0/+49 | |
| Fixes #99695 | ||||
| 2023-01-20 | preserve delim spans during `macro_rules!` expansion if able | Lukas Markeffsky | -1/+1 | |
| 2023-01-17 | note -> help | Michael Goulet | -3/+3 | |
| 2023-01-17 | Fix use suggestion span | Michael Goulet | -7/+7 | |
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -0/+5608 | |
