Skip to content

Add compile_error! - #42620

Merged
bors merged 2 commits into
rust-lang:masterfrom
wesleywiser:compile_error
Jun 21, 2017
Merged

Add compile_error!#42620
bors merged 2 commits into
rust-lang:masterfrom
wesleywiser:compile_error

Conversation

@wesleywiser

@wesleywiserwesleywiser commented Jun 13, 2017

Copy link
Copy Markdown
Member

Related to #40872

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

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

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This test passes even though the feature flag is commented out. Are macros insta-stable?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are macros insta-stable?

Yes, right now they are.

@arielb1arielb1 added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 13, 2017
@arielb1

Copy link
Copy Markdown
Contributor

Thanks for the PR @wesleywiser! @brson (or someone else) will be reviewing your PR soon.

Comment threadsrc/libcore/macros.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should have 1.20.0 here.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Thanks

@ollie27

Copy link
Copy Markdown
Contributor

This doesn't have to be insta-stable, see https://github.com/rust-lang/rust/blob/master/src/libsyntax_ext/concat_idents.rs for an example of an unstable macro.

@est31

Copy link
Copy Markdown
Member

Oh right, I remembered wrongly, what I thought was deprecation warnings of macros...

@wesleywiser
wesleywiserforce-pushed the compile_error branch 2 times, most recently from 22e3815 to df9c667CompareJune 16, 2017 03:12
@wesleywiser

Copy link
Copy Markdown
MemberAuthor

Quick status update: I'm still working on this. I think the code changes are finished and tomorrow I'll work on updating the unstable book.

@wesleywiserwesleywiser changed the title [WIP] Add compile_error!Add compile_error!Jun 17, 2017
@wesleywiser

Copy link
Copy Markdown
MemberAuthor

Pushed unstable docs

@wesleywiser

Copy link
Copy Markdown
MemberAuthor

This should be ready for review.

@bors

bors commented Jun 19, 2017

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #42722) made this pull request unmergeable. Please resolve the merge conflicts.

@wesleywiser

Copy link
Copy Markdown
MemberAuthor

Rebased

@arielb1

Copy link
Copy Markdown
Contributor

r? @sfackler - is @brson on PTO or something?

@brson

Copy link
Copy Markdown
Contributor

@bors r+ thanks @wesleywiser!

@bors

bors commented Jun 20, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 2bec12f has been approved by brson

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors rollup

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 21, 2017
@frewsxcvfrewsxcv mentioned this pull request Jun 21, 2017
bors added a commit that referenced this pull request Jun 21, 2017
Rollup of 4 pull requests
- Successful merges: #42397, #42620, #42762, #42766
- Failed merges:
@bors
bors merged commit 2bec12f into rust-lang:masterJun 21, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@wesleywiser@rust-highfive@arielb1@ollie27@est31@bors@brson@Mark-Simulacrum