1
Fork 0

Remove unnecessary lifetime argument from arena macros.

Because it's always `'tcx`. In fact, some of them use a mixture of
passed-in `$tcx` and hard-coded `'tcx`, so no other lifetime would even
work.

This makes the code easier to read.
This commit is contained in:
Nicholas Nethercote 2021-11-16 09:28:26 +11:00
parent d914f17ca7
commit 552073701f
5 changed files with 66 additions and 66 deletions

View file

@ -84,7 +84,7 @@ mod item;
mod pat;
mod path;
rustc_hir::arena_types!(rustc_arena::declare_arena, 'tcx);
rustc_hir::arena_types!(rustc_arena::declare_arena);
struct LoweringContext<'a, 'hir: 'a> {
/// Used to assign IDs to HIR nodes that do not directly correspond to AST nodes.