Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: extract variable works in guards | Aleksey Kladov | 2021-04-05 | 1 | -18/+55 |
| | | | | closes #8336 | ||||
* | internal: explain "extract if condition" refactoring | Aleksey Kladov | 2021-04-05 | 1 | -9/+9 |
| | |||||
* | simplify visibility.rs | Jonas Schievink | 2021-04-05 | 1 | -3/+3 |
| | |||||
* | Intern `GenericParams` | Jonas Schievink | 2021-04-05 | 8 | -81/+46 |
| | | | | | Also share the same instance between `ItemTree` and `generic_params` query. | ||||
* | Add `GenericParams::shrink_to_fit` | Jonas Schievink | 2021-04-05 | 2 | -0/+10 |
| | | | | Reduces memory usage by over 10 MB | ||||
* | Intern more `TypeRef`s in generics | Jonas Schievink | 2021-04-05 | 4 | -14/+15 |
| | | | | Saves ~3 MB | ||||
* | analysis-stats: allow skipping type inference | Jonas Schievink | 2021-04-05 | 3 | -22/+42 |
| | | | | | This removes "noise" from memory profiles since it avoids lowering function bodies and types | ||||
* | Error when `rustfmt` component is unavailable | Jonas Schievink | 2021-04-04 | 1 | -1/+4 |
| | |||||
* | Merge #8328 | bors[bot] | 2021-04-04 | 17 | -814/+855 |
|\ | | | | | | | | | | | | | | | | | | | 8328: Move things in hir_ty into submodules r=flodiebold a=flodiebold - all the types that will be replaced by Chalk go to `types` - `TypeWalk` impls go to `walk` - also fix signature of `Substitution::interned` Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Move things from `traits` module to `types` as well | Florian Diebold | 2021-04-04 | 12 | -110/+107 |
| | | |||||
| * | Move things in hir_ty into submodules | Florian Diebold | 2021-04-04 | 11 | -707/+751 |
| | | | | | | | | | | - all the types that will be replaced by Chalk go to `types` - `TypeWalk` impls go to `walk` | ||||
* | | Merge #8325 | bors[bot] | 2021-04-04 | 4 | -33/+33 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | 8325: Check if bitflags deps pulls its weight r=jonas-schievink a=matklad Bitflags is generally a good dependency -- it's lightweight, well maintained and embraced by the ecosystem. I wonder, however, do we really need it? Doesn't feel like it adds much to be honest. Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Check if bitflags deps pulls its weight | Aleksey Kladov | 2021-04-04 | 4 | -33/+33 |
| | | | | | | | | | | | | | | | | Bitflags is generally a good dependency -- it's lightweight, well maintained and embraced by the ecosystem. I wonder, however, do we really need it? Doesn't feel like it adds much to be honest. | ||||
* | | Merge #8295 | bors[bot] | 2021-04-04 | 5 | -1/+398 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8295: Add `convert_into_to_from` assist r=Veykril a=obmarg This adds a "Convert Into to From" assist, useful since clippy has recently started adding lints on every `Into`. It covers converting the signature, and converting any `self`/`Self` references within the body. It does assume that every instance of `Into` can be converted to a `From`, which I _think_ is the case now. Let me know if there's something I'm not thinking of and I can try and make it smarter. Closes #8196 ![CleanShot 2021-04-02 at 13 39 54](https://user-images.githubusercontent.com/556490/113420108-9ce21c00-93c0-11eb-8c49-80b5fb189284.gif) I'm extremely new to this codebase so please let me know if anything needs changed. Co-authored-by: Graeme Coupar <[email protected]> | ||||
| * | | Convert Into to From assist | Graeme Coupar | 2021-04-03 | 5 | -1/+398 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a "Convert Into to From" assist, useful since clippy has recently started adding lints on every `Into`. It covers converting the signature, and converting any `self`/`Self` references within the body to the correct types. It does assume that every instance of `Into` can be converted to a `From`, which I _think_ is the case now. Let me know if there's something I'm not thinking of and I can try and make it smarter. | ||||
* | | | Add comment | Florian Diebold | 2021-04-04 | 1 | -0/+3 |
| | | | |||||
* | | | Replace Substitution::type_params | Florian Diebold | 2021-04-04 | 6 | -16/+15 |
| | | | |||||
* | | | Replace Substitution::bound_vars and ::type_params_for_generics | Florian Diebold | 2021-04-04 | 7 | -54/+42 |
| | | | |||||
* | | | Move TyBuilder to its own module | Florian Diebold | 2021-04-04 | 2 | -204/+221 |
| | | | |||||
* | | | Replace last uses of SubstsBuilder by TyBuilder | Florian Diebold | 2021-04-04 | 4 | -64/+23 |
| | | | |||||
* | | | Remove CallableSig::from_substs | Florian Diebold | 2021-04-04 | 1 | -11/+1 |
| | | | |||||
* | | | Use TyBuilder in another place | Florian Diebold | 2021-04-04 | 1 | -4/+3 |
| | | | |||||
* | | | Some more TyBuilder use | Florian Diebold | 2021-04-04 | 2 | -33/+25 |
| | | | |||||
* | | | Replace remaining uses of Substitution::build_for_def | Florian Diebold | 2021-04-04 | 6 | -21/+46 |
| | | | |||||
* | | | More TyBuilder use | Florian Diebold | 2021-04-04 | 1 | -12/+9 |
| | | | |||||
* | | | More TyBuilder use | Florian Diebold | 2021-04-04 | 1 | -23/+15 |
| | | | |||||
* | | | Add and start using TraitRef and ProjectionTy builders | Florian Diebold | 2021-04-04 | 6 | -39/+48 |
| | | | |||||
* | | | Move Ty::builtin to TyBuilder | Florian Diebold | 2021-04-04 | 3 | -20/+20 |
| | | | |||||
* | | | Add TyBuilder::adt | Florian Diebold | 2021-04-04 | 4 | -45/+104 |
| | | | |||||
* | | | Move Ty::fn_ptr to TyBuilder | Florian Diebold | 2021-04-04 | 2 | -11/+12 |
| | | | |||||
* | | | Add TyBuilder::unit() and TyExt::is_unit() | Florian Diebold | 2021-04-04 | 7 | -25/+39 |
| | | | |||||
* | | | Add TyBuilder | Florian Diebold | 2021-04-04 | 1 | -0/+6 |
| |/ |/| | |||||
* | | Merge #8324 | bors[bot] | 2021-04-04 | 1 | -1/+11 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8324: Add `Body::shrink_to_fit` r=jonas-schievink a=jonas-schievink Saves ~15 MB bors r+ Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | Add `Body::shrink_to_fit` | Jonas Schievink | 2021-04-04 | 1 | -1/+11 |
| | | | |||||
* | | | Only remember blocks that have a DefMap | Jonas Schievink | 2021-04-04 | 2 | -6/+8 |
|/ / | |||||
* | | Merge #8322 | bors[bot] | 2021-04-04 | 4 | -5/+14 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 8322: Access a body's block def maps via a method r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | Access a body's block def maps via a method | Jonas Schievink | 2021-04-04 | 4 | -5/+14 |
| | | | |||||
* | | | Use exhaustive matches in shrink_to_fit impls | Jonas Schievink | 2021-04-04 | 2 | -13/+38 |
|/ / | |||||
* | | Make `ast_to_token_tree` infallible | Jonas Schievink | 2021-04-04 | 11 | -41/+32 |
| | | | | | | | | It could never return `None`, so reflect that in the return type | ||||
* | | Glob-reexport hir_def database types | Jonas Schievink | 2021-04-04 | 1 | -9/+1 |
| | | |||||
* | | Use shrink_to_fit to reduce DefMap sizes | Jonas Schievink | 2021-04-03 | 3 | -1/+25 |
| | | |||||
* | | Use bitflags to compress function properties | Jonas Schievink | 2021-04-03 | 10 | -71/+119 |
| | | | | | | | | Very minor savings, only 1 MB or so | ||||
* | | Intern `ModPath` in `Import` | Jonas Schievink | 2021-04-03 | 3 | -4/+8 |
| | | | | | | | | Minor savings only | ||||
* | | Rename Ty::interned to Ty::kind | Florian Diebold | 2021-04-03 | 17 | -75/+73 |
| | | | | | | | | ... since that's the actual method on Chalk side that matches the signature. | ||||
* | | Introduce `GenericArg` like in Chalk | Florian Diebold | 2021-04-03 | 17 | -161/+323 |
| | | | | | | | | | | | | | | Plus some more adaptations to Substitution. Lots of `assert_ty_ref` that we should revisit when introducing lifetime/const parameters. | ||||
* | | Allow include! an empty content file | Edwin Cheng | 2021-04-03 | 3 | -3/+33 |
| | | |||||
* | | Fix joinLines panic if run on the empty last line | Edwin Cheng | 2021-04-03 | 1 | -2/+16 |
| | | |||||
* | | Support `#[rustc_builtin_macro = "builtin_name"]` | Jonas Schievink | 2021-04-03 | 1 | -1/+11 |
| | | |||||
* | | Implement edition-dependent builtin `panic!` macro | Jonas Schievink | 2021-04-03 | 3 | -2/+26 |
| | | |||||
* | | Allow `,` to delimit macro 2.0 rules | Jonas Schievink | 2021-04-03 | 3 | -2/+30 |
| | |