diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-08-15 14:29:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 14:29:48 +0200 |
| commit | 0e7f9e576f8980cd7e8bdb1a145b535992b17945 (patch) | |
| tree | 7332e61979b2fbe2e73ca50b383ef0213f7c6d47 | |
| parent | dd76268ac59aa1ee6267e8993e53648864d87694 (diff) | |
| parent | 677afb4b4571cc32154f340c26908baa9e1a2540 (diff) | |
| download | rust-0e7f9e576f8980cd7e8bdb1a145b535992b17945.tar.gz rust-0e7f9e576f8980cd7e8bdb1a145b535992b17945.zip | |
Rollup merge of #114825 - cuviper:gimli-0.28, r=compiler-errors
Upgrade std to gimli 0.28.0 Gimli 0.28 removed its `From<EndianSlice> for &[u8]` that was the root cause of #113238. This dependency update mirrors rust-lang/backtrace-rs#557, but since that doesn't require any code changes in `backtrace`, we can also apply that right away for our nested `std/backtrace` feature.
| -rw-r--r-- | tests/ui/std/slice-from-array-issue-113238.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/std/slice-from-array-issue-113238.rs b/tests/ui/std/slice-from-array-issue-113238.rs new file mode 100644 index 00000000000..e9e1bfb8db3 --- /dev/null +++ b/tests/ui/std/slice-from-array-issue-113238.rs @@ -0,0 +1,9 @@ +// check-pass + +// This intends to use the unsizing coercion from array to slice, but it only +// works if we resolve `<&[u8]>::from` as the reflexive `From<T> for T`. In +// #113238, we found that gimli had added its own `From<EndianSlice> for &[u8]` +// that affected all `std/backtrace` users. +fn main() { + let _ = <&[u8]>::from(&[]); +} |
