diff options
| author | Yuri Astrakhan <yuriastrakhan@gmail.com> | 2024-07-18 12:27:43 -0400 |
|---|---|---|
| committer | nora <48135649+Noratrieb@users.noreply.github.com> | 2024-09-24 20:59:54 +0200 |
| commit | a689a55ed4bcb3917822a8524b4191f88730a36c (patch) | |
| tree | b3850d35eea23fefd32200ef6899fef7d26e133e | |
| parent | e72b7f35327bedd4f2b15e4ab1177a99ea233971 (diff) | |
| download | rust-a689a55ed4bcb3917822a8524b4191f88730a36c.tar.gz rust-a689a55ed4bcb3917822a8524b4191f88730a36c.zip | |
Clarify how to disable warnings in deps
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/new-target.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/new-target.md b/src/doc/rustc-dev-guide/src/building/new-target.md index 4c58f303f79..9e6aad3ed87 100644 --- a/src/doc/rustc-dev-guide/src/building/new-target.md +++ b/src/doc/rustc-dev-guide/src/building/new-target.md @@ -141,6 +141,13 @@ to the `deny-warnings` setting in `config.toml`, the build may suddenly start to fail. To work around the warnings, you may want to disable `deny-warnings` in the config, or modify the dependency to remove the warnings. +```toml +# /config.toml +[rust] +deny-warnings = false +``` + + [`libc`]: https://crates.io/crates/libc [`cc`]: https://crates.io/crates/cc [patch]: https://doc.rust-lang.org/stable/cargo/reference/overriding-dependencies.html#the-patch-section |
