aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src/builtin_macro.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement edition-dependent builtin `panic!` macroJonas Schievink2021-04-031-2/+23
|
* use the included file as the source of expanded include macroYilin Chen2021-03-211-22/+44
| | | | Signed-off-by: Yilin Chen <[email protected]>
* Make MacroDefId's `AstId` mandatory when possibleJonas Schievink2021-03-181-8/+5
|
* Improve diagnostic when including nonexistent fileJonas Schievink2021-03-171-10/+11
|
* Use expect-test for builtin macro/derive testsJonas Schievink2021-03-101-43/+35
|
* Implement builtin `cfg!` macroJonas Schievink2021-03-101-0/+14
|
* Fix assert split exprs on commaEdwin Cheng2021-02-281-17/+2
|
* Fix builtin macros split exprs on commaEdwin Cheng2021-02-281-20/+25
|
* Disallow non-boolean literals in concat!Laurențiu Nicola2021-01-251-2/+4
|
* Unquote strings and handle boolean literals in concat!Laurențiu Nicola2021-01-251-16/+8
|
* Fix `==` in in format causes mismatched-arg-countEdwin Cheng2020-12-311-1/+2
|
* Store invocation site for eager macrosJonas Schievink2020-12-221-2/+3
|
* Make macro def krate mandatoryJonas Schievink2020-12-151-4/+4
| | | | Refactors builtin derive support to go through proper name resolution
* Basic support for decl macros 2.0Jonas Schievink2020-12-151-8/+11
|
* Move to upstream `macro_rules!` modelJonas Schievink2020-12-151-6/+10
|
* Resolve `macro-error` diagnostics on asm & llvm_asmlf-2020-12-151-0/+15
| | | | | | | | | We currently stub these out as returning unit. This fixes spurious RA diagnostics in the following: ```rust unsafe { asm!(""); llvm_asm!(""); } ```
* Implement `module_path!()`Jonas Schievink2020-12-141-0/+10
|
* format_args: handle key-value argumentsJonas Schievink2020-12-101-0/+6
|
* Introduce anchored_pathAleksey Kladov2020-12-091-2/+3
| | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way.
* Fix `concat!` with integer literalsJonas Schievink2020-12-081-8/+34
|
* Make `compile_error!` message match upstream rustcJonas Schievink2020-12-031-4/+1
| | | | It only consists of the argument passed to it
* Make `compile_error!` lazy and emit a diagnosticJonas Schievink2020-12-031-21/+27
|
* Give better diagnostic if `OUT_DIR` is unsetJonas Schievink2020-12-031-9/+17
|
* builtin_macro: move to `mbe::ExpandResult`Jonas Schievink2020-11-301-50/+79
|
* SimplifyAleksey Kladov2020-11-061-1/+1
|
* Rename ra_hir_expand -> hir_expandAleksey Kladov2020-08-131-0/+649