diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files/deadcode-backport.patch')
| -rw-r--r-- | meta/recipes-devtools/rust/files/deadcode-backport.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/recipes-devtools/rust/files/deadcode-backport.patch b/meta/recipes-devtools/rust/files/deadcode-backport.patch deleted file mode 100644 index 9ab229eb83..0000000000 --- a/meta/recipes-devtools/rust/files/deadcode-backport.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | Fix the dead code error as follows: | ||
| 2 | |||
| 3 | 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) | ||
| 4 | error: field `0` is never read | ||
| 5 | --> src/tools/coverage-dump/src/covfun.rs:222:15 | ||
| 6 | | | ||
| 7 | 222 | Expansion(u32), | ||
| 8 | | --------- ^^^ | ||
| 9 | | | | ||
| 10 | | field in this variant | ||
| 11 | | | ||
| 12 | = note: `-D dead-code` implied by `-D warnings` | ||
| 13 | = help: to override `-D warnings` add `#[allow(dead_code)]` | ||
| 14 | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | ||
| 15 | | | ||
| 16 | 222 | Expansion(()), | ||
| 17 | | ~~ | ||
| 18 | |||
| 19 | error: could not compile `coverage-dump` (bin "coverage-dump") due to 1 previous error | ||
| 20 | |||
| 21 | Only the required change is backported here to run the build without any errors. | ||
| 22 | Other changes are merged with the commit in v1.78. | ||
| 23 | |||
| 24 | Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/9a5034a20ed8b055dc615271f9d9cf27f9e494f0#diff-d4ecc6273352a2a8ebd02c45233d9bff7c6694f20b67ddad0614af7a89c06748] | ||
| 25 | |||
| 26 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | ||
| 27 | --- | ||
| 28 | diff --git a/src/tools/coverage-dump/src/covfun.rs b/src/tools/coverage-dump/src/covfun.rs | ||
| 29 | --- a/src/tools/coverage-dump/src/covfun.rs | ||
| 30 | +++ b/src/tools/coverage-dump/src/covfun.rs | ||
| 31 | @@ -219,7 +219,7 @@ | ||
| 32 | enum MappingKind { | ||
| 33 | Code(CovTerm), | ||
| 34 | Gap(CovTerm), | ||
| 35 | - Expansion(u32), | ||
| 36 | + Expansion(#[allow(dead_code)] u32), | ||
| 37 | Skip, | ||
| 38 | // Using raw identifiers here makes the dump output a little bit nicer | ||
| 39 | // (via the derived Debug), at the expense of making this tool's source | ||
