Skip to content

Conversation

pnkfelix
Copy link
Contributor

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