Closed
Description
error[E0308]: mismatched types
--> src/tools/miri/src/bin/miri.rs:44:30
|
44 | Rc::make_mut(&mut crate_source).rlib = Some((PathBuf::new(), PathKind::All));
| ^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `Arc`
|
= note: expected mutable reference `&mut Rc<_>`
found mutable reference `&mut Arc<CrateSource>`
error[E0609]: no field `rlib` on type `&mut _`
--> src/tools/miri/src/bin/miri.rs:44:49
|
44 | Rc::make_mut(&mut crate_source).rlib = Some((PathBuf::new(), PathKind::All));
| ^^^^
Activity
Urgau commentedon Jul 30, 2021
Miri is a nightly-only tool, not a stable one. You shouldn't being able to built it from a stable release.
See #86436 for more informations.
Miezhiko commentedon Jul 30, 2021
I use nightly flag too, I'm just using release sources.
Urgau commentedon Jul 30, 2021
The release source shouldn't include miri, in fact I don't see it in the release source. Where did you download it ? Have you used the official tarballs ?
Miri is also one of the few tools that are allow to not always compile, see the Rustup Components History. So it's perfectly possible that when the beta-cut happen miri was not compiling at the moment.
Miezhiko commentedon Jul 30, 2021
miri can be set as additional tool in
tools
inconfig.toml
before build, it needs nightly flag too (I have it), yes I use official tarballs, I wonder if there is patch for it already, maybe this issue should be on miri repository.ghost commentedon Jul 30, 2021
That looks like a
parallel_compiler
issue rather than a toolstate issue.Miezhiko commentedon Jul 30, 2021
Okay, what is
parallel_compiler
? Is it related with parallel compilation (many jobs) or is it some crate?Miezhiko commentedon Jul 30, 2021
Sub-module hashtag for
1.54.0
tag is the same as formaster
at the moment https://github.com/rust-lang/rust/tree/1.54.0/src/toolsghost commentedon Jul 30, 2021
rust/config.toml.example
Lines 457 to 459 in 1195bea
Miezhiko commentedon Jul 30, 2021
@hyd-dev yes I have it enabled too
[-]1.54.0 compilation fault with miri[/-][+]1.54.0 compilation fault with miri and parallel-compiler[/+][-]1.54.0 compilation fault with miri and parallel-compiler[/-][+]1.54.0 compilation fault with nightly, miri and parallel-compiler[/+]Urgau commentedon Jul 30, 2021
Yes, but as I said before miri as no guarantee to build with any rust version or even master.
Because 1.54.0 was cut many weeks ago, the problem has already be fixed on master.
I don't know were you are looking, but it's not the case, the 1.54.0 beta-cut happen 6 weeks ago. There have been many commit since.
rust 1.54 (miri dead X_X) rust-lang/rust#87623
ghost commentedon Jul 30, 2021
I don't think Miri on
master
works withparallel-compiler = true
. The code still usesRc
which would not be work withparallel-compiler = true
:https://github.com/rust-lang/miri/blob/453e3ef7dab5aad6450bee09b2c02de94c5b18cb/src/bin/miri.rs#L45.
I don't know whether Miri is intended to work with
parallel-compiler = true
or not, at least it's not tested in CI.13 remaining items