Skip to content

Build errors with latest nightly toolchain cargo 1.75.0-nightly (65e297d1e 2023-11-03) #261

@likebreath

Description

@likebreath

With latest nightly toolchain:

cargo 1.75.0-nightly (65e297d1e 2023-11-03)
rustc 1.75.0-nightly (fee5518cd 2023-11-05)

There are several building errors like below:

error[E0308]: mismatched types
  --> src/bitmap/mod.rs:54:14
   |
54 |     type S = Self;
   |              ^^^^ lifetime mismatch
   |
   = note: expected associated type `<() as WithBitmapSlice<'a>>::S`
              found associated type `<() as WithBitmapSlice<'a>>::S`
note: the required lifetime does not necessarily outlive the lifetime `'a` as defined here
  --> src/bitmap/mod.rs:53:6
   |
53 | impl<'a> WithBitmapSlice<'a> for () {
   |      ^^
note: the lifetime requirement is introduced here
  --> src/bitmap/mod.rs:22:13
   |
22 |     type S: BitmapSlice;
   |             ^^^^^^^^^^^

error[E0308]: mismatched types
  --> src/bitmap/mod.rs:54:14
   |
54 |     type S = Self;
   |              ^^^^ lifetime mismatch
   |
   = note: expected associated type `<() as WithBitmapSlice<'a>>::S`
              found associated type `<() as WithBitmapSlice<'a>>::S`
note: the lifetime `'a` as defined here doesn't meet the lifetime requirements
  --> src/bitmap/mod.rs:53:6
   |
53 | impl<'a> WithBitmapSlice<'a> for () {
   |      ^^
note: the lifetime requirement is introduced here
  --> src/bitmap/mod.rs:22:13
   |
22 |     type S: BitmapSlice;
   |             ^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `vm-memory` (lib) due to 2 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions