Skip to content

rustc: Feature gate log_syntax!. Closes #11602 #11632

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

Merged
merged 1 commit into from
Jan 19, 2014

Conversation

brson
Copy link
Contributor

@brson brson commented Jan 18, 2014

No description provided.

@alexcrichton
Copy link
Member

Normally features should also be described in doc/rust.md, but this is so obscure I don't think it needs to get documented.

@@ -187,6 +188,11 @@ impl Visitor<()> for Context {
self.gate_feature("asm", path.span, "inline assembly is not \
stable enough for use and is subject to change");
}

else if path.segments.last().identifier == self.sess.ident_of("log_syntax") {
self.gate_feature("asm", path.span, "`log_syntax!` is not \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this meant to be "log_syntax"?

(Also, it seems like saving path.segments.last().identifier into a separate variable would be DRY-er.)

@brson
Copy link
Contributor Author

brson commented Jan 18, 2014

Fixed the reported feature to correctly be "log_syntax".

bors added a commit that referenced this pull request Jan 19, 2014
@bors bors closed this Jan 19, 2014
@bors bors merged commit f52bd5e into rust-lang:master Jan 19, 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.

4 participants