Comments (7)
Building rustdoc using the stage 1 compiler causes this, which is weird. I suspect that previously invoked miri related steps may have broken the cache somehow. Or we may need to improve/enhance Builder::ensure
.
from rust.
I've just found this in the rustdoc sources:
rust/src/bootstrap/src/core/build_steps/tool.rs
Lines 441 to 445 in 7bdd63d
Maybe Miri should do something similar. Then ./x.py test miri
should also Do The Right Thing without adding --stage 0
(since actually stage 1 would be the right stage to use). And maybe then the rebuilding issue also vanishes. Or maybe that's unrelated, not sure.
from rust.
That would work actually, it seems to be the right path.
from rust.
Unfortunately it doesn't help. We probably still should do it.
But somehow building rustdoc seems to delete the build cache for Miri and cargo-miri, and vice versa.
from rust.
Cargo has this to say about why things are rebuilt:
Dirty libc v0.2.153: the rustflags changed
And indeed, rustdoc sets
cargo.rustflag("--cfg=parallel_compiler");
That's a bit annoying to have this set in the tool, it means each tool needs to repeat the same logic.
from rust.
iirc rustdoc sets that to not dirt the compiler builds, we should probably handle that more globally.
from rust.
iirc rustdoc sets that to not dirt the compiler builds, we should probably handle that more globally.
Yup, that's what the last commit in #123192 does now.
from rust.
Related Issues (20)
- Unhelpful error on mismatched types for anonymous futures HOT 3
- More instructions generated for `Ord::clamp` than manual `max(X).min(Y)` for saturating truncating cast from `i32` to `u8` HOT 1
- run-make-support: use a `CommandWrapper` trait instead of `impl_helper_methods` macro HOT 5
- Tracking Issue for `duration_new_checked`
- ICE: `called Option::unwrap() on a None value` in `compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs` HOT 2
- ICE: `SizeSkeleton::compute` layout errored in `layout.rs`
- ICE: `assertion failed: !value.has_infer()` in `rustc_hir_typeck/src/writeback.rs`
- Illegal instruction when cross compile HOT 16
- conflicting impl since nightly-2024-05-01 HOT 13
- flaky aborts with `lto=thin` on Windows in `--release` HOT 11
- ICE: `!self.intercrate` HOT 4
- ICE: `invalid asymmetric binary op` HOT 1
- ICE: `FloatToFloat/FloatToInt cast: source type usize is not a float type` HOT 2
- ICE; `tried to combine ConstKind::Infer/ConstKind::Infer(InferConst::Var): ?0e: bool and ?0c: Dimension` HOT 1
- ICE: `layout mismatch for result of MulWithOverflow`
- Unexpected float value when casted from `f32` to `f64` HOT 4
- inline-asm x86 CR0 register not recognized depending on the instruction used HOT 1
- rustc panic with -C prefer-dynamic=yes and -C rpath=yes
- Tracking Issue for RFC 3624: Supertrait item shadowing v2 HOT 1
- Misleading suggestion to add bound to type alias parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.