Skip to content

Build Broken on Nightly and Master 2018-09-02 #3112

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

Closed
ghost opened this issue Sep 2, 2018 · 0 comments
Closed

Build Broken on Nightly and Master 2018-09-02 #3112

ghost opened this issue Sep 2, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 2, 2018

I'm getting the errors below when trying to build on nightly and master. The breakage seems to have been introduced by rust-lang/rust#53815

error[E0308]: mismatched types
   --> clippy_lints/src/utils/hir_utils.rs:116:100
    |
116 |                     self.eq_expr(&l.body, &r.body) && both(&l.guard, &r.guard, |l, r| self.eq_expr(l, r))
    |                                                                                                    ^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/utils/hir_utils.rs:116:103
    |
116 |                     self.eq_expr(&l.body, &r.body) && both(&l.guard, &r.guard, |l, r| self.eq_expr(l, r))
    |                                                                                                       ^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/utils/hir_utils.rs:500:40
    |
500 |                         self.hash_expr(e);
    |                                        ^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/utils/inspector.rs:116:28
    |
116 |             print_expr(cx, guard, 1);
    |                            ^^^^^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/utils/author.rs:350:41
    |
350 |                         self.visit_expr(guard);
    |                                         ^^^^^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/eval_order_dependence.rs:112:41
    |
112 |                         self.visit_expr(guard);
    |                                         ^^^^^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error[E0308]: mismatched types
   --> clippy_lints/src/shadow.rs:342:40
    |
342 |                         check_expr(cx, guard, bindings);
    |                                        ^^^^^ expected struct `rustc::hir::Expr`, found enum `rustc::hir::Guard`
    |
    = note: expected type `&rustc::hir::Expr`
               found type `&rustc::hir::Guard`

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `clippy_lints`.
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

No branches or pull requests

0 participants