Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Compilation speed | Aleksey Kladov | 2021-03-09 | 1 | -1/+1 | |
| | ||||||
* | Delete `ContainerId` | Jonas Schievink | 2021-03-09 | 4 | -7/+7 | |
| | ||||||
* | Stop using `ContainerId` in `AssocContainerId` | Jonas Schievink | 2021-03-09 | 3 | -3/+3 | |
| | ||||||
* | Check ancestor maps when computing traits in scope | Jonas Schievink | 2021-03-09 | 1 | -0/+33 | |
| | ||||||
* | Use `body.block_scopes` in `hir_ty` tests | Jonas Schievink | 2021-03-09 | 1 | -6/+14 | |
| | ||||||
* | Use `body.block_scopes` to validate inner items | Jonas Schievink | 2021-03-09 | 1 | -3/+8 | |
| | ||||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 14 | -38/+25 | |
| | ||||||
* | Cargo update | kjeremy | 2021-03-08 | 1 | -3/+3 | |
| | | | | Chalk changes just a version # bump. There are no actual commits. | |||||
* | Make two calls virtual | Laurențiu Nicola | 2021-03-05 | 1 | -1/+1 | |
| | ||||||
* | Use chalk_ir::AdtId | Lukas Wirth | 2021-03-04 | 10 | -70/+65 | |
| | ||||||
*-. | Merge #7829 #7833 | bors[bot] | 2021-03-01 | 10 | -62/+73 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7829: Bump deps r=matklad a=lnicola Unfortunately, this brings a bunch of proc macros dep because `cargo-metadata` went full-in on `derive-builder`. I'm not sure what we can do here.. 7833: Use chalk_ir::Mutability r=Veykril a=Veykril Co-authored-by: Laurențiu Nicola <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | |||||
| | * | Use chalk_ir::Mutability | Lukas Wirth | 2021-03-01 | 9 | -59/+70 | |
| |/ |/| | ||||||
| * | Bump chalk | Laurențiu Nicola | 2021-03-01 | 1 | -3/+3 | |
|/ | ||||||
* | Introduce Ty::Alias | Lukas Wirth | 2021-03-01 | 13 | -94/+105 | |
| | ||||||
* | Assert index relationship between type_variable_table and var_unification_table | Lukas Wirth | 2021-03-01 | 2 | -22/+13 | |
| | ||||||
* | Being Ty::InferenceVar closes to chalk equivalent | Lukas Wirth | 2021-03-01 | 10 | -150/+170 | |
| | ||||||
* | Merge #7816 | bors[bot] | 2021-02-28 | 8 | -81/+93 | |
|\ | | | | | | | | | | | | | | | 7816: Lift Ty::Fn into a struct r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Lift FnPointer into a struct | Lukas Wirth | 2021-02-28 | 8 | -81/+93 | |
| | | ||||||
* | | hir_ty: use default type generic for box expressions | cynecx | 2021-02-28 | 2 | -0/+61 | |
|/ | ||||||
* | Remove Substs from Ty::ForeignType | Lukas Wirth | 2021-02-28 | 5 | -18/+9 | |
| | ||||||
* | Turn Ty::Tuple variant into a tuple-variant | Lukas Wirth | 2021-02-28 | 7 | -20/+18 | |
| | ||||||
* | Fix code_model::Type::walk not walking all types | Lukas Wirth | 2021-02-28 | 2 | -19/+18 | |
| | ||||||
* | Inline TypeCtor into Ty | Lukas Wirth | 2021-02-28 | 15 | -832/+644 | |
| | ||||||
* | Use chalk_ir::Scalar directly | Lukas Wirth | 2021-02-28 | 6 | -197/+78 | |
| | ||||||
* | Introduce TypeCtor::Scalar | Lukas Wirth | 2021-02-28 | 9 | -298/+271 | |
| | ||||||
* | Add test from #7273 | Laurențiu Nicola | 2021-02-21 | 1 | -0/+45 | |
| | ||||||
* | Bump deps | Laurențiu Nicola | 2021-02-21 | 1 | -3/+3 | |
| | ||||||
* | Don't write trailing whitespace when formatting empty GenericPredicates | Lukas Wirth | 2021-02-20 | 2 | -11/+22 | |
| | ||||||
* | Don't lower TypeBound::Lifetime as GenericPredicate::Error | Lukas Wirth | 2021-02-20 | 3 | -23/+21 | |
| | ||||||
* | Add test | Laurențiu Nicola | 2021-02-20 | 1 | -0/+24 | |
| | ||||||
* | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 2 | -13/+11 | |
| | ||||||
* | Add test for #1165 | Jonas Schievink | 2021-02-10 | 1 | -0/+29 | |
| | | | | Closes #1165 | |||||
* | Slightly expand test | Jonas Schievink | 2021-02-10 | 1 | -0/+3 | |
| | ||||||
* | Add more tests | Jonas Schievink | 2021-02-10 | 2 | -8/+84 | |
| | ||||||
* | Put the old resolver back | Jonas Schievink | 2021-02-10 | 1 | -3/+8 | |
| | ||||||
* | Update fixed tests | Jonas Schievink | 2021-02-10 | 2 | -18/+20 | |
| | ||||||
* | infer: update resolver when descending into block | Jonas Schievink | 2021-02-10 | 2 | -16/+39 | |
| | ||||||
* | Infra for "unit" benchmarking | Aleksey Kladov | 2021-02-09 | 1 | -11/+12 | |
| | ||||||
* | Merge #7602 | bors[bot] | 2021-02-08 | 2 | -11/+38 | |
|\ | | | | | | | | | | | | | | | 7602: Check for dyn impls in method resolution r=flodiebold a=Veykril Fixes #6777 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Check for dyn impls in method resolution | Lukas Wirth | 2021-02-08 | 2 | -11/+38 | |
| | | ||||||
* | | Update crates | kjeremy | 2021-02-08 | 2 | -5/+6 | |
|/ | | | | Pulls in https://github.com/rust-lang/chalk/pull/682 | |||||
* | Merge #7574 | bors[bot] | 2021-02-05 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | | | | | 7574: Remove various redundant clones r=kjeremy a=yoshuawuyts I noticed when running clippy through RA that there are a few instances where `clone` is called where it's not actually needed. I figured a small patch to remove these might be welcome here. Thanks! Co-authored-by: Yoshua Wuyts <[email protected]> | |||||
| * | Remove redundant clones | Yoshua Wuyts | 2021-02-05 | 1 | -1/+1 | |
| | | ||||||
| | | ||||||
| \ | ||||||
*-. \ | Merge #7570 #7571 | bors[bot] | 2021-02-05 | 2 | -161/+151 | |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7570: Add doc gen to the `generate_enum_match_method` assist r=yoshuawuyts a=yoshuawuyts Implements a small extension to https://github.com/rust-analyzer/rust-analyzer/pull/7562, generating default comments. I wasn't sure if this would fit the goals of Rust-Analyzer, so I chose to split it into a separate PR. This is especially useful when writing code in a codebase which uses `#![warn(missing_docs)]` lint, as many production-grade libraries do. The comments we're generating here are similar to the ones found on [`Option::is_some`](https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some) and [`Result::is_err`](https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err). I briefly considered only generating these for `pub` types, but they seem small and unobtrusive enough that they're probably useful in the general case. Thanks! ## Example __input__ ```rust pub(crate) enum Variant { Undefined, Minor, // cursor here Major, } ``` __output__ ```rust pub(crate) enum Variant { Undefined, Minor, Major, } impl Variant { /// Returns `true` if the variant is [`Minor`]. pub(crate) fn is_minor(&self) -> bool { matches!(self, Self::Minor) } } ``` ## Future Directions This opens up the path to adding an assist for generating these comments on existing `is_` methods. This would make it both easy to document new code, and update existing code with documentation. 7571: Cleanup decl_check r=Veykril a=Veykril bors r+ Co-authored-by: Yoshua Wuyts <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | |||||
| | * | Cleanup decl_check | Lukas Wirth | 2021-02-05 | 2 | -161/+151 | |
| |/ | ||||||
* / | Remove unnecessary allocs in case_conv | Lukas Wirth | 2021-02-05 | 1 | -18/+16 | |
|/ | ||||||
* | Make `ModPath`'s representation private | Jonas Schievink | 2021-02-04 | 1 | -1/+1 | |
| | ||||||
* | Use block_def_map in body lowering | Jonas Schievink | 2021-02-03 | 1 | -1/+1 | |
| | ||||||
* | Bump chalk | Laurențiu Nicola | 2021-02-02 | 2 | -5/+5 | |
| | ||||||
* | Revert "Use block_def_map in body lowering" | Jonas Schievink | 2021-02-02 | 1 | -1/+1 | |
| |