Skip to content

der crate bumps MSRV #804

@lumag

Description

@lumag

Current der crate declares rust version 1.57, however it's not compatible even with 1.63:

$ cargo build
   Compiling der v0.7.0-pre (/home/lumag/Projects/Rust/RustCrypto/formats/der)
error[E0658]: generic associated types are unstable
 --> der/src/referenced.rs:6:5
  |
6 | /     type Borrowed<'a>
7 | |     where
8 | |         Self: 'a;
  | |_________________^
  |
  = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information

error[E0658]: where clauses on associated types are unstable
 --> der/src/referenced.rs:6:5
  |
6 | /     type Borrowed<'a>
7 | |     where
8 | |         Self: 'a;
  | |_________________^
  |
  = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information

error[E0658]: where clauses on associated types are unstable
  --> der/src/referenced.rs:19:5
   |
19 | /     type Owned: OwnedToRef<Borrowed<'a> = Self>
20 | |     where
21 | |         Self: 'a;
   | |_________________^
   |
   = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information

error[E0658]: generic associated types are unstable
  --> der/src/referenced.rs:31:5
   |
31 |     type Borrowed<'a> = Option<T::Borrowed<'a>> where T: 'a;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information

error[E0658]: where clauses on associated types are unstable
  --> der/src/referenced.rs:31:5
   |
31 |     type Borrowed<'a> = Option<T::Borrowed<'a>> where T: 'a;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `der` due to 5 previous errors

$ rustc --version
rustc 1.63.0

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