Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clippy::useless_return | Maan2003 | 2021-06-13 | 1 | -1/+1 |
| | |||||
* | clippy::useless_conversion | Maan2003 | 2021-06-13 | 1 | -1/+1 |
| | |||||
* | Implement dummy expansions for builtin attributes | Lukas Wirth | 2021-06-09 | 1 | -3/+11 |
| | |||||
* | Fix typo | phynalle | 2021-06-08 | 1 | -1/+1 |
| | |||||
* | Expand procedural attribute macros | Jonas Schievink | 2021-06-03 | 1 | -3/+8 |
| | |||||
* | internal: move diagnostics to hir | Aleksey Kladov | 2021-05-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Merge #8977 | bors[bot] | 2021-05-24 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | 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 | 1 | -1/+1 |
| | | |||||
* | | 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. | ||||
* | Clarify field name | Jonas Schievink | 2021-05-19 | 1 | -1/+1 |
| | |||||
* | Simplify eager macro representation | Jonas Schievink | 2021-05-19 | 1 | -81/+39 |
| | |||||
* | Remove delimiters from proc macro input | Jonas Schievink | 2021-05-12 | 1 | -1/+10 |
| | |||||
* | Rewrite `#[derive]` removal to be based on AST | Jonas Schievink | 2021-05-10 | 1 | -3/+4 |
| | |||||
* | Precompute macro fragment kind | Jonas Schievink | 2021-05-09 | 1 | -60/+11 |
| | |||||
* | Fix build | Dawer | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | 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 | 1 | -32/+28 |
| | | | | 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 |
|/ | |||||
* | hir_ty: Expand macros at type position | cynecx | 2021-04-17 | 1 | -0/+1 |
| | |||||
* | 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 | 1 | -4/+3 |
| | | | | This reverts commit 7e78aebc8fbbb4043d62949681e4d700f1a2ec46. | ||||
* | Rewrite `#[derive]` removal to be based on AST | Jonas Schievink | 2021-04-09 | 1 | -3/+4 |
| | |||||
* | Make `ast_to_token_tree` infallible | Jonas Schievink | 2021-04-04 | 1 | -10/+4 |
| | | | | It could never return `None`, so reflect that in the return type | ||||
* | Basic Support Macro 2.0 | Edwin Cheng | 2021-03-27 | 1 | -21/+39 |
| | |||||
* | Fix recursive macro statement expansion | Edwin Cheng | 2021-03-25 | 1 | -17/+42 |
| | |||||
* | remove more redundant clones (clippy::redundant_clone()) | Matthias Krüger | 2021-03-21 | 1 | -1/+1 |
| | |||||
* | Store an `AstId` for procedural macros | Jonas Schievink | 2021-03-18 | 1 | -2/+2 |
| | |||||
* | Make MacroDefId's `AstId` mandatory when possible | Jonas Schievink | 2021-03-18 | 1 | -5/+5 |
| | |||||
* | Fix macro expansion for statements w/o semicolon | Edwin Cheng | 2021-03-16 | 1 | -1/+2 |
| | |||||
* | add expand log | Edwin Cheng | 2021-03-13 | 1 | -0/+2 |
| | |||||
* | :arrow_up: rowan | Aleksey Kladov | 2021-01-19 | 1 | -1/+1 |
| | |||||
* | Remove useless wrapper | Aleksey Kladov | 2021-01-15 | 1 | -1/+1 |
| | |||||
* | Fixed typos in code comments | Vincent Esche | 2021-01-09 | 1 | -1/+1 |
| | |||||
* | Proper handling $crate Take 2 | Edwin Cheng | 2021-01-07 | 1 | -3/+9 |
| | |||||
* | Fix infer error of macro invocation in array expr | Edwin Cheng | 2021-01-02 | 1 | -1/+1 |
| | |||||
* | Pass crate environment to proc macros | Jonas Schievink | 2020-12-27 | 1 | -1/+1 |
| | |||||
* | Store invocation site for eager macros | Jonas Schievink | 2020-12-22 | 1 | -4/+5 |
| | |||||
* | Basic support for decl macros 2.0 | Jonas Schievink | 2020-12-15 | 1 | -1/+4 |
| | |||||
* | Remove obsolete comment | Edwin Cheng | 2020-12-15 | 1 | -1/+0 |
| | |||||
* | Expand statements for mbe in lowering | Edwin Cheng | 2020-12-15 | 1 | -1/+2 |
| | |||||
* | Use decimal notation | Jonas Schievink | 2020-12-10 | 1 | -1/+1 |
| | |||||
* | Double the macro token limit | Jonas Schievink | 2020-12-10 | 1 | -1/+1 |
| | |||||
* | Improve macro limit error and move to const | Jonas Schievink | 2020-12-10 | 1 | -3/+9 |
| | |||||
* | Make `compile_error!` lazy and emit a diagnostic | Jonas Schievink | 2020-12-03 | 1 | -0/+1 |
| |