Skip to content

Work around unary negation to-be-feature-gated warning #27191

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
Jul 23, 2015

Conversation

pnkfelix
Copy link
Member

Work around unary negation to-be-feature-gated warning by replacing references to -1 as a ast::NodeId with ast::DUMMY_NODE_ID, which seems like a better notation to use (it is currently also -1.

(AFAICT the code is not relying on the value -1 anywhere, it really just needed a dummy value for when the input is None.)

replacing references to `-1` as a `ast::NodeId` with `ast::DUMMY_NODE_ID`,
which seems like a better notation to use (it is currently also `-1`.

(AFAICT the code is not *relying* on the value `-1` anywhere, it
really just needed a dummy value for when the input is `None`.)
@rust-highfive
Copy link
Contributor

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 91493df

@bors
Copy link
Collaborator

bors commented Jul 22, 2015

⌛ Testing commit 91493df with merge cb4f102...

bors added a commit that referenced this pull request Jul 22, 2015
…crichton

Work around unary negation to-be-feature-gated warning by replacing references to `-1` as a `ast::NodeId` with `ast::DUMMY_NODE_ID`, which seems like a better notation to use (it is currently also `-1`.

(AFAICT the code is not *relying* on the value `-1` anywhere, it really just needed a dummy value for when the input is `None`.)
@bors bors merged commit 91493df into rust-lang:master Jul 23, 2015
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.

5 participants