Rust-GCC / Rust-GCC/gccrs

Support slice equality (`==`) checks

Open
#1,050 1 comment 0 reactions 1 assignee View on GitHub

@philberty is already working on this.

Since Feb 12, 2025.

bug
Dominant language
C++
Stars
2.9k
Forks
231
Avg merge
20h 2m
Merged PRs (30d)
66

Description

P.S. I think this is known but it definitely threw me for a loop :P

(gdb) p bytes
$2 = (u8 (&)[16]) @0x7fffffffe060: [104, 101, 108, 108, 111, 44, 32, 105, 110, 99, 108, 117, 100, 101, 33, 
  10]
(gdb) p the_bytes
$3 = (u8 (&)[16]) @0x7fffffffe070: [104, 101, 108, 108, 111, 44, 32, 105, 110, 99, 108, 117, 100, 101, 33, 
  10]
(gdb) p bytes == the_bytes
$4 = false

Ah :D I think this is worth raising an issue, it might be simply because we're not compiling libcore yet

Originally posted by @CohenArthur in https://github.com/Rust-GCC/gccrs/issues/1043#issuecomment-1074877915

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.