Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | 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 |
| |