-
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
Index out of bounds panic when compiling project #54582
Comments
Could you create and copy here a minimized example of the problem? |
I was able to get this to throw have the same panic pub trait Stage: Sync {}
pub enum Enum {
A,
B,
}
impl Stage for Enum {}
pub static ARRAY: [(&Stage, &str); 1] = [
(&Enum::A, ""),
]; If you remove the Should note this is on a slightly newer compiler (just performed rustup update on my current computer before performing this)
Backtrace:
|
No longer reproduces in current stable. |
Can confirm, no longer having issues with same implementation. |
Add regression test for rust-lang#54582 Fix rust-lang#54582.
Add regression test for rust-lang#54582 Fix rust-lang#54582.
Add regression test for rust-lang#54582 Fix rust-lang#54582.
Rollup of 9 pull requests Successful merges: - #57537 (Small perf improvement for fmt) - #57552 (Default images) - #57604 (Make `str` indexing generic on `SliceIndex`.) - #57667 (Fix memory leak in P::filter_map) - #57677 (const_eval: Predetermine the layout of all locals when pushing a stack frame) - #57791 (Add regression test for #54582) - #57798 (Corrected spelling inconsistency) - #57809 (Add powerpc64-unknown-freebsd) - #57813 (fix validation range printing when encountering undef) Failed merges: r? @ghost
When compiling my project TPGZ
on the branch "crashing" (which just has a lot of irrelevant things commented out) commenting out this array https://github.com/hallcristobal/TwilightPrincessDebugMenu/blob/b629f10f29810c3db4c5205619d71c79e552de1b/src/warping/statics/cave.rs#L53
(and the same similar arrays from the other files in that directory) causes it to not crash.
Meta
rustc --version --verbose
:rustc 1.30.0-nightly (2224a42 2018-09-17)
binary: rustc
commit-hash: 2224a42
commit-date: 2018-09-17
host: x86_64-pc-windows-msvc
release: 1.30.0-nightly
LLVM version: 8.0
Backtrace:
The text was updated successfully, but these errors were encountered: