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

librustc: dispatch and pattern benchmarks fail to build #54016

Closed
matthiaskrgr opened this issue Sep 6, 2018 · 0 comments · Fixed by #66659
Closed

librustc: dispatch and pattern benchmarks fail to build #54016

matthiaskrgr opened this issue Sep 6, 2018 · 0 comments · Fixed by #66659
Labels
C-bug Category: This is a bug. F-slice_patterns `#![feature(slice_patterns)]` T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

repo @ c318691
./x.py bench

error[E0432]: unresolved import `test`
  --> librustc/benches/pattern.rs:11:5
   |
11 | use test::Bencher;
   |     ^^^^ Did you mean `test::test`?
error[E0658]: syntax for subslices in slice patterns is not yet stabilized (see issue #23121)
  --> librustc/benches/pattern.rs:31:20
   |
31 |             [1,2,3,..] => 10,
   |                    ^^
   |
   = help: add #![feature(slice_patterns)] to the crate attributes to enable
error: aborting due to 2 previous errors
Some errors occurred: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `rustc`.
warning: build failed, waiting for other jobs to finish...
error[E0658]: syntax for subslices in slice patterns is not yet stabilized (see issue #23121)
  --> librustc/benches/pattern.rs:31:20
   |
31 |             [1,2,3,..] => 10,
   |                    ^^
   |
   = help: add #![feature(slice_patterns)] to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `rustc`.
warning: build failed, waiting for other jobs to finish...
error[E0432]: unresolved import `test`
  --> librustc/benches/dispatch.rs:11:5
   |
11 | use test::Bencher;
   |     ^^^^ Did you mean `test::test`?
error: trait objects without an explicit `dyn` are deprecated
  --> librustc/benches/dispatch.rs:32:20
   |
32 |     let t = &s as &Trait;
   |                    ^^^^^ help: use `dyn`: `dyn Trait`
   |
   = note: requested on the command line with `-D bare-trait-objects`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `rustc`.
@Centril Centril added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Sep 7, 2018
@Centril Centril added the F-slice_patterns `#![feature(slice_patterns)]` label Jul 30, 2019
@bors bors closed this as completed in d22bf91 Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. F-slice_patterns `#![feature(slice_patterns)]` T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants