From 2808bb6d11b3fabc40711c6a6c3107e990b948f5 Mon Sep 17 00:00:00 2001 From: Laine Taffin Altman Date: Sun, 22 Jun 2025 15:31:39 -0700 Subject: [PATCH] phantom_variance_markers: fix identifier usage in macro This shouldn't have worked originally, as far as we can tell. --- library/core/src/marker/variance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/marker/variance.rs b/library/core/src/marker/variance.rs index f9638fea225b7..04bc139b7113f 100644 --- a/library/core/src/marker/variance.rs +++ b/library/core/src/marker/variance.rs @@ -18,7 +18,7 @@ macro_rules! phantom_type { pub struct $name:ident <$t:ident> ($($inner:tt)*); )*) => {$( $(#[$attr])* - pub struct $name<$t>($($inner)*) where T: ?Sized; + pub struct $name<$t>($($inner)*) where <$t>: ?Sized; impl $name where T: ?Sized