Skip to content
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

Feature gate 'yield $expr?' pre-expansion #63545

Merged
merged 2 commits into from
Aug 17, 2019

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Aug 14, 2019

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 14, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Aug 15, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Aug 15, 2019

📌 Commit 4fe201c has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 15, 2019
Centril added a commit to Centril/rust that referenced this pull request Aug 15, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
Centril added a commit to Centril/rust that referenced this pull request Aug 15, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
Centril added a commit to Centril/rust that referenced this pull request Aug 15, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
Centril added a commit to Centril/rust that referenced this pull request Aug 15, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
bors added a commit that referenced this pull request Aug 15, 2019
Rollup of 5 pull requests

Successful merges:

 - #63173 (Use libunwind from llvm-project submodule for musl targets)
 - #63462 (Opaque builtin derive macros)
 - #63539 (Suggest Rust 2018 on `<expr>.await` with no such field)
 - #63545 (Feature gate 'yield $expr?' pre-expansion)
 - #63584 (libcore: more cleanups using `#![feature(associated_type_bounds)]`)

Failed merges:

r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Aug 15, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
@bors

This comment has been minimized.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 16, 2019
@Centril
Copy link
Contributor Author

Centril commented Aug 16, 2019

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Aug 16, 2019

📌 Commit 20661f1 has been approved by oli-obk

@bors bors removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 16, 2019
@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Aug 16, 2019
Centril added a commit to Centril/rust that referenced this pull request Aug 16, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
Centril added a commit to Centril/rust that referenced this pull request Aug 17, 2019
Feature gate 'yield $expr?' pre-expansion

Also improve the overall ergonomics of pre-expansion gating in general.

r? @Zoxc
bors added a commit that referenced this pull request Aug 17, 2019
Rollup of 6 pull requests

Successful merges:

 - #63149 (resolve: Populate external modules in more automatic and lazy way)
 - #63545 (Feature gate 'yield $expr?' pre-expansion)
 - #63548 (Update rustc-demangle to 0.1.16.)
 - #63558 (Remap paths for proc-macro crates.)
 - #63641 (add git keyword to submodule comments in config.example.toml)
 - #63642 (Rename overflowing_{add,sub,mul} intrinsics to wrapping_{add,sub,mul}.)

Failed merges:

r? @ghost
@bors
Copy link
Contributor

bors commented Aug 17, 2019

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

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 17, 2019
@bors bors merged commit 20661f1 into rust-lang:master Aug 17, 2019
@Centril Centril deleted the gate-yield-preexp branch August 17, 2019 07:58
@carllerche
Copy link
Member

Would this not break stable code as macros on stable could transform yield syntax to syntax supported on stable rust?

@Centril
Copy link
Contributor Author

Centril commented Aug 21, 2019

@carllerche Attribute and declarative macros on stable should not take advantage of the stability hole (i.e. bug -- see rust-lang/rfcs#2405) in the language that post-expansion gating was. If you want to conditionally rely on unstable syntax, use #[cfg(...)] on a module.

@carllerche
Copy link
Member

Ok, sorry. I did not realize it was considered a stability hole.

@Centril
Copy link
Contributor Author

Centril commented Aug 21, 2019

@carllerche Np, thanks for asking. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: 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.

6 participants