Skip to content
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

Incorrect "unresolved import" in std #6449

Closed
hghwng opened this issue Nov 3, 2020 · 1 comment
Closed

Incorrect "unresolved import" in std #6449

hghwng opened this issue Nov 3, 2020 · 1 comment

Comments

@hghwng
Copy link

hghwng commented Nov 3, 2020

To reproduce the bug, just enter the following code under Linux:

use std::os::unix::io::AsRawFd;
fn main() {}

RA emits the error of "unresolved import". Since the block is conditionally compiled with cfg_if (see the source of std), I suspect that the guard is not handled correctly.

Enabling loadOutDirsFromCheck and procMacro does not solve the problem.

@bjorn3
Copy link
Member

bjorn3 commented Nov 3, 2020

Duplicate of #6038

@bjorn3 bjorn3 marked this as a duplicate of #6038 Nov 3, 2020
@bjorn3 bjorn3 closed this as completed Nov 3, 2020
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