Skip to content

Build armv7-linux-androideabi failed with latest nightly rustc. #143842

@Wyvern

Description

@Wyvern

Rust nightly build with -Zbuild-std option for armv7-linux-androideabi failed with error like below:

error[: the name `_inner_slow_integer_to_str` is defined multiple times
   --> /rustc/855e0fe46e68d94e9f6147531b75ac2d488c548e/library/core/src/fmt/num.rs:415:9
    |
415 |           fn _inner_slow_integer_to_str(mut n: $u, buf: &mut [MaybeUninit::<u8>]) -> usize {
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |           |
    |           `_inner_slow_integer_to_str` redefined here
    |           previous definition of the value `_inner_slow_integer_to_str` here
...
643 | /     impl_Display!(
644 | |         i8, u8,
645 | |         i16, u16,
646 | |         i32, u32,
647 | |         isize, usize,
648 | |         ; as u32 via to_u32 named fmt_u32);
    | |__________________________________________- in this macro invocation
    |
    = note: `_inner_slow_integer_to_str` must be defined only once in the value namespace of this module
    = note: this error originates in the macro `impl_Display` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0428`.
error: could not compile `core` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions