Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #8243 | bors[bot] | 2021-03-29 | 2 | -60/+35 |
|\ | | | | | | | | | | | | | | | 8243: Remove code duplication in highlight injection r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Remove code duplication in highlight injection | Lukas Wirth | 2021-03-29 | 2 | -60/+35 |
| | | |||||
* | | internal: cleanup hprof | Aleksey Kladov | 2021-03-29 | 1 | -7/+13 |
|/ | |||||
* | formatting fix | Ayomide Bamidele | 2021-03-29 | 2 | -2/+6 |
| | |||||
* | Folding range for statics | Ayomide Bamidele | 2021-03-29 | 1 | -0/+7 |
| | |||||
* | Folding range for consts | Ayomide Bamidele | 2021-03-29 | 2 | -1/+9 |
| | |||||
* | New FoldKinds - Consts, Statics | Ayomide Bamidele | 2021-03-29 | 1 | -1/+5 |
| | |||||
* | Test cases for folding consts and statics | Ayomide Bamidele | 2021-03-29 | 1 | -0/+20 |
| | |||||
* | Merge #8222 | bors[bot] | 2021-03-29 | 1 | -1/+0 |
|\ | | | | | | | | | | | | | | | 8222: Don't mark unlinked file diagnostic as unused r=lnicola a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8215, at least on VS Code Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Don't mark unlinked file diagnostic as unused | Jonas Schievink | 2021-03-28 | 1 | -1/+0 |
| | | |||||
* | | Merge #8212 | bors[bot] | 2021-03-28 | 21 | -96/+287 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | 8212: Basic support macro 2.0 r=jonas-schievink a=edwin0cheng Turn out it is quite straight forward :) r @jonas-schievink ![m2](https://user-images.githubusercontent.com/11014119/112712565-6eb99380-8f0b-11eb-88de-5d7f974dfe6d.png) Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Remove unused test fixtures | Edwin Cheng | 2021-03-28 | 1 | -4/+0 |
| | | |||||
| * | Add support for doc on hover for macro 2.0 | Edwin Cheng | 2021-03-27 | 2 | -2/+33 |
| | | |||||
| * | Unleash macro 2.0 in hightlight and more | Edwin Cheng | 2021-03-27 | 12 | -31/+49 |
| | | |||||
| * | Basic Support Macro 2.0 | Edwin Cheng | 2021-03-27 | 7 | -63/+209 |
| | | |||||
* | | Merge #8221 | bors[bot] | 2021-03-27 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 8221: Prefer adding `mod` declaration to lib.rs over file.rs in UnlinkedFile fix r=Veykril a=Veykril When there is a `lib.rs` and `main.rs` in one crate, one usually wants the `lib.rs` file to declare the modules. bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Prefer add `mod` declaration to lib.rs over file.rs in UnlinkedFile fix | Lukas Wirth | 2021-03-27 | 1 | -1/+1 |
| | | | |||||
* | | | Merge #8220 | bors[bot] | 2021-03-27 | 8 | -10/+15 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8220: Reorder some ide_db imports r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | | Cleanup ide_db imports | Lukas Wirth | 2021-03-27 | 8 | -10/+15 |
| |/ / | |||||
* | | | Merge #8213 | bors[bot] | 2021-03-27 | 2 | -5/+21 |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | 8213: Added support for const generics in impl generation r=Veykril a=ivan770 Closes #8211 Co-authored-by: ivan770 <[email protected]> | ||||
| * | | Added support for const generics in impl generation | ivan770 | 2021-03-27 | 2 | -5/+21 |
| | | | |||||
* | | | Merge #8201 | bors[bot] | 2021-03-27 | 7 | -70/+119 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8201: Fix recursive macro statements expansion r=edwin0cheng a=edwin0cheng This PR attempts to properly handle macro statement expansion by implementing the following: 1. Merge macro expanded statements to parent scope statements. 2. Add a new hir `Expr::MacroStmts` for handle tail expression infer. PS : The scope of macro expanded statements are so strange that it took more time than I thought to understand and implement it :( Fixes #8171 Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | | | Fix recursive macro statement expansion | Edwin Cheng | 2021-03-25 | 7 | -70/+119 |
| | | | | |||||
* | | | | Add TokenText | Aleksey Kladov | 2021-03-26 | 3 | -7/+89 |
| |_|/ |/| | | |||||
* | | | syntax: return owned string instead of leaking string | cynecx | 2021-03-26 | 16 | -27/+27 |
| | | | |||||
* | | | completion relevance distinguish between exact type match and could unify | Josh Mcguigan | 2021-03-26 | 5 | -44/+81 |
| | | | |||||
* | | | completion relevance consider if types can be unified | Josh Mcguigan | 2021-03-26 | 5 | -3/+47 |
| | | | |||||
* | | | Ignore main functions not in root module | ivan770 | 2021-03-26 | 1 | -1/+7 |
| |/ |/| | |||||
* | | Use more std::array::IntoIter | Laurențiu Nicola | 2021-03-25 | 1 | -4/+3 |
| | | |||||
* | | Use arrayvec 0.6 | Laurențiu Nicola | 2021-03-25 | 7 | -18/+16 |
|/ | |||||
* | Merge #7907 | bors[bot] | 2021-03-24 | 10 | -37/+250 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7907: Autoderef with visibility r=cynecx a=cynecx Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7841. I am not sure about the general approach here. Right now this simply tries to check whether the autoderef candidate is reachable from the current module. ~~However this doesn't exactly work with traits (see the `tests::macros::infer_derive_clone_in_core` test, which fails right now).~~ see comment below Refs: - `rustc_typeck` checking fields: https://github.com/rust-lang/rust/blob/66ec64ccf31883cd2c28d045912a76179c0c6ed2/compiler/rustc_typeck/src/check/expr.rs#L1610 r? @flodiebold Co-authored-by: cynecx <[email protected]> | ||||
| * | hir: don't use the self module as visible_from in iterate_method_candidates | cynecx | 2021-03-24 | 1 | -6/+1 |
| | | |||||
| * | hir_ty: don't call write_field_resolution when field candidate isn't visible | cynecx | 2021-03-24 | 1 | -6/+4 |
| | | |||||
| * | hir_def: move visibility queries from hir_ty to hir_def | cynecx | 2021-03-24 | 5 | -35/+43 |
| | | |||||
| * | hir_ty: add coverage testing for autoderef_visibility_method test | cynecx | 2021-03-20 | 2 | -0/+2 |
| | | |||||
| * | hir_ty: fix test by removing trailing whitespace | cynecx | 2021-03-20 | 1 | -24/+23 |
| | | |||||
| * | hir_ty: iterate_method_candidates_for_self_ty pass `visible_from_module` ↵ | cynecx | 2021-03-20 | 1 | -1/+6 |
| | | | | | | | | down to `iterate_inherent_methods` | ||||
| * | hir_ty: fix visibility in infer_inherent_method test | cynecx | 2021-03-20 | 1 | -16/+16 |
| | | |||||
| * | hir_ty: introduce visible_from_module param into method resolution | cynecx | 2021-03-20 | 4 | -4/+40 |
| | | |||||
| * | hir_ty: check field visibility while iterating through autoderef candidates | cynecx | 2021-03-20 | 1 | -14/+36 |
| | | |||||
| * | hir_ty: add field_visibilities and fn_visibility queries | cynecx | 2021-03-20 | 2 | -4/+33 |
| | | |||||
| * | hir_ty: add tests around autoderef with visibility checking | cynecx | 2021-03-20 | 1 | -0/+119 |
| | | |||||
| * | hir_ty: fix tests by making required methods public | cynecx | 2021-03-20 | 2 | -4/+4 |
| | | |||||
* | | Merge #8190 | bors[bot] | 2021-03-24 | 4 | -18/+42 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8190: Fix chalk_ir assertion r=flodiebold a=flodiebold Fixes #8150. I implemented a validator that catches this in the tests, but it'd need to get merged in Chalk first. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | | Fix chalk_ir assertion | Florian Diebold | 2021-03-24 | 4 | -18/+42 |
| | | | | | | | | | | | | Fixes #8150. | ||||
* | | | Document unlinked-file diagnostic | Jonas Schievink | 2021-03-24 | 1 | -0/+4 |
|/ / | |||||
* | | Sweep the new TraitEnvironmentQuery | Jonas Schievink | 2021-03-24 | 1 | -0/+1 |
| | | |||||
* | | refine comment style of tests | hi-rustin | 2021-03-24 | 2 | -48/+48 |
| | | |||||
* | | Merge #8168 | bors[bot] | 2021-03-24 | 1 | -7/+70 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 8168: correct `convert to guard return` let_stmt r=Veykril a=hi-rustin close https://github.com/rust-analyzer/rust-analyzer/issues/8074 Co-authored-by: hi-rustin <[email protected]> | ||||
| * | | correct `convert to guard return` let_stmt | hi-rustin | 2021-03-24 | 1 | -7/+70 |
| | | | | | | | | | | | | | | | | | | | | | | | | fix fix add check |