-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Panic in compiler\rustc_mir\src\borrow_check\region_infer\mod.rs:2120:35 #84957
Comments
Seems to be a duplicate of #81899 according to the error message itself, but I can't see a const generic expression anywhere. Maybe in the serialport crate. I try to minimize this one. |
MCVE:
|
It seems to be const related because of Regression in nightly-2019-11-29 between e87a205...bbb664a stable versions: 1.40.0 and 1.41.0 So, this one is different to the linked issue, therefore let's ping it to the people @rustbot modify labels: regression-from-stable-to-stable |
@becky112358 Is this blocking an update of the compiler on existing code or is it just experimentation? |
@hameerabbasi This is just something I ran into yesterday while coding. With @hellow554's finding that replacing |
Assigning priority as discussed as part of the Prioritization Working Group procedure and removing @becky112358 thanks for the feedback, don't worry, we simply wanted to clarify if the suggested workaround allows you to move on (which you confirmed) or if the issue was blocking. @rustbot label -I-prioritize +P-medium |
I also had this issue happen to me (
I think it's worth noting that the error goes away if we either:
|
This is no longer ICE with the latest nightly, I think #88698 is the fix. Marking as |
Hi, I've made a PR that adds a test for this, pretty much copy/pastes @hellow554 's MCVE 😄 #89997 |
… r=JohnTitor Add test for issue rust-lang#84957 - `str.as_bytes()` in a `const` expression Hi, this PR adds a test for issue rust-lang#84957 . I'm quite new to rustc so let me know if there's anything else that needs doing 😄 Closes rust-lang#84957
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#89766 (RustWrapper: adapt for an LLVM API change) - rust-lang#89867 (Fix macro_rules! duplication when reexported in the same module) - rust-lang#89941 (removing TLS support in x86_64-unknown-none-hermitkernel) - rust-lang#89956 (Suggest a case insensitive match name regardless of levenshtein distance) - rust-lang#89988 (Do not promote values with const drop that need to be dropped) - rust-lang#89997 (Add test for issue rust-lang#84957 - `str.as_bytes()` in a `const` expression) - rust-lang#90002 (:arrow_up: rust-analyzer) - rust-lang#90034 (Tiny tweak to Iterator::unzip() doc comment example.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Hi! I tried to compile my code and got a compiler crash.
Code
https://github.com/becky112358/rust_compiler_bug
Meta
rustc --version --verbose
, stable, problem is present:rustc --version --verbose
, beta, problem still present:rustc --version --verbose
, nightly, problem still present:Error output
Backtrace
RUST_BACKTRACE=full cargo build
The text was updated successfully, but these errors were encountered: