Clean up which/which-support Cargo feature (#5019)

* Rename "which" feature to "which-support"

* Ignore currently broken environment tests
This commit is contained in:
Reilly Wood
2022-03-29 04:10:43 -07:00
committed by GitHub
parent a2872b4ccc
commit 79182db587
9 changed files with 30 additions and 14 deletions

View File

@ -128,7 +128,7 @@ fn get_entries_in_nu(
all_entries
}
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
fn get_first_entry_in_path(
item: &str,
span: Span,
@ -140,7 +140,7 @@ fn get_first_entry_in_path(
.ok()
}
#[cfg(not(feature = "which"))]
#[cfg(not(feature = "which-support"))]
fn get_first_entry_in_path(
_item: &str,
_span: Span,
@ -150,7 +150,7 @@ fn get_first_entry_in_path(
None
}
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
fn get_all_entries_in_path(
item: &str,
span: Span,
@ -165,7 +165,7 @@ fn get_all_entries_in_path(
.unwrap_or_default()
}
#[cfg(not(feature = "which"))]
#[cfg(not(feature = "which-support"))]
fn get_all_entries_in_path(
_item: &str,
_span: Span,