You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
361: Fix minimal dependency build r=jonathanpallant a=Sh3Rm4n
With
```bash
cargo +nightly update -Z minimal-versions
cargo build
```
Following error occurred:
<details><summary>
bare-metal v0.2.1: const_fn feature has been removed
</summary>
```
$ cargo +nightly update -Z minimal-versions
Updating crates.io index
Updating bare-metal v0.2.5 -> v0.2.1
Updating embedded-hal v0.2.6 -> v0.2.4
Removing nb v0.1.3
Removing nb v1.0.0
Adding nb v0.1.1
Removing rustc_version v0.2.3
Removing semver v0.9.0
Removing semver-parser v0.7.0
Updating vcell v0.1.3 -> v0.1.0
Updating volatile-register v0.2.1 -> v0.2.0
$ cargo build
Downloaded vcell v0.1.0
Downloaded nb v0.1.1
Downloaded 2 crates (15.4 KB) in 1.02s
Compiling vcell v0.1.0
Compiling void v1.0.2
Compiling nb v0.1.1
Compiling bare-metal v0.2.1
error[E0557]: feature has been removed
--> /home/fabian/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/bare-metal-0.2.1/src/lib.rs:7:13
|
7 | feature(const_fn, const_unsafe_cell_new)
| ^^^^^^^^ feature has been removed
|
= note: split into finer-grained feature gates
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/fabian/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/bare-metal-0.2.1/src/lib.rs:7:5
|
7 | feature(const_fn, const_unsafe_cell_new)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0554, E0557.
For more information about an error, try `rustc --explain E0554`.
error: could not compile `bare-metal` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
```
</details>
Setting the minimal version of `bare-metal` to `v0.2.4` fixes the issue.
Co-authored-by: Fabian Viöl <f.vioel@googlemail.com>
0 commit comments