Skip to content

Conversation

steveklabnik
Copy link
Member

Fixes #22621

@rust-highfive
Copy link
Contributor

r? @pcwalton

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

takes two values and compares them. Truth passes, success `panic!`s. Like
this:

```rust,ignore
Copy link
Member

Choose a reason for hiding this comment

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

Could these be tagged with no_run instead of ignore wherever possible?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@steveklabnik
Copy link
Member Author

@alexcrichton updated!

@alexcrichton
Copy link
Member

@bors: r+ b4dc187

@bors
Copy link
Collaborator

bors commented Apr 20, 2015

⌛ Testing commit b4dc187 with merge a0369bd...

This macro causes the current thread to panic. You can give it a message
to panic with:

```rust,ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

why ignore here but no_run elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right, this can be no_run too

@steveklabnik
Copy link
Member Author

oh, huh

@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton rollup

@bors
Copy link
Collaborator

bors commented Apr 20, 2015

📌 Commit 1e29abe has been approved by alexcrichton

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 20, 2015
bors added a commit that referenced this pull request Apr 20, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 21, 2015
bors added a commit that referenced this pull request Apr 21, 2015
@bors bors merged commit 1e29abe into rust-lang:master Apr 21, 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.

Consolidate docs for built-in syntax extensions
6 participants