I hacked this together when I implemented it originally (#77351) and it breaks quite frequently because it uses the host toolchain instead of being managed by bootstrap.
I think ideally the fix would look something like:
- Download clippy for the bootstrap toolchain in
bootstrap.py (look for add_component)
- Remove all this hacky code running rustc --version; treat it just the same as --cfg=bootstrap for
build and check.
- Either put a
todo!() for stages other than 0, or build tool::Clippy in-tree before running them, rather than the host clippy.
Originally posted by @jyn514 in #95766 (comment)
I hacked this together when I implemented it originally (#77351) and it breaks quite frequently because it uses the host toolchain instead of being managed by bootstrap.
I think ideally the fix would look something like:
bootstrap.py(look foradd_component)buildandcheck.todo!()for stages other than 0, or buildtool::Clippyin-tree before running them, rather than the host clippy.Originally posted by @jyn514 in #95766 (comment)