]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rust: Oe-selftest changes for rust v1.77
authorYash Shinde <Yash.Shinde@windriver.com>
Thu, 8 Aug 2024 10:00:36 +0000 (03:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Aug 2024 21:33:07 +0000 (22:33 +0100)
commit072df9d3d8792a6f0250cc5e37545f04e6a046ec
tree9651e452cf3d00e102017f15bfab02d0a972e62b
parent25fed23ea9dcd1e7f0c11a1e3a988a33d5676c0b
rust: Oe-selftest changes for rust v1.77

    Update the file paths for v1.77 and fix the dead code error as follows:

    Compiling coverage-dump v0.1.0 (/home/poky/build-st/tmp/work/core2-64-poky-linux/rust/1.77.0/rustc-1.77.0-src/src/tools/coverage-dump)
    error: field `0` is never read
       --> src/tools/coverage-dump/src/covfun.rs:222:15
        |
    222 |     Expansion(u32),
        |     --------- ^^^
        |     |
        |     field in this variant
        |
        = note: `-D dead-code` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(dead_code)]`
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
        |
    222 |     Expansion(()),
        |               ~~

    error: could not compile `coverage-dump` (bin "coverage-dump") due to 1 previous error

    Only the required change is backported here to run the build without any errors.
    Other changes are merged with the commit in v1.78.

    Reference: https://github.com/rust-lang/rust/commit/9a5034a20ed8b055dc615271f9d9cf27f9e494f0#diff-d4ecc6273352a2a8ebd02c45233d9bff7c6694f20b67ddad0614af7a89c06748

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/files/deadcode-backport.patch [new file with mode: 0644]
meta/recipes-devtools/rust/files/rust-oe-selftest.patch
meta/recipes-devtools/rust/rust-source.inc