Skip to content

unable to compile (2015-08-24) #6

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
vn971 opened this issue Aug 23, 2015 · 2 comments
Closed

unable to compile (2015-08-24) #6

vn971 opened this issue Aug 23, 2015 · 2 comments

Comments

@vn971
Copy link

vn971 commented Aug 23, 2015

Hi! Unfortunately, gaol does not compile using the current "stable" and "nightly" rustc.

Error with stable:

lib.rs:11:1: 11:21 error: #[feature] may not be used on the stable release channel
lib.rs:11 #![feature(convert)]
          ^~~~~~~~~~~~~~~~~~~~

Error with "rustc 1.4.0-nightly (10d69db0a 2015-08-23)":

tests/file-read-metadata.rs:65:76: 65:93 error: no method named `position_elem` found for type `[u8; 4096]` in the current scope
tests/file-read-metadata.rs:65             PathBuf::from(OsStr::from_bytes(&new_temp_path[..new_temp_path.position_elem(&0)
                                                                                                          ^~~~~~~~~~~~~~~~~
tests/file-read-metadata.rs:65:76: 65:93 help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
tests/file-read-metadata.rs:65:76: 65:93 help: candidate #1: use `core::slice::SliceExt`
error: aborting due to previous error
@vn971 vn971 changed the title unable to compile, compilation error with the current rustc versions unable to compile (2015-08-24) Aug 23, 2015
@vn971
Copy link
Author

vn971 commented Aug 27, 2015

What I found out:

  • the code does compile using rustc-2015-08-01
  • if I understand it correctly, position_elem method was removed [from rustc-nightly] without a "breaking_change" marker. Maybe because it was marked deprecated already, I don't know the "social" contract.
  • the following issue discusses the position_elem method and the possibility to return it back: Add ByNeed and Predicate traits rust-lang/rust#27517 (again, if I understood it correctly).

@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 16, 2016

Should be fixed now.

@Ms2ger Ms2ger closed this as completed Mar 16, 2016
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