Skip to content

crate_type="dylib" cause compiles error #14558

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

Closed
liigo opened this issue May 31, 2014 · 3 comments
Closed

crate_type="dylib" cause compiles error #14558

liigo opened this issue May 31, 2014 · 3 comments

Comments

@liigo
Copy link
Contributor

liigo commented May 31, 2014

hello.rs:

#![crate_type="dylib"]  //! note here
#![crate_id="hello"]

pub fn main() {
    println!("Hello World. This is Liigo.");
}

rustc hello.rs:

error: cannot satisfy dependencies so `rand` only shows up once
note: having upstream crates all available in one format will likely make this go away
error: aborting due to previous error
@alexcrichton
Copy link
Member

What version of the compiler are you using? This example works for me, so there may be some old libraries lying around on the system.

@liigo
Copy link
Contributor Author

liigo commented May 31, 2014

the latest rustc compiled from source. I'll try to check something.

@liigo
Copy link
Contributor Author

liigo commented May 31, 2014

After recompile the rustc, this issue disppeared. So I closing it.

@liigo liigo closed this as completed May 31, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
minor: Bump crossbeam-channel

0.5.7 is yanked because of crossbeam-rs/crossbeam#971, let's upgrade to 0.5.8.
bors pushed a commit to rust-lang-ci/rust that referenced this issue Apr 22, 2025
…ust-lang#14559)

`unsafe_fields` is an incomplete feature; comments have been put near
`#![expect(incomplete_features)]` to ensure that we revisit the
situation when the feature becomes complete.

changelog: [`expl_impl_clone_on_copy`]: do not lint in the presence of
`unsafe` fields

Fixes rust-lang#14558
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