-
Notifications
You must be signed in to change notification settings - Fork 14k
Description
Getting this error in #90842:
tidy error: invalid license `MIT/Apache-2.0 AND BSD-2-Clause` in `crossbeam-queue 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)`
I think this is a bug in tidy.
In
src/tools/tidy/src/deps.rsEXCEPTIONS, there is already an exception forcrossbeam-queue. However, exceptions are not allowed for the runtime crates that make up the standard library.With the
backtracefeature,stddepends onobject. Thenobjecthas a conditional dependency onindexmap, but this is not enabled understd. However, if you look at the whole workspace metadata at once (as tidy does), then the compiler enables theobjectfeatures that requireindexmap, and now also theindexmapfeature forrustc-rayontoo.So tidy sees
std->object->indexmap->rustc-rayon->rustc-rayon-core->crossbeam-queuein the metadata, and thus includes all of that in "runtime" crates, and then the exception isn't allowed. But if you look atcargo tree --all-features -p std, they aren't really included at all.
Originally posted by @cuviper in #90842 (comment)