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

fix issue #3535 and add colon between mode and type when dumping function #3595

Closed

Conversation

Vincent-Belliard
Copy link
Contributor

Now, an unnamed argument "&int" is parsed "x: int" and not "&x: int" anymore.

When dumping functions prototypes, a colon is added between mode and type.

fn (&a: int)

will be dumped:

fn (&:int)

The ambiguity between "&x: int" and "x: &int" is removed

@nikomatsakis
Copy link
Contributor

Thanks!

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Sep 8, 2024
Fixes rust-lang#3595 by using -fvisibility=hidden and the visibility attribute supported by both gcc and clang rather than the previous gcc-only mechanism for symbol hiding. Also brings over cfg changes from rust-lang#3594 which enable native-lib functionality on all unixes.
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Sep 8, 2024
Enable native libraries on macOS

Fixes rust-lang#3595 by using `-fvisibility=hidden` and the visibility attribute supported by both gcc and clang rather than the previous gcc-only mechanism for symbol hiding. Also brings over cfg changes from rust-lang#3594 which enable native-lib functionality on all unixes.

Thanks for taking a look, feedback very welcome!

cc `@RalfJung`
shrirambalaji pushed a commit to shrirambalaji/rust that referenced this pull request Oct 6, 2024
Fixes rust-lang#3595 by using -fvisibility=hidden and the visibility attribute supported by both gcc and clang rather than the previous gcc-only mechanism for symbol hiding. Also brings over cfg changes from rust-lang#3594 which enable native-lib functionality on all unixes.
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

Successfully merging this pull request may close these issues.

2 participants