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

ICE rather than "unresolved import" when use is mixed with [#phase(syntax)] #12169

Closed
rapha opened this issue Feb 10, 2014 · 2 comments
Closed

Comments

@rapha
Copy link
Contributor

rapha commented Feb 10, 2014

$ ls
main.rs
$ cat main.rs 
#[feature(phase)];

#[phase(syntax)]
use unresolved;

fn main() { }
$ rustc main.rs 
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
Ok(task 'rustc' failed at 'called `Option::unwrap()` on a `None` value', /Users/foo/code/rust/lang/rust/src/libstd/option.rs:152
)
$ 
@sfackler
Copy link
Member

Dup of #11806. I should really fix this....

@sfackler
Copy link
Member

The real issue is that #[phase(syntax)] only works with extern mod statements, not use statements.

flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 8, 2024
…_or_else, r=llogiq

Add new `unnecessary_result_map_or_else` lint

Fixes rust-lang/rust-clippy#7328.

r? `@llogiq`

changelog: Add new `unnecessary_result_map_or_else` lint
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