-
Notifications
You must be signed in to change notification settings - Fork 13k
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 with nightly: the trait ~const Deref is not implemented for String
#103677
Labels
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
ogoffart
added
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
labels
Oct 28, 2022
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Oct 28, 2022
searched nightlies: from nightly-2022-08-01 to nightly-2022-10-24 bisected with cargo-bisect-rustc v0.6.4Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2022-08-01 --regress error --access github |
Seems like closures pick the constness of their parent when they should always be notconst |
apiraino
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Oct 28, 2022
fee1-dead
changed the title
Compilation error with nightly: `
Compilation error with nightly: ``Oct 28, 2022
the trait
~const Deref is not implemented for
String
`the trait
~const Deref is not implemented for
String
``
fee1-dead
changed the title
Compilation error with nightly: ``
Compilation error with nightly: Oct 28, 2022
the trait
~const Deref is not implemented for
String
``the trait \
~const Deref\ is not implemented for \
String\
fee1-dead
changed the title
Compilation error with nightly:
Compilation error with nightly: Oct 28, 2022
the trait \
~const Deref\ is not implemented for \
String\
the trait ~const Deref is not implemented for String
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Oct 28, 2022
…checks-constness, r=oli-obk Retain ParamEnv constness when running deferred cast checks Fixes rust-lang#103677.
inquisitivecrystal
removed
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Oct 31, 2022
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Nov 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Compiles in stable rust (1.64) as well as in beta.
But in nightly, we get this compilation error:
playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=c4decfd8064f4074814df6e0d4e0859c
Version it worked on
1.64, and beta
Version with regression
current nightly
The text was updated successfully, but these errors were encountered: