rustfmt-nightly fail to compil in docker
Compiling rustc-ap-rustc_data_structures v29.0.0
error[E0432]: unresolved import `std::ptr::NonNull`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-29.0.0/array_vec.rs:15:37
|
15 | use std::ptr::{self, drop_in_place, NonNull};
| ^^^^^^^ no `NonNull` in `ptr`
error: aborting due to previous error
error: Could not compile `rustc-ap-rustc_data_structures`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rustfmt-nightly v0.3.8`, intermediate artifacts can be found at `/tmp/cargo-install.Lgh5arwod4AD`
Caused by:
build failed
ERROR: Job failed: exit code 1
Edited by Éloïs