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

Parse default async fn & Pre-expansion-gate default #63749

Closed
wants to merge 3 commits into from

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Aug 20, 2019

r? @petrochenkov

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 20, 2019
gate_all!(or_pattern_spans, or_patterns, "or-patterns syntax is experimental");
gate_all!(param_attrs, "attributes on function parameters are unstable");
gate_all!(let_chains, "`let` expressions in this position are experimental");
gate_all!(async_closure, "async closures are unstable");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
gate_all!(async_closure, "async closures are unstable");
gate_all!(async_closures, "async closures are unstable");

Nit: everything else is plural or uncountable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you are right, but fixing it is not worth the churn of people switching to #![feature(async_closures)]?

@petrochenkov
Copy link
Contributor

r=me with or without addressing the comment

@petrochenkov petrochenkov 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-review Status: Awaiting review from the assignee but also interested parties. labels Aug 20, 2019
@Centril
Copy link
Contributor Author

Centril commented Aug 20, 2019

@bors r=petrochenkov

@bors
Copy link
Contributor

bors commented Aug 20, 2019

📌 Commit b1a9e9e has been approved by petrochenkov

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 20, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-08-20T16:25:42.7444085Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-08-20T16:25:42.7624033Z ##[command]git config gc.auto 0
2019-08-20T16:25:42.7702809Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-08-20T16:25:42.7759026Z ##[command]git config --get-all http.proxy
2019-08-20T16:25:42.7888184Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/63749/merge:refs/remotes/pull/63749/merge
---
2019-08-20T16:26:18.6713740Z do so (now or later) by using -b with the checkout command again. Example:
2019-08-20T16:26:18.6713994Z 
2019-08-20T16:26:18.6714478Z   git checkout -b <new-branch-name>
2019-08-20T16:26:18.6714707Z 
2019-08-20T16:26:18.6714912Z HEAD is now at 041058cbd Merge b1a9e9edb1004f725d253dd3bf444fa61b74d4ca into 51879c3abaedb926739095d19a2af638ee6a07d8
2019-08-20T16:26:18.6876822Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-08-20T16:26:18.6880097Z ==============================================================================
2019-08-20T16:26:18.6880167Z Task         : Bash
2019-08-20T16:26:18.6880219Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-08-20T16:58:03.6430192Z    Compiling smallvec v0.6.10
2019-08-20T16:58:03.7093301Z error[E0658]: specialization is unstable
2019-08-20T16:58:03.7094768Z     --> /cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-0.6.10/lib.rs:1259:5
2019-08-20T16:58:03.7096485Z      |
2019-08-20T16:58:03.7097355Z 1259 |     default fn spec_from(slice: &'a [A::Item]) -> SmallVec<A> {
2019-08-20T16:58:03.7098357Z      |
2019-08-20T16:58:03.7098357Z      |
2019-08-20T16:58:03.7099059Z      = note: for more information, see ***/issues/31844
2019-08-20T16:58:03.7099693Z      = help: add `#![feature(specialization)]` to the crate attributes to enable
2019-08-20T16:58:03.9582354Z error: aborting due to previous error
2019-08-20T16:58:03.9586415Z 
2019-08-20T16:58:03.9595528Z For more information about this error, try `rustc --explain E0658`.
2019-08-20T16:58:03.9595528Z For more information about this error, try `rustc --explain E0658`.
2019-08-20T16:58:03.9707882Z error: Could not compile `smallvec`.
2019-08-20T16:58:04.3932754Z error: build failed
2019-08-20T16:58:04.3944379Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
2019-08-20T16:58:04.3944581Z expected success, got: exit code: 101
2019-08-20T16:58:04.3958627Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-08-20T16:58:04.3958627Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-08-20T16:58:04.3958737Z Build completed unsuccessfully in 0:25:08
2019-08-20T16:58:04.4018117Z == clock drift check ==
2019-08-20T16:58:04.4034516Z   local time: Tue Aug 20 16:58:04 UTC 2019
2019-08-20T16:58:04.5616731Z   network time: Tue, 20 Aug 2019 16:58:04 GMT
2019-08-20T16:58:04.5617469Z == end clock drift check ==
2019-08-20T16:58:05.5193879Z ##[error]Bash exited with code '1'.
2019-08-20T16:58:05.5239608Z ##[section]Starting: Checkout
2019-08-20T16:58:05.5241836Z ==============================================================================
2019-08-20T16:58:05.5241901Z Task         : Get sources
2019-08-20T16:58:05.5241977Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@Centril
Copy link
Contributor Author

Centril commented Aug 20, 2019

Argh... smallvec is doing things it shouldn't... :(

@bors r-

@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 20, 2019
@Centril Centril added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 20, 2019
@Centril
Copy link
Contributor Author

Centril commented Aug 20, 2019

Cherry picked out the 1st and the 3rd commits respectively for now.

Centril added a commit to Centril/rust that referenced this pull request Aug 20, 2019
…etrochenkov

Allow 'default async fn' to parse.

- Parse default async fn. Fixes rust-lang#63716.

(`cherry-pick`ed from 3rd commit in rust-lang#63749.)

r? @petrochenkov
Centril added a commit to Centril/rust that referenced this pull request Aug 21, 2019
…etrochenkov

Allow 'default async fn' to parse.

- Parse default async fn. Fixes rust-lang#63716.

(`cherry-pick`ed from 3rd commit in rust-lang#63749.)

r? @petrochenkov
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Sep 11, 2019
@petrochenkov
Copy link
Contributor

petrochenkov commented Sep 11, 2019

Not sure what is this blocked on, #63759 was merged, marking as waiting on author.

@Centril
Copy link
Contributor Author

Centril commented Sep 11, 2019

@petrochenkov The pre-expansion gating for default fn is the only remaining bit at the moment but it seems smallvec relied on that sadly. I made a fix in servo/rust-smallvec#161 but it seems a new version of smallvec hasn't been made yet. Perhaps we should close this for now and I can try to pre-expansion-gate some other things instead?

@petrochenkov
Copy link
Contributor

Ok.

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.

[bug] async specialization is not parsed
4 participants