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

Regression: repr(C) on typedef #29667

Closed
Manishearth opened this issue Nov 7, 2015 · 1 comment
Closed

Regression: repr(C) on typedef #29667

Manishearth opened this issue Nov 7, 2015 · 1 comment
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta.

Comments

@Manishearth
Copy link
Member

http://is.gd/uaDffj

#[repr(C)]
type Foo = extern fn();

fn main(){}

compiles on stable, not on beta.

This probably shouldn't compile in the first place since typedefs are aliases, but it's better to phase it out and replace it with a warning (later an error) instead of breaking it completely.

cc @brson

@Manishearth Manishearth added the regression-from-stable-to-beta Performance or correctness regression from stable to beta. label Nov 7, 2015
@Manishearth
Copy link
Member Author

Ah, looks like this was intentional, #28650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta.
Projects
None yet
Development

No branches or pull requests

1 participant