Skip to content

Maybe regression in nightly when compiling cursive_core #90043

Closed
@aplanas

Description

@aplanas

Code

I found this, and I think that can be a compiler regression.

git clone https://github.com/gyscos/cursive.git
cd cursive/cursive-core
git checkout cursive_core-v0.2.1
cargo build
...
   Compiling cursive_core v0.1.1 (/.../cursive/cursive-core)
error[E0277]: the trait bound `dyn view_trait::View: view_trait::View` is not satisfied
  --> cursive-core/src/views/list_view.rs:99:14
   |
99 |         view.take_focus(direction::Direction::none());
   |              ^^^^^^^^^^ the trait `view_trait::View` is not implemented for `dyn view_trait::View`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `cursive_core` due to previous error

It works on stable or in nightly-2021-10-15

cargo +stable build
...
   Compiling cursive_core v0.1.1 (/home/aplanas/mnt/Work/kk/cursive/cursive-core)
    Finished dev [unoptimized + debuginfo] target(s) in 20.90s

Version it worked on

It most recently worked on: nightly-2021-10-15

rustc +nightly-2021-10-15 --version --verbose:

rustc 1.57.0-nightly (e1e9319d9 2021-10-14)
binary: rustc
commit-hash: e1e9319d93aea755c444c8f8ff863b0936d7a4b6
commit-date: 2021-10-14
host: x86_64-unknown-linux-gnu
release: 1.57.0-nightly
LLVM version: 13.0.0

Version with regression

rustc --version --verbose:

rustc 1.58.0-nightly (bd41e09da 2021-10-18)
binary: rustc
commit-hash: bd41e09da334697c0f993b36685cb599061d9faa
commit-date: 2021-10-18
host: x86_64-unknown-linux-gnu
release: 1.58.0-nightly
LLVM version: 13.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions