]> git.lizzy.rs Git - rust.git/commit - tests/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 14 Jan 2023 12:04:24 +0000 (13:04 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 12:04:24 +0000 (13:04 +0100)
commit27db39b1b30fe808ba725d36f4293a3b61a4b029
tree4ce41ab85e9dd57667da4aa6a42f337560603a4a
parent47fa7faf764c6e55842eb2da3737dba786a1cccc
parent1d7d10a93d7a7f3e761a9b1fc6aeeff84d7483ef
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum

tidy: Don't include wasm32 in compiler dependency check

This changes the tidy compiler dependency check so that it does not include wasm32-unknown-unknown dependencies in the PERMITTED_RUSTC_DEPENDENCIES. This just helps keep the list cleaner under the assumption that the compiler will never work on wasm32-unknown-unknown.

This also fixes a bug in the check to verify there are no unused dependencies in the PERMITTED_RUSTC_DEPENDENCIES. Previously the check was verifying that the dependency was used *anywhere* in the workspace, when it should have been checking if it was used for the compiler.

There's also just a little general cleanup here. For example, the old `normal_deps_of_r` function was changed a while ago to return *all* dependencies, but the function name and description wasn't updated to remove `normal_`.
Cargo.lock
src/tools/tidy/Cargo.toml
src/tools/tidy/src/deps.rs