Skip to content

Add common macros to TRPL #24516

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
Apr 21, 2015
Merged

Add common macros to TRPL #24516

merged 1 commit into from
Apr 21, 2015

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