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

Failed to build with rustc 1.21.0-nightly (37c7d0ebb 2017-07-31) #1914

Closed
Frederick888 opened this issue Aug 1, 2017 · 3 comments
Closed

Comments

@Frederick888
Copy link
Contributor

Due to: rust-lang/rust#43399

Logs:

error[E0432]: unresolved import `rustc::hir::BindingMode`                                                                                                                                      
 --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/needless_borrow.rs:6:64                                                                                          
  |                                                                                                                                                                                            
6 | use rustc::hir::{ExprAddrOf, Expr, MutImmutable, Pat, PatKind, BindingMode};                                                                                                               
  |                                                                ^^^^^^^^^^^ no `BindingMode` in `hir`                                                                                       
                                                                                                                                                                                               
error[E0432]: unresolved import `rustc::hir::BindingMode`                                                                                                                                      
 --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/needless_borrowed_ref.rs:6:46                                                                                    
  |                                                                                                                                                                                            
6 | use rustc::hir::{MutImmutable, Pat, PatKind, BindingMode};                                                                                                                                 
  |                                              ^^^^^^^^^^^ no `BindingMode` in `hir`                                                                                                         
                                                                                                                                                                                               
error[E0531]: cannot find tuple struct/variant `BindByRef` in module `hir`                                                                                                                     
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/let_if_seq.rs:97:26                                                                                             
   |                                                                                                                                                                                           
97 |                     hir::BindByRef(hir::MutMutable) | hir::BindByValue(hir::MutMutable) => "<mut> ",                                                                                      
   |                          ^^^^^^^^^ not found in `hir`                                                                                                                                     
                                                                                                                                                                                               
error[E0531]: cannot find tuple struct/variant `BindByValue` in module `hir`                                                                                                                   
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/let_if_seq.rs:97:60                                                                                             
   |                                                                                                                                                                                           
97 |                     hir::BindByRef(hir::MutMutable) | hir::BindByValue(hir::MutMutable) => "<mut> ",
   |                                                            ^^^^^^^^^^^ not found in `hir`
   |
help: possible candidates are found in other modules, you can import them into scope
   |
62 |         if let $pat = $expr use rustc::ty::BindByValue;
   |
62 |         if let $pat = $expr use rustc::ty::BindingMode::BindByValue;
   |

error[E0531]: cannot find tuple struct/variant `BindByValue` in this scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/matches.rs:246:26
    |
246 |         PatKind::Binding(BindByValue(MutImmutable), _, ident, None) => ident.node.to_string(),
    |                          ^^^^^^^^^^^ not found in this scope
    |
help: possible candidates are found in other modules, you can import them into scope
    |
106 | use rustc::ty::BindByValue;
    |
106 | use rustc::ty::BindingMode::BindByValue;
    |

error[E0531]: cannot find tuple struct/variant `BindByRef` in this scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/misc.rs:228:37
    |
228 |             if let PatKind::Binding(BindByRef(_), _, _, _) = arg.pat.node {
    |                                     ^^^^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `BindByRef` in this scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/misc.rs:241:34
    |
241 |             let PatKind::Binding(BindByRef(mt), _, i, None) = l.pat.node,
    |                                  ^^^^^^^^^ not found in this scope

error[E0433]: failed to resolve. Use of undeclared type or module `BindingMode`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/needless_pass_by_value.rs:127:21
    |
127 |                     BindingMode::BindByRef(m) | BindingMode::BindByValue(m) => m,
    |                     ^^^^^^^^^^^ Use of undeclared type or module `BindingMode`

error[E0433]: failed to resolve. Use of undeclared type or module `BindingMode`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.147/src/needless_pass_by_value.rs:127:49
    |
127 |                     BindingMode::BindByRef(m) | BindingMode::BindByValue(m) => m,
    |                                                 ^^^^^^^^^^^ Use of undeclared type or module `BindingMode`

error: aborting due to 9 previous errors

error: Could not compile `clippy_lints`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `clippy v0.0.147`, intermediate artifacts can be found at `/tmp/cargo-install.uOP6JKz7S4Xq`

Caused by:
  build failed
@ebfull
Copy link

ebfull commented Aug 1, 2017

Now that this is a nursery project, is there any chance that this library will be tested against when the compiler is changed? clippy has been broken by three or four separate changes now in the last week.

@Frederick888
Copy link
Contributor Author

@ebfull I remember that they once talked about integrating clippy into rustup. So perhaps we could expect that in the future rustup would only pull new versions of rustc until clippy is able to be compiled against them.

@oli-obk
Copy link
Contributor

oli-obk commented Aug 1, 2017

Yes that will happen. But it's not trivial. I hope to get clippy distributed via rustup by the end of the year

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

3 participants