File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ cfg_if! {
152
152
if #[ cfg( feature = "extern-const-fn" ) ] {
153
153
#[ allow( unused_macros) ]
154
154
macro_rules! f {
155
- ( $( pub fn $i: ident( $( $arg: ident: $argty: ty) , * ) $ ( $constness : ident ) * -> $ret: ty {
155
+ ( $( pub $ ( { $constness : ident } ) * fn $i: ident( $( $arg: ident: $argty: ty) , * ) -> $ret: ty {
156
156
$( $body: stmt) ; *
157
157
} ) * ) => ( $(
158
158
#[ inline]
@@ -163,7 +163,7 @@ cfg_if! {
163
163
}
164
164
} else {
165
165
macro_rules! f {
166
- ( $( pub fn $i: ident( $( $arg: ident: $argty: ty) , * ) $ ( $constness : ident ) * -> $ret: ty {
166
+ ( $( pub $ ( { $constness : ident } ) * fn $i: ident( $( $arg: ident: $argty: ty) , * ) -> $ret: ty {
167
167
$( $body: stmt) ; *
168
168
} ) * ) => ( $(
169
169
#[ inline]
Original file line number Diff line number Diff line change @@ -1182,7 +1182,7 @@ f! {
1182
1182
cmsg. offset( 1 ) as * mut :: c_uchar
1183
1183
}
1184
1184
1185
- pub fn CMSG_SPACE ( length: :: c_uint) const -> :: c_uint {
1185
+ pub { const } fn CMSG_SPACE ( length: :: c_uint) -> :: c_uint {
1186
1186
( CMSG_ALIGN ( length as usize ) + CMSG_ALIGN ( :: mem:: size_of:: <cmsghdr>( ) ) )
1187
1187
as :: c_uint
1188
1188
}
You can’t perform that action at this time.
0 commit comments