Convert unexpected_cfg_{name,value} to struct diagnostics
This commit is contained in:
parent
bac6b6248b
commit
2482f3c17c
@ -593,6 +593,40 @@ lint_undropped_manually_drops = calls to `std::mem::drop` with `std::mem::Manual
|
|||||||
.label = argument has type `{$arg_ty}`
|
.label = argument has type `{$arg_ty}`
|
||||||
.suggestion = use `std::mem::ManuallyDrop::into_inner` to get the inner value
|
.suggestion = use `std::mem::ManuallyDrop::into_inner` to get the inner value
|
||||||
|
|
||||||
|
lint_unexpected_cfg_add_build_rs_println = or consider adding `{$build_rs_println}` to the top of the `build.rs`
|
||||||
|
lint_unexpected_cfg_add_cargo_feature = consider using a Cargo feature instead
|
||||||
|
lint_unexpected_cfg_add_cargo_toml_lint_cfg = or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:{$cargo_toml_lint_cfg}
|
||||||
|
lint_unexpected_cfg_add_cmdline_arg = to expect this configuration use `{$cmdline_arg}`
|
||||||
|
lint_unexpected_cfg_define_features = consider defining some features in `Cargo.toml`
|
||||||
|
lint_unexpected_cfg_doc_cargo = see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
||||||
|
lint_unexpected_cfg_doc_rustc = see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
|
lint_unexpected_cfg_name_expected_names = expected names are: {$possibilities}{$and_more ->
|
||||||
|
[0] {""}
|
||||||
|
*[other] {" "}and {$and_more} more
|
||||||
|
}
|
||||||
|
lint_unexpected_cfg_name_expected_values = expected values for `{$best_match}` are: {$possibilities}
|
||||||
|
lint_unexpected_cfg_name_similar_name = there is a config with a similar name
|
||||||
|
lint_unexpected_cfg_name_similar_name_different_values = there is a config with a similar name and different values
|
||||||
|
lint_unexpected_cfg_name_similar_name_no_value = there is a config with a similar name and no value
|
||||||
|
lint_unexpected_cfg_name_similar_name_value = there is a config with a similar name and value
|
||||||
|
lint_unexpected_cfg_name_with_similar_value = found config with similar value
|
||||||
|
|
||||||
|
lint_unexpected_cfg_value_add_feature = consider adding `{$value}` as a feature in `Cargo.toml`
|
||||||
|
lint_unexpected_cfg_value_expected_values = expected values for `{$name}` are: {$have_none_possibility ->
|
||||||
|
[true] {"(none), "}
|
||||||
|
*[false] {""}
|
||||||
|
}{$possibilities}{$and_more ->
|
||||||
|
[0] {""}
|
||||||
|
*[other] {" "}and {$and_more} more
|
||||||
|
}
|
||||||
|
lint_unexpected_cfg_value_no_expected_value = no expected value for `{$name}`
|
||||||
|
lint_unexpected_cfg_value_no_expected_values = no expected values for `{$name}`
|
||||||
|
lint_unexpected_cfg_value_remove_condition = remove the condition
|
||||||
|
lint_unexpected_cfg_value_remove_value = remove the value
|
||||||
|
lint_unexpected_cfg_value_similar_name = there is a expected value with a similar name
|
||||||
|
lint_unexpected_cfg_value_specify_value = specify a config value
|
||||||
|
|
||||||
lint_ungated_async_fn_track_caller = `#[track_caller]` on async functions is a no-op
|
lint_ungated_async_fn_track_caller = `#[track_caller]` on async functions is a no-op
|
||||||
.label = this function will not propagate the caller location
|
.label = this function will not propagate the caller location
|
||||||
|
|
||||||
|
@ -1,44 +1,28 @@
|
|||||||
use rustc_errors::{Applicability, Diag};
|
use rustc_errors::Diag;
|
||||||
use rustc_middle::bug;
|
use rustc_middle::bug;
|
||||||
use rustc_session::{config::ExpectedValues, Session};
|
use rustc_session::{config::ExpectedValues, Session};
|
||||||
use rustc_span::edit_distance::find_best_match_for_name;
|
use rustc_span::edit_distance::find_best_match_for_name;
|
||||||
use rustc_span::{sym, Span, Symbol};
|
use rustc_span::{sym, Span, Symbol};
|
||||||
|
|
||||||
|
use crate::lints;
|
||||||
|
|
||||||
const MAX_CHECK_CFG_NAMES_OR_VALUES: usize = 35;
|
const MAX_CHECK_CFG_NAMES_OR_VALUES: usize = 35;
|
||||||
|
|
||||||
fn check_cfg_expected_note(
|
fn sort_and_truncate_possibilities(
|
||||||
sess: &Session,
|
sess: &Session,
|
||||||
possibilities: &[Symbol],
|
mut possibilities: Vec<Symbol>,
|
||||||
type_: &str,
|
) -> (Vec<Symbol>, usize) {
|
||||||
name: Option<Symbol>,
|
|
||||||
suffix: &str,
|
|
||||||
) -> String {
|
|
||||||
use std::fmt::Write;
|
|
||||||
|
|
||||||
let n_possibilities = if sess.opts.unstable_opts.check_cfg_all_expected {
|
let n_possibilities = if sess.opts.unstable_opts.check_cfg_all_expected {
|
||||||
possibilities.len()
|
possibilities.len()
|
||||||
} else {
|
} else {
|
||||||
std::cmp::min(possibilities.len(), MAX_CHECK_CFG_NAMES_OR_VALUES)
|
std::cmp::min(possibilities.len(), MAX_CHECK_CFG_NAMES_OR_VALUES)
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut possibilities = possibilities.iter().map(Symbol::as_str).collect::<Vec<_>>();
|
possibilities.sort_by(|s1, s2| s1.as_str().cmp(s2.as_str()));
|
||||||
possibilities.sort();
|
|
||||||
|
|
||||||
let and_more = possibilities.len().saturating_sub(n_possibilities);
|
let and_more = possibilities.len().saturating_sub(n_possibilities);
|
||||||
let possibilities = possibilities[..n_possibilities].join("`, `");
|
possibilities.truncate(n_possibilities);
|
||||||
|
(possibilities, and_more)
|
||||||
let mut note = String::with_capacity(50 + possibilities.len());
|
|
||||||
|
|
||||||
write!(&mut note, "expected {type_}").unwrap();
|
|
||||||
if let Some(name) = name {
|
|
||||||
write!(&mut note, " for `{name}`").unwrap();
|
|
||||||
}
|
|
||||||
write!(&mut note, " are: {suffix}`{possibilities}`").unwrap();
|
|
||||||
if and_more > 0 {
|
|
||||||
write!(&mut note, " and {and_more} more").unwrap();
|
|
||||||
}
|
|
||||||
|
|
||||||
note
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum EscapeQuotes {
|
enum EscapeQuotes {
|
||||||
@ -87,106 +71,115 @@ pub(super) fn unexpected_cfg_name(
|
|||||||
let is_from_cargo = rustc_session::utils::was_invoked_from_cargo();
|
let is_from_cargo = rustc_session::utils::was_invoked_from_cargo();
|
||||||
let mut is_feature_cfg = name == sym::feature;
|
let mut is_feature_cfg = name == sym::feature;
|
||||||
|
|
||||||
if is_feature_cfg && is_from_cargo {
|
let code_sugg = if is_feature_cfg && is_from_cargo {
|
||||||
diag.help("consider defining some features in `Cargo.toml`");
|
lints::unexpected_cfg_name::CodeSuggestion::DefineFeatures
|
||||||
// Suggest the most probable if we found one
|
// Suggest the most probable if we found one
|
||||||
} else if let Some(best_match) = find_best_match_for_name(&possibilities, name, None) {
|
} else if let Some(best_match) = find_best_match_for_name(&possibilities, name, None) {
|
||||||
|
is_feature_cfg |= best_match == sym::feature;
|
||||||
|
|
||||||
if let Some(ExpectedValues::Some(best_match_values)) =
|
if let Some(ExpectedValues::Some(best_match_values)) =
|
||||||
sess.psess.check_config.expecteds.get(&best_match)
|
sess.psess.check_config.expecteds.get(&best_match)
|
||||||
{
|
{
|
||||||
// We will soon sort, so the initial order does not matter.
|
// We will soon sort, so the initial order does not matter.
|
||||||
#[allow(rustc::potential_query_instability)]
|
#[allow(rustc::potential_query_instability)]
|
||||||
let mut possibilities =
|
let mut possibilities = best_match_values.iter().flatten().collect::<Vec<_>>();
|
||||||
best_match_values.iter().flatten().map(Symbol::as_str).collect::<Vec<_>>();
|
possibilities.sort_by_key(|s| s.as_str());
|
||||||
possibilities.sort();
|
|
||||||
|
let get_possibilities_sub = || {
|
||||||
|
if !possibilities.is_empty() {
|
||||||
|
let possibilities =
|
||||||
|
possibilities.iter().copied().cloned().collect::<Vec<_>>().into();
|
||||||
|
Some(lints::unexpected_cfg_name::ExpectedValues { best_match, possibilities })
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
let mut should_print_possibilities = true;
|
|
||||||
if let Some((value, value_span)) = value {
|
if let Some((value, value_span)) = value {
|
||||||
if best_match_values.contains(&Some(value)) {
|
if best_match_values.contains(&Some(value)) {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarNameAndValue {
|
||||||
name_span,
|
span: name_span,
|
||||||
"there is a config with a similar name and value",
|
code: best_match.to_string(),
|
||||||
best_match,
|
}
|
||||||
Applicability::MaybeIncorrect,
|
|
||||||
);
|
|
||||||
should_print_possibilities = false;
|
|
||||||
} else if best_match_values.contains(&None) {
|
} else if best_match_values.contains(&None) {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarNameNoValue {
|
||||||
name_span.to(value_span),
|
span: name_span.to(value_span),
|
||||||
"there is a config with a similar name and no value",
|
code: best_match.to_string(),
|
||||||
best_match,
|
}
|
||||||
Applicability::MaybeIncorrect,
|
|
||||||
);
|
|
||||||
should_print_possibilities = false;
|
|
||||||
} else if let Some(first_value) = possibilities.first() {
|
} else if let Some(first_value) = possibilities.first() {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarNameDifferentValues {
|
||||||
name_span.to(value_span),
|
span: name_span.to(value_span),
|
||||||
"there is a config with a similar name and different values",
|
code: format!("{best_match} = \"{first_value}\""),
|
||||||
format!("{best_match} = \"{first_value}\""),
|
expected: get_possibilities_sub(),
|
||||||
Applicability::MaybeIncorrect,
|
}
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarNameDifferentValues {
|
||||||
name_span.to(value_span),
|
span: name_span.to(value_span),
|
||||||
"there is a config with a similar name and different values",
|
code: best_match.to_string(),
|
||||||
best_match,
|
expected: get_possibilities_sub(),
|
||||||
Applicability::MaybeIncorrect,
|
}
|
||||||
);
|
}
|
||||||
};
|
|
||||||
} else {
|
} else {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarName {
|
||||||
name_span,
|
span: name_span,
|
||||||
"there is a config with a similar name",
|
code: best_match.to_string(),
|
||||||
best_match,
|
expected: get_possibilities_sub(),
|
||||||
Applicability::MaybeIncorrect,
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if !possibilities.is_empty() && should_print_possibilities {
|
|
||||||
let possibilities = possibilities.join("`, `");
|
|
||||||
diag.help(format!("expected values for `{best_match}` are: `{possibilities}`"));
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
diag.span_suggestion(
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarName {
|
||||||
name_span,
|
span: name_span,
|
||||||
"there is a config with a similar name",
|
code: best_match.to_string(),
|
||||||
best_match,
|
expected: None,
|
||||||
Applicability::MaybeIncorrect,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
is_feature_cfg |= best_match == sym::feature;
|
|
||||||
} else {
|
|
||||||
if !names_possibilities.is_empty() && names_possibilities.len() <= 3 {
|
|
||||||
names_possibilities.sort();
|
|
||||||
for cfg_name in names_possibilities.iter() {
|
|
||||||
diag.span_suggestion(
|
|
||||||
name_span,
|
|
||||||
"found config with similar value",
|
|
||||||
format!("{cfg_name} = \"{name}\""),
|
|
||||||
Applicability::MaybeIncorrect,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !possibilities.is_empty() {
|
} else {
|
||||||
diag.help_once(check_cfg_expected_note(sess, &possibilities, "names", None, ""));
|
let similar_values = if !names_possibilities.is_empty() && names_possibilities.len() <= 3 {
|
||||||
|
names_possibilities.sort();
|
||||||
|
names_possibilities
|
||||||
|
.iter()
|
||||||
|
.map(|cfg_name| lints::unexpected_cfg_name::FoundWithSimilarValue {
|
||||||
|
span: name_span,
|
||||||
|
code: format!("{cfg_name} = \"{name}\""),
|
||||||
|
})
|
||||||
|
.collect()
|
||||||
|
} else {
|
||||||
|
vec![]
|
||||||
|
};
|
||||||
|
let expected_names = if !possibilities.is_empty() {
|
||||||
|
let (possibilities, and_more) = sort_and_truncate_possibilities(sess, possibilities);
|
||||||
|
Some(lints::unexpected_cfg_name::ExpectedNames {
|
||||||
|
possibilities: possibilities.into(),
|
||||||
|
and_more,
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
};
|
||||||
|
lints::unexpected_cfg_name::CodeSuggestion::SimilarValues {
|
||||||
|
with_similar_values: similar_values,
|
||||||
|
expected_names,
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
let inst = |escape_quotes| to_check_cfg_arg(name, value.map(|(v, _s)| v), escape_quotes);
|
let inst = |escape_quotes| to_check_cfg_arg(name, value.map(|(v, _s)| v), escape_quotes);
|
||||||
|
|
||||||
if is_from_cargo {
|
let invocation_help = if is_from_cargo {
|
||||||
if !is_feature_cfg {
|
let sub = if !is_feature_cfg {
|
||||||
diag.help(format!("consider using a Cargo feature instead"));
|
Some(lints::UnexpectedCfgCargoHelp::new(
|
||||||
diag.help(format!("or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:\n [lints.rust]\n unexpected_cfgs = {{ level = \"warn\", check-cfg = ['{}'] }}", inst(EscapeQuotes::No)));
|
&inst(EscapeQuotes::No),
|
||||||
diag.help(format!("or consider adding `println!(\"cargo::rustc-check-cfg={}\");` to the top of the `build.rs`", inst(EscapeQuotes::Yes)));
|
&inst(EscapeQuotes::Yes),
|
||||||
}
|
))
|
||||||
diag.note("see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration");
|
} else {
|
||||||
|
None
|
||||||
|
};
|
||||||
|
lints::unexpected_cfg_name::InvocationHelp::Cargo { sub }
|
||||||
} else {
|
} else {
|
||||||
let inst = inst(EscapeQuotes::No);
|
lints::unexpected_cfg_name::InvocationHelp::Rustc(lints::UnexpectedCfgRustcHelp::new(
|
||||||
diag.help(format!("to expect this configuration use `--check-cfg={inst}`",));
|
&inst(EscapeQuotes::No),
|
||||||
diag.note("see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration");
|
))
|
||||||
}
|
};
|
||||||
|
|
||||||
|
diag.subdiagnostic(diag.dcx, lints::UnexpectedCfgNameSub { code_sugg, invocation_help });
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn unexpected_cfg_value(
|
pub(super) fn unexpected_cfg_value(
|
||||||
@ -214,53 +207,53 @@ pub(super) fn unexpected_cfg_value(
|
|||||||
|
|
||||||
// Show the full list if all possible values for a given name, but don't do it
|
// Show the full list if all possible values for a given name, but don't do it
|
||||||
// for names as the possibilities could be very long
|
// for names as the possibilities could be very long
|
||||||
if !possibilities.is_empty() {
|
let code_sugg = if !possibilities.is_empty() {
|
||||||
diag.note(check_cfg_expected_note(
|
let expected_values = {
|
||||||
sess,
|
let (possibilities, and_more) =
|
||||||
&possibilities,
|
sort_and_truncate_possibilities(sess, possibilities.clone());
|
||||||
"values",
|
lints::unexpected_cfg_value::ExpectedValues {
|
||||||
Some(name),
|
name,
|
||||||
if have_none_possibility { "(none), " } else { "" },
|
have_none_possibility,
|
||||||
));
|
possibilities: possibilities.into(),
|
||||||
|
and_more,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if let Some((value, value_span)) = value {
|
let suggestion = if let Some((value, value_span)) = value {
|
||||||
// Suggest the most probable if we found one
|
// Suggest the most probable if we found one
|
||||||
if let Some(best_match) = find_best_match_for_name(&possibilities, value, None) {
|
if let Some(best_match) = find_best_match_for_name(&possibilities, value, None) {
|
||||||
diag.span_suggestion(
|
Some(lints::unexpected_cfg_value::ChangeValueSuggestion::SimilarName {
|
||||||
value_span,
|
span: value_span,
|
||||||
"there is a expected value with a similar name",
|
best_match,
|
||||||
format!("\"{best_match}\""),
|
})
|
||||||
Applicability::MaybeIncorrect,
|
} else {
|
||||||
);
|
None
|
||||||
}
|
}
|
||||||
} else if let &[first_possibility] = &possibilities[..] {
|
} else if let &[first_possibility] = &possibilities[..] {
|
||||||
diag.span_suggestion(
|
Some(lints::unexpected_cfg_value::ChangeValueSuggestion::SpecifyValue {
|
||||||
name_span.shrink_to_hi(),
|
span: name_span.shrink_to_hi(),
|
||||||
"specify a config value",
|
first_possibility,
|
||||||
format!(" = \"{first_possibility}\""),
|
})
|
||||||
Applicability::MaybeIncorrect,
|
} else {
|
||||||
);
|
None
|
||||||
}
|
};
|
||||||
} else if have_none_possibility {
|
|
||||||
diag.note(format!("no expected value for `{name}`"));
|
|
||||||
if let Some((_value, value_span)) = value {
|
|
||||||
diag.span_suggestion(
|
|
||||||
name_span.shrink_to_hi().to(value_span),
|
|
||||||
"remove the value",
|
|
||||||
"",
|
|
||||||
Applicability::MaybeIncorrect,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
diag.note(format!("no expected values for `{name}`"));
|
|
||||||
|
|
||||||
let sp = if let Some((_value, value_span)) = value {
|
lints::unexpected_cfg_value::CodeSuggestion::ChangeValue { expected_values, suggestion }
|
||||||
|
} else if have_none_possibility {
|
||||||
|
let suggestion =
|
||||||
|
value.map(|(_value, value_span)| lints::unexpected_cfg_value::RemoveValueSuggestion {
|
||||||
|
span: name_span.shrink_to_hi().to(value_span),
|
||||||
|
});
|
||||||
|
lints::unexpected_cfg_value::CodeSuggestion::RemoveValue { suggestion, name }
|
||||||
|
} else {
|
||||||
|
let span = if let Some((_value, value_span)) = value {
|
||||||
name_span.to(value_span)
|
name_span.to(value_span)
|
||||||
} else {
|
} else {
|
||||||
name_span
|
name_span
|
||||||
};
|
};
|
||||||
diag.span_suggestion(sp, "remove the condition", "", Applicability::MaybeIncorrect);
|
let suggestion = lints::unexpected_cfg_value::RemoveConditionSuggestion { span };
|
||||||
}
|
lints::unexpected_cfg_value::CodeSuggestion::RemoveCondition { suggestion, name }
|
||||||
|
};
|
||||||
|
|
||||||
// We don't want to suggest adding values to well known names
|
// We don't want to suggest adding values to well known names
|
||||||
// since those are defined by rustc it-self. Users can still
|
// since those are defined by rustc it-self. Users can still
|
||||||
@ -269,24 +262,30 @@ pub(super) fn unexpected_cfg_value(
|
|||||||
|
|
||||||
let inst = |escape_quotes| to_check_cfg_arg(name, value.map(|(v, _s)| v), escape_quotes);
|
let inst = |escape_quotes| to_check_cfg_arg(name, value.map(|(v, _s)| v), escape_quotes);
|
||||||
|
|
||||||
if is_from_cargo {
|
let invocation_help = if is_from_cargo {
|
||||||
if name == sym::feature {
|
let help = if name == sym::feature {
|
||||||
if let Some((value, _value_span)) = value {
|
if let Some((value, _value_span)) = value {
|
||||||
diag.help(format!("consider adding `{value}` as a feature in `Cargo.toml`"));
|
Some(lints::unexpected_cfg_value::CargoHelp::AddFeature { value })
|
||||||
} else {
|
} else {
|
||||||
diag.help("consider defining some features in `Cargo.toml`");
|
Some(lints::unexpected_cfg_value::CargoHelp::DefineFeatures)
|
||||||
}
|
}
|
||||||
} else if !is_cfg_a_well_know_name {
|
} else if !is_cfg_a_well_know_name {
|
||||||
diag.help(format!("consider using a Cargo feature instead"));
|
Some(lints::unexpected_cfg_value::CargoHelp::Other(lints::UnexpectedCfgCargoHelp::new(
|
||||||
diag.help(format!("or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:\n [lints.rust]\n unexpected_cfgs = {{ level = \"warn\", check-cfg = ['{}'] }}", inst(EscapeQuotes::No)));
|
&inst(EscapeQuotes::No),
|
||||||
diag.help(format!("or consider adding `println!(\"cargo::rustc-check-cfg={}\");` to the top of the `build.rs`", inst(EscapeQuotes::Yes)));
|
&inst(EscapeQuotes::Yes),
|
||||||
}
|
)))
|
||||||
diag.note("see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration");
|
} else {
|
||||||
|
None
|
||||||
|
};
|
||||||
|
lints::unexpected_cfg_value::InvocationHelp::Cargo(help)
|
||||||
} else {
|
} else {
|
||||||
if !is_cfg_a_well_know_name {
|
let help = if !is_cfg_a_well_know_name {
|
||||||
let inst = inst(EscapeQuotes::No);
|
Some(lints::UnexpectedCfgRustcHelp::new(&inst(EscapeQuotes::No)))
|
||||||
diag.help(format!("to expect this configuration use `--check-cfg={inst}`",));
|
} else {
|
||||||
}
|
None
|
||||||
diag.note("see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration");
|
};
|
||||||
}
|
lints::unexpected_cfg_value::InvocationHelp::Rustc(help)
|
||||||
|
};
|
||||||
|
|
||||||
|
diag.subdiagnostic(diag.dcx, lints::UnexpectedCfgValueSub { code_sugg, invocation_help });
|
||||||
}
|
}
|
||||||
|
@ -1953,3 +1953,254 @@ pub struct UnitBindingsDiag {
|
|||||||
#[help]
|
#[help]
|
||||||
#[note]
|
#[note]
|
||||||
pub struct BuiltinNamedAsmLabel;
|
pub struct BuiltinNamedAsmLabel;
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[help(lint_unexpected_cfg_add_cargo_feature)]
|
||||||
|
#[help(lint_unexpected_cfg_add_cargo_toml_lint_cfg)]
|
||||||
|
#[help(lint_unexpected_cfg_add_build_rs_println)]
|
||||||
|
pub struct UnexpectedCfgCargoHelp {
|
||||||
|
pub build_rs_println: String,
|
||||||
|
pub cargo_toml_lint_cfg: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl UnexpectedCfgCargoHelp {
|
||||||
|
pub fn new(unescaped: &str, escaped: &str) -> Self {
|
||||||
|
Self {
|
||||||
|
cargo_toml_lint_cfg: format!(
|
||||||
|
"\n [lints.rust]\n unexpected_cfgs = {{ level = \"warn\", check-cfg = ['{unescaped}'] }}",
|
||||||
|
),
|
||||||
|
build_rs_println: format!("println!(\"cargo::rustc-check-cfg={escaped}\");",),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[help(lint_unexpected_cfg_add_cmdline_arg)]
|
||||||
|
pub struct UnexpectedCfgRustcHelp {
|
||||||
|
pub cmdline_arg: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl UnexpectedCfgRustcHelp {
|
||||||
|
pub fn new(unescaped: &str) -> Self {
|
||||||
|
Self { cmdline_arg: format!("--check-cfg={unescaped}") }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub struct UnexpectedCfgNameSub {
|
||||||
|
#[subdiagnostic]
|
||||||
|
pub code_sugg: unexpected_cfg_name::CodeSuggestion,
|
||||||
|
#[subdiagnostic]
|
||||||
|
pub invocation_help: unexpected_cfg_name::InvocationHelp,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod unexpected_cfg_name {
|
||||||
|
use rustc_errors::DiagSymbolList;
|
||||||
|
use rustc_macros::Subdiagnostic;
|
||||||
|
use rustc_span::{Span, Symbol};
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum CodeSuggestion {
|
||||||
|
#[help(lint_unexpected_cfg_define_features)]
|
||||||
|
DefineFeatures,
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_name_similar_name_value,
|
||||||
|
applicability = "maybe-incorrect",
|
||||||
|
code = "{code}"
|
||||||
|
)]
|
||||||
|
SimilarNameAndValue {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
code: String,
|
||||||
|
},
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_name_similar_name_no_value,
|
||||||
|
applicability = "maybe-incorrect",
|
||||||
|
code = "{code}"
|
||||||
|
)]
|
||||||
|
SimilarNameNoValue {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
code: String,
|
||||||
|
},
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_name_similar_name_different_values,
|
||||||
|
applicability = "maybe-incorrect",
|
||||||
|
code = "{code}"
|
||||||
|
)]
|
||||||
|
SimilarNameDifferentValues {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
code: String,
|
||||||
|
#[subdiagnostic]
|
||||||
|
expected: Option<ExpectedValues>,
|
||||||
|
},
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_name_similar_name,
|
||||||
|
applicability = "maybe-incorrect",
|
||||||
|
code = "{code}"
|
||||||
|
)]
|
||||||
|
SimilarName {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
code: String,
|
||||||
|
#[subdiagnostic]
|
||||||
|
expected: Option<ExpectedValues>,
|
||||||
|
},
|
||||||
|
SimilarValues {
|
||||||
|
#[subdiagnostic]
|
||||||
|
with_similar_values: Vec<FoundWithSimilarValue>,
|
||||||
|
#[subdiagnostic]
|
||||||
|
expected_names: Option<ExpectedNames>,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[help(lint_unexpected_cfg_name_expected_values)]
|
||||||
|
pub struct ExpectedValues {
|
||||||
|
pub best_match: Symbol,
|
||||||
|
pub possibilities: DiagSymbolList,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_name_with_similar_value,
|
||||||
|
applicability = "maybe-incorrect",
|
||||||
|
code = "{code}"
|
||||||
|
)]
|
||||||
|
pub struct FoundWithSimilarValue {
|
||||||
|
#[primary_span]
|
||||||
|
pub span: Span,
|
||||||
|
pub code: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[help_once(lint_unexpected_cfg_name_expected_names)]
|
||||||
|
pub struct ExpectedNames {
|
||||||
|
pub possibilities: DiagSymbolList,
|
||||||
|
pub and_more: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum InvocationHelp {
|
||||||
|
#[note(lint_unexpected_cfg_doc_cargo)]
|
||||||
|
Cargo {
|
||||||
|
#[subdiagnostic]
|
||||||
|
sub: Option<super::UnexpectedCfgCargoHelp>,
|
||||||
|
},
|
||||||
|
#[note(lint_unexpected_cfg_doc_rustc)]
|
||||||
|
Rustc(#[subdiagnostic] super::UnexpectedCfgRustcHelp),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub struct UnexpectedCfgValueSub {
|
||||||
|
#[subdiagnostic]
|
||||||
|
pub code_sugg: unexpected_cfg_value::CodeSuggestion,
|
||||||
|
#[subdiagnostic]
|
||||||
|
pub invocation_help: unexpected_cfg_value::InvocationHelp,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod unexpected_cfg_value {
|
||||||
|
use rustc_errors::DiagSymbolList;
|
||||||
|
use rustc_macros::Subdiagnostic;
|
||||||
|
use rustc_span::{Span, Symbol};
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum CodeSuggestion {
|
||||||
|
ChangeValue {
|
||||||
|
#[subdiagnostic]
|
||||||
|
expected_values: ExpectedValues,
|
||||||
|
#[subdiagnostic]
|
||||||
|
suggestion: Option<ChangeValueSuggestion>,
|
||||||
|
},
|
||||||
|
#[note(lint_unexpected_cfg_value_no_expected_value)]
|
||||||
|
RemoveValue {
|
||||||
|
#[subdiagnostic]
|
||||||
|
suggestion: Option<RemoveValueSuggestion>,
|
||||||
|
|
||||||
|
name: Symbol,
|
||||||
|
},
|
||||||
|
#[note(lint_unexpected_cfg_value_no_expected_values)]
|
||||||
|
RemoveCondition {
|
||||||
|
#[subdiagnostic]
|
||||||
|
suggestion: RemoveConditionSuggestion,
|
||||||
|
|
||||||
|
name: Symbol,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum ChangeValueSuggestion {
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_value_similar_name,
|
||||||
|
code = r#""{best_match}""#,
|
||||||
|
applicability = "maybe-incorrect"
|
||||||
|
)]
|
||||||
|
SimilarName {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
best_match: Symbol,
|
||||||
|
},
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_value_specify_value,
|
||||||
|
code = r#" = "{first_possibility}""#,
|
||||||
|
applicability = "maybe-incorrect"
|
||||||
|
)]
|
||||||
|
SpecifyValue {
|
||||||
|
#[primary_span]
|
||||||
|
span: Span,
|
||||||
|
first_possibility: Symbol,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_value_remove_value,
|
||||||
|
code = "",
|
||||||
|
applicability = "maybe-incorrect"
|
||||||
|
)]
|
||||||
|
pub struct RemoveValueSuggestion {
|
||||||
|
#[primary_span]
|
||||||
|
pub span: Span,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[suggestion(
|
||||||
|
lint_unexpected_cfg_value_remove_condition,
|
||||||
|
code = "",
|
||||||
|
applicability = "maybe-incorrect"
|
||||||
|
)]
|
||||||
|
pub struct RemoveConditionSuggestion {
|
||||||
|
#[primary_span]
|
||||||
|
pub span: Span,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
#[note(lint_unexpected_cfg_value_expected_values)]
|
||||||
|
pub struct ExpectedValues {
|
||||||
|
pub name: Symbol,
|
||||||
|
pub have_none_possibility: bool,
|
||||||
|
pub possibilities: DiagSymbolList,
|
||||||
|
pub and_more: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum InvocationHelp {
|
||||||
|
#[note(lint_unexpected_cfg_doc_cargo)]
|
||||||
|
Cargo(#[subdiagnostic] Option<CargoHelp>),
|
||||||
|
#[note(lint_unexpected_cfg_doc_rustc)]
|
||||||
|
Rustc(#[subdiagnostic] Option<super::UnexpectedCfgRustcHelp>),
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subdiagnostic)]
|
||||||
|
pub enum CargoHelp {
|
||||||
|
#[help(lint_unexpected_cfg_value_add_feature)]
|
||||||
|
AddFeature {
|
||||||
|
value: Symbol,
|
||||||
|
},
|
||||||
|
#[help(lint_unexpected_cfg_define_features)]
|
||||||
|
DefineFeatures,
|
||||||
|
Other(#[subdiagnostic] super::UnexpectedCfgCargoHelp),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `FALSE`
|
|||||||
LL | #[cfg(FALSE)]
|
LL | #[cfg(FALSE)]
|
||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(FALSE)`
|
= help: to expect this configuration use `--check-cfg=cfg(FALSE)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -25,7 +25,7 @@ warning: unexpected `cfg` condition name: `tokio_unstable`
|
|||||||
LL | #[cfg(tokio_unstable)]
|
LL | #[cfg(tokio_unstable)]
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: consider using a Cargo feature instead
|
= help: consider using a Cargo feature instead
|
||||||
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
|
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
|
||||||
[lints.rust]
|
[lints.rust]
|
||||||
|
@ -25,7 +25,7 @@ warning: unexpected `cfg` condition name: `tokio_unstable`
|
|||||||
LL | #[cfg(tokio_unstable)]
|
LL | #[cfg(tokio_unstable)]
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `CONFIG_NVME`, `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `CONFIG_NVME`, `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: consider using a Cargo feature instead
|
= help: consider using a Cargo feature instead
|
||||||
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
|
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
|
||||||
[lints.rust]
|
[lints.rust]
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `value`
|
|||||||
LL | #[cfg(value)]
|
LL | #[cfg(value)]
|
||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `bar`, `bee`, `clippy`, `cow`, `debug_assertions`, `doc`, `doctest`, `foo`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `bar`, `bee`, `clippy`, `cow`, `debug_assertions`, `doc`, `doctest`, `foo`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(value)`
|
= help: to expect this configuration use `--check-cfg=cfg(value)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `my_value`
|
|||||||
LL | #[cfg(my_value)]
|
LL | #[cfg(my_value)]
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `bar`, `clippy`, `debug_assertions`, `doc`, `doctest`, `foo`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `bar`, `clippy`, `debug_assertions`, `doc`, `doctest`, `foo`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(my_value)`
|
= help: to expect this configuration use `--check-cfg=cfg(my_value)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `linux`
|
|||||||
LL | #[cfg(linux)]
|
LL | #[cfg(linux)]
|
||||||
| ^^^^^ help: found config with similar value: `target_os = "linux"`
|
| ^^^^^ help: found config with similar value: `target_os = "linux"`
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(linux)`
|
= help: to expect this configuration use `--check-cfg=cfg(linux)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `target_architecture`
|
|||||||
LL | #[cfg(target(os = "linux", architecture = "arm"))]
|
LL | #[cfg(target(os = "linux", architecture = "arm"))]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(target_architecture, values("arm"))`
|
= help: to expect this configuration use `--check-cfg=cfg(target_architecture, values("arm"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition value: `X`
|
|||||||
LL | #[cfg(target(os = "linux", pointer_width = "X"))]
|
LL | #[cfg(target(os = "linux", pointer_width = "X"))]
|
||||||
| ^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_pointer_width` are: `16`, `32`, `64`
|
= note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition value: (none)
|
|||||||
LL | #[cfg(my_cfg)]
|
LL | #[cfg(my_cfg)]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `my_cfg` are: `bar`, `foo`
|
= note: expected values for `my_cfg` are: `bar` and `foo`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(my_cfg)`
|
= help: to expect this configuration use `--check-cfg=cfg(my_cfg)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
@ -15,7 +15,7 @@ warning: unexpected `cfg` condition value: `unk`
|
|||||||
LL | #[cfg(my_cfg = "unk")]
|
LL | #[cfg(my_cfg = "unk")]
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `my_cfg` are: `bar`, `foo`
|
= note: expected values for `my_cfg` are: `bar` and `foo`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(my_cfg, values("unk"))`
|
= help: to expect this configuration use `--check-cfg=cfg(my_cfg, values("unk"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `unknown_key`
|
|||||||
LL | #[cfg(unknown_key = "value")]
|
LL | #[cfg(unknown_key = "value")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `unknown_key`
|
|||||||
LL | #[cfg(unknown_key = "value")]
|
LL | #[cfg(unknown_key = "value")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `unknown_key`
|
|||||||
LL | #[cfg(unknown_key = "value")]
|
LL | #[cfg(unknown_key = "value")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `unknown_key`
|
|||||||
LL | #[cfg(unknown_key = "value")]
|
LL | #[cfg(unknown_key = "value")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -44,7 +44,7 @@ warning: unexpected `cfg` condition name: `uu`
|
|||||||
LL | #[cfg_attr(uu, test)]
|
LL | #[cfg_attr(uu, test)]
|
||||||
| ^^
|
| ^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(uu)`
|
= help: to expect this configuration use `--check-cfg=cfg(uu)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ warning: unexpected `cfg` condition value: `zebra`
|
|||||||
LL | cfg!(target_feature = "zebra");
|
LL | cfg!(target_feature = "zebra");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_feature` are: `10e60`, `2e3`, `3e3r1`, `3e3r2`, `3e3r3`, `3e7`, `7e10`, `a`, `aclass`, `adx`, `aes`, `altivec`, `alu32`, `atomics`, `avx`, `avx2`, `avx512bf16`, `avx512bitalg`, `avx512bw`, `avx512cd`, `avx512dq`, `avx512er`, `avx512f`, `avx512fp16`, `avx512ifma`, `avx512pf`, `avx512vbmi`, `avx512vbmi2`, `avx512vl`, `avx512vnni`, `avx512vp2intersect`, `avx512vpopcntdq`, `bf16`, `bmi1`, `bmi2` and 188 more
|
= note: expected values for `target_feature` are: `10e60`, `2e3`, `3e3r1`, `3e3r2`, `3e3r3`, `3e7`, `7e10`, `a`, `aclass`, `adx`, `aes`, `altivec`, `alu32`, `atomics`, `avx`, `avx2`, `avx512bf16`, `avx512bitalg`, `avx512bw`, `avx512cd`, `avx512dq`, `avx512er`, `avx512f`, `avx512fp16`, `avx512ifma`, `avx512pf`, `avx512vbmi`, `avx512vbmi2`, `avx512vl`, `avx512vnni`, `avx512vp2intersect`, `avx512vpopcntdq`, `bf16`, `bmi1`, and `bmi2` and 188 more
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: 27 warnings emitted
|
warning: 27 warnings emitted
|
||||||
|
@ -4,7 +4,7 @@ warning: unexpected `cfg` condition name: `crossbeam_loom`
|
|||||||
LL | #[cfg(crossbeam_loom)]
|
LL | #[cfg(crossbeam_loom)]
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(crossbeam_loom)`
|
= help: to expect this configuration use `--check-cfg=cfg(crossbeam_loom)`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
|
@ -6,7 +6,7 @@ LL | #[cfg(feature = "sedre")]
|
|||||||
| |
|
| |
|
||||||
| help: there is a expected value with a similar name: `"serde"`
|
| help: there is a expected value with a similar name: `"serde"`
|
||||||
|
|
|
|
||||||
= note: expected values for `feature` are: `full`, `serde`
|
= note: expected values for `feature` are: `full` and `serde`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(feature, values("sedre"))`
|
= help: to expect this configuration use `--check-cfg=cfg(feature, values("sedre"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
= note: `#[warn(unexpected_cfgs)]` on by default
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
||||||
@ -17,7 +17,7 @@ warning: unexpected `cfg` condition value: `rand`
|
|||||||
LL | #[cfg(feature = "rand")]
|
LL | #[cfg(feature = "rand")]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `feature` are: `full`, `serde`
|
= note: expected values for `feature` are: `full` and `serde`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(feature, values("rand"))`
|
= help: to expect this configuration use `--check-cfg=cfg(feature, values("rand"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ warning: unexpected `cfg` condition name: `features`
|
|||||||
LL | #[cfg(features = "foo")]
|
LL | #[cfg(features = "foo")]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
|
||||||
= help: to expect this configuration use `--check-cfg=cfg(features, values("foo"))`
|
= help: to expect this configuration use `--check-cfg=cfg(features, values("foo"))`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | panic = "_UNEXPECTED_VALUE",
|
LL | panic = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `panic` are: `abort`, `unwind`
|
= note: expected values for `panic` are: `abort` and `unwind`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -91,7 +91,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | relocation_model = "_UNEXPECTED_VALUE",
|
LL | relocation_model = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `relocation_model` are: `dynamic-no-pic`, `pic`, `pie`, `ropi`, `ropi-rwpi`, `rwpi`, `static`
|
= note: expected values for `relocation_model` are: `dynamic-no-pic`, `pic`, `pie`, `ropi`, `ropi-rwpi`, `rwpi`, and `static`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -111,7 +111,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | sanitize = "_UNEXPECTED_VALUE",
|
LL | sanitize = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `sanitize` are: `address`, `cfi`, `dataflow`, `hwaddress`, `kcfi`, `kernel-address`, `leak`, `memory`, `memtag`, `safestack`, `shadow-call-stack`, `thread`
|
= note: expected values for `sanitize` are: `address`, `cfi`, `dataflow`, `hwaddress`, `kcfi`, `kernel-address`, `leak`, `memory`, `memtag`, `safestack`, `shadow-call-stack`, and `thread`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -120,7 +120,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_abi = "_UNEXPECTED_VALUE",
|
LL | target_abi = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_abi` are: ``, `abi64`, `abiv2`, `abiv2hf`, `eabi`, `eabihf`, `elf`, `fortanix`, `ilp32`, `llvm`, `macabi`, `sim`, `softfloat`, `spe`, `uwp`, `vec-extabi`, `x32`
|
= note: expected values for `target_abi` are: ``, `abi64`, `abiv2`, `abiv2hf`, `eabi`, `eabihf`, `elf`, `fortanix`, `ilp32`, `llvm`, `macabi`, `sim`, `softfloat`, `spe`, `uwp`, `vec-extabi`, and `x32`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -129,7 +129,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_arch = "_UNEXPECTED_VALUE",
|
LL | target_arch = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, and `x86_64`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -138,7 +138,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_endian = "_UNEXPECTED_VALUE",
|
LL | target_endian = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_endian` are: `big`, `little`
|
= note: expected values for `target_endian` are: `big` and `little`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -147,7 +147,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_env = "_UNEXPECTED_VALUE",
|
LL | target_env = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_env` are: ``, `gnu`, `msvc`, `musl`, `newlib`, `nto70`, `nto71`, `ohos`, `p2`, `psx`, `relibc`, `sgx`, `uclibc`
|
= note: expected values for `target_env` are: ``, `gnu`, `msvc`, `musl`, `newlib`, `nto70`, `nto71`, `ohos`, `p2`, `psx`, `relibc`, `sgx`, and `uclibc`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -156,7 +156,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_family = "_UNEXPECTED_VALUE",
|
LL | target_family = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_family` are: `unix`, `wasm`, `windows`
|
= note: expected values for `target_family` are: `unix`, `wasm`, and `windows`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -165,7 +165,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_feature = "_UNEXPECTED_VALUE",
|
LL | target_feature = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_feature` are: `10e60`, `2e3`, `3e3r1`, `3e3r2`, `3e3r3`, `3e7`, `7e10`, `a`, `aclass`, `adx`, `aes`, `altivec`, `alu32`, `atomics`, `avx`, `avx2`, `avx512bf16`, `avx512bitalg`, `avx512bw`, `avx512cd`, `avx512dq`, `avx512er`, `avx512f`, `avx512fp16`, `avx512ifma`, `avx512pf`, `avx512vbmi`, `avx512vbmi2`, `avx512vl`, `avx512vnni`, `avx512vp2intersect`, `avx512vpopcntdq`, `bf16`, `bmi1`, `bmi2`, `bti`, `bulk-memory`, `c`, `cache`, `cmpxchg16b`, `crc`, `crt-static`, `d`, `d32`, `dit`, `doloop`, `dotprod`, `dpb`, `dpb2`, `dsp`, `dsp1e2`, `dspe60`, `e`, `e1`, `e2`, `edsp`, `elrw`, `ermsb`, `exception-handling`, `extended-const`, `f`, `f16c`, `f32mm`, `f64mm`, `fcma`, `fdivdu`, `fhm`, `flagm`, `float1e2`, `float1e3`, `float3e4`, `float7e60`, `floate1`, `fma`, `fp-armv8`, `fp16`, `fp64`, `fpuv2_df`, `fpuv2_sf`, `fpuv3_df`, `fpuv3_hf`, `fpuv3_hi`, `fpuv3_sf`, `frecipe`, `frintts`, `fxsr`, `gfni`, `hard-float`, `hard-float-abi`, `hard-tp`, `high-registers`, `hvx`, `hvx-length128b`, `hwdiv`, `i8mm`, `jsconv`, `lahfsahf`, `lasx`, `lbt`, `lor`, `lse`, `lsx`, `lvz`, `lzcnt`, `m`, `mclass`, `movbe`, `mp`, `mp1e2`, `msa`, `mte`, `multivalue`, `mutable-globals`, `neon`, `nontrapping-fptoint`, `nvic`, `paca`, `pacg`, `pan`, `pclmulqdq`, `pmuv3`, `popcnt`, `power10-vector`, `power8-altivec`, `power8-vector`, `power9-altivec`, `power9-vector`, `prfchw`, `rand`, `ras`, `rclass`, `rcpc`, `rcpc2`, `rdm`, `rdrand`, `rdseed`, `reference-types`, `relax`, `relaxed-simd`, `rtm`, `sb`, `sha`, `sha2`, `sha3`, `sign-ext`, `simd128`, `sm4`, `spe`, `ssbs`, `sse`, `sse2`, `sse3`, `sse4.1`, `sse4.2`, `sse4a`, `ssse3`, `sve`, `sve2`, `sve2-aes`, `sve2-bitperm`, `sve2-sha3`, `sve2-sm4`, `tbm`, `thumb-mode`, `thumb2`, `tme`, `trust`, `trustzone`, `ual`, `unaligned-scalar-mem`, `v`, `v5te`, `v6`, `v6k`, `v6t2`, `v7`, `v8`, `v8.1a`, `v8.2a`, `v8.3a`, `v8.4a`, `v8.5a`, `v8.6a`, `v8.7a`, `vaes`, `vdsp2e60f`, `vdspv1`, `vdspv2`, `vfp2`, `vfp3`, `vfp4`, `vh`, `virt`, `virtualization`, `vpclmulqdq`, `vsx`, `xsave`, `xsavec`, `xsaveopt`, `xsaves`, `zba`, `zbb`, `zbc`, `zbkb`, `zbkc`, `zbkx`, `zbs`, `zdinx`, `zfh`, `zfhmin`, `zfinx`, `zhinx`, `zhinxmin`, `zk`, `zkn`, `zknd`, `zkne`, `zknh`, `zkr`, `zks`, `zksed`, `zksh`, `zkt`
|
= note: expected values for `target_feature` are: `10e60`, `2e3`, `3e3r1`, `3e3r2`, `3e3r3`, `3e7`, `7e10`, `a`, `aclass`, `adx`, `aes`, `altivec`, `alu32`, `atomics`, `avx`, `avx2`, `avx512bf16`, `avx512bitalg`, `avx512bw`, `avx512cd`, `avx512dq`, `avx512er`, `avx512f`, `avx512fp16`, `avx512ifma`, `avx512pf`, `avx512vbmi`, `avx512vbmi2`, `avx512vl`, `avx512vnni`, `avx512vp2intersect`, `avx512vpopcntdq`, `bf16`, `bmi1`, `bmi2`, `bti`, `bulk-memory`, `c`, `cache`, `cmpxchg16b`, `crc`, `crt-static`, `d`, `d32`, `dit`, `doloop`, `dotprod`, `dpb`, `dpb2`, `dsp`, `dsp1e2`, `dspe60`, `e`, `e1`, `e2`, `edsp`, `elrw`, `ermsb`, `exception-handling`, `extended-const`, `f`, `f16c`, `f32mm`, `f64mm`, `fcma`, `fdivdu`, `fhm`, `flagm`, `float1e2`, `float1e3`, `float3e4`, `float7e60`, `floate1`, `fma`, `fp-armv8`, `fp16`, `fp64`, `fpuv2_df`, `fpuv2_sf`, `fpuv3_df`, `fpuv3_hf`, `fpuv3_hi`, `fpuv3_sf`, `frecipe`, `frintts`, `fxsr`, `gfni`, `hard-float`, `hard-float-abi`, `hard-tp`, `high-registers`, `hvx`, `hvx-length128b`, `hwdiv`, `i8mm`, `jsconv`, `lahfsahf`, `lasx`, `lbt`, `lor`, `lse`, `lsx`, `lvz`, `lzcnt`, `m`, `mclass`, `movbe`, `mp`, `mp1e2`, `msa`, `mte`, `multivalue`, `mutable-globals`, `neon`, `nontrapping-fptoint`, `nvic`, `paca`, `pacg`, `pan`, `pclmulqdq`, `pmuv3`, `popcnt`, `power10-vector`, `power8-altivec`, `power8-vector`, `power9-altivec`, `power9-vector`, `prfchw`, `rand`, `ras`, `rclass`, `rcpc`, `rcpc2`, `rdm`, `rdrand`, `rdseed`, `reference-types`, `relax`, `relaxed-simd`, `rtm`, `sb`, `sha`, `sha2`, `sha3`, `sign-ext`, `simd128`, `sm4`, `spe`, `ssbs`, `sse`, `sse2`, `sse3`, `sse4.1`, `sse4.2`, `sse4a`, `ssse3`, `sve`, `sve2`, `sve2-aes`, `sve2-bitperm`, `sve2-sha3`, `sve2-sm4`, `tbm`, `thumb-mode`, `thumb2`, `tme`, `trust`, `trustzone`, `ual`, `unaligned-scalar-mem`, `v`, `v5te`, `v6`, `v6k`, `v6t2`, `v7`, `v8`, `v8.1a`, `v8.2a`, `v8.3a`, `v8.4a`, `v8.5a`, `v8.6a`, `v8.7a`, `vaes`, `vdsp2e60f`, `vdspv1`, `vdspv2`, `vfp2`, `vfp3`, `vfp4`, `vh`, `virt`, `virtualization`, `vpclmulqdq`, `vsx`, `xsave`, `xsavec`, `xsaveopt`, `xsaves`, `zba`, `zbb`, `zbc`, `zbkb`, `zbkc`, `zbkx`, `zbs`, `zdinx`, `zfh`, `zfhmin`, `zfinx`, `zhinx`, `zhinxmin`, `zk`, `zkn`, `zknd`, `zkne`, `zknh`, `zkr`, `zks`, `zksed`, `zksh`, and `zkt`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -174,7 +174,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_has_atomic = "_UNEXPECTED_VALUE",
|
LL | target_has_atomic = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_has_atomic` are: (none), `128`, `16`, `32`, `64`, `8`, `ptr`
|
= note: expected values for `target_has_atomic` are: (none), `128`, `16`, `32`, `64`, `8`, and `ptr`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -183,7 +183,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_has_atomic_equal_alignment = "_UNEXPECTED_VALUE",
|
LL | target_has_atomic_equal_alignment = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_has_atomic_equal_alignment` are: (none), `128`, `16`, `32`, `64`, `8`, `ptr`
|
= note: expected values for `target_has_atomic_equal_alignment` are: (none), `128`, `16`, `32`, `64`, `8`, and `ptr`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -192,7 +192,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_has_atomic_load_store = "_UNEXPECTED_VALUE",
|
LL | target_has_atomic_load_store = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_has_atomic_load_store` are: (none), `128`, `16`, `32`, `64`, `8`, `ptr`
|
= note: expected values for `target_has_atomic_load_store` are: (none), `128`, `16`, `32`, `64`, `8`, and `ptr`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -201,7 +201,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_os = "_UNEXPECTED_VALUE",
|
LL | target_os = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, `zkvm`
|
= note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, and `zkvm`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -210,7 +210,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_pointer_width = "_UNEXPECTED_VALUE",
|
LL | target_pointer_width = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_pointer_width` are: `16`, `32`, `64`
|
= note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -230,7 +230,7 @@ warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
|||||||
LL | target_vendor = "_UNEXPECTED_VALUE",
|
LL | target_vendor = "_UNEXPECTED_VALUE",
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: expected values for `target_vendor` are: `apple`, `espressif`, `fortanix`, `ibm`, `kmc`, `nintendo`, `nvidia`, `pc`, `risc0`, `sony`, `sun`, `unikraft`, `unknown`, `uwp`, `win7`, `wrs`
|
= note: expected values for `target_vendor` are: `apple`, `espressif`, `fortanix`, `ibm`, `kmc`, `nintendo`, `nvidia`, `pc`, `risc0`, `sony`, `sun`, `unikraft`, `unknown`, `uwp`, `win7`, and `wrs`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
warning: unexpected `cfg` condition value: `_UNEXPECTED_VALUE`
|
||||||
@ -285,7 +285,7 @@ LL | #[cfg(target_os = "linuz")] // testing that we suggest `linux`
|
|||||||
| |
|
| |
|
||||||
| help: there is a expected value with a similar name: `"linux"`
|
| help: there is a expected value with a similar name: `"linux"`
|
||||||
|
|
|
|
||||||
= note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, `zkvm`
|
= note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `visionos`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, and `zkvm`
|
||||||
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
||||||
|
|
||||||
warning: 29 warnings emitted
|
warning: 29 warnings emitted
|
||||||
|
Loading…
Reference in New Issue
Block a user