Skip to content

Commit a2ce768

Browse files
committed
checkpoint
Signed-off-by: lucasew <[email protected]>
1 parent 41c94c6 commit a2ce768

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/ratchet.rs

+14-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::collections::HashMap;
77
use relative_path::RelativePathBuf;
88

99
use crate::nix_file::CallPackageArgumentInfo;
10-
use crate::problem::{npv_160, npv_161, npv_162, npv_163, Problem};
10+
use crate::problem::{npv_160, npv_161, npv_162, npv_163, npv_169, Problem};
1111
use crate::validation::{self, Validation, Validation::Success};
1212

1313
/// The ratchet value for the entirety of Nixpkgs.
@@ -175,3 +175,16 @@ impl ToProblem for UsesByName {
175175
}
176176
}
177177
}
178+
179+
// The ratchet value of an attribute for the check that new nixpkgs changes do not
180+
// introduce top level with or withs that could shadow scope.
181+
182+
pub enum DoesNotIntroduceToplevelWiths {}
183+
184+
impl ToProblem for DoesNotIntroduceToplevelWiths {
185+
type ToContext = ();
186+
187+
fn to_problem(_name: &str, _optional_from: Option<()>, _to: &Self::ToContext) -> Problem {
188+
npv_169::TopLevelWithMayShadowVariablesAndBreakStaticChecks::new("").into()
189+
}
190+
}

0 commit comments

Comments
 (0)