-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error regression on nightly #93841
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 |
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
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: