tamer: nir::air: Feature-flag SYM_TRUE
The code utilizing this is flagged, and so the build would output warnings saying that it was not used. This resolves that (I've been aware of it for far too long; I'm developing behind the `wip-asg-derived-xmli` flag where I don't usually see it). DEV-13162main
parent
93cc0d2ce1
commit
1706c55645
|
@ -26,7 +26,6 @@ use crate::{
|
|||
fmt::{DisplayWrapper, TtQuote},
|
||||
parse::prelude::*,
|
||||
span::Span,
|
||||
sym::{st::raw::U_TRUE, SymbolId},
|
||||
};
|
||||
use arrayvec::ArrayVec;
|
||||
use std::{error::Error, fmt::Display};
|
||||
|
@ -36,6 +35,7 @@ use std::{error::Error, fmt::Display};
|
|||
use crate::{
|
||||
asg::ExprOp,
|
||||
nir::{Nir::*, NirEntity::*},
|
||||
sym::{st::raw::U_TRUE, SymbolId},
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Default)]
|
||||
|
@ -78,6 +78,7 @@ type ObjStack = ArrayVec<Air, 2>;
|
|||
|
||||
/// The symbol to use when lexically expanding shorthand notations to
|
||||
/// compare against values of `1`.
|
||||
#[cfg(feature = "wip-asg-derived-xmli")]
|
||||
pub const SYM_TRUE: SymbolId = U_TRUE;
|
||||
|
||||
impl ParseState for NirToAir {
|
||||
|
|
Loading…
Reference in New Issue