Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clippy::redundant_clone fixes | Laurențiu Nicola | 2021-05-26 | 1 | -1/+1 |
| | |||||
* | Merge #8977 | bors[bot] | 2021-05-24 | 3 | -4/+4 |
|\ | | | | | | | | | | | | | | | 8977: internal: minor `TokenMap` cleanups r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Make `TokenTextRange` private | Jonas Schievink | 2021-05-24 | 3 | -4/+4 |
| | | |||||
* | | internal: rename hypothetical -> speculative | Aleksey Kladov | 2021-05-24 | 1 | -7/+7 |
|/ | | | | | Lets steal this good naming from Roslyn before I forget about it yet again. | ||||
* | Add even more docs | Aleksey Kladov | 2021-05-22 | 1 | -1/+1 |
| | |||||
* | Support `#[register_attr]` and `#[register_tool]` | Jonas Schievink | 2021-05-20 | 1 | -0/+2 |
| | |||||
* | Track in-scope derive helpers during nameres | Jonas Schievink | 2021-05-19 | 1 | -1/+1 |
| | |||||
* | Clarify field name | Jonas Schievink | 2021-05-19 | 4 | -6/+6 |
| | |||||
* | Simplify eager macro representation | Jonas Schievink | 2021-05-19 | 7 | -264/+156 |
| | |||||
* | Implement `concat_idents` | Edwin Cheng | 2021-05-13 | 2 | -0/+36 |
| | |||||
* | Remove delimiters from proc macro input | Jonas Schievink | 2021-05-12 | 2 | -1/+14 |
| | |||||
* | Revert "Strip delimiter from fn-like proc macro input" | Jonas Schievink | 2021-05-11 | 2 | -33/+2 |
| | | | | This reverts commit bda68e23328ca62a71da348a13c4d13cc8f991f3. | ||||
* | Strip delimiter from fn-like proc macro input | Jonas Schievink | 2021-05-11 | 2 | -2/+33 |
| | |||||
* | Rewrite `#[derive]` removal to be based on AST | Jonas Schievink | 2021-05-10 | 4 | -107/+112 |
| | |||||
* | Move `AttrId` back into `hir_def` | Jonas Schievink | 2021-05-10 | 2 | -6/+3 |
| | |||||
* | Merge #8776 | bors[bot] | 2021-05-09 | 4 | -63/+84 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8776: fix: fix unnecessary recomputations due to macros r=jonas-schievink a=jonas-schievink This computes a macro's fragment kind eagerly (when the calling file is still available in parsed form) and stores it in the `MacroCallLoc`. This means that during expansion we no longer have to reparse the file containing the macro call, avoiding the unnecessary salsa dependencies (https://github.com/rust-analyzer/rust-analyzer/pull/8746#issuecomment-834776349). Marking as draft until I manage to find a test for this problem, since for some reason `typing_inside_a_function_should_not_invalidate_expansions` does not catch this (which might indicate that I misunderstand the problem). I've manually confirmed that this fixes the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/8746#issuecomment-834776349: ``` 7ms - parse_query @ FileId(179) 12ms - SourceBinder::to_module_def 12ms - crate_def_map:wait 5ms - item_tree_query (1 calls) 7ms - ??? ``` Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Precompute macro fragment kind | Jonas Schievink | 2021-05-09 | 4 | -63/+84 |
| | | |||||
* | | Escape characters in builtin macros correctly | Edwin Cheng | 2021-05-09 | 2 | -4/+4 |
|/ | |||||
* | Merge #8280 | bors[bot] | 2021-05-06 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 8280: Borrow text of immutable syntax node r=iDawer a=iDawer In https://github.com/rust-analyzer/rowan/pull/101 `rowan::SyntaxNode::green` returns `Cow<'_, GreenNodeData>`. It returns borrow of green node of immutable syntax tree node. Using this we can return borrowed text from `ast::Name::text`. ~~However now it allocates in case of mutable syntax trees.~~ (see next comment) The idea comes from https://github.com/rust-analyzer/rowan/pull/100#issuecomment-809330325 Co-authored-by: Dawer <[email protected]> | ||||
| * | Fix build | Dawer | 2021-05-06 | 1 | -1/+1 |
| | | |||||
* | | Don't store call-site text offsets in hygiene info | Jonas Schievink | 2021-05-06 | 1 | -22/+35 |
|/ | |||||
* | Document expansion queries | Aleksey Kladov | 2021-05-04 | 1 | -0/+21 |
| | |||||
* | simplify macro expansion code | Aleksey Kladov | 2021-05-04 | 1 | -27/+17 |
| | | | | | Using `Option` arguments such that you always pass `None` or `Some` at the call site is a code smell. | ||||
* | make illegal states unrepresentable | Aleksey Kladov | 2021-05-04 | 3 | -49/+48 |
| | | | | only declarative macros have def-site token map | ||||
* | Cleanups | Aleksey Kladov | 2021-05-04 | 1 | -139/+134 |
| | |||||
* | Merge #8727 | bors[bot] | 2021-05-04 | 1 | -11/+11 |
|\ | | | | | | | | | | | | | | | | | 8727: minor: use standard import style r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | minor: use standard import style | Aleksey Kladov | 2021-05-04 | 1 | -11/+11 |
| | | |||||
* | | Merge #8726 | bors[bot] | 2021-05-04 | 1 | -3/+3 |
|\| | | | | | | | | | | | | | | | | | 8726: internal: reduce visibility r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | internal: reduce visibility | Aleksey Kladov | 2021-05-04 | 1 | -3/+3 |
| | | |||||
* | | minor: unconfuse myself about macro def vs macro rules | Aleksey Kladov | 2021-05-04 | 1 | -0/+5 |
|/ | |||||
* | Merge #8586 | bors[bot] | 2021-04-19 | 1 | -9/+9 |
|\ | | | | | | | | | | | | | | | 8586: Replace SyntaxRewriter usage with ted in eager::eager_macro_recur r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Remove SyntaxRewriter usage in eager::eager_macro_recur | Lukas Wirth | 2021-04-19 | 1 | -9/+9 |
| | | |||||
* | | Merge #8462 | bors[bot] | 2021-04-19 | 2 | -0/+2 |
|\ \ | |/ |/| | | | | | | | | | | | 8462: Expand macros at type position r=jonas-schievink a=cynecx Co-authored-by: cynecx <[email protected]> | ||||
| * | hir_ty: Expand macros at type position | cynecx | 2021-04-17 | 2 | -0/+2 |
| | | |||||
* | | Expand `global_asm!` to nothing | Jonas Schievink | 2021-04-18 | 2 | -0/+11 |
|/ | |||||
* | Support macros in pattern position | Jonas Schievink | 2021-04-11 | 1 | -0/+1 |
| | |||||
* | Revert "Rewrite `#[derive]` removal to be based on AST" | Jonas Schievink | 2021-04-10 | 4 | -92/+105 |
| | | | | This reverts commit 7e78aebc8fbbb4043d62949681e4d700f1a2ec46. | ||||
* | Revert "Use `pub(crate)`" | Jonas Schievink | 2021-04-10 | 1 | -5/+1 |
| | | | | This reverts commit c51213c2e7de21b7e68e6773ca3be0cdfc7c18af. | ||||
* | Revert "Use `name![derive]`" | Jonas Schievink | 2021-04-10 | 1 | -6/+2 |
| | | | | This reverts commit d6187de4cd34a1288c7820c5477b81b1e9b692a9. | ||||
* | Use `name![derive]` | Jonas Schievink | 2021-04-09 | 1 | -2/+6 |
| | |||||
* | Use `pub(crate)` | Jonas Schievink | 2021-04-09 | 1 | -1/+5 |
| | |||||
* | Rewrite `#[derive]` removal to be based on AST | Jonas Schievink | 2021-04-09 | 4 | -105/+92 |
| | |||||
* | Store `#[derive]` attribute ID along macro invoc | Jonas Schievink | 2021-04-09 | 2 | -3/+7 |
| | |||||
* | Add `AttrId` to track attribute sources | Jonas Schievink | 2021-04-09 | 1 | -0/+3 |
| | |||||
* | Use named fields in `MacroCallKind` | Jonas Schievink | 2021-04-08 | 4 | -16/+18 |
| | |||||
* | Update `OUT_DIR` diagnostic to match setting | Jonas Schievink | 2021-04-07 | 1 | -1/+1 |
| | |||||
* | Make `ast_to_token_tree` infallible | Jonas Schievink | 2021-04-04 | 3 | -13/+7 |
| | | | | It could never return `None`, so reflect that in the return type | ||||
* | Implement edition-dependent builtin `panic!` macro | Jonas Schievink | 2021-04-03 | 3 | -2/+26 |
| | |||||
* | internal: document semantics for missing names | Aleksey Kladov | 2021-03-31 | 1 | -0/+9 |
| | |||||
* | Basic Support Macro 2.0 | Edwin Cheng | 2021-03-27 | 3 | -23/+41 |
| |