Skip to content

type &[u8] does not implement any method in scope named slice #13

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
dtantsur opened this issue Oct 3, 2014 · 1 comment
Closed

type &[u8] does not implement any method in scope named slice #13

dtantsur opened this issue Oct 3, 2014 · 1 comment

Comments

@dtantsur
Copy link

dtantsur commented Oct 3, 2014

recent build is failing with

/home/dtantsur/Projects/num/src/complex.rs:222:5: 222:40 warning: The use of cfg filters in #[ignore] is deprecated. Use #[cfg_attr(<cfg pattern>, ignore)] instead.
/home/dtantsur/Projects/num/src/complex.rs:222     #[ignore(cfg(target_arch = "x86"))]
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dtantsur/Projects/num/src/bigint.rs:736:41: 736:58 error: type `&[u8]` does not implement any method in scope named `slice`
/home/dtantsur/Projects/num/src/bigint.rs:736             match uint::parse_bytes(buf.slice(start, end), radix) {
                                                                                      ^~~~~~~~~~~~~~~~~
/home/dtantsur/Projects/num/src/bigint.rs:1407:41: 1407:64 error: type `&[u8]` does not implement any method in scope named `slice`
/home/dtantsur/Projects/num/src/bigint.rs:1407         return BigUint::parse_bytes(buf.slice(start, buf.len()), radix)
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
@alexcrichton
Copy link
Contributor

This was actually fixed in rust-lang/rust#17715, and it just needs to hit the next nightly now. I've kicked of some builds, and they should be updated soon!

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