From 1706c55645ed093465674bf79d25a8a21550d763 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 5 Jun 2023 16:26:31 -0400 Subject: [PATCH] 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-13162 --- tamer/src/nir/air.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tamer/src/nir/air.rs b/tamer/src/nir/air.rs index d42d0718..ff43a83d 100644 --- a/tamer/src/nir/air.rs +++ b/tamer/src/nir/air.rs @@ -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; /// 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 {