aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
Commit message (Collapse)AuthorAgeFilesLines
* internal: count ItemScopesAleksey Kladov2021-06-221-0/+4
|
* minor: clarify namingAleksey Kladov2021-06-222-7/+11
|
* Apply some clippy suggestionsClemens Wasser2021-06-219-32/+22
|
* Minor clippy perf fixesLaurențiu Nicola2021-06-181-2/+1
|
* Nest all the or-patterns!Lukas Wirth2021-06-174-8/+6
|
* minor: add a test variationAleksey Kladov2021-06-151-5/+13
|
* internal: document that we don't #[ignore] testsAleksey Kladov2021-06-151-8/+13
|
* internal: more natural order of sources for TypeParamAleksey Kladov2021-06-142-6/+6
| | | | | We usually use first (left) variant of `Either` for "usual" case, and use right for odd things. For example, pat source is Pat | SelfParam.
* Merge #9249bors[bot]2021-06-134-411/+9
|\ | | | | | | | | | | | | | | | | 9249: internal: remove def-level diagnostics tests r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: remove def-level diagnostics testsAleksey Kladov2021-06-132-171/+9
| |
| * internal: refactor macro errorAleksey Kladov2021-06-133-165/+0
| |
| * internal: refactor inactive code diagnosticsAleksey Kladov2021-06-132-75/+0
| |
* | Merge #9248bors[bot]2021-06-131-68/+0
|\| | | | | | | | | | | | | | | | | 9248: internal: refactor unresolved macro call diagnostic r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: refactor unresolved macro call diagnosticAleksey Kladov2021-06-131-31/+0
| |
| * internal: refactor unresolved import diagnosticAleksey Kladov2021-06-131-37/+0
| |
* | Merge #9247bors[bot]2021-06-131-29/+0
|\| | | | | | | | | | | | | | | | | 9247: internal: refactor unresolved extern crate diagnostic r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: refactor unresolved extern crate diagnosticAleksey Kladov2021-06-131-29/+0
| |
* | Merge #9245bors[bot]2021-06-131-14/+0
|\| | | | | | | | | | | | | | | | | 9245: internal: start new diagnostics API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * internal: start new diagnostics APIAleksey Kladov2021-06-131-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge #9244bors[bot]2021-06-131-0/+16
|\ \ | |/ |/| | | | | | | | | | | | | | | 9244: feat: Make block-local trait impls work r=flodiebold a=flodiebold As long as either the trait or the implementing type are defined in the same block. CC #8961 Co-authored-by: Florian Diebold <[email protected]>
| * Make block-local trait impls workFlorian Diebold2021-06-131-0/+16
| | | | | | | | | | As long as either the trait or the implementing type are defined in the same block.
* | internal: check that coverage marks are always pairedAleksey Kladov2021-06-131-5/+5
|/
* cargo fmtMaan20032021-06-131-27/+24
|
* clippy::useless_returnMaan20032021-06-131-1/+1
|
* clippy::redundant_closureMaan20032021-06-131-2/+2
|
* clippy::clone_on_copyMaan20032021-06-132-2/+2
|
* clippy::useless_conversionMaan20032021-06-133-8/+5
|
* clippy::redudant_borrowMaan20032021-06-139-36/+36
|
* Don't stringify `cfg_attr`-gated attributesJonas Schievink2021-06-111-4/+18
| | | | This preserves the assigned `TokenId`s
* Reduce fst_path callsKirill Bulatov2021-06-101-11/+5
|
* Add more profiling for flyimportsKirill Bulatov2021-06-103-71/+85
|
* Implement dummy expansions for builtin attributesLukas Wirth2021-06-091-1/+3
|
* Merge #9169bors[bot]2021-06-074-3/+26
|\ | | | | | | | | | | | | | | | | | | 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]>
| * Handle attribute macros in `descend_into_macros`Jonas Schievink2021-06-064-3/+26
| |
* | Make Documentation::new non-genericLaurențiu Nicola2021-06-071-2/+2
|/
* Render documentation for derive completionLukas Wirth2021-06-041-0/+4
|
* Return `ReachedFixedPoint::No` when resolving derive helperJonas Schievink2021-06-041-0/+1
|
* Update list of built-in attributesJonas Schievink2021-06-031-16/+22
|
* Make it opt-inJonas Schievink2021-06-033-1/+15
|
* Expand procedural attribute macrosJonas Schievink2021-06-032-6/+90
|
* NFC: remove redundant clones (clippy::perf)Matthias Krüger2021-06-031-1/+1
|
* ItemTree: make variant fields inherit the enum's visibilityJonas Schievink2021-06-032-4/+43
|
* Add commentJonas Schievink2021-06-031-0/+3
|
* Implement `#[rustc_skip_array_during_method_dispatch]`Jonas Schievink2021-06-011-1/+13
|
* Fall back to legacy preludeJonas Schievink2021-06-011-14/+27
|
* Implement per-edition preludesJonas Schievink2021-06-014-69/+186
|
* Expand fixme commentsDawer2021-05-311-1/+4
|
* Clean up, more docs.Dawer2021-05-311-4/+1
|
* Implement struct ctor applicationDawer2021-05-311-1/+1
|
* Merge #8866bors[bot]2021-05-311-2/+2
|\ | | | | | | | | | | | | | | 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]>