Skip to content

WIP: Restore crate attribute #![feature(transpose_result)]

Sergey Melnychuk requested to merge sergey-melnychuk/syscall:patch-1 into master

Even though transpose_result is stable since rust 1.33.0, the most recent release 0.5.0 is built with rust 1.32.0, and this annotation (hopefully) will allow reproducible build from redox's repository at tag 0.5.0

$ git clone -b 0.5.0 --recurse-submodules https://gitlab.redox-os.org/redox-os/redox.git
$ cd redox
$ make all
cook - drivers build
   Compiling redox_syscall v0.1.54
   Compiling byteorder v0.5.3
   Compiling arg_parser v0.1.0 (https://gitlab.redox-os.org/redox-os/arg-parser.git#1c434b55)
   Compiling extra v0.1.0 (https://gitlab.redox-os.org/redox-os/libextra.git#0b50f3f2)
   Compiling spin v0.4.10
   Compiling redox_syscall v0.1.54 (/home/serg_meln/redox/kernel/syscall)
   Compiling bitflags v0.7.0
   Compiling plain v0.2.3
   Compiling bitflags v1.0.4
   Compiling semver v0.9.0
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
error[E0658]: use of unstable library feature 'transpose_result' (see issue #47338)
  --> /home/serg_meln/.cargo/registry/src/github.com-1ecc6299db9ec823/redox_syscall-0.1.54/src/scheme/scheme_block.rs:52:13
   |
52 |         res.transpose().map(Error::mux)
   |             ^^^^^^^^^
   |
   = help: add #![feature(transpose_result)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'transpose_result' (see issue #47338)
  --> /home/serg_meln/.cargo/registry/src/github.com-1ecc6299db9ec823/redox_syscall-0.1.54/src/scheme/scheme_block_mut.rs:52:13
   |
52 |         res.transpose().map(Error::mux)
   |             ^^^^^^^^^
   |
   = help: add #![feature(transpose_result)] to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `redox_syscall`.
warning: build failed, waiting for other jobs to finish...
error: build failed
./repo.sh failed.make: *** [mk/initfs.mk:5: build/initfs.tag] Error 1
$ cat rust-toolchain 
nightly-2018-11-07
$ rustc -V
rustc 1.32.0-nightly (15d770400 2018-11-06)
Edited by Sergey Melnychuk

Merge request reports