Skip to content

Commit 0ddeea3

Browse files
authored
Rollup merge of rust-lang#154437 - Enselic:build.warnings, r=jieyouxu
bootstrap.example.toml: Hint how to allow `build.warnings` This commit turns **Actual** into **Expected** for the following problem: ### Steps 1. Do some quick and experimental local code changes in the compiler code. 2. Run `./x build`. 3. Observe failed build with _"error: warnings are denied by `build.warnings` configuration"_. 4. Decide to not care and want to allow warnings. 5. Search for `build.warnings` in **bootstrap.example.toml**. ### Actual No hits. You get frustrated because didn't learn how to allow warnings. (The reason `build.warnings` is not mentioned in **bootstrap.example.toml** is of course because it is an unstable cargo [feature](https://doc.rust-lang.org/cargo/reference/unstable.html#buildwarnings) and not controlled by bootstrap, but you don't know that yet.) ### Expected You get a hit and can easily see how to allow warnings.
2 parents e8994ea + 5e4e8da commit 0ddeea3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bootstrap.example.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,8 @@
826826
# in the sysroot. It is required for running nvptx tests.
827827
#rust.llvm-bitcode-linker = false
828828

829-
# Whether to deny warnings in crates
829+
# Whether to deny warnings in crates. Set to `false` to avoid
830+
# error: warnings are denied by `build.warnings` configuration
830831
#rust.deny-warnings = true
831832

832833
# Print backtrace on internal compiler errors during bootstrap

0 commit comments

Comments
 (0)