1
Fork 0
rust/compiler/rustc_hir/src
bors 10f4ce324b Auto merge of #98279 - cjgillot:all-fresh-nofn, r=petrochenkov
Create elided lifetime parameters for function-like types

Split from https://github.com/rust-lang/rust/pull/97720

This PR refactor lifetime generic parameters in bare function types and parenthesized traits to introduce the additional required lifetimes as fresh parameters in a `for<>` bound.

This PR does the same to lifetimes appearing in closure signatures, and as-if introducing `for<>` bounds on closures (without the associated change in semantics).

r? `@petrochenkov`
2022-06-22 10:48:58 +00:00
..
arena.rs Box HIR Generics and Impl. 2022-04-30 13:51:49 +02:00
def.rs Always create parameters for functions-like types. 2022-06-21 21:13:41 +02:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs Separate source_span and expn_that_defined from Definitions. 2022-06-14 22:45:51 +02:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir.rs Use CreateParameter mode for closures too. 2022-06-21 21:13:43 +02:00
hir_id.rs Auto merge of #96082 - michaelwoerister:less_impl_stable_hash_via_hash, r=compiler-errors 2022-04-20 03:51:09 +00:00
intravisit.rs Use CreateParameter mode for closures too. 2022-06-21 21:13:43 +02:00
itemlikevisit.rs remove ItemLikeVisitor and DeepVisitor 2022-05-13 11:46:06 -04:00
lang_items.rs Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
lib.rs Apply track_caller to closure on expect_non_local() 2022-05-31 23:57:13 +09:00
pat_util.rs Simplify for loop desugar 2021-11-21 08:15:21 -06:00
stable_hash_impls.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
target.rs add comment about restriction of Target::from_def_kind 2022-04-09 16:03:16 -04:00
tests.rs Revert "Revert "Fix test"" 2021-07-06 11:28:06 +02:00
weak_lang_items.rs Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00