diff options
Diffstat (limited to 'src/ir/context.rs')
-rw-r--r-- | src/ir/context.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index 6a0f07d9..a0d4de1e 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -2299,7 +2299,9 @@ If you encounter an error missing from this list, please file an issue or a PR!" let mut prefix_path = parent.path_for_allowlisting(self).clone(); enum_.variants().iter().any(|variant| { - prefix_path.push(variant.name().into()); + prefix_path.push( + variant.name_for_allowlisting().into(), + ); let name = prefix_path[1..].join("::"); prefix_path.pop().unwrap(); self.options().allowlisted_vars.matches(&name) |