html-to-markdown 2.24.1 → 2.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -6
- data/ext/html-to-markdown-rb/native/Cargo.lock +13 -13
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
- data/lib/html_to_markdown/version.rb +1 -1
- data/rust-vendor/bytemuck/.cargo-checksum.json +1 -1
- data/rust-vendor/bytemuck/.cargo_vcs_info.json +1 -1
- data/rust-vendor/bytemuck/.github/workflows/rust.yml +4 -4
- data/rust-vendor/bytemuck/Cargo.lock +16 -9
- data/rust-vendor/bytemuck/Cargo.toml +6 -2
- data/rust-vendor/bytemuck/Cargo.toml.orig +7 -6
- data/rust-vendor/bytemuck/changelog.md +5 -0
- data/rust-vendor/bytemuck/src/must.rs +1 -1
- data/rust-vendor/bytemuck/src/pod.rs +13 -0
- data/rust-vendor/bytemuck/src/zeroable.rs +13 -0
- data/rust-vendor/bytemuck/src/zeroable_in_option.rs +2 -2
- data/rust-vendor/bytemuck/tests/std_tests.rs +1 -1
- data/rust-vendor/cc/.cargo-checksum.json +1 -1
- data/rust-vendor/cc/.cargo_vcs_info.json +1 -1
- data/rust-vendor/cc/CHANGELOG.md +8 -0
- data/rust-vendor/cc/Cargo.lock +3 -3
- data/rust-vendor/cc/Cargo.toml +2 -2
- data/rust-vendor/cc/Cargo.toml.orig +2 -2
- data/rust-vendor/cc/src/lib.rs +1 -0
- data/rust-vendor/cc/src/target/generated.rs +10 -0
- data/rust-vendor/find-msvc-tools/.cargo-checksum.json +1 -1
- data/rust-vendor/find-msvc-tools/.cargo_vcs_info.json +1 -1
- data/rust-vendor/find-msvc-tools/CHANGELOG.md +6 -0
- data/rust-vendor/find-msvc-tools/Cargo.lock +1 -1
- data/rust-vendor/find-msvc-tools/Cargo.toml +1 -1
- data/rust-vendor/find-msvc-tools/Cargo.toml.orig +1 -1
- data/rust-vendor/find-msvc-tools/src/find_tools.rs +55 -20
- data/rust-vendor/html-to-markdown-rs/src/converter/handlers/link.rs +1 -9
- data/rust-vendor/html-to-markdown-rs/src/converter/inline/link.rs +2 -11
- data/rust-vendor/html-to-markdown-rs/src/converter/list/definition.rs +30 -7
- data/rust-vendor/html-to-markdown-rs/src/converter/semantic/definition_list.rs +30 -7
- data/rust-vendor/html-to-markdown-rs/tests/issue_199_regressions.rs +15 -0
- data/rust-vendor/html-to-markdown-rs/tests/issue_200_regressions.rs +36 -0
- data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy/.cargo_vcs_info.json +2 -1
- data/rust-vendor/zerocopy/Cargo.lock +3 -3
- data/rust-vendor/zerocopy/Cargo.toml +4 -4
- data/rust-vendor/zerocopy/Cargo.toml.orig +4 -4
- data/rust-vendor/zerocopy/src/doctests.rs +27 -0
- data/rust-vendor/zerocopy/src/error.rs +30 -0
- data/rust-vendor/zerocopy/src/layout.rs +239 -135
- data/rust-vendor/zerocopy/src/lib.rs +16 -0
- data/rust-vendor/zerocopy/src/macros.rs +255 -125
- data/rust-vendor/zerocopy/src/pointer/mod.rs +1 -1
- data/rust-vendor/zerocopy/src/pointer/ptr.rs +109 -23
- data/rust-vendor/zerocopy/src/util/macro_util.rs +344 -383
- data/rust-vendor/zerocopy/src/util/mod.rs +38 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.stderr +8 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.stderr +11 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.stderr +11 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr +0 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr +1 -1
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +0 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr +1 -11
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.stderr +9 -0
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr +16 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.stderr +16 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr +38 -38
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +33 -33
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.stderr +9 -0
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.stderr +16 -8
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.stderr +10 -0
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.stderr +16 -8
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +38 -38
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +33 -33
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +12 -12
- data/rust-vendor/zerocopy-derive/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy-derive/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.lock +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.toml +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.toml.orig +1 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.stderr +3 -3
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.stderr +5 -5
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.stderr +3 -3
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.stderr +5 -5
- data/rust-vendor/zmij/.cargo-checksum.json +1 -1
- data/rust-vendor/zmij/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zmij/Cargo.lock +16 -16
- data/rust-vendor/zmij/Cargo.toml +1 -1
- data/rust-vendor/zmij/Cargo.toml.orig +1 -1
- data/rust-vendor/zmij/README.md +1 -1
- data/rust-vendor/zmij/src/lib.rs +54 -93
- metadata +4 -50
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.stderr +0 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr +0 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.stderr +0 -9
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-to-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.24.
|
|
4
|
+
version: 2.24.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|
|
@@ -1363,6 +1363,8 @@ files:
|
|
|
1363
1363
|
- rust-vendor/html-to-markdown-rs/tests/issue_146_regressions.rs
|
|
1364
1364
|
- rust-vendor/html-to-markdown-rs/tests/issue_176_regressions.rs
|
|
1365
1365
|
- rust-vendor/html-to-markdown-rs/tests/issue_190_regressions.rs
|
|
1366
|
+
- rust-vendor/html-to-markdown-rs/tests/issue_199_regressions.rs
|
|
1367
|
+
- rust-vendor/html-to-markdown-rs/tests/issue_200_regressions.rs
|
|
1366
1368
|
- rust-vendor/html-to-markdown-rs/tests/json_ld_script_extraction.rs
|
|
1367
1369
|
- rust-vendor/html-to-markdown-rs/tests/lists_test.rs
|
|
1368
1370
|
- rust-vendor/html-to-markdown-rs/tests/preprocessing_tests.rs
|
|
@@ -6881,8 +6883,6 @@ files:
|
|
|
6881
6883
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr
|
|
6882
6884
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.rs
|
|
6883
6885
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.stderr
|
|
6884
|
-
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.rs
|
|
6885
|
-
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.stderr
|
|
6886
6886
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-illegal-lifetime.rs
|
|
6887
6887
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-illegal-lifetime.stderr
|
|
6888
6888
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.rs
|
|
@@ -6907,8 +6907,6 @@ files:
|
|
|
6907
6907
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr
|
|
6908
6908
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.rs
|
|
6909
6909
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.stderr
|
|
6910
|
-
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.rs
|
|
6911
|
-
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr
|
|
6912
6910
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-illegal-lifetime.rs
|
|
6913
6911
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-illegal-lifetime.stderr
|
|
6914
6912
|
- rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.rs
|
|
@@ -6937,28 +6935,16 @@ files:
|
|
|
6937
6935
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.stderr
|
|
6938
6936
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.rs
|
|
6939
6937
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.stderr
|
|
6940
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.rs
|
|
6941
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.stderr
|
|
6942
6938
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.rs
|
|
6943
6939
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr
|
|
6944
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.rs
|
|
6945
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.stderr
|
|
6946
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.rs
|
|
6947
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.stderr
|
|
6948
6940
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.rs
|
|
6949
6941
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.stderr
|
|
6950
6942
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.rs
|
|
6951
6943
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.stderr
|
|
6952
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.rs
|
|
6953
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.stderr
|
|
6954
6944
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.rs
|
|
6955
6945
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr
|
|
6956
6946
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs
|
|
6957
6947
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr
|
|
6958
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.rs
|
|
6959
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.stderr
|
|
6960
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.rs
|
|
6961
|
-
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.stderr
|
|
6962
6948
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs
|
|
6963
6949
|
- rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr
|
|
6964
6950
|
- rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.rs
|
|
@@ -6997,8 +6983,6 @@ files:
|
|
|
6997
6983
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.stderr
|
|
6998
6984
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.rs
|
|
6999
6985
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.stderr
|
|
7000
|
-
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.rs
|
|
7001
|
-
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.stderr
|
|
7002
6986
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-illegal-lifetime.rs
|
|
7003
6987
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-illegal-lifetime.stderr
|
|
7004
6988
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.rs
|
|
@@ -7023,8 +7007,6 @@ files:
|
|
|
7023
7007
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr
|
|
7024
7008
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.rs
|
|
7025
7009
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr
|
|
7026
|
-
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.rs
|
|
7027
|
-
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.stderr
|
|
7028
7010
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.rs
|
|
7029
7011
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.stderr
|
|
7030
7012
|
- rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.rs
|
|
@@ -7053,28 +7035,16 @@ files:
|
|
|
7053
7035
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.stderr
|
|
7054
7036
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.rs
|
|
7055
7037
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.stderr
|
|
7056
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.rs
|
|
7057
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.stderr
|
|
7058
7038
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.rs
|
|
7059
7039
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr
|
|
7060
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.rs
|
|
7061
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.stderr
|
|
7062
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.rs
|
|
7063
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.stderr
|
|
7064
7040
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.rs
|
|
7065
7041
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.stderr
|
|
7066
7042
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs
|
|
7067
7043
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr
|
|
7068
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.rs
|
|
7069
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.stderr
|
|
7070
7044
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.rs
|
|
7071
7045
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.stderr
|
|
7072
7046
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.rs
|
|
7073
7047
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr
|
|
7074
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.rs
|
|
7075
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.stderr
|
|
7076
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.rs
|
|
7077
|
-
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.stderr
|
|
7078
7048
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.rs
|
|
7079
7049
|
- rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr
|
|
7080
7050
|
- rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.rs
|
|
@@ -7113,8 +7083,6 @@ files:
|
|
|
7113
7083
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr
|
|
7114
7084
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.rs
|
|
7115
7085
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr
|
|
7116
|
-
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.rs
|
|
7117
|
-
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr
|
|
7118
7086
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-illegal-lifetime.rs
|
|
7119
7087
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-illegal-lifetime.stderr
|
|
7120
7088
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.rs
|
|
@@ -7139,8 +7107,6 @@ files:
|
|
|
7139
7107
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr
|
|
7140
7108
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.rs
|
|
7141
7109
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr
|
|
7142
|
-
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.rs
|
|
7143
|
-
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.stderr
|
|
7144
7110
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-illegal-lifetime.rs
|
|
7145
7111
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-illegal-lifetime.stderr
|
|
7146
7112
|
- rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.rs
|
|
@@ -7169,28 +7135,16 @@ files:
|
|
|
7169
7135
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.stderr
|
|
7170
7136
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.rs
|
|
7171
7137
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.stderr
|
|
7172
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.rs
|
|
7173
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.stderr
|
|
7174
7138
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs
|
|
7175
7139
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr
|
|
7176
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.rs
|
|
7177
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.stderr
|
|
7178
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.rs
|
|
7179
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.stderr
|
|
7180
7140
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.rs
|
|
7181
7141
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr
|
|
7182
7142
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.rs
|
|
7183
7143
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr
|
|
7184
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.rs
|
|
7185
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.stderr
|
|
7186
7144
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.rs
|
|
7187
7145
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.stderr
|
|
7188
7146
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs
|
|
7189
7147
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr
|
|
7190
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.rs
|
|
7191
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.stderr
|
|
7192
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.rs
|
|
7193
|
-
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.stderr
|
|
7194
7148
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs
|
|
7195
7149
|
- rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr
|
|
7196
7150
|
- rust-vendor/zerocopy/win-cargo.bat
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
use zerocopy::transmute_mut;
|
|
10
|
-
|
|
11
|
-
fn main() {}
|
|
12
|
-
|
|
13
|
-
// `transmute_mut!` does not support transmuting into an unsized destination
|
|
14
|
-
// type.
|
|
15
|
-
const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
2
|
-
--> tests/ui-msrv/transmute-mut-dst-unsized.rs:15:32
|
|
3
|
-
|
|
|
4
|
-
15 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
6
|
-
|
|
|
7
|
-
= help: the trait `Sized` is not implemented for `[u8]`
|
|
8
|
-
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
use zerocopy::transmute_ref;
|
|
10
|
-
|
|
11
|
-
fn main() {}
|
|
12
|
-
|
|
13
|
-
// `transmute_ref!` does not support transmuting into an unsized destination
|
|
14
|
-
// type.
|
|
15
|
-
const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
2
|
-
--> tests/ui-msrv/transmute-ref-dst-unsized.rs:15:28
|
|
3
|
-
|
|
|
4
|
-
15 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
6
|
-
|
|
|
7
|
-
= help: the trait `Sized` is not implemented for `[u8]`
|
|
8
|
-
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_mut!` does not support transmuting from a type of smaller
|
|
15
|
-
// alignment to one of larger alignment.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut [0u8; 2];
|
|
18
|
-
let _increase_size: Result<&mut AU16, _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-msrv/try_transmute_mut-alignment-increase.rs:18:48
|
|
3
|
-
|
|
|
4
|
-
18 | let _increase_size: Result<&mut AU16, _> = try_transmute_mut!(src);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AlignOf<[u8; 2]>` (8 bits)
|
|
8
|
-
= note: target type: `MaxAlignsOf<[u8; 2], AU16>` (16 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// Although this is not a soundness requirement, we currently require that the
|
|
15
|
-
// size of the destination type is not smaller than the size of the source type.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut AU16(0);
|
|
18
|
-
let _decrease_size: Result<&mut u8, _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-msrv/try_transmute_mut-size-decrease.rs:18:46
|
|
3
|
-
|
|
|
4
|
-
18 | let _decrease_size: Result<&mut u8, _> = try_transmute_mut!(src);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AU16` (16 bits)
|
|
8
|
-
= note: target type: `u8` (8 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_mut!` does not support transmuting from a smaller type to a
|
|
15
|
-
// larger one.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut 0u8;
|
|
18
|
-
let _increase_size: Result<&mut [u8; 2], _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
warning: unused import: `util::AU16`
|
|
2
|
-
--> tests/ui-msrv/try_transmute_mut-size-increase.rs:11:5
|
|
3
|
-
|
|
|
4
|
-
11 | use util::AU16;
|
|
5
|
-
| ^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: `#[warn(unused_imports)]` on by default
|
|
8
|
-
|
|
9
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
10
|
-
--> tests/ui-msrv/try_transmute_mut-size-increase.rs:18:51
|
|
11
|
-
|
|
|
12
|
-
18 | let _increase_size: Result<&mut [u8; 2], _> = try_transmute_mut!(src);
|
|
13
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
14
|
-
|
|
|
15
|
-
= note: source type: `u8` (8 bits)
|
|
16
|
-
= note: target type: `[u8; 2]` (16 bits)
|
|
17
|
-
= note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_ref;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_ref!` does not support transmuting from a type of smaller
|
|
15
|
-
// alignment to one of larger alignment.
|
|
16
|
-
fn main() {
|
|
17
|
-
let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-msrv/try_transmute_ref-alignment-increase.rs:17:44
|
|
3
|
-
|
|
|
4
|
-
17 | let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AlignOf<[u8; 2]>` (8 bits)
|
|
8
|
-
= note: target type: `MaxAlignsOf<[u8; 2], AU16>` (16 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_ref;
|
|
13
|
-
|
|
14
|
-
// Although this is not a soundness requirement, we currently require that the
|
|
15
|
-
// size of the destination type is not smaller than the size of the source type.
|
|
16
|
-
fn main() {
|
|
17
|
-
let _decrease_size: Result<&u8, _> = try_transmute_ref!(&AU16(0));
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-msrv/try_transmute_ref-size-decrease.rs:17:42
|
|
3
|
-
|
|
|
4
|
-
17 | let _decrease_size: Result<&u8, _> = try_transmute_ref!(&AU16(0));
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AU16` (16 bits)
|
|
8
|
-
= note: target type: `u8` (8 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_ref;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_ref!` does not support transmuting from a smaller type to a
|
|
15
|
-
// larger one.
|
|
16
|
-
fn main() {
|
|
17
|
-
let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-msrv/try_transmute_ref-size-increase.rs:17:44
|
|
3
|
-
|
|
|
4
|
-
17 | let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AlignOf<[u8; 2]>` (8 bits)
|
|
8
|
-
= note: target type: `MaxAlignsOf<[u8; 2], AU16>` (16 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
use zerocopy::transmute_mut;
|
|
10
|
-
|
|
11
|
-
fn main() {}
|
|
12
|
-
|
|
13
|
-
// `transmute_mut!` does not support transmuting into an unsized destination
|
|
14
|
-
// type.
|
|
15
|
-
const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
2
|
-
--> tests/ui-nightly/transmute-mut-dst-unsized.rs:15:32
|
|
3
|
-
|
|
|
4
|
-
15 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
6
|
-
|
|
|
7
|
-
= help: the trait `Sized` is not implemented for `[u8]`
|
|
8
|
-
note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut`
|
|
9
|
-
--> src/util/macro_util.rs
|
|
10
|
-
|
|
|
11
|
-
| impl<'a, Src, Dst> Wrap<&'a mut Src, &'a mut Dst> {
|
|
12
|
-
| ^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut`
|
|
13
|
-
...
|
|
14
|
-
| pub fn transmute_mut(self) -> &'a mut Dst
|
|
15
|
-
| ------------- required by a bound in this associated function
|
|
16
|
-
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
use zerocopy::transmute_ref;
|
|
10
|
-
|
|
11
|
-
fn main() {}
|
|
12
|
-
|
|
13
|
-
// `transmute_ref!` does not support transmuting into an unsized destination
|
|
14
|
-
// type.
|
|
15
|
-
const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-dst-unsized.rs:15:28
|
|
3
|
-
|
|
|
4
|
-
15 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
6
|
-
|
|
|
7
|
-
= help: the trait `Sized` is not implemented for `[u8]`
|
|
8
|
-
note: required by a bound in `zerocopy::util::macro_util::Wrap::<&'a Src, &'a Dst>::transmute_ref`
|
|
9
|
-
--> src/util/macro_util.rs
|
|
10
|
-
|
|
|
11
|
-
| impl<'a, Src, Dst> Wrap<&'a Src, &'a Dst> {
|
|
12
|
-
| ^^^ required by this bound in `Wrap::<&Src, &Dst>::transmute_ref`
|
|
13
|
-
...
|
|
14
|
-
| pub const unsafe fn transmute_ref(self) -> &'a Dst {
|
|
15
|
-
| ------------- required by a bound in this associated function
|
|
16
|
-
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_mut!` does not support transmuting from a type of smaller
|
|
15
|
-
// alignment to one of larger alignment.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut [0u8; 2];
|
|
18
|
-
let _increase_size: Result<&mut AU16, _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-nightly/try_transmute_mut-alignment-increase.rs:18:48
|
|
3
|
-
|
|
|
4
|
-
18 | let _increase_size: Result<&mut AU16, _> = try_transmute_mut!(src);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `zerocopy::util::macro_util::AlignOf<[u8; 2]>` (8 bits)
|
|
8
|
-
= note: target type: `zerocopy::util::macro_util::MaxAlignsOf<[u8; 2], AU16>` (16 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// Although this is not a soundness requirement, we currently require that the
|
|
15
|
-
// size of the destination type is not smaller than the size of the source type.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut AU16(0);
|
|
18
|
-
let _decrease_size: Result<&mut u8, _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-nightly/try_transmute_mut-size-decrease.rs:18:46
|
|
3
|
-
|
|
|
4
|
-
18 | let _decrease_size: Result<&mut u8, _> = try_transmute_mut!(src);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `AU16` (16 bits)
|
|
8
|
-
= note: target type: `u8` (8 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_mut;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_mut!` does not support transmuting from a smaller type to a
|
|
15
|
-
// larger one.
|
|
16
|
-
fn main() {
|
|
17
|
-
let src = &mut 0u8;
|
|
18
|
-
let _increase_size: Result<&mut [u8; 2], _> = try_transmute_mut!(src);
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
warning: unused import: `util::AU16`
|
|
2
|
-
--> tests/ui-nightly/try_transmute_mut-size-increase.rs:11:5
|
|
3
|
-
|
|
|
4
|
-
11 | use util::AU16;
|
|
5
|
-
| ^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
8
|
-
|
|
9
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
10
|
-
--> tests/ui-nightly/try_transmute_mut-size-increase.rs:18:51
|
|
11
|
-
|
|
|
12
|
-
18 | let _increase_size: Result<&mut [u8; 2], _> = try_transmute_mut!(src);
|
|
13
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
14
|
-
|
|
|
15
|
-
= note: source type: `u8` (8 bits)
|
|
16
|
-
= note: target type: `[u8; 2]` (16 bits)
|
|
17
|
-
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Fuchsia Authors
|
|
2
|
-
//
|
|
3
|
-
// Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
|
|
4
|
-
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
|
|
5
|
-
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
|
|
6
|
-
// This file may not be copied, modified, or distributed except according to
|
|
7
|
-
// those terms.
|
|
8
|
-
|
|
9
|
-
include!("../include.rs");
|
|
10
|
-
|
|
11
|
-
use util::AU16;
|
|
12
|
-
use zerocopy::try_transmute_ref;
|
|
13
|
-
|
|
14
|
-
// `try_transmute_ref!` does not support transmuting from a type of smaller
|
|
15
|
-
// alignment to one of larger alignment.
|
|
16
|
-
fn main() {
|
|
17
|
-
let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-nightly/try_transmute_ref-alignment-increase.rs:17:44
|
|
3
|
-
|
|
|
4
|
-
17 | let _increase_size: Result<&AU16, _> = try_transmute_ref!(&[0u8; 2]);
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
|
-
|
|
|
7
|
-
= note: source type: `zerocopy::util::macro_util::AlignOf<[u8; 2]>` (8 bits)
|
|
8
|
-
= note: target type: `zerocopy::util::macro_util::MaxAlignsOf<[u8; 2], AU16>` (16 bits)
|
|
9
|
-
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|