Skip to content

warn(where_clauses_object_safety) on recent nightly #4

@adeschamps

Description

@adeschamps

On recent nightlies, OrdSubsetSliceExt triggers the where_clauses_object_safety warning:

rust-lang/rust#51443

warning: the trait `slice_ext::OrdSubsetSliceExt` cannot be made into an object
  --> src/slice_ext.rs:42:5
   |
42 | /     fn ord_subset_sort(&mut self)
43 | |     where
44 | |         Self: AsMut<[T]>,
45 | |         T: OrdSubset;
   | |_____________________^
   |
   = note: #[warn(where_clauses_object_safety)] on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
   = note: method `ord_subset_sort` references the `Self` type in where clauses

(+3 other similar warnings)

$ rustc --version
rustc 1.29.0-nightly (6a1c0637c 2018-07-23)

I don't have time right now, but I'll try to come back to this in a week or so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions