rust-analyzer/crates
bors[bot] ca3a54f0a4
Merge #6852
6852: Ignore lifetime params in substitutions r=matklad a=Veykril

[`hir_ty::utils::Generics`](https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/utils.rs#L153) currently only assumes type parameters but not lifetime parameters and therefor creates incorrect index and length calculations, this PR just makes the use sites ignore LifetimeGenerics for now.

This fixes the panic at least locally for me for `analysis-stats`. Funnily enough this panic prevented me from using reference search for the `args` field to fix this problem.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-12-13 11:34:43 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Merge #6845 2020-12-12 18:06:36 +00:00
base_db Introduce anchored_path 2020-12-09 19:07:05 +03:00
cfg Remove some redundant allocations 2020-12-12 12:27:09 -05:00
completion Remove some redundant allocations 2020-12-12 12:27:09 -05:00
flycheck Pin cargo_metadata 2020-11-25 10:11:53 -05:00
hir Merge #6818 2020-12-12 14:35:38 +00:00
hir_def Ignore lifetime params in substitutions 2020-12-13 11:34:44 +01:00
hir_expand Add Lifetimes to the HIR 2020-12-12 00:56:52 +01:00
hir_ty Merge #6852 2020-12-13 11:34:43 +00:00
ide Use Attrs::docs in NavigationTarget instead of DocCommentsOwner 2020-12-11 21:19:58 +01:00
ide_db Normalize spelling to American English 2020-12-10 17:51:56 +03:00
mbe Add missing arg for eat_char 2020-12-12 06:14:11 +08:00
parser Parse unsafe extern block 2020-11-22 20:44:56 -08:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Remove dummy ProcMacroClient in favor of Option 2020-12-07 17:16:50 +01:00
proc_macro_srv Avoid nesting Subtrees when parsing TokenStream 2020-12-09 14:58:46 +01:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Deny unreachable-pub 2020-11-02 14:07:08 +01:00
project_model Remove some redundant allocations 2020-12-12 12:27:09 -05:00
rust-analyzer Remove some redundant allocations 2020-12-12 12:27:09 -05:00
ssr Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
stdx add open Cargo.toml action 2020-11-12 17:48:07 -08:00
syntax Remove some redundant allocations 2020-12-12 12:27:09 -05:00
test_utils Make config.rs a single source of truth for configuration. 2020-12-08 19:25:41 +03:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Simplify error formatting 2020-11-26 21:07:15 +02:00
vfs Merge #6785 2020-12-09 16:32:03 +00:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00