Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update list of built-in attributes | Jonas Schievink | 2021-06-03 | 1 | -16/+22 |
| | |||||
* | Make it opt-in | Jonas Schievink | 2021-06-03 | 3 | -1/+15 |
| | |||||
* | Expand procedural attribute macros | Jonas Schievink | 2021-06-03 | 2 | -6/+90 |
| | |||||
* | NFC: remove redundant clones (clippy::perf) | Matthias Krüger | 2021-06-03 | 1 | -1/+1 |
| | |||||
* | ItemTree: make variant fields inherit the enum's visibility | Jonas Schievink | 2021-06-03 | 2 | -4/+43 |
| | |||||
* | Add comment | Jonas Schievink | 2021-06-03 | 1 | -0/+3 |
| | |||||
* | Implement `#[rustc_skip_array_during_method_dispatch]` | Jonas Schievink | 2021-06-01 | 1 | -1/+13 |
| | |||||
* | Fall back to legacy prelude | Jonas Schievink | 2021-06-01 | 1 | -14/+27 |
| | |||||
* | Implement per-edition preludes | Jonas Schievink | 2021-06-01 | 4 | -69/+186 |
| | |||||
* | Expand fixme comments | Dawer | 2021-05-31 | 1 | -1/+4 |
| | |||||
* | Clean up, more docs. | Dawer | 2021-05-31 | 1 | -4/+1 |
| | |||||
* | Implement struct ctor application | Dawer | 2021-05-31 | 1 | -1/+1 |
| | |||||
* | Merge #8866 | bors[bot] | 2021-05-31 | 1 | -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]> | ||||
| * | Update salsa | Jonas Schievink | 2021-05-27 | 1 | -2/+2 |
| | | |||||
* | | Diagnose unimplemented built-in macros | Jonas Schievink | 2021-05-30 | 3 | -16/+48 |
| | | |||||
* | | Thread proc-macro types through the HIR | Jonas Schievink | 2021-05-29 | 2 | -2/+17 |
| | | |||||
* | | hir_ty: use async ret type for inference inside async bodies | cynecx | 2021-05-29 | 4 | -3/+9 |
| | | |||||
* | | Test that `ItemTree` works as intended | Jonas Schievink | 2021-05-27 | 1 | -1/+73 |
| | | |||||
* | | Don't store supertraits in ItemTree | Laurențiu Nicola | 2021-05-27 | 5 | -13/+3 |
|/ | |||||
* | Drop `ignore` from doctests | Jonas Schievink | 2021-05-27 | 1 | -3/+3 |
| | |||||
* | Reduce memory usage a bit | Jonas Schievink | 2021-05-26 | 2 | -9/+14 |
| | |||||
* | Clean up ItemTree lowering now that it's 1:1 | Jonas Schievink | 2021-05-26 | 1 | -53/+26 |
| | |||||
* | Stop expanding UseTrees during ItemTree lowering | Jonas Schievink | 2021-05-26 | 10 | -168/+312 |
| | |||||
* | Merge #8973 | bors[bot] | 2021-05-25 | 12 | -621/+232 |
|\ | | | | | | | | | | | | | | | 8973: internal: move diagnostics to hir r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | internal: move diagnostics to hir | Aleksey Kladov | 2021-05-25 | 12 | -621/+232 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea here is to eventually get rid of `dyn Diagnostic` and `DiagnosticSink` infrastructure altogether, and just have a `enum hir::Diagnostic` instead. The problem with `dyn Diagnostic` is that it is defined in the lowest level of the stack (hir_expand), but is used by the highest level (ide). As a first step, we free hir_expand and hir_def from `dyn Diagnostic` and kick the can up to `hir_ty`, as an intermediate state. The plan is then to move DiagnosticSink similarly to the hir crate, and, as final third step, remove its usage from the ide. One currently unsolved problem is testing. You can notice that the test which checks precise diagnostic ranges, unresolved_import_in_use_tree, was moved to the ide layer. Logically, only IDE should have the infra to render a specific range. At the same time, the range is determined with the data produced in hir_def and hir crates, so this layering is rather unfortunate. Working on hir_def shouldn't require compiling `ide` for testing. | ||||
* | | Consider trait to be in scope for trait-impl | Lukas Wirth | 2021-05-25 | 1 | -13/+25 |
| | | |||||
* | | Fix lowering of FnOnce() without return type | Florian Diebold | 2021-05-25 | 1 | -12/+15 |
|/ | | | | This should result in an implicit `-> ()`, not leaving out the binding. | ||||
* | internal: intern `AttrInput` | Jonas Schievink | 2021-05-24 | 3 | -13/+14 |
| | |||||
* | Intern `GenericArgs` | Jonas Schievink | 2021-05-24 | 4 | -11/+10 |
| | | | | This shaves off another ~4 mb or so | ||||
* | internal: intern `TypeBound`s | Jonas Schievink | 2021-05-24 | 9 | -25/+39 |
| | | | | | Doesn't save much memory (~2 mb), but interning things is generally a good pattern to follow | ||||
* | Merge #8945 | bors[bot] | 2021-05-23 | 1 | -0/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 8945: fix: Make expected type work in more situations r=flodiebold a=flodiebold Also makes call info show the correct types for generic methods. ![2021-05-23-182952_1134x616_scrot](https://user-images.githubusercontent.com/906069/119269023-dd5a5b00-bbf5-11eb-993a-b6e122c3b9a6.png) ![2021-05-23-183117_922x696_scrot](https://user-images.githubusercontent.com/906069/119269025-dfbcb500-bbf5-11eb-983c-fc415b8428e0.png) Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Infer correct expected type for generic struct fields | Florian Diebold | 2021-05-23 | 1 | -0/+8 |
| | | |||||
* | | internal: document ItemTree design | Jonas Schievink | 2021-05-23 | 1 | -2/+32 |
|/ | |||||
* | Explain why nested `TypeRef` aren't interned | Jonas Schievink | 2021-05-23 | 1 | -0/+4 |
| | |||||
* | Render where clauses and more generic params | Jonas Schievink | 2021-05-23 | 2 | -34/+155 |
| | |||||
* | Pretty-print generic parameters | Jonas Schievink | 2021-05-23 | 2 | -22/+99 |
| | |||||
* | ItemTree: pretty-print all paths | Jonas Schievink | 2021-05-22 | 2 | -9/+119 |
| | |||||
* | Work around non-unique AttrIds | Jonas Schievink | 2021-05-22 | 2 | -9/+39 |
| | |||||
* | Add an ItemTree pretty-printer | Jonas Schievink | 2021-05-21 | 3 | -0/+780 |
| | |||||
* | impl Display for AttrInput/ImportAlias | Jonas Schievink | 2021-05-21 | 2 | -1/+19 |
| | |||||
* | Remove `StructDefKind` | Jonas Schievink | 2021-05-21 | 3 | -20/+4 |
| | |||||
* | Don't lower extern block in the ItemTree | Jonas Schievink | 2021-05-21 | 4 | -20/+79 |
| | |||||
* | Support `#[register_attr]` and `#[register_tool]` | Jonas Schievink | 2021-05-20 | 2 | -32/+92 |
| | |||||
* | Rename `ignore_attrs_on` to `skip_attrs` | Jonas Schievink | 2021-05-20 | 1 | -6/+6 |
| | |||||
* | Simplify | Jonas Schievink | 2021-05-20 | 1 | -4/+2 |
| | |||||
* | Refactor name resolution to resolve derive helpers | Jonas Schievink | 2021-05-20 | 2 | -85/+135 |
| | |||||
* | Rename `unexpanded_macros` to `unresolved_macros` | Jonas Schievink | 2021-05-20 | 1 | -15/+31 |
| | |||||
* | Track in-scope derive helpers during nameres | Jonas Schievink | 2021-05-19 | 1 | -8/+26 |
| | |||||
* | Fix unresolved attribute fallback again | Jonas Schievink | 2021-05-19 | 2 | -4/+33 |
| | |||||
*-. | Merge #8885 #8887 | bors[bot] | 2021-05-19 | 2 | -14/+35 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8885: internal: greatly simplify eager macro representation r=jonas-schievink a=jonas-schievink - Share structures with lazy macros, make both use `MacroCallLoc`. - Remove `intern_eager_expansion`, `EagerCallLoc`, `EagerMacroId`, and *many* matches on `MacroCallId`. - Make a lot of FIXMEs obsolete since the code no longer distinguishes between eager and lazy macros. - Add `EagerCallInfo`, which is `Some` for calls to eager macros and holds the argument or expansion result and the included file. 8887: fix: fix derive collection after unresolved attribute fallback r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/pull/8882#issuecomment-844379170 bors r+ Co-authored-by: Jonas Schievink <[email protected]> |