Commit e82f077 1 parent 88078f2 commit e82f077 Copy full SHA for e82f077
File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -65,28 +65,12 @@ macro_rules! prefixed_export {
65
65
}
66
66
67
67
macro_rules! prefixed_item {
68
- // Calculate the prefixed name in a separate layer of macro expansion
69
- // because rustc won't currently accept a non-literal expression as
70
- // the value for `#[link_name = value]`.
71
68
{
72
69
$attr: ident
73
70
$name: ident
74
71
{ $item: item }
75
72
} => {
76
- prefixed_item! {
77
- $attr
78
- { concat!( env!( "RING_CORE_PREFIX" ) , stringify!( $name) ) }
79
- { $item }
80
- }
81
- } ;
82
-
83
- // Output the item.
84
- {
85
- $attr: ident
86
- { $prefixed_name: expr }
87
- { $item: item }
88
- } => {
89
- #[ $attr = $prefixed_name]
73
+ #[ $attr = concat!( env!( "RING_CORE_PREFIX" ) , stringify!( $name) ) ]
90
74
$item
91
75
} ;
92
76
}
You can’t perform that action at this time.
0 commit comments