Skip to content

Commit

Permalink
fix(stageleft_tool): avoid generating warnings for unexpected `stagel…
Browse files Browse the repository at this point in the history
…eft_devel` feature (hydro-project#1643)

Crates using stageleft can always be safely built without ever touching
this feature, it's only used as a helper to improve incremental
compilation performance for non-library crates.

Co-authored-by: Mingwei Samuel <mingwei.samuel@gmail.com>
  • Loading branch information
shadaj and MingweiSamuel authored Jan 14, 2025
1 parent efb31e1 commit c7d2152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stageleft_tool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ pub fn gen_final_helper() {
#[macro_export]
macro_rules! gen_final {
() => {
#[allow(unexpected_cfgs)]
#[cfg(not(feature = "stageleft_devel"))]
$crate::gen_final_helper()
};
Expand Down

0 comments on commit c7d2152

Please sign in to comment.