Skip to content

compile failed due to now-missing as_str() #120

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
jashank opened this issue Jul 31, 2015 · 1 comment
Closed

compile failed due to now-missing as_str() #120

jashank opened this issue Jul 31, 2015 · 1 comment

Comments

@jashank
Copy link

jashank commented Jul 31, 2015

> pkg query %v rust-nightly
1.3.0.20150729
> rustc --version
rustc 1.3.0-nightly
> cargo --version
cargo 0.4.0 (built 2015-07-28)
> cargo build --release
   Compiling clippy v0.0.6 (https://github.com/Manishearth/rust-clippy#0e8e8cfc)
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/types.rs:28:85: 28:93 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/types.rs:28             if seg.iter().rev().zip(segments.iter().rev()).all(|(a,b)| a.identifier.as_str() == *b) {
                                                                                                                                                                           ^~~~~~~~
note: in expansion of closure expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/types.rs:28:64: 28:99 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:73:32: 73:40 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:73                 if method.node.as_str() == "to_string"
                                                                                                                     ^~~~~~~~
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:138:51: 138:59 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:138  path.segments.last().map(|seg| if seg.identifier.as_str() == "NAN" {
                                                                                                                                         ^~~~~~~~
note: in expansion of closure expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:138:27: 140:3 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:241:21: 241:29 error: no method named `as_str` found for type `&syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/misc.rs:241          let name = ident.as_str();
                                                                                                                 ^~~~~~~~
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:64:18: 64:26 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:64                       item.ident.as_str()));
                                                                                                                           ^~~~~~~~
note: in expansion of format_args!
<std macros>:2:26: 2:57 note: expansion site
<std macros>:1:1: 2:61 note: in expansion of format!
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:62:7: 64:27 note: expansion site
note: in expansion of for loop expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:59:3: 66:4 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:53:14: 53:22 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:53       item.ident.as_str() == name && if let MethodTraitItem(ref sig, _) =
                                                                                                           ^~~~~~~~
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:84:18: 84:26 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:84                       item.ident.as_str()));
                                                                                                                           ^~~~~~~~
note: in expansion of format_args!
<std macros>:2:26: 2:57 note: expansion site
<std macros>:1:1: 2:61 note: in expansion of format!
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:82:7: 84:27 note: expansion site
note: in expansion of for loop expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:77:3: 87:4 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:72:14: 72:22 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:72       item.ident.as_str() == name && if let MethodImplItem(ref sig, _) = 
                                                                                                           ^~~~~~~~
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:109:18: 109:26 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:109      if method.node.as_str() == "len" && args.len() == 1 &&
                                                                                                               ^~~~~~~~
note: in expansion of if let expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/len_zero.rs:108:2: 115:3 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:106:12: 106:20 error: no method named `as_str` found for type `&syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:106                     ident.as_str()));
                                                                                                                  ^~~~~~~~
note: in expansion of format_args!
<std macros>:2:26: 2:57 note: expansion site
<std macros>:1:1: 2:61 note: in expansion of format!
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:103:46: 106:21 note: expansion site
note: in expansion of if let expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:101:4: 107:5 note: expansion site
note: in expansion of if let expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:99:3: 108:4 note: expansion site
note: in expansion of for loop expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/attrs.rs:98:2: 109:3 note: expansion site
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/utils.rs:44:24: 44:32 error: no method named `as_str` found for type `syntax::ast::Ident` in the current scope
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/utils.rs:44      |(a,b)| a.identifier.as_str() == *b)
                                                                                                                 ^~~~~~~~
note: in expansion of closure expansion
/home/jashank/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/utils.rs:44:3: 44:38 note: expansion site
error: aborting due to 11 previous errors
Could not compile `clippy`.

looks like rust-lang/rust#27234 got us.

@Manishearth
Copy link
Member

Fixed

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

2 participants