Generate ScopeId using newtype_index macro
This commit is contained in:
parent
8ee16f4352
commit
271a492cb2
2 changed files with 3 additions and 14 deletions
|
|
@ -51,7 +51,8 @@ macro_rules! newtype_index {
|
|||
|
||||
impl $name {
|
||||
// HACK use for constants
|
||||
pub const fn const_new(x: u32) -> Self {
|
||||
#[allow(unused)]
|
||||
const fn const_new(x: u32) -> Self {
|
||||
$name(x)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue