We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
::
$crate::
crate::
1 parent 99a489d commit 3b39ba1Copy full SHA for 3b39ba1
src/macros.rs
@@ -270,7 +270,8 @@ macro_rules! c_enum {
270
271
// Use a specific type if provided, otherwise default to `c_uint`
272
(@ty $repr:ty) => { $repr };
273
- (@ty) => { $crate::c_uint };
+ // This has a space after `$crate` to avoid matching the regex for `crate::`.
274
+ (@ty) => { $crate :: c_uint };
275
}
276
277
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
0 commit comments