Skip to content

nightly build fails due to radium imcompatibility #5768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
youknowone opened this issue May 6, 2025 · 2 comments
Open

nightly build fails due to radium imcompatibility #5768

youknowone opened this issue May 6, 2025 · 2 comments

Comments

@youknowone
Copy link
Member

youknowone commented May 6, 2025

error[E0404]: expected trait, found type alias `Atomic`
   --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/radium-1.1.0/src/lib.rs:804:5
    |
804 |     T: Atomic + PartialEq,
    |        ^^^^^^ type aliases cannot be used as traits
    |
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
   --> /opt/rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:342:1
    |
342 - pub type Atomic<T> = <T as AtomicPrimitive>::AtomicInner;
342 + pub trait Atomic<T> = <T as AtomicPrimitive>::AtomicInner;
    |
help: consider importing this trait instead
    |
9   + use crate::marker::Atomic;
    |

error[E0659]: `Atomic` is ambiguous
   --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/radium-1.1.0/src/lib.rs:804:5
    |
804 |     T: Atomic + PartialEq,
    |        ^^^^^^ ambiguous name
    |
    = note: ambiguous because of multiple glob imports of a name in the same module
note: `Atomic` could refer to the type alias imported here
   --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/radium-1.1.0/src/lib.rs:11:2
    |
11  |     sync::atomic::*,
    |     ^^^^^^^^^^^^^^^
    = help: consider adding an explicit import of `Atomic` to disambiguate
note: `Atomic` could also refer to the trait imported here
   --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/radium-1.1.0/src/lib.rs:14:5
    |
14  | use crate::marker::*;
    |     ^^^^^^^^^^^^^^^^
    = help: consider adding an explicit import of `Atomic` to disambiguate
@youknowone youknowone changed the title nightly build fails due to radium imcopatibility nightly build fails due to radium imcompatibility May 6, 2025
@arihant2math
Copy link
Collaborator

It seems to be from the doctests, like:
https://github.com/ferrilab/radium/blob/723bed5abd75994ee4b7221b8b12c9f4e77ce408/src/lib.rs#L811

basically star imports are the problem. This shouldn't affect builds since those doctests should not be built. I don't see why miri builds them.

@youknowone
Copy link
Member Author

ferrilab/ferrilab#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants