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-13708main
parent
c0e5b1d750
commit
e8371c452e
|
@ -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 = []
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue