-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Compilation error regression on nightly #93841
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
Comments
Ah interesting. Treating any equality check between opaque types and other types as "will succeed modulo the opaque type obligation" will skip other code paths like trying autoderef |
This also fails rustdoc disambiguator with a boxed dyn Error //! ```rust
//! use std::fmt::Write;
//! let mut s = String::new();
//! write!(s, "Hello")?;
//! # Ok::<(), std::boxed::Box<dyn std::error::Error + 'static>>(())
//! ```
bisected |
Merged
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this issue
Feb 24, 2022
Revert lazy TAIT PR Revert rust-lang/rust#92306 (sorry `@Aaron1011,` will include your changes in the fix PR) Revert rust-lang/rust#93783 Revert rust-lang/rust#92007 fixes rust-lang/rust#93788 fixes rust-lang/rust#93794 fixes rust-lang/rust#93821 fixes rust-lang/rust#93831 fixes rust-lang/rust#93841
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
I tried this code (reduced testcase from code in cap-std):
When compiled with stable Rust, it compiles with no errors.
When compiled with nightly Rust, it gets the following error:
The error can be avoided by changing
&old_path
to&*old_path
, which works on both stable and nightly. I've already fixed the upstream code do to this; I'm filing this bug as it may affect other users as well.Meta
Stable
rustc --version --verbose
:Nightly
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: