Skip to content
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 when more than one op with the same struct ident #72

Closed
alexbatashev opened this issue Jun 30, 2024 · 0 comments · Fixed by #73
Closed

panic when more than one op with the same struct ident #72

alexbatashev opened this issue Jun 30, 2024 · 0 comments · Fixed by #73
Assignees
Labels
bug Something isn't working

Comments

@alexbatashev
Copy link
Contributor

Comes from linkme crate:


---- ops::alu::tests::test_sema stdout ----
thread 'ops::alu::tests::test_sema' panicked at /home/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linkme-0.3.27/src/distributed_slice.rs:259:13:
duplicate #[distributed_slice] with name "ADDOP_METADATA"
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
   2: linkme::distributed_slice::DistributedSlice<[T]>::static_slice
             at /home/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linkme-0.3.27/src/distributed_slice.rs:259:13
   3: <linkme::distributed_slice::DistributedSlice<[T]> as core::ops::deref::Deref>::deref
             at /home/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linkme-0.3.27/src/distributed_slice.rs:295:9
   4: tir_core::utils::op_dyn_cast
             at /home/alex/Projects/perf-toolbox/tir/core/src/utils.rs:59:17
   5: tir_backend::isema::conversion::convert_to_isema::{{closure}}
             at /home/alex/Projects/perf-toolbox/tir/backends/common/src/isema/conversion.rs:12:30
   6: tir_core::walkers::dfs_walk
             at /home/alex/Projects/perf-toolbox/tir/core/src/walkers.rs:24:9
   7: tir_backend::isema::conversion::convert_to_isema
             at /home/alex/Projects/perf-toolbox/tir/backends/common/src/isema/conversion.rs:11:5
   8: tir_riscv::ops::alu::tests::test_sema
             at ./src/ops/alu.rs:250:9
   9: tir_riscv::ops::alu::tests::test_sema::{{closure}}
             at ./src/ops/alu.rs:224:19
  10: core::ops::function::FnOnce::call_once
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
  11: core::ops::function::FnOnce::call_once
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@alexbatashev alexbatashev self-assigned this Jun 30, 2024
@alexbatashev alexbatashev added the bug Something isn't working label Jun 30, 2024
@alexbatashev alexbatashev linked a pull request Jul 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant