rust/compiler/rustc_lint/src
bors a90372c6e8 Auto merge of #118213 - Urgau:check-cfg-diagnostics-rustc-cargo, r=petrochenkov
Add more suggestions to unexpected cfg names and values

This pull request adds more suggestion to unexpected cfg names and values diagnostics:
 - it first adds a links to the [rustc unstable book](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html) or the [Cargo reference](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg), depending if rustc is invoked by Cargo
 - it secondly adds a suggestion on how to expect the cfg name or value:
    *excluding well known names and values*
    - for Cargo: it suggest using a feature or `cargo:rust-check-cfg` in build script
    - for rustc: it suggest using `--check-cfg` (with the correct invocation)

Those diagnostics improvements are directed towards enabling users to fix the issue if the previous suggestions weren't good enough.

r? `@petrochenkov`
2023-12-13 19:45:57 +00:00
..
nonstandard_style
array_into_iter.rs
async_fn_in_trait.rs
builtin.rs Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
context.rs Add more suggestion to unexpected cfg names and values 2023-12-13 17:48:04 +01:00
deref_into_dyn_supertrait.rs
drop_forget_useless.rs
early.rs Rename some more coro_kind -> coroutine_kind 2023-12-08 21:46:40 +00:00
enum_intrinsics_non_enums.rs
errors.rs
expect.rs
for_loops_over_fallibles.rs
foreign_modules.rs
hidden_unicode_codepoints.rs
internal.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
invalid_from_utf8.rs
late.rs
let_underscore.rs
levels.rs
lib.rs remove redundant imports 2023-12-10 10:56:22 +08:00
lints.rs Add warn-by-default lint against ambiguous wide pointer comparisons 2023-12-06 09:03:48 +01:00
map_unit_fn.rs
methods.rs
multiple_supertrait_upcastable.rs
non_ascii_idents.rs
non_fmt_panic.rs
nonstandard_style.rs Remove #[rustc_host], use internal desugaring 2023-12-05 01:15:21 +00:00
noop_method_call.rs
opaque_hidden_inferred_bound.rs
pass_by_value.rs
passes.rs
ptr_nulls.rs
redundant_semicolon.rs
reference_casting.rs
tests.rs
traits.rs
types.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
unit_bindings.rs
unused.rs Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errors 2023-12-08 17:08:52 +00:00