about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-08-15 14:29:48 +0200
committerGitHub <noreply@github.com>2023-08-15 14:29:48 +0200
commit0e7f9e576f8980cd7e8bdb1a145b535992b17945 (patch)
tree7332e61979b2fbe2e73ca50b383ef0213f7c6d47
parentdd76268ac59aa1ee6267e8993e53648864d87694 (diff)
parent677afb4b4571cc32154f340c26908baa9e1a2540 (diff)
downloadrust-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.rs9
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(&[]);
+}