Skip to content

Commit

Permalink
Rollup merge of rust-lang#114825 - cuviper:gimli-0.28, r=compiler-errors
Browse files Browse the repository at this point in the history
Upgrade std to gimli 0.28.0

Gimli 0.28 removed its `From<EndianSlice> for &[u8]` that was the root cause of rust-lang#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.
  • Loading branch information
GuillaumeGomez authored Aug 15, 2023
2 parents dd76268 + 677afb4 commit 0e7f9e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ui/std/slice-from-array-issue-113238.rs
Original file line number Diff line number Diff line change
@@ -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(&[]);
}

0 comments on commit 0e7f9e5

Please sign in to comment.