bootstrap defines a bunch of "modes to invoke cargo", and three of them are collected under a single doccomment:
ToolRustc. Is there any difference between them? If yes, would be nice if that could be documented; if no, what about just removing two of them?
In particular it seems odd that the tool tests (at least for miri and rustfmt which I checked) use
ToolRustc as opposed to
ToolTest seems to be used only once, in
TestLink::run (which I think is about libtest?)
(and that's for running the
"clean" command... weird)
@RalfJ they're used to determine dependencies and when to delete miri so it can be rebuilt
So because miri needs e.g. librustc_mir it's a ToolRustc
okay... so the three different modes correspond to needing different amounts of other stuff?
could you add comments saying what it is that they each reflect in terms of dependencies (or I could also add that based on what you tell me, not sure if that would be any simpler^^)