Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: reduce visibility | Aleksey Kladov | 2021-05-04 | 1 | -3/+3 |
| | |||||
* | 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 |
| | |||||
* | builtin_macro: move to `mbe::ExpandResult` | Jonas Schievink | 2020-11-30 | 1 | -1/+1 |
| | |||||
* | Merge #6645 | bors[bot] | 2020-11-28 | 1 | -1/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6645: Publish diagnostics for macro expansion errors r=matklad a=jonas-schievink This adds 2 new diagnostics, emitted during name resolution: * `unresolved-proc-macro`, a weak warning that is emitted when a proc macro is supposed to be expanded, but was not provided by the build system. This usually means that proc macro support is turned off, but may also indicate setup issues when using rust-project.json. Being a weak warning, this should help set expectations when users see it, while not being too obstructive. We do not yet emit this for attribute macros though, just custom derives and `!` macros. * `macro-error`, which is emitted when any macro (procedural or `macro_rules!`) fails to expand due to some error. This is an error-level diagnostic, but currently still marked as experimental, because there might be spurious errors and this hasn't been tested too well. This does not yet emit diagnostics when expansion in item bodies fails, just for module-level macros. Known bug: The "proc macro not found" diagnostic points at the whole item for custom derives, it should just point at the macro's name in the `#[derive]` list, but I haven't found an easy way to do that. Screenshots: ![screenshot-2020-11-26-19:54:14](https://user-images.githubusercontent.com/1786438/100385782-f8bc2300-3023-11eb-9f27-e8f8ce9d6114.png) ![screenshot-2020-11-26-19:55:39](https://user-images.githubusercontent.com/1786438/100385784-f954b980-3023-11eb-9617-ac2eb0a0a9dc.png) Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Publish diagnostics for macro expansion errors | Jonas Schievink | 2020-11-27 | 1 | -1/+8 |
| | | |||||
* | | Add/Fix macro expansion profiling | Jonas Schievink | 2020-11-27 | 1 | -2/+4 |
|/ | |||||
* | Use `ExpandResult` instead of `MacroResult` | Jonas Schievink | 2020-11-26 | 1 | -52/+28 |
| | | | | `MacroResult` is redundant | ||||
* | Use named fields in `ExpandResult` | Jonas Schievink | 2020-11-26 | 1 | -1/+1 |
| | |||||
* | Rename `parse_macro` to `parse_macro_expansion` | Jonas Schievink | 2020-11-24 | 1 | -3/+3 |
| | | | | This does not parse macros, it expands a macro and parses the *result* | ||||
* | hir_expand::db: reduce fn visibility | Jonas Schievink | 2020-11-24 | 1 | -15/+9 |
| | |||||
* | Remove fixed FIXME, propagate errors better | Jonas Schievink | 2020-11-24 | 1 | -6/+2 |
| | |||||
* | hir_expand: propagate expansion errors | Jonas Schievink | 2020-11-24 | 1 | -40/+83 |
| | |||||
* | Complete methods when receiver is a macro | Aleksey Kladov | 2020-10-17 | 1 | -0/+1 |
| | |||||
* | Rename `CustomDerive` to `ProcMacro` | Jonas Schievink | 2020-09-18 | 1 | -2/+2 |
| | | | | | It handles fn-like macros too, and will handle attribute macros in the future | ||||
* | Bump token expansion limit | Aleksey Kladov | 2020-09-01 | 1 | -1/+1 |
| | | | | | | | We hit this for redis crate, reported at Reported at https://www.reddit.com/r/rust/comments/ikfsf8/rustanalyzer_doesnt_work_with_the_redis_crate/ | ||||
* | Rename ra_hir_expand -> hir_expand | Aleksey Kladov | 2020-08-13 | 1 | -0/+403 |