forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#129801 - workingjubilee:rollup-has4479, r=wor…
…kingjubilee Rollup of 3 pull requests Successful merges: - rust-lang#129642 (Bump backtrace to 0.3.74~ish) - rust-lang#129733 (Subtree update of `rust-analyzer`) - rust-lang#129785 (Miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
372 changed files
with
10,401 additions
and
3,330 deletions.
There are no files selected for viewing
Submodule backtrace
updated
31 files
+167 −169 | .github/workflows/main.yml | |
+94 −31 | Cargo.lock | |
+6 −26 | Cargo.toml | |
+63 −0 | bindings.txt | |
+0 −55 | build.rs | |
+2 −2 | ci/android-ndk.sh | |
+1 −1 | ci/docker/arm-linux-androideabi/Dockerfile | |
+1 −1 | ci/docker/armv7-linux-androideabi/Dockerfile | |
+1 −1 | ci/docker/i686-linux-android/Dockerfile | |
+5 −6 | crates/as-if-std/Cargo.toml | |
+0 −8 | crates/as-if-std/build.rs | |
+1 −0 | crates/cpp_smoke_test/Cargo.toml | |
+8 −8 | src/backtrace/dbghelp32.rs | |
+11 −11 | src/backtrace/dbghelp64.rs | |
+0 −1 | src/backtrace/mod.rs | |
+110 −15 | src/capture.rs | |
+71 −129 | src/dbghelp.rs | |
+2 −1 | src/lib.rs | |
+2 −3 | src/print.rs | |
+10 −10 | src/symbolize/dbghelp.rs | |
+7 −8 | src/symbolize/gimli.rs | |
+36 −17 | src/symbolize/gimli/libs_dl_iterate_phdr.rs | |
+2 −2 | src/symbolize/gimli/libs_windows.rs | |
+7 −5 | src/symbolize/gimli/mmap_windows.rs | |
+2 −2 | src/symbolize/mod.rs | |
+0 −749 | src/windows.rs | |
+664 −0 | src/windows_sys.rs | |
+3 −3 | tests/concurrent-panics.rs | |
+10 −0 | tests/current-exe-mismatch.rs | |
+8 −5 | tests/skip_inner_frames.rs | |
+21 −19 | tests/smoke.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is automatically @generated by Cargo. | ||
# It is not intended for manual editing. | ||
version = 3 | ||
|
||
[[package]] | ||
name = "slice-chunked" | ||
version = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "slice-chunked" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! This is a small example using slice::chunks, which creates a very large Tree Borrows tree. | ||
//! Thanks to ##3837, the GC now compacts the tree, so this test can be run in a reasonable time again. | ||
//! The actual code is adapted from tiny_skia, see https://github.com/RazrFalcon/tiny-skia/blob/master/src/pixmap.rs#L121 | ||
//! To make this benchmark demonstrate the effectiveness, run with MIRIFLAGS="-Zmiri-tree-borrows -Zmiri-provenance-gc=100" | ||
|
||
const N: usize = 1000; | ||
|
||
fn input_vec() -> Vec<u8> { | ||
vec![0; N] | ||
} | ||
|
||
fn main() { | ||
let data_len = 2 * N; | ||
let mut rgba_data = Vec::with_capacity(data_len); | ||
let img_data = input_vec(); | ||
for slice in img_data.chunks(2) { | ||
let gray = slice[0]; | ||
let alpha = slice[1]; | ||
rgba_data.push(gray); | ||
rgba_data.push(gray); | ||
rgba_data.push(gray); | ||
rgba_data.push(alpha); | ||
} | ||
|
||
assert_eq!(rgba_data.len(), data_len); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fdf61d499c8a8421ecf98e7924bb87caf43a9938 | ||
0d634185dfddefe09047881175f35c65d68dcff1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.