Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | internal: refactor mismatched args count diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -250/+274 | |
| | ||||||
* | internal: refactor missing unsafe diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -84/+103 | |
| | ||||||
* | internal: refactor BreakOutsideOfLoop diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -10/+32 | |
| | ||||||
* | internal: refactor NoSuchField diagnostic | Aleksey Kladov | 2021-06-13 | 3 | -290/+297 | |
| | ||||||
* | internal: refactor unimplemented builtin macro diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -5/+21 | |
| | ||||||
* | minor: simplify | Aleksey Kladov | 2021-06-13 | 6 | -35/+18 | |
| | ||||||
* | internal: check diagnostics in all files and not just the first one | Aleksey Kladov | 2021-06-13 | 5 | -41/+46 | |
| | ||||||
* | internal: remove def-level diagnostics tests | Aleksey Kladov | 2021-06-13 | 1 | -0/+12 | |
| | ||||||
* | internal: refactor macro error | Aleksey Kladov | 2021-06-13 | 2 | -0/+165 | |
| | ||||||
* | internal: refactor unresolved proc macro diagnostic | Aleksey Kladov | 2021-06-13 | 3 | -11/+42 | |
| | ||||||
* | internal: refactor inactive code diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -17/+126 | |
| | ||||||
* | internal: refactor unresolved macro call diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -26/+75 | |
| | ||||||
* | internal: refactor unresolved import diagnostic | Aleksey Kladov | 2021-06-13 | 3 | -29/+121 | |
| | ||||||
* | internal: refactor unresolved extern crate diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -0/+52 | |
| | ||||||
* | internal: unified missing fields diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -24/+25 | |
| | ||||||
* | internal: move missing_fields diagnostics | Aleksey Kladov | 2021-06-13 | 4 | -53/+78 | |
| | ||||||
* | internal: start new diagnostics API | Aleksey Kladov | 2021-06-13 | 3 | -34/+82 | |
| | | | | | | | | | | | | | | | | | | At the moment, this moves only a single diagnostic, but the idea is reafactor the rest to use the same pattern. We are going to have a single file per diagnostic. This file will define diagnostics code, rendering range and fixes, if any. It'll also have all of the tests. This is similar to how we deal with assists. After we refactor all diagnostics to follow this pattern, we'll probably move them to a new `ide_diagnostics` crate. Not that we intentionally want to test all diagnostics on this layer, despite the fact that they are generally emitted in the guts on the compiler. Diagnostics care to much about the end presentation details/fixes to be worth-while "unit" testing. So, we'll unit-test only the primary output of compilation process (types and name res tables), and will use integrated UI tests for diagnostics. | |||||
* | minor: put a mark back | Aleksey Kladov | 2021-06-13 | 1 | -0/+1 | |
| | ||||||
* | cargo fmt | Maan2003 | 2021-06-13 | 1 | -5/+3 | |
| | ||||||
* | clippy::useless_return | Maan2003 | 2021-06-13 | 3 | -4/+4 | |
| | ||||||
* | clippy::redundant_closure | Maan2003 | 2021-06-13 | 2 | -2/+2 | |
| | ||||||
* | clippy::clone_on_copy | Maan2003 | 2021-06-13 | 3 | -3/+3 | |
| | ||||||
* | clippy::redudant_borrow | Maan2003 | 2021-06-13 | 18 | -51/+51 | |
| | ||||||
* | internal: cross-crate cov-marks | Aleksey Kladov | 2021-06-12 | 1 | -0/+2 | |
| | ||||||
* | internal: move diagnostics infra to hir | Aleksey Kladov | 2021-06-12 | 1 | -0/+354 | |
| | ||||||
* | Move some hir_ty diagnostics to hir | Aleksey Kladov | 2021-06-12 | 1 | -1/+1303 | |
| | ||||||
* | internal: move missing unsafe diagnostic to hir | Aleksey Kladov | 2021-06-12 | 1 | -0/+84 | |
| | ||||||
* | internal: move inference diagnostics to hir | Aleksey Kladov | 2021-06-12 | 1 | -1/+140 | |
| | ||||||
* | Highlight tuple field accesses correctly | Lukas Wirth | 2021-06-11 | 3 | -4/+7 | |
| | ||||||
* | Merge #9219 | bors[bot] | 2021-06-11 | 1 | -2/+2 | |
|\ | | | | | | | | | | | | | | | 9219: minor: Replace some AssocItem::containing_trait calls trait_or_trait_impl r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Replace some AssocItem::containing_trait calls trait_or_trait_impl | Lukas Wirth | 2021-06-11 | 1 | -2/+2 | |
| | | ||||||
* | | Merge #9218 | bors[bot] | 2021-06-11 | 1 | -1/+164 | |
|\| | | | | | | | | | | | | | | | 9218: Item search now respects trait impl items r=Veykril a=Veykril Fixes #2977 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Item search now respects trait impl items | Lukas Wirth | 2021-06-11 | 1 | -1/+164 | |
| | | ||||||
* | | Update ungrammar | Jonas Schievink | 2021-06-11 | 1 | -1/+1 | |
| | | ||||||
* | | Populate import maps eagerly | Kirill Bulatov | 2021-06-10 | 1 | -3/+4 | |
| | | ||||||
* | | Don't classify attributes on macro-calls are the macro itself | Lukas Wirth | 2021-06-09 | 1 | -0/+20 | |
|/ | ||||||
* | Merge #9191 | bors[bot] | 2021-06-09 | 2 | -0/+10 | |
|\ | | | | | | | | | | | | | | | 9191: fix: Don't descend MacroCall TokenTree delimiters r=jonas-schievink a=Veykril Fixes #9190 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Don't descend MacroCall TokenTree delimiters | Lukas Wirth | 2021-06-09 | 2 | -0/+10 | |
| | | ||||||
* | | Prefer attr macros in "expand macro recursively" | Jonas Schievink | 2021-06-08 | 1 | -20/+14 | |
|/ | ||||||
* | Merge #9169 | bors[bot] | 2021-06-07 | 2 | -7/+57 | |
|\ | | | | | | | | | | | | | | | | | | | 9169: internal: steps towards attribute macro token mapping r=jonas-schievink a=jonas-schievink This doesn't work yet, but we seem to be getting a bit further along (for example, we now stop highlighting `use` items inside item with attribute macros as if they were written verbatim). bors r+ Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Attempt to track attr macros during highlighting | Jonas Schievink | 2021-06-07 | 1 | -0/+30 | |
| | | ||||||
| * | Make "expand macro" command work with attribute macros | Jonas Schievink | 2021-06-07 | 1 | -7/+27 | |
| | | ||||||
* | | feat: goto def on impl items also goes to the defn in the trait | Jade | 2021-06-07 | 1 | -18/+56 | |
| | | | | | | | | | | It was trivial to extend this to associated consts/associated types and I just didn't think of it. | |||||
* | | feat: goto definition on an impl fn goes to that fn in the trait | Jade | 2021-06-07 | 1 | -3/+48 | |
|/ | | | | | | | e.g. if you have a trait T and `impl T for S` for some struct, if you goto definition on some function name inside the impl, it will go to the definition of that function inside the `trait T` block, rather than the current behaviour of not going anywhere at all. | |||||
* | Merge #9149 | bors[bot] | 2021-06-05 | 1 | -3/+49 | |
|\ | | | | | | | | | | | | | | | | | | | 9149: feat: Support goto-definition for include macros input path r=Veykril a=Veykril ![0l6l9iWPNE](https://user-images.githubusercontent.com/3757771/120891155-3fa85800-c607-11eb-9b20-7ac330dceb4b.gif) Fixes #5871 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Support goto-definition for include macro paths | Lukas Wirth | 2021-06-05 | 1 | -3/+49 | |
| | | ||||||
* | | Prevent renaming of aliases on usages | Lukas Wirth | 2021-06-05 | 1 | -1/+32 | |
|/ | ||||||
* | Merge #9138 | bors[bot] | 2021-06-04 | 1 | -12/+133 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 9138: feat: Implement hover for lints r=Veykril a=Veykril fixes https://github.com/rust-analyzer/rust-analyzer/issues/8857, fixes https://github.com/rust-analyzer/rust-analyzer/issues/3941 ![URXBanNxYe](https://user-images.githubusercontent.com/3757771/120830905-4bd8da80-c55f-11eb-9f55-ff5a321726fa.gif) We also generate the default lints(and lint groups 🎉) instead now by invoking `rustc -W help` and parsing the output from that. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Replace `-` with `_` in generated lint names | Lukas Wirth | 2021-06-04 | 1 | -6/+4 | |
| | | ||||||
| * | Generate default lint completions | Lukas Wirth | 2021-06-04 | 1 | -15/+60 | |
| | |