Skip to content

Commit 0e7f9e5

Browse files
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.
2 parents dd76268 + 677afb4 commit 0e7f9e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
3+
// This intends to use the unsizing coercion from array to slice, but it only
4+
// works if we resolve `<&[u8]>::from` as the reflexive `From<T> for T`. In
5+
// #113238, we found that gimli had added its own `From<EndianSlice> for &[u8]`
6+
// that affected all `std/backtrace` users.
7+
fn main() {
8+
let _ = <&[u8]>::from(&[]);
9+
}

0 commit comments

Comments
 (0)