diff options
| author | bors <bors@rust-lang.org> | 2023-02-17 17:42:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-17 17:42:51 +0000 |
| commit | 9aa5c24b7d763fb98d998819571128ff2eb8a3ca (patch) | |
| tree | 8cfe1d86dcc61127aa656f5202c6db2296d07804 /compiler/rustc_hir_analysis/src/structured_errors | |
| parent | f722b24eb9ea35a7cc187a1cb5c50d4d324f5855 (diff) | |
| parent | dce666b797eeba0294ffd253ff5e473bf9f0c3eb (diff) | |
| download | rust-9aa5c24b7d763fb98d998819571128ff2eb8a3ca.tar.gz rust-9aa5c24b7d763fb98d998819571128ff2eb8a3ca.zip | |
Auto merge of #108075 - WaffleLapkin:de-arena-allocates-you-OwO, r=Nilstrieb
Remove `arena_cache` modifier from `associated_item` query & copy `ty::AssocItem` instead of passing by ref r? `@ghost`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs index 9133e6540d4..560ffc620e0 100644 --- a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs +++ b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs @@ -423,7 +423,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> { fn get_unbound_associated_types(&self) -> Vec<String> { if self.tcx.is_trait(self.def_id) { - let items: &AssocItems<'_> = self.tcx.associated_items(self.def_id); + let items: &AssocItems = self.tcx.associated_items(self.def_id); items .in_definition_order() .filter(|item| item.kind == AssocKind::Type) |
