Skip to content

Make inline(never) attributes more idiomatic #15

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

Conversation

polyfractal
Copy link
Contributor

As promised :)

Curious, why did the old code have #![inline(never)] (note the exclamation mark) ? I scoured the manual and don't see any mention of the exclamation mark.

Is this just a relic of older syntax?

@thehydroimpulse
Copy link
Owner

@polyfractal Awesome, thanks for the PR.

The inner attribute syntax has changed recently (0.10 release). This changes the previous inner attributes #[feature(globs)]; (note the semicolon) to the new one #![feature(globs)] (exclamation mark with no semicolon). The semantics for inner vs outer attributes haven't changed though.

thehydroimpulse added a commit that referenced this pull request Apr 24, 2014
Make inline(never) attributes more idiomatic
@thehydroimpulse thehydroimpulse merged commit 26215f4 into thehydroimpulse:master Apr 24, 2014
@polyfractal
Copy link
Contributor Author

Ah, I see. Didn't realize there was a difference between inner and outer attributes, but a quick google says that there is :)

Thanks!

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