Address the asm! case of #22234.

This commit is contained in:
Felix S. Klock II
2015-02-15 22:14:03 +01:00
parent 20d8222e6a
commit 52bdda778a
4 changed files with 40 additions and 6 deletions

View File

@@ -1425,7 +1425,14 @@ impl<'feat> ExpansionConfig<'feat> {
pub fn enable_quotes(&self) -> bool {
match self.features {
Some(&Features { quote: true, .. }) => true,
Some(&Features { allow_quote: true, .. }) => true,
_ => false,
}
}
pub fn enable_asm(&self) -> bool {
match self.features {
Some(&Features { allow_asm: true, .. }) => true,
_ => false,
}
}