diff options
| author | Michael Goulet <michael@errs.io> | 2023-07-24 22:02:52 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-07-25 16:08:58 +0000 |
| commit | a7ed9c1da7a3d850be67e5cf5ae2fcabeb42de3b (patch) | |
| tree | e4c9749cc019bf479e963826e8ba599773d4220b /compiler/rustc_middle/src/macros.rs | |
| parent | de81007d1310580e6060f2356f1938e45cafb92c (diff) | |
| download | rust-a7ed9c1da7a3d850be67e5cf5ae2fcabeb42de3b.tar.gz rust-a7ed9c1da7a3d850be67e5cf5ae2fcabeb42de3b.zip | |
Make everything builtin!
Diffstat (limited to 'compiler/rustc_middle/src/macros.rs')
| -rw-r--r-- | compiler/rustc_middle/src/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/macros.rs b/compiler/rustc_middle/src/macros.rs index cd1c6c330bc..fca16d8e509 100644 --- a/compiler/rustc_middle/src/macros.rs +++ b/compiler/rustc_middle/src/macros.rs @@ -43,7 +43,7 @@ macro_rules! span_bug { #[macro_export] macro_rules! CloneLiftImpls { - ($($ty:ty,)+) => { + ($($ty:ty),+ $(,)?) => { $( impl<'tcx> $crate::ty::Lift<'tcx> for $ty { type Lifted = Self; @@ -59,7 +59,7 @@ macro_rules! CloneLiftImpls { /// allocated data** (i.e., don't need to be folded). #[macro_export] macro_rules! TrivialTypeTraversalImpls { - ($($ty:ty,)+) => { + ($($ty:ty),+ $(,)?) => { $( impl<'tcx> $crate::ty::fold::TypeFoldable<$crate::ty::TyCtxt<'tcx>> for $ty { fn try_fold_with<F: $crate::ty::fold::FallibleTypeFolder<$crate::ty::TyCtxt<'tcx>>>( |
