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

No error on invalid #[crate_type] #11256

Closed
huonw opened this issue Jan 1, 2014 · 1 comment
Closed

No error on invalid #[crate_type] #11256

huonw opened this issue Jan 1, 2014 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@huonw
Copy link
Member

huonw commented Jan 1, 2014

#[crate_type="foo"];
fn main() {}

compiles without error.

@am0d
Copy link
Contributor

am0d commented Jan 1, 2014

I'm willing to have a go at fixing this. Would you expect an error here, or just a warning?

@bors bors closed this as completed in d3ae3a2 Jan 3, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 31, 2023
Resolve type aliases in `type_certainty`

Fixes rust-lang#11256

changelog: `unwrap_or_default`: Fix ICE when local types are declared using alias types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants