tamer: Remove wip-nir-to-air feature flag in favor of existing wip-asg-derived-xmli

The latter has always enabled the former, and there's really no reason I'd
enable one but not the other at this point.  It's just confusing.

DEV-13708
main
Mike Gerwitz 2023-04-05 22:28:30 -04:00
parent c0e5b1d750
commit e8371c452e
2 changed files with 5 additions and 11 deletions

View File

@ -52,15 +52,9 @@ unicode-width = "0.1.5"
# This is enabled automatically for the `test` profile.
parser-trace-stderr = []
# Lowering NIR into AIR will begin adding objects to the graph. Since
# loweirng is not complete, this may result in errors. This flag can be
# removed when we are able to confidently state that this lowering will not
# cause issues in production TAME code.
wip-nir-to-air = []
# Derive `xmli` file from the ASG rather than a XIR token stream. This
# proves that enough information has been added to the graph for the entire
# program to be reconstructed. The `xmli` file will be a new program
# _derived from_ the original, and so will not match exactly.
wip-asg-derived-xmli = ["wip-nir-to-air"]
wip-asg-derived-xmli = []

View File

@ -26,7 +26,7 @@ use crate::{
use std::{error::Error, fmt::Display};
// These are also used by the `test` module which imports `super`.
#[cfg(feature = "wip-nir-to-air")]
#[cfg(feature = "wip-asg-derived-xmli")]
use crate::{
asg::ExprOp,
nir::{Nir::*, NirEntity::*},
@ -56,7 +56,7 @@ impl ParseState for NirToAir {
type Error = NirToAirError;
type Context = QueuedObj;
#[cfg(not(feature = "wip-nir-to-air"))]
#[cfg(not(feature = "wip-asg-derived-xmli"))]
fn parse_token(
self,
tok: Self::Token,
@ -68,7 +68,7 @@ impl ParseState for NirToAir {
Transition(Ready).ok(Air::Todo(UNKNOWN_SPAN))
}
#[cfg(feature = "wip-nir-to-air")]
#[cfg(feature = "wip-asg-derived-xmli")]
fn parse_token(
self,
tok: Self::Token,
@ -210,5 +210,5 @@ impl Diagnostic for NirToAirError {
}
}
#[cfg(all(test, feature = "wip-nir-to-air"))]
#[cfg(all(test, feature = "wip-asg-derived-xmli"))]
mod test;