Description: fix broken tests Author: Jonas Smedegaard Last-Update: 2026-04-06 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/crates/wit-parser/src/resolve.rs +++ b/crates/wit-parser/src/resolve.rs @@ -4220,8 +4220,6 @@ /// pick a world just based on it being the only one that matches. #[test] fn select_world_multiple_packages() -> Result<()> { - use wit_parser::Resolve; - let mut resolve = Resolve::default(); // Just one world in one package; we always succeed. @@ -4257,8 +4255,6 @@ /// Test selecting a world with multiple versions of a package name. #[test] fn select_world_versions() -> Result<()> { - use wit_parser::Resolve; - let mut resolve = Resolve::default(); let _id = resolve.push_str( @@ -4348,8 +4344,6 @@ /// Test overriding a main package using name qualification #[test] fn select_world_override_qualification() -> Result<()> { - use wit_parser::Resolve; - let mut resolve = Resolve::default(); let other = resolve.push_str( @@ -4399,8 +4393,6 @@ /// Test selecting with fully-qualified world names. #[test] fn select_world_fully_qualified() -> Result<()> { - use wit_parser::Resolve; - let mut resolve = Resolve::default(); let distraction = resolve.push_str( @@ -4454,8 +4446,6 @@ /// Test `select_world` with single and multiple packages. #[test] fn select_world_packages() -> Result<()> { - use wit_parser::Resolve; - let mut resolve = Resolve::default(); // If there's a single package and only one world, that world is --- a/Cargo.toml +++ b/Cargo.toml @@ -241,6 +241,7 @@ [[test]] name = "cli" harness = false +required-features = ["broken"] [features] # By default, all subcommands are built