diff options
| author | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2024-09-24 20:59:17 +0200 |
|---|---|---|
| committer | nora <48135649+Noratrieb@users.noreply.github.com> | 2024-09-24 20:59:54 +0200 |
| commit | ee42d0734d2ee200924b302d3d494358ba6f97d7 (patch) | |
| tree | 0b28fd48013bfff85849d97973b57fa93c2258bc /src/doc/rustc-dev-guide | |
| parent | 80c947980f8630c55fdab82634f7f571ebe1f7ee (diff) | |
| download | rust-ee42d0734d2ee200924b302d3d494358ba6f97d7.tar.gz rust-ee42d0734d2ee200924b302d3d494358ba6f97d7.zip | |
elaborate on warnings
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/new-target.md | 7 |
1 files changed, 4 insertions, 3 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 f66c3b02eec..1d9fa1b52d5 100644 --- a/src/doc/rustc-dev-guide/src/building/new-target.md +++ b/src/doc/rustc-dev-guide/src/building/new-target.md @@ -138,8 +138,10 @@ After this, run `cargo update -p libc` to update the lockfiles. Beware that if you patch to a local `path` dependency, this will enable warnings for that dependency. Some dependencies are not warning-free, and due 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. +to fail. +To work around warnings, you may want to: +- Modify the dependency to remove the warnings +- Or for local development purposes, suppress the warnings by setting deny-warnings = false in config.toml. ```toml # config.toml @@ -147,7 +149,6 @@ in the config, or modify the dependency to remove the warnings. 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 |
