Skip to content

Commit 2b22d35

Browse files
Rollup merge of rust-lang#142894 - pthariensflame:patch-1, r=jhpratt
phantom_variance_markers: fix identifier usage in macro This shouldn't have worked originally, as far as we can tell. Fixes an implementation detail of rust-lang#135806.
2 parents fed7129 + b946d06 commit 2b22d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker/variance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ macro_rules! phantom_type {
1818
pub struct $name:ident <$t:ident> ($($inner:tt)*);
1919
)*) => {$(
2020
$(#[$attr])*
21-
pub struct $name<$t>($($inner)*) where T: ?Sized;
21+
pub struct $name<$t>($($inner)*) where $t: ?Sized;
2222

2323
impl<T> $name<T>
2424
where T: ?Sized

0 commit comments

Comments
 (0)