Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add extern source | Edwin Cheng | 2020-03-11 | 1 | -1/+2 |
| | |||||
* | Add and fix tests | Edwin Cheng | 2020-03-10 | 1 | -60/+121 |
| | |||||
* | Add resolve_extern_path in DB | Edwin Cheng | 2020-03-10 | 1 | -1/+8 |
| | |||||
* | Merge #3513 | bors[bot] | 2020-03-09 | 1 | -4/+67 |
|\ | | | | | | | | | | | | | | | | | | | | | 3513: Completion in macros r=matklad a=flodiebold I experimented a bit with completion in macros. It's kind of working, but there are a lot of rough edges. - I'm trying to expand the macro call with the inserted fake token. This requires some hacky additions on the HIR level to be able to do "hypothetical" expansions. There should probably be a nicer API for this, if we want to do it this way. I'm not sure whether it's worth it, because we still can't do a lot if the original macro call didn't expand in nearly the same way. E.g. if we have something like `println!("", x<|>)` the expansions will look the same and everything is fine; but in that case we could maybe have achieved the same result in a simpler way. If we have something like `m!(<|>)` where `m!()` doesn't even expand or expands to something very different, we don't really know what to do anyway. - Relatedly, there are a lot of cases where this doesn't work because either the original call or the hypothetical call doesn't expand. E.g. if we have `m!(x.<|>)` the original token tree doesn't parse as an expression; if we have `m!(match x { <|> })` the hypothetical token tree doesn't parse. It would be nice if we could have better error recovery in these cases. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Move hypothetical expansion to hir_expand | Florian Diebold | 2020-03-08 | 2 | -17/+35 |
| | | |||||
| * | Remove TODOs | Florian Diebold | 2020-03-07 | 1 | -5/+6 |
| | | |||||
| * | Try to complete within macros | Florian Diebold | 2020-03-07 | 2 | -9/+53 |
| | | |||||
* | | Add parse_to_token_tree | Edwin Cheng | 2020-03-08 | 1 | -4/+4 |
|/ | |||||
* | Prevent include! macro include itself | Edwin Cheng | 2020-03-07 | 1 | -1/+6 |
| | |||||
* | Fix test and add more comment | Edwin Cheng | 2020-03-07 | 1 | -1/+4 |
| | |||||
* | Use a not so dummy implementation of env macro | Edwin Cheng | 2020-03-07 | 1 | -1/+1 |
| | |||||
* | Implment include macro | Edwin Cheng | 2020-03-06 | 3 | -19/+62 |
| | |||||
* | Add comment for parents logging | Edwin Cheng | 2020-03-04 | 1 | -7/+12 |
| | |||||
* | Fix whitespace in tests | Edwin Cheng | 2020-03-04 | 2 | -3/+3 |
| | |||||
* | Fix #3436 | Edwin Cheng | 2020-03-04 | 1 | -6/+2 |
| | |||||
* | Add more log | Edwin Cheng | 2020-03-04 | 1 | -0/+9 |
| | |||||
* | Fixed a typo in comment | Edwin Cheng | 2020-03-03 | 1 | -1/+1 |
| | |||||
* | Fix panic on eager expansion | Edwin Cheng | 2020-03-03 | 1 | -2/+18 |
| | |||||
* | Fix for rebasing | Edwin Cheng | 2020-03-03 | 1 | -3/+14 |
| | |||||
* | Move pub function first | Edwin Cheng | 2020-03-03 | 1 | -24/+24 |
| | |||||
* | Add doc about eager expansion name resolution | Edwin Cheng | 2020-03-03 | 1 | -0/+19 |
| | |||||
* | Implement concat macro | Edwin Cheng | 2020-03-03 | 7 | -70/+279 |
| | |||||
* | Add LazyMacroId | Edwin Cheng | 2020-03-03 | 5 | -16/+56 |
| | |||||
* | Fix a bug for single dollar sign macro | Edwin Cheng | 2020-03-03 | 1 | -5/+10 |
| | |||||
* | Update versions | Kirill Bulatov | 2020-02-18 | 1 | -2/+2 |
| | |||||
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 2 | -10/+6 |
| | |||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 3 | -5/+4 |
| | |||||
* | Add couple of utility methods | Aleksey Kladov | 2020-02-12 | 1 | -3/+19 |
| | |||||
* | Remove ImportResolver-related stubs | Kirill Bulatov | 2020-02-09 | 1 | -7/+0 |
| | |||||
* | Code review fixes | Kirill Bulatov | 2020-02-02 | 1 | -6/+7 |
| | |||||
* | Require ModPath for importing | Kirill Bulatov | 2020-02-02 | 1 | -0/+6 |
| | |||||
* | Prefer imports starting with std | Kirill Bulatov | 2020-01-27 | 1 | -0/+2 |
| | |||||
* | Use dummy value for line! and column! macro | Edwin Cheng | 2020-01-14 | 1 | -83/+13 |
| | |||||
* | Use attr location for builtin macro goto-imp | Edwin Cheng | 2020-01-12 | 1 | -0/+15 |
| | |||||
* | Apply review suggestions | Florian Diebold | 2020-01-11 | 1 | -4/+0 |
| | |||||
* | Some more refactoring | Florian Diebold | 2020-01-11 | 1 | -0/+10 |
| | |||||
* | basics working | Florian Diebold | 2020-01-11 | 1 | -0/+4 |
| | |||||
* | Merge #2795 | bors[bot] | 2020-01-11 | 1 | -2/+10 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 2795: Use dummy value for macro file in bulitin macros r=matklad a=edwin0cheng This PR skip the actual line and column computation for `MacroFile` and return a dummy value instead. Related to #2794 Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Use dummy value for macro file in bulitin macros | Edwin Cheng | 2020-01-11 | 1 | -2/+10 |
| | | |||||
* | | Add test for macro expansion in various expressions | Florian Diebold | 2020-01-10 | 1 | -1/+0 |
|/ | |||||
* | Add missing expr cases for expand macro | Edwin Cheng | 2020-01-10 | 1 | -1/+23 |
| | |||||
* | Expand PAREN_EXPR as expression | Edwin Cheng | 2020-01-10 | 1 | -0/+1 |
| | |||||
* | Fix panic in tuple fields | Aleksey Kladov | 2020-01-07 | 1 | -1/+4 |
| | |||||
* | Add dummy implementations of env! and option_env! builtins | Florian Diebold | 2019-12-21 | 3 | -43/+99 |
| | | | | | | They don't do anything except return the correct type. Also refactor the builtin macro tests a bit. | ||||
* | Merge #2625 | bors[bot] | 2019-12-21 | 2 | -6/+5 |
|\ | | | | | | | | | | | | | | | 2625: Clippy lints r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]> | ||||
| * | Clippy lints | kjeremy | 2019-12-20 | 2 | -6/+5 |
| | | |||||
* | | Add support macros in impl blocks | Edwin Cheng | 2019-12-20 | 1 | -0/+1 |
|/ | |||||
* | Merge #2614 | bors[bot] | 2019-12-20 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | 2614: Clippy cleanup r=matklad a=kjeremy Just a few tweaks from the latest clippy. There are a lot more but we should probably tweak our settings. Co-authored-by: kjeremy <[email protected]> | ||||
| * | Remove useless clone | kjeremy | 2019-12-20 | 1 | -1/+1 |
| | | |||||
* | | Add std::ops::Index support for infering | Edwin Cheng | 2019-12-19 | 1 | -0/+1 |
|/ |