Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
Build error without --locked: multiple PartialOrd impls
Closed { reason: Solved } did:key:z6MkrNSK...J6kw opened 1 year ago

Just trying to install a fresh clone (main @ 9411ee31) without –locked results in:

error[E0283]: type annotations needed
   --> src/ui/im/widget.rs:392:85
    |
392 |         let show_scrollbar = self.show_scrollbar && self.items.len() >= area.height.into();
    |                                                                      --             ^^^^
    |                                                                      |
    |                                                                      type must be known at this point
    |
    = note: multiple `impl`s satisfying `usize: PartialOrd<_>` found in the following crates: `core`, `deranged`:
            - impl PartialOrd for usize;
            - impl<MIN, MAX> PartialOrd<deranged::RangedUsize<MIN, MAX>> for usize
              where the constant `MIN` has type `usize`, the constant `MAX` has type `usize`;
help: try using a fully qualified path to specify the expected types
    |
392 |         let show_scrollbar = self.show_scrollbar && self.items.len() >= <u16 as Into<T>>::into(area.height);
    |                                                                         +++++++++++++++++++++++           ~
z6MkwcUR...q1kL commented 8 months ago

This can be closed IMO, as this is not true as of main @ a2de36ddfb307f77de0d666944f520e5ea51e418 anymore.

z6MkgFq6...nBGz commented 8 months ago

Unfortunately, it still happens, but for another reason:

Caused by:
  rustc 1.85.1 is not supported by the following package:
    homedir@0.3.6 requires rustc 1.88
  Either upgrade rustc or select compatible dependency versions with
  `cargo update <name>@<current-ver> --precise <compatible-ver>`
  where `<compatible-ver>` is the latest version supporting rustc 1.85.1

Going to bump the pinned toolchain version now