about summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness/refutable-pattern-errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-04-29 12:28:24 -0400
committerGitHub <noreply@github.com>2025-04-29 12:28:24 -0400
commit1d642e5e4a4102a000dd09d318d205583564ff1b (patch)
treef90f9def699a5cb3b4a027ea13e49006693f0a69 /tests/ui/pattern/usefulness/refutable-pattern-errors.rs
parent219f0b7082ca57fba1567f8a933b91ce50911190 (diff)
parenta3e16c7adca4d907b5c99d39b7ba6a4fe5f8a56b (diff)
downloadrust-1d642e5e4a4102a000dd09d318d205583564ff1b.tar.gz
rust-1d642e5e4a4102a000dd09d318d205583564ff1b.zip
Rollup merge of #140422 - betrusted-io:bump-unwinding-to-0.2.6, r=workingjubilee
unwind: bump `unwinding` dependency to 0.2.6

Xous now fails to compile under nightly, due to the recent change where `#[naked]` must now be wrapped in `unsafe(...)`. The `unwinding` crate was updated to account for this.

With the following `bootstrap.toml`:

```
profile = "library"
change-id = 138934

[build]
build-stage = 2
target = ["riscv32imac-unknown-xous-elf"]

[rust]
std-features = ["panic-unwind"]
download-rustc = false
```

The build fails when trying unwinding v0.2.5:
```
$ ./x.py build
[...]
   Compiling unwinding v0.2.5
error: unsafe attribute used without unsafe
   --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unwinding-0.2.5/src/unwinder/arch/riscv32.rs:176:3
    |
176 | #[naked]
    |   ^^^^^ usage of unsafe attribute
    |
help: wrap the attribute in `unsafe(...)`
    |
176 | #[unsafe(naked)]
    |   +++++++     +

error: could not compile `unwinding` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Build completed unsuccessfully in 0:06:26
$
```

This patch updates `unwinding` to v0.2.6, which now wraps all issues of `naked` in `unsafe()`.
Diffstat (limited to 'tests/ui/pattern/usefulness/refutable-pattern-errors.rs')
0 files changed, 0 insertions, 0 deletions