danburkert / bytekey

lexicographic sort-order preserving binary encoding

Home Page:https://crates.io/crates/bytekey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation errors with recent nightly

amirouche opened this issue · comments

There is various errors against nightly:

error[E0432]: unresolved import `std::iter::range_inclusive`
 --> decoder.rs:3:5
  |
3 | use std::iter::range_inclusive;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `range_inclusive` in `iter`

error[E0432]: unresolved import `std::num::wrapping`
 --> decoder.rs:5:15
  |
5 | use std::num::wrapping::OverflowingOps;
  |               ^^^^^^^^ Could not find `wrapping` in `num`

error[E0433]: failed to resolve. Could not find `Error` in `byteorder`
   --> lib.rs:149:24
    |
149 |             byteorder::Error::UnexpectedEOF => Error::UnexpectedEof,
    |                        ^^^^^ Could not find `Error` in `byteorder`

error[E0433]: failed to resolve. Could not find `Error` in `byteorder`
   --> lib.rs:150:24
    |
150 |             byteorder::Error::Io(error) => Error::Io(error),
    |                        ^^^^^ Could not find `Error` in `byteorder`

error[E0412]: cannot find type `Error` in module `byteorder`
   --> lib.rs:146:22
    |
146 | impl From<byteorder::Error> for Error {
    |                      ^^^^^ not found in `byteorder`
    |
help: possible candidates are found in other modules, you can import them into scope
    |
68  | use Error;
    |
68  | use std::error::Error;
    |
68  | use std::fmt::Error;
    |
68  | use std::io::Error;
    |

error[E0412]: cannot find type `Error` in module `byteorder`
   --> lib.rs:147:31
    |
147 |     fn from(error: byteorder::Error) -> Error {
    |                               ^^^^^ not found in `byteorder`
    |
help: possible candidates are found in other modules, you can import them into scope
    |
68  | use Error;
    |
68  | use std::error::Error;
    |
68  | use std::fmt::Error;
    |
68  | use std::io::Error;
    |

warning: unused import: `std::num::wrapping::OverflowingOps`
 --> decoder.rs:5:5
  |
5 | use std::num::wrapping::OverflowingOps;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_imports)] on by default

error[E0599]: no method named `unwrap_or` found for type `&mut str` in the current scope
   --> encoder.rs:364:41
    |
364 |         let n = v.encode_utf8(&mut buf).unwrap_or(0);
    |                                         ^^^^^^^^^

error: aborting due to 7 previous errors

error: Could not compile `bytekey`.
warning: build failed, waiting for other jobs to finish...
error: build failed

std::iter::range_inclusive is gone. But what's the point of using that, why not do for i in a..(n+1) instead?

Personal backlog clean-up.