-
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
Internal compiler error (traits & associated consts) #56870
Comments
Regression seems to have happened in 1.26; Testing this with godbolt (1.25) works but it doesn't with 1.26. |
error: internal compiler error: src/librustc/ty/subst.rs:491: Type parameter thread 'main' panicked at 'Box', src/librustc_errors/lib.rs:538:9 |
the example do not ICE any more from version 1.34.0 see https://godbolt.org/z/rQN231 |
I'd like to work on this (specifically to add the tests). I've tested and can confirm as @andjo403 that the example does not trigger an ICE anymore. Tested on:
|
Regression test for rust-lang#56870 Closes rust-lang#56870.
Rollup of 10 pull requests Successful merges: - #62108 (Use sharded maps for queries) - #63297 (Improve pointer offset method docs) - #63306 (Adapt AddRetag for shallow retagging) - #63406 (Suggest using a qualified path in patterns with inconsistent bindings) - #63431 (Revert "Simplify MIR generation for logical ops") - #63449 (resolve: Remove remaining special cases from built-in macros) - #63461 (docs: add stdlib env::var(_os) panic) - #63473 (Regression test for #56870) - #63474 (Add tests for issue #53598 and #57700) - #63480 (Fixes #63477) Failed merges: r? @ghost
Regression test for rust-lang#56870 Closes rust-lang#56870.
Rollup of 9 pull requests Successful merges: - #62108 (Use sharded maps for queries) - #63297 (Improve pointer offset method docs) - #63406 (Suggest using a qualified path in patterns with inconsistent bindings) - #63431 (Revert "Simplify MIR generation for logical ops") - #63449 (resolve: Remove remaining special cases from built-in macros) - #63461 (docs: add stdlib env::var(_os) panic) - #63473 (Regression test for #56870) - #63474 (Add tests for issue #53598 and #57700) - #63480 (Fixes #63477) Failed merges: r? @ghost
Internal compiler error happens compiling weird code with traits and associated consts.
I tried this code:
I expected to see this happen: compiler not to crash
Instead, this happened: compiler crashed with:
Meta
Playground nightly: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=59adf803ef87a6d4b1251408811542dd
Playground stable: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=59adf803ef87a6d4b1251408811542dd
The text was updated successfully, but these errors were encountered: