Remove unused arena macro args
This commit is contained in:
parent
dbb0fe9d80
commit
1a2fe87b09
5 changed files with 10 additions and 10 deletions
|
@ -635,7 +635,7 @@ pub macro which_arena_for_type {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
pub macro declare_arena([], [$($a:tt $name:ident: $ty:ty,)*], $tcx:lifetime) {
|
pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*], $tcx:lifetime) {
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct Arena<$tcx> {
|
pub struct Arena<$tcx> {
|
||||||
pub dropless: $crate::DroplessArena,
|
pub dropless: $crate::DroplessArena,
|
||||||
|
|
|
@ -84,7 +84,7 @@ mod path;
|
||||||
|
|
||||||
const HIR_ID_COUNTER_LOCKED: u32 = 0xFFFFFFFF;
|
const HIR_ID_COUNTER_LOCKED: u32 = 0xFFFFFFFF;
|
||||||
|
|
||||||
rustc_hir::arena_types!(rustc_arena::declare_arena, [], 'tcx);
|
rustc_hir::arena_types!(rustc_arena::declare_arena, 'tcx);
|
||||||
|
|
||||||
struct LoweringContext<'a, 'hir: 'a> {
|
struct LoweringContext<'a, 'hir: 'a> {
|
||||||
/// Used to assign IDs to HIR nodes that do not directly correspond to AST nodes.
|
/// Used to assign IDs to HIR nodes that do not directly correspond to AST nodes.
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
/// where `T` is the type listed. These impls will appear in the implement_ty_decoder! macro.
|
/// where `T` is the type listed. These impls will appear in the implement_ty_decoder! macro.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! arena_types {
|
macro_rules! arena_types {
|
||||||
($macro:path, $args:tt, $tcx:lifetime) => (
|
($macro:path, $tcx:lifetime) => (
|
||||||
$macro!($args, [
|
$macro!([
|
||||||
// HIR types
|
// HIR types
|
||||||
[few] hir_krate: rustc_hir::Crate<$tcx>,
|
[few] hir_krate: rustc_hir::Crate<$tcx>,
|
||||||
[] arm: rustc_hir::Arm<$tcx>,
|
[] arm: rustc_hir::Arm<$tcx>,
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
/// listed. These impls will appear in the implement_ty_decoder! macro.
|
/// listed. These impls will appear in the implement_ty_decoder! macro.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! arena_types {
|
macro_rules! arena_types {
|
||||||
($macro:path, $args:tt, $tcx:lifetime) => (
|
($macro:path, $tcx:lifetime) => (
|
||||||
$macro!($args, [
|
$macro!([
|
||||||
[] layouts: rustc_target::abi::Layout,
|
[] layouts: rustc_target::abi::Layout,
|
||||||
// AdtDef are interned and compared by address
|
// AdtDef are interned and compared by address
|
||||||
[] adt_def: rustc_middle::ty::AdtDef,
|
[] adt_def: rustc_middle::ty::AdtDef,
|
||||||
|
@ -109,4 +109,4 @@ macro_rules! arena_types {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
arena_types!(rustc_arena::declare_arena, [], 'tcx);
|
arena_types!(rustc_arena::declare_arena, 'tcx);
|
||||||
|
|
|
@ -437,15 +437,15 @@ macro_rules! impl_arena_allocatable_decoder {
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! impl_arena_allocatable_decoders {
|
macro_rules! impl_arena_allocatable_decoders {
|
||||||
([], [$($a:tt $name:ident: $ty:ty,)*], $tcx:lifetime) => {
|
([$($a:tt $name:ident: $ty:ty,)*], $tcx:lifetime) => {
|
||||||
$(
|
$(
|
||||||
impl_arena_allocatable_decoder!($a [[$name: $ty], $tcx]);
|
impl_arena_allocatable_decoder!($a [[$name: $ty], $tcx]);
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rustc_hir::arena_types!(impl_arena_allocatable_decoders, [], 'tcx);
|
rustc_hir::arena_types!(impl_arena_allocatable_decoders, 'tcx);
|
||||||
arena_types!(impl_arena_allocatable_decoders, [], 'tcx);
|
arena_types!(impl_arena_allocatable_decoders, 'tcx);
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! implement_ty_decoder {
|
macro_rules! implement_ty_decoder {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue