Skip to content

Importing intrinsics gives "unresolved import" #6077

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
jrmuizel opened this issue Sep 25, 2020 · 7 comments
Closed

Importing intrinsics gives "unresolved import" #6077

jrmuizel opened this issue Sep 25, 2020 · 7 comments
Labels
E-has-instructions Issue has some instructions and pointers to code to get started E-unknown It's unclear if the issue is E-hard or E-easy without digging in S-unactionable Issue requires feedback, design decisions or is blocked on other work

Comments

@jrmuizel
Copy link
Contributor

pub use std::arch::x86_64::{
    __m128, __m128i, _mm_add_ps, _mm_cvtps_epi32, _mm_load_ps, _mm_load_ss, _mm_max_ps, _mm_min_ps,
    _mm_mul_ps, _mm_set1_ps, _mm_setzero_ps, _mm_shuffle_ps, _mm_store_si128,
};

fn main() {
    println!("Hello, world!");
}

This worked for me yesterday.

@jrmuizel
Copy link
Contributor Author

Of note: it's rust-analyzer that's complaining. rustc has no problem.

@bjorn3
Copy link
Member

bjorn3 commented Sep 25, 2020

I believe rust-analyzer doesn't yet support #[path="../../stdarch/crates/core_arch/src/mod.rs"] mod core_arch;.

@matklad matklad added E-medium S-unactionable Issue requires feedback, design decisions or is blocked on other work labels Oct 14, 2020
@matklad matklad added E-has-instructions Issue has some instructions and pointers to code to get started E-unknown It's unclear if the issue is E-hard or E-easy without digging in and removed E-medium labels Oct 14, 2020
@novacrazy
Copy link

Is there any update on this?

@dylanede
Copy link

Seems to be a duplicate of #3898, because the arch module is defined in a directory that is not within the root of the crate.

@ClydeHobart
Copy link

Is there a work around for this that utilizes the #[path="..."] attribute?

@matklad
Copy link
Member

matklad commented Aug 20, 2021

fixed by #9963

@matklad matklad closed this as completed Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-has-instructions Issue has some instructions and pointers to code to get started E-unknown It's unclear if the issue is E-hard or E-easy without digging in S-unactionable Issue requires feedback, design decisions or is blocked on other work
Projects
None yet
Development

No branches or pull requests

6 participants