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

stability lint: ignore code from macro expansion #15726

Merged
merged 1 commit into from
Jul 18, 2014

Conversation

aturon
Copy link
Member

@aturon aturon commented Jul 16, 2014

This small patch causes the stability lint to bail out when traversing
any AST produced via a macro expansion. Ultimately, we would like to
lint the contents of the macro at the place where the macro is defined,
but regardless we should not be linting it at the use site.

Closes #15703

This small patch causes the stability lint to bail out when traversing
any AST produced via a macro expansion. Ultimately, we would like to
lint the contents of the macro at the place where the macro is defined,
but regardless we should not be linting it at the use site.

Closes rust-lang#15703
@aturon
Copy link
Member Author

aturon commented Jul 16, 2014

cc @brson @huonw

@alexcrichton
Copy link
Member

This is how I was currently planning on having select! be experimental due to macro expansions themselves not being warned about, but it sounds like we're planning that sort of warning anyway.

Is there a tracking issue open for warning about macro invocations?

@aturon
Copy link
Member Author

aturon commented Jul 16, 2014

@alexcrichton There is now! #15728

@alexcrichton
Copy link
Member

Thanks!

bors added a commit that referenced this pull request Jul 18, 2014
This small patch causes the stability lint to bail out when traversing
any AST produced via a macro expansion. Ultimately, we would like to
lint the contents of the macro at the place where the macro is defined,
but regardless we should not be linting it at the use site.

Closes #15703
@bors bors closed this Jul 18, 2014
@bors bors merged commit 81b69d1 into rust-lang:master Jul 18, 2014
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.

Don't consider macro-expansions in stability analysis?
3 participants