Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use only one code-path for parsing fixtures | Aleksey Kladov | 2020-06-23 | 1 | -60/+60 |
| | | | | | This removes leading newlines everywhere, shifting all ranges in tests by one | ||||
* | Implement better handling of divergence | Florian Diebold | 2020-05-08 | 1 | -1/+1 |
| | | | | | | | | Divergence here means that for some reason, the end of a block will not be reached. We tried to model this just using the never type, but that doesn't work fully (e.g. in `let x = { loop {}; "foo" };` x should still have type `&str`); so this introduces a `diverges` flag that the type checker keeps track of, like rustc does. | ||||
* | Rename ImplItem to AssocItem | Edwin Cheng | 2020-05-05 | 1 | -2/+2 |
| | |||||
* | Merge #4234 | bors[bot] | 2020-05-02 | 1 | -0/+26 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 4234: Support local_inner_macros r=jonas-schievink a=edwin0cheng This PR implements `#[macro_export(local_inner_macros)]` support. Note that the rustc implementation is quite [hacky][1] too. :) [1]: https://github.com/rust-lang/rust/blob/614f273e9388ddd7804d5cbc80b8865068a3744e/src/librustc_resolve/macros.rs#L456 Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Support local_inner_macros | Edwin Cheng | 2020-05-01 | 1 | -0/+26 |
| | | |||||
* | | Add test | Edwin Cheng | 2020-05-01 | 1 | -0/+40 |
|/ | |||||
* | Use empty-deps tricks to detect it is core | Edwin Cheng | 2020-04-27 | 1 | -6/+5 |
| | |||||
* | Add test | Edwin Cheng | 2020-04-27 | 1 | -0/+26 |
| | |||||
* | Use core instead of std for builtin derive macros | Edwin Cheng | 2020-04-27 | 1 | -4/+4 |
| | |||||
* | Convert tests to text-size | Aleksey Kladov | 2020-04-25 | 1 | -101/+101 |
| | |||||
* | Add failing test | Aleksey Kladov | 2020-04-10 | 1 | -2/+29 |
| | |||||
* | Macro patterns are not confused with expressions. | Aleksey Kladov | 2020-04-03 | 1 | -2/+29 |
| | | | | | | | | | | | We treat macro calls as expressions (there's appropriate Into impl), which causes problem if there's expresison and non-expression macro in the same node (like in the match arm). We fix this problem by nesting macor patterns into another node (the same way we nest path into PathExpr or PathPat). Ideally, we probably should add a similar nesting for macro expressions, but that needs some careful thinking about macros in blocks: `{ am_i_expression!() }`. | ||||
* | Remove collect proc_macro definitions | Edwin Cheng | 2020-03-25 | 1 | -6/+2 |
| | |||||
* | Fix trailling whitespace | Edwin Cheng | 2020-03-25 | 1 | -1/+1 |
| | |||||
* | Add basic custom derive lowering | Edwin Cheng | 2020-03-25 | 1 | -0/+23 |
| | |||||
* | Make MBE expansion more resilient (WIP) | Florian Diebold | 2020-03-16 | 1 | -4/+4 |
| | |||||
* | Support local macro_rules | Edwin Cheng | 2020-03-14 | 1 | -0/+20 |
| | |||||
* | Add and fix tests | Edwin Cheng | 2020-03-10 | 1 | -0/+20 |
| | |||||
* | Prevent include! macro include itself | Edwin Cheng | 2020-03-07 | 1 | -0/+18 |
| | |||||
* | Use a not so dummy implementation of env macro | Edwin Cheng | 2020-03-07 | 1 | -0/+27 |
| | |||||
* | Implment include macro | Edwin Cheng | 2020-03-06 | 1 | -0/+45 |
| | |||||
* | Fix panic on eager expansion | Edwin Cheng | 2020-03-03 | 1 | -0/+21 |
| | |||||
* | Add test | Edwin Cheng | 2020-03-03 | 1 | -0/+19 |
| | |||||
* | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 1 | -6/+6 |
| | |||||
* | Use dummy value for line! and column! macro | Edwin Cheng | 2020-01-14 | 1 | -2/+2 |
| | |||||
* | Add test for macro expansion in various expressions | Florian Diebold | 2020-01-10 | 1 | -0/+81 |
| | |||||
* | Recursive collect macros in impl items | Edwin Cheng | 2019-12-20 | 1 | -0/+23 |
| | |||||
* | Add support macros in impl blocks | Edwin Cheng | 2019-12-20 | 1 | -0/+19 |
| | |||||
* | Add tests | Edwin Cheng | 2019-12-06 | 1 | -0/+29 |
| | |||||
* | Implement derive(Copy, Clone) properly (well, kind of) | Florian Diebold | 2019-12-05 | 1 | -0/+51 |
| | |||||
* | Split up ty tests a bit | Florian Diebold | 2019-12-03 | 1 | -0/+268 |