Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 3 | -6/+6 |
| | |||||
* | Lower traits to TraitRef instead of TypeRef | Lukas Wirth | 2021-03-29 | 4 | -6/+68 |
| | |||||
* | Remove unused test fixtures | Edwin Cheng | 2021-03-28 | 1 | -4/+0 |
| | |||||
* | Basic Support Macro 2.0 | Edwin Cheng | 2021-03-27 | 2 | -39/+85 |
| | |||||
* | Fix recursive macro statement expansion | Edwin Cheng | 2021-03-25 | 4 | -52/+37 |
| | |||||
* | Merge #7907 | bors[bot] | 2021-03-24 | 2 | -1/+38 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7907: Autoderef with visibility r=cynecx a=cynecx Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7841. I am not sure about the general approach here. Right now this simply tries to check whether the autoderef candidate is reachable from the current module. ~~However this doesn't exactly work with traits (see the `tests::macros::infer_derive_clone_in_core` test, which fails right now).~~ see comment below Refs: - `rustc_typeck` checking fields: https://github.com/rust-lang/rust/blob/66ec64ccf31883cd2c28d045912a76179c0c6ed2/compiler/rustc_typeck/src/check/expr.rs#L1610 r? @flodiebold Co-authored-by: cynecx <[email protected]> | ||||
| * | hir_def: move visibility queries from hir_ty to hir_def | cynecx | 2021-03-24 | 2 | -1/+38 |
| | | |||||
* | | Merge bang-macros and derives in name resolution | Jonas Schievink | 2021-03-23 | 1 | -86/+79 |
| | | |||||
* | | resolver: manually traverse nested block scopes | Jonas Schievink | 2021-03-22 | 3 | -5/+32 |
| | | |||||
* | | Code review fixes | Kirill Bulatov | 2021-03-22 | 1 | -0/+2 |
| | | |||||
* | | Do not revisit recursively imported modules | Kirill Bulatov | 2021-03-21 | 1 | -7/+47 |
| | | |||||
* | | Merge #8134 | bors[bot] | 2021-03-21 | 1 | -4/+9 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 8134: Correct the paths of submodules from the include! macro r=edwin0cheng a=sticnarf This PR should fix #7846. It mostly follows the instructions from @edwin0cheng in that issue. Co-authored-by: Yilin Chen <[email protected]> | ||||
| * | | check is_include_macro only when attr_path is not specified | Yilin Chen | 2021-03-21 | 1 | -4/+3 |
| | | | | | | | | | | | | Signed-off-by: Yilin Chen <[email protected]> | ||||
| * | | use the included file as the source of expanded include macro | Yilin Chen | 2021-03-21 | 1 | -2/+8 |
| | | | | | | | | | | | | Signed-off-by: Yilin Chen <[email protected]> | ||||
* | | | Merge #8135 | bors[bot] | 2021-03-21 | 2 | -2/+2 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8135: more clippy::{perf, complexity, style} fixes r=Veykril a=matthiaskrgr Co-authored-by: Matthias Krüger <[email protected]> | ||||
| * | | | clippy::complexity simplifications related to Iterators | Matthias Krüger | 2021-03-21 | 1 | -1/+1 |
| | | | | |||||
| * | | | remove more redundant clones (clippy::redundant_clone()) | Matthias Krüger | 2021-03-21 | 1 | -1/+1 |
| |/ / | |||||
* | | | Merge #8128 | bors[bot] | 2021-03-21 | 2 | -6/+28 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 8128: Expand legacy-scoped macro during collection r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8120 Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | Expand legacy-scoped macro during collection | Jonas Schievink | 2021-03-21 | 2 | -6/+28 |
| |/ | |||||
* | | Fix incorrect scoping in while expressions | Lukas Wirth | 2021-03-21 | 1 | -1/+1 |
| | | |||||
* | | Track labels in scopes | Lukas Wirth | 2021-03-21 | 2 | -11/+52 |
|/ | |||||
* | Add `AttrsWithOwner` and clean up `source_map` | Jonas Schievink | 2021-03-19 | 2 | -126/+192 |
| | |||||
* | Return `Either` from `MacroDefId::ast_id` | Jonas Schievink | 2021-03-19 | 1 | -3/+4 |
| | |||||
* | Fix handling of `#![cfg]` in outline module file | Jonas Schievink | 2021-03-19 | 2 | -21/+48 |
| | |||||
* | Add builtin macro-like attributes | Jonas Schievink | 2021-03-19 | 1 | -2/+5 |
| | |||||
* | Rename derive-specific APIs | Jonas Schievink | 2021-03-19 | 3 | -8/+8 |
| | |||||
* | Merge #8097 | bors[bot] | 2021-03-19 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | 8097: Parse extended_key_value_attributes r=jonas-schievink a=Veykril Companion PR https://github.com/rust-analyzer/ungrammar/pull/31 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Parse extended_key_value_attributes | Lukas Wirth | 2021-03-19 | 1 | -1/+1 |
| | | |||||
* | | Document fields of `ModuleId` | Jonas Schievink | 2021-03-18 | 1 | -1/+5 |
| | | |||||
* | | Merge #8083 | bors[bot] | 2021-03-18 | 1 | -16/+48 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 8083: Track source file IDs in source mapping of Attrs r=jonas-schievink a=Veykril Fixes the panics/incorrect injection highlighting of outline module declarations until we figure out a nicer source mapping strategy for attributes. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Track source file IDs in source mapping of Attrs | Lukas Wirth | 2021-03-18 | 1 | -16/+48 |
| | | | |||||
* | | | Add test | Jonas Schievink | 2021-03-18 | 1 | -0/+26 |
| | | | |||||
* | | | Record custom derive helpers in `DefMap` | Jonas Schievink | 2021-03-18 | 3 | -25/+91 |
| | | | | | | | | | | | | Also clean up proc macro attribute parsing a bit | ||||
* | | | Store an `AstId` for procedural macros | Jonas Schievink | 2021-03-18 | 2 | -7/+8 |
| | | | |||||
* | | | Make MacroDefId's `AstId` mandatory when possible | Jonas Schievink | 2021-03-18 | 4 | -15/+12 |
| |/ |/| | |||||
* | | Merge #8082 | bors[bot] | 2021-03-18 | 2 | -0/+12 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | 8082: Proper handle inner recursive macro rules cases r=edwin0cheng a=edwin0cheng Fixes #7645 cc @jonas-schievink bors r+ Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Handle inner recursive macro rules cases | Edwin Cheng | 2021-03-18 | 2 | -0/+12 |
| | | |||||
* | | Rename `item_tree` query to `file_item_tree` | Jonas Schievink | 2021-03-18 | 5 | -11/+11 |
| | | |||||
* | | Make `ItemTreeId` its own type | Jonas Schievink | 2021-03-18 | 7 | -36/+76 |
| | | |||||
* | | Avoid cloning `CfgOptions` | Jonas Schievink | 2021-03-18 | 1 | -2/+3 |
| | | |||||
* | | Support `#[cfg]` on all associated items | Jonas Schievink | 2021-03-18 | 1 | -5/+5 |
| | | |||||
* | | Merge #8075 | bors[bot] | 2021-03-17 | 2 | -16/+37 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8075: Fix `use crate as <name>;` imports r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/4644 bors r+ Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | Fix `use crate as <name>;` imports | Jonas Schievink | 2021-03-17 | 2 | -16/+37 |
| | | | |||||
* | | | Improve diagnostic when including nonexistent file | Jonas Schievink | 2021-03-17 | 2 | -2/+2 |
|/ / | |||||
* | | Use first early expansion error during nameres | Jonas Schievink | 2021-03-17 | 2 | -1/+20 |
| | | |||||
* | | Apply `#[cfg]`s when computing function signatures | Jonas Schievink | 2021-03-17 | 2 | -4/+17 |
| | | |||||
* | | ItemTree: lower attributes on fn parameters | Jonas Schievink | 2021-03-17 | 3 | -23/+54 |
| | | |||||
* | | Merge #8065 | bors[bot] | 2021-03-17 | 1 | -49/+56 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8065: Better handling of block doc comments r=Veykril a=Veykril Moves doc string processing to `Attrs::docs`, as we need the indent info from all comments before being able to know how much to strip Closes #7774 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Fix incorrect newline emission in Attrs::docs | Lukas Wirth | 2021-03-17 | 1 | -14/+14 |
| | | | |||||
| * | | Better handling of block doc comments | Lukas Wirth | 2021-03-17 | 1 | -38/+45 |
| | | |