diff options
| author | Ed Page <eopage@gmail.com> | 2024-06-12 15:27:27 -0500 |
|---|---|---|
| committer | Ed Page <eopage@gmail.com> | 2024-06-12 15:27:27 -0500 |
| commit | 9232bd2e83dcd14859131e978c96e8230c7b19a2 (patch) | |
| tree | 983dd737847eead1b0d9566fc7a7af901471bede | |
| parent | 6d936263515ad4ca189553759f373abeae9bb548 (diff) | |
| download | rust-9232bd2e83dcd14859131e978c96e8230c7b19a2.tar.gz rust-9232bd2e83dcd14859131e978c96e8230c7b19a2.zip | |
docs(rustc): Link unexpected_cfgs to the Cargo.toml docs
This is the first time we have a lint with configuration exposed in `Cargo.toml`. When this was done, interest was expressed in using this for other cases in the future. To this end, we need to make the documentation for the lint configuration discoverable from the documentation for that lint.
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index d0d570db04f..e82e5d5bb65 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3256,7 +3256,11 @@ declare_lint! { /// See the [Checking Conditional Configurations][check-cfg] section for more /// details. /// + /// See the [Cargo Specifics][unexpected_cfgs_lint_config] section for configuring this lint in + /// `Cargo.toml`. + /// /// [check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html + /// [unexpected_cfgs_lint_config]: https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html#check-cfg-in-lintsrust-table pub UNEXPECTED_CFGS, Warn, "detects unexpected names and values in `#[cfg]` conditions", |
