Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
* | internal: kill diagnostic sink | Aleksey Kladov | 2021-06-13 | 3 | -135/+6 | |
| | ||||||
* | internal: use cov-mark rather than bailing out diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -45/+6 | |
| | ||||||
* | internal: refactor missing match arms diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -23/+9 | |
| | ||||||
* | internal: refactor incorrect case diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -36/+11 | |
| | ||||||
* | internal: refactor find_map diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -22/+8 | |
| | ||||||
* | internal: refactor missing or or some diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -34/+3 | |
| | ||||||
* | internal: refactor remove this semicolon diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -24/+3 | |
| | ||||||
* | internal: refactor mismatched args count diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -30/+5 | |
| | ||||||
* | internal: refactor missing unsafe diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -23/+3 | |
| | ||||||
* | internal: refactor BreakOutsideOfLoop diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -22/+4 | |
| | ||||||
* | internal: refactor NoSuchField diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -24/+3 | |
| | ||||||
* | internal: refactor unimplemented builtin macro diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -26/+12 | |
| | ||||||
* | internal: refactor macro error | Aleksey Kladov | 2021-06-13 | 2 | -33/+13 | |
| | ||||||
* | internal: refactor unresolved proc macro diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -50/+17 | |
| | ||||||
* | internal: refactor inactive code diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -41/+15 | |
| | ||||||
* | internal: refactor unresolved macro call diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -38/+19 | |
| | ||||||
* | internal: refactor unresolved import diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -26/+6 | |
| | ||||||
* | internal: refactor unresolved extern crate diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -25/+8 | |
| | ||||||
* | internal: unified missing fields diagnostic | Aleksey Kladov | 2021-06-13 | 2 | -107/+62 | |
| | ||||||
* | internal: move missing_fields diagnostics | Aleksey Kladov | 2021-06-13 | 2 | -56/+20 | |
| | ||||||
* | internal: start new diagnostics API | Aleksey Kladov | 2021-06-13 | 2 | -34/+37 | |
| | | | | | | | | | | | | | | | | | | 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. | |||||
* | clippy::clone_on_copy | Maan2003 | 2021-06-13 | 1 | -1/+1 | |
| | ||||||
* | clippy::redudant_borrow | Maan2003 | 2021-06-13 | 3 | -9/+9 | |
| | ||||||
* | internal: move diagnostics infra to hir | Aleksey Kladov | 2021-06-12 | 3 | -17/+159 | |
| | ||||||
* | Move some hir_ty diagnostics to hir | Aleksey Kladov | 2021-06-12 | 2 | -17/+421 | |
| | ||||||
* | minor: optimize | Aleksey Kladov | 2021-06-12 | 2 | -3/+5 | |
| | | | | | We shouldn't be looking at the source map unless we actually have diagnostics. | |||||
* | internal: move missing unsafe diagnostic to hir | Aleksey Kladov | 2021-06-12 | 2 | -4/+40 | |
| | ||||||
* | internal: move inference diagnostics to hir | Aleksey Kladov | 2021-06-12 | 2 | -4/+72 | |
| | ||||||
* | Merge #9218 | bors[bot] | 2021-06-11 | 1 | -0/+14 | |
|\ | | | | | | | | | | | | | | | 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 | -0/+14 | |
| | | ||||||
* | | Add more profiling for flyimports | Kirill Bulatov | 2021-06-10 | 1 | -0/+4 | |
|/ | ||||||
* | Implement dummy expansions for builtin attributes | Lukas Wirth | 2021-06-09 | 1 | -0/+1 | |
| | ||||||
* | Merge #9191 | bors[bot] | 2021-06-09 | 1 | -2/+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 | 1 | -2/+10 | |
| | | ||||||
| | | ||||||
| \ | ||||||
*-. \ | Merge #9181 #9182 | bors[bot] | 2021-06-08 | 2 | -1/+21 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9181: Don't complete values in type position r=jonas-schievink a=Veykril Will add some proper tests in a bit 9182: fix: don't complete derive macros as fn-like macros r=jonas-schievink a=jonas-schievink Part of https://github.com/rust-analyzer/rust-analyzer/issues/8518 bors r+ Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Jonas Schievink <[email protected]> | |||||
| | * | | fix: don't complete derive macros as fn-like macros | Jonas Schievink | 2021-06-08 | 1 | -0/+7 | |
| | |/ | ||||||
| * / | Don't complete values in type position | Lukas Wirth | 2021-06-08 | 2 | -1/+14 | |
| |/ | ||||||
* / | source_to_def: skip items with no def | Jonas Schievink | 2021-06-08 | 1 | -50/+56 | |
|/ | ||||||
* | Merge #9169 | bors[bot] | 2021-06-07 | 2 | -20/+87 | |
|\ | | | | | | | | | | | | | | | | | | | 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/+10 | |
| | | ||||||
| * | Make "expand macro" command work with attribute macros | Jonas Schievink | 2021-06-07 | 1 | -0/+16 | |
| | | ||||||
| * | Handle attribute macros in `descend_into_macros` | Jonas Schievink | 2021-06-06 | 2 | -20/+61 | |
| | | ||||||
* | | feat: goto definition on an impl fn goes to that fn in the trait | Jade | 2021-06-07 | 1 | -4/+5 | |
|/ | | | | | | | 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. | |||||
* | Expand procedural attribute macros | Jonas Schievink | 2021-06-03 | 1 | -1/+15 | |
| | ||||||
* | Merge #8866 | bors[bot] | 2021-05-31 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | 8866: Update salsa r=matklad a=jonas-schievink This updates salsa to include https://github.com/salsa-rs/salsa/pull/265, and removes all cancellation-related code from rust-analyzer Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Update salsa | Jonas Schievink | 2021-05-27 | 1 | -1/+1 | |
| | | ||||||
* | | Diagnose unimplemented built-in macros | Jonas Schievink | 2021-05-30 | 2 | -2/+34 | |
| | | ||||||
* | | Thread proc-macro types through the HIR | Jonas Schievink | 2021-05-29 | 1 | -5/+13 | |
| | | ||||||
* | | Don't store supertraits in ItemTree | Laurențiu Nicola | 2021-05-27 | 1 | -4/+0 | |
|/ | ||||||
* | Merge #8997 | bors[bot] | 2021-05-27 | 1 | -20/+6 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | 8997: internal: stop expanding UseTrees during ItemTree lowering r=jonas-schievink a=jonas-schievink Closes https://github.com/rust-analyzer/rust-analyzer/issues/8908 Messy diff, but `ItemTree` lowering got simpler, since we now have a strict 1-to-1 mapping between `ast::Item` and `ModItem`. The most messy part is mapping a single `UseTree` back to its `ast::UseTree` counterpart for diagnostics, but I think the ad-hoc source map built during lowering does the job. Co-authored-by: Jonas Schievink <[email protected]> |