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

Unhelpful error message for unresolved ident in (multiple) import #3393

Closed
burg opened this issue Sep 5, 2012 · 1 comment
Closed

Unhelpful error message for unresolved ident in (multiple) import #3393

burg opened this issue Sep 5, 2012 · 1 comment

Comments

@burg
Copy link

burg commented Sep 5, 2012

When a multiple import fails, the error message does not specify which ident was not found. The squiggly arrow seems to always point to the beginning of the thing being imported, whether or not that was the unresolved part.

Examples (from rust-http-client)

Multi-line multiple import: (no line at all!)

/Users/burg/repos/servo/src/rust-http-client/http_client.rs:5:7: 8:2 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:5 import std::net::ip::{
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:6     get_addr, format_addr, ipv4, ipv6, IpAddr,
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:7     ip_get_addr_err
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:8 };

Single-line multiple import: (points to std::)

/Users/burg/repos/servo/src/rust-http-client/connection.rs:2:7: 2:59 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/connection.rs:2 import std::net::tcp::{tcp_err_data, tcp_connect_err_data};
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Single-line single import: (points to std::)

/Users/burg/repos/servo/src/rust-http-client/connection.rs:25:15: 25:41 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/connection.rs:25         import std::net::tcp::tcp_socket;
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
@burg
Copy link
Author

burg commented Sep 5, 2012

Duplicate of #3027

@burg burg closed this as completed Sep 5, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Mar 23, 2024
…lfJung

Allow `llvm.x86.sse2.pause` instrinsic to be called without SSE2

The instrinsic is compiled to a `pause` instruction, which behaves like a no-op when SSE2 is not available.

https://www.felixcloutier.com/x86/pause.html
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

1 participant