Generate ScopeId using newtype_index macro

This commit is contained in:
Santiago Pastorino 2017-09-28 17:08:28 -03:00
parent 8ee16f4352
commit 271a492cb2
2 changed files with 3 additions and 14 deletions

View file

@ -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)
}
}