html-to-markdown 2.23.4 → 2.24.1
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 +7 -7
- data/README.md +9 -7
- data/ext/html-to-markdown-rb/native/Cargo.lock +21 -21
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -3
- data/lib/html_to_markdown/cli_proxy.rb +5 -2
- data/lib/html_to_markdown/version.rb +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 +7 -0
- data/rust-vendor/cc/Cargo.lock +1 -1
- data/rust-vendor/cc/Cargo.toml +1 -1
- data/rust-vendor/cc/Cargo.toml.orig +1 -1
- data/rust-vendor/cc/src/target/generated.rs +1 -0
- data/rust-vendor/cc/src/target/parser.rs +4 -0
- data/rust-vendor/html-to-markdown-rs/README.md +1 -1
- data/rust-vendor/html-to-markdown-rs/src/convert_api.rs +90 -15
- data/rust-vendor/html-to-markdown-rs/src/converter/block/preformatted.rs +15 -4
- data/rust-vendor/html-to-markdown-rs/src/converter/handlers/graphic.rs +5 -3
- data/rust-vendor/html-to-markdown-rs/src/converter/media/svg.rs +5 -1
- data/rust-vendor/html-to-markdown-rs/src/converter/text/processing.rs +15 -8
- data/rust-vendor/html-to-markdown-rs/src/converter/utility/preprocessing.rs +43 -18
- data/rust-vendor/html-to-markdown-rs/src/lib.rs +6 -6
- data/rust-vendor/html-to-markdown-rs/src/validation.rs +68 -29
- data/rust-vendor/html-to-markdown-rs/tests/issue_190_regressions.rs +121 -0
- data/rust-vendor/html-to-markdown-rs/tests/skip_images_test.rs +21 -0
- data/rust-vendor/proc-macro2/.cargo-checksum.json +1 -1
- data/rust-vendor/proc-macro2/.cargo_vcs_info.json +1 -1
- data/rust-vendor/proc-macro2/Cargo.lock +14 -89
- data/rust-vendor/proc-macro2/Cargo.toml +1 -1
- data/rust-vendor/proc-macro2/Cargo.toml.orig +1 -1
- data/rust-vendor/proc-macro2/src/fallback.rs +37 -23
- data/rust-vendor/proc-macro2/src/lib.rs +1 -1
- data/rust-vendor/quote/.cargo-checksum.json +1 -1
- data/rust-vendor/quote/.cargo_vcs_info.json +1 -1
- data/rust-vendor/quote/.github/workflows/ci.yml +1 -1
- data/rust-vendor/quote/Cargo.lock +17 -17
- data/rust-vendor/quote/Cargo.toml +1 -1
- data/rust-vendor/quote/Cargo.toml.orig +1 -1
- data/rust-vendor/quote/src/format.rs +2 -2
- data/rust-vendor/quote/src/lib.rs +1 -1
- data/rust-vendor/quote/src/runtime.rs +2 -2
- data/rust-vendor/quote/tests/test.rs +6 -0
- data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter-separated.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter.stderr +2 -2
- data/rust-vendor/quote/tests/ui/not-repeatable.stderr +8 -8
- data/rust-vendor/siphasher/.cargo-checksum.json +1 -1
- data/rust-vendor/siphasher/.cargo_vcs_info.json +1 -1
- data/rust-vendor/siphasher/.github/workflows/issues.yml +17 -0
- data/rust-vendor/siphasher/COPYING +1 -1
- data/rust-vendor/siphasher/Cargo.lock +89 -0
- data/rust-vendor/siphasher/Cargo.toml +23 -13
- data/rust-vendor/siphasher/Cargo.toml.orig +1 -1
- data/rust-vendor/siphasher/src/common.rs +65 -0
- data/rust-vendor/siphasher/src/lib.rs +1 -1
- data/rust-vendor/siphasher/src/sip.rs +2 -68
- data/rust-vendor/siphasher/src/sip128.rs +15 -74
- data/rust-vendor/siphasher/src/tests.rs +1 -1
- data/rust-vendor/siphasher/src/tests128.rs +1 -1
- data/rust-vendor/uuid/.cargo-checksum.json +1 -1
- data/rust-vendor/uuid/.cargo_vcs_info.json +1 -1
- data/rust-vendor/uuid/Cargo.lock +125 -96
- data/rust-vendor/uuid/Cargo.toml +4 -11
- data/rust-vendor/uuid/Cargo.toml.orig +5 -14
- data/rust-vendor/uuid/README.md +3 -3
- data/rust-vendor/uuid/src/builder.rs +2 -1
- data/rust-vendor/uuid/src/external/serde_support.rs +209 -142
- data/rust-vendor/uuid/src/lib.rs +9 -11
- data/rust-vendor/uuid/src/macros.rs +9 -54
- data/rust-vendor/uuid/src/non_nil.rs +49 -2
- data/rust-vendor/web_atoms/.cargo-checksum.json +1 -1
- data/rust-vendor/web_atoms/.cargo_vcs_info.json +1 -1
- data/rust-vendor/web_atoms/Cargo.lock +1 -1
- data/rust-vendor/web_atoms/Cargo.toml +1 -1
- data/rust-vendor/web_atoms/Cargo.toml.orig +1 -1
- data/rust-vendor/web_atoms/local_names.txt +3 -0
- data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy/Cargo.lock +5 -9
- data/rust-vendor/zerocopy/Cargo.toml +10 -18
- data/rust-vendor/zerocopy/Cargo.toml.orig +6 -14
- data/rust-vendor/zerocopy/Cargo.toml.std +58 -0
- data/rust-vendor/zerocopy/agent_docs/ui_tests.md +5 -5
- data/rust-vendor/zerocopy/cargo.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_fmt.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_readme.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_stale_stderr.sh +44 -0
- data/rust-vendor/zerocopy/githooks/pre-push +2 -0
- data/rust-vendor/zerocopy/src/byte_slice.rs +1 -1
- data/rust-vendor/zerocopy/src/byteorder.rs +0 -1
- data/rust-vendor/zerocopy/src/impls.rs +334 -118
- data/rust-vendor/zerocopy/src/layout.rs +9 -0
- data/rust-vendor/zerocopy/src/lib.rs +163 -74
- data/rust-vendor/zerocopy/src/macros.rs +4 -8
- data/rust-vendor/zerocopy/src/pointer/inner.rs +4 -4
- data/rust-vendor/zerocopy/src/pointer/invariant.rs +22 -5
- data/rust-vendor/zerocopy/src/pointer/mod.rs +155 -18
- data/rust-vendor/zerocopy/src/pointer/ptr.rs +133 -182
- data/rust-vendor/zerocopy/src/pointer/transmute.rs +99 -106
- data/rust-vendor/zerocopy/src/ref.rs +4 -4
- data/rust-vendor/zerocopy/src/util/macro_util.rs +73 -127
- data/rust-vendor/zerocopy/src/util/macros.rs +61 -150
- data/rust-vendor/zerocopy/src/wrappers.rs +249 -3
- data/rust-vendor/zerocopy/tests/include.rs +67 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.stderr +10 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.stderr +35 -35
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.stderr +10 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.stderr +13 -13
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.stderr +35 -51
- data/rust-vendor/zerocopy/tests/ui-nightly/ptr-is-invariant-over-v.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.stderr +7 -7
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr +14 -14
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +9 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.stderr +18 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.stderr +28 -28
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.stderr +43 -43
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr +51 -51
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.stderr +29 -29
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr +22 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +56 -56
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.stderr +13 -13
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.stderr +37 -37
- data/rust-vendor/zerocopy/tests/ui-stable/ptr-is-invariant-over-v.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr +11 -11
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.stderr +11 -11
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.stderr +9 -5
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr +14 -14
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.stderr +9 -9
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.stderr +18 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.stderr +28 -28
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr +42 -42
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.stderr +7 -7
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +49 -49
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr +26 -26
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr +19 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +54 -54
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +19 -19
- 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 +3 -11
- data/rust-vendor/zerocopy-derive/Cargo.toml +13 -11
- data/rust-vendor/zerocopy-derive/Cargo.toml.orig +7 -10
- data/rust-vendor/zerocopy-derive/src/derive/from_bytes.rs +188 -0
- data/rust-vendor/zerocopy-derive/src/derive/into_bytes.rs +158 -0
- data/rust-vendor/zerocopy-derive/src/derive/known_layout.rs +348 -0
- data/rust-vendor/zerocopy-derive/src/derive/mod.rs +130 -0
- data/rust-vendor/zerocopy-derive/src/derive/try_from_bytes.rs +729 -0
- data/rust-vendor/zerocopy-derive/src/derive/unaligned.rs +78 -0
- data/rust-vendor/zerocopy-derive/src/lib.rs +31 -1893
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/eq.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_enum.expected.rs +64 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_struct.expected.rs +64 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_union.expected.rs +144 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_zeros.expected.rs +39 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/hash.expected.rs +24 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/immutable.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_basic.expected.rs +25 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_empty.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing.expected.rs +25 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing_generic.expected.rs +21 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_repr_c_struct.expected.rs +135 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_struct.expected.rs +34 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_c.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_transparent.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_1.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_2.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_3.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_trivial_is_bit_valid_enum.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/unaligned.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/mod.rs +960 -0
- data/rust-vendor/zerocopy-derive/src/util.rs +757 -0
- data/rust-vendor/zerocopy-derive/tests/deprecated.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/enum_from_zeros.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/enum_known_layout.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/enum_no_cell.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/enum_to_bytes.rs +14 -0
- data/rust-vendor/zerocopy-derive/tests/enum_try_from_bytes.rs +37 -15
- data/rust-vendor/zerocopy-derive/tests/enum_unaligned.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/eq.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/hash.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/hygiene.rs +3 -1
- data/rust-vendor/zerocopy-derive/tests/include.rs +26 -4
- data/rust-vendor/zerocopy-derive/tests/issue_2117.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/issue_2835.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/issue_2880.rs +292 -0
- data/rust-vendor/zerocopy-derive/tests/issue_2915.rs +78 -0
- data/rust-vendor/zerocopy-derive/tests/paths_and_modules.rs +3 -0
- data/rust-vendor/zerocopy-derive/tests/priv_in_pub.rs +2 -0
- data/rust-vendor/zerocopy-derive/tests/struct_from_bytes.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/struct_from_zeros.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/struct_known_layout.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/struct_no_cell.rs +8 -0
- data/rust-vendor/zerocopy-derive/tests/struct_to_bytes.rs +17 -0
- data/rust-vendor/zerocopy-derive/tests/struct_try_from_bytes.rs +29 -65
- data/rust-vendor/zerocopy-derive/tests/struct_unaligned.rs +7 -0
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.stderr +32 -32
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.stderr +129 -126
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.stderr +37 -37
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.stderr +26 -26
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.stderr +7 -7
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.stderr +78 -78
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.stderr +79 -79
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.stderr +2 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.stderr +57 -57
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.stderr +200 -192
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.stderr +105 -105
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.stderr +15 -15
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.stderr +130 -129
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.stderr +42 -42
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.stderr +57 -57
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.stderr +201 -186
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr +105 -105
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.stderr +15 -15
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.stderr +158 -129
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.stderr +48 -44
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/union_from_bytes.rs +15 -0
- data/rust-vendor/zerocopy-derive/tests/union_from_zeros.rs +14 -0
- data/rust-vendor/zerocopy-derive/tests/union_known_layout.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_no_cell.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_to_bytes.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_try_from_bytes.rs +34 -74
- data/rust-vendor/zerocopy-derive/tests/union_unaligned.rs +4 -1
- data/rust-vendor/zerocopy-derive/tests/unsafe_cell.rs +3 -0
- 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 +10 -10
- 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 +132 -158
- data/rust-vendor/zune-jpeg/.cargo-checksum.json +1 -1
- data/rust-vendor/zune-jpeg/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zune-jpeg/Cargo.lock +1 -1
- data/rust-vendor/zune-jpeg/Cargo.toml +1 -1
- data/rust-vendor/zune-jpeg/Cargo.toml.orig +1 -1
- data/rust-vendor/zune-jpeg/src/bitstream.rs +1 -1
- data/rust-vendor/zune-jpeg/src/components.rs +2 -1
- data/rust-vendor/zune-jpeg/src/decoder.rs +3 -23
- data/rust-vendor/zune-jpeg/src/headers.rs +19 -1
- data/rust-vendor/zune-jpeg/src/lib.rs +1 -0
- data/rust-vendor/zune-jpeg/src/mcu.rs +6 -6
- data/rust-vendor/zune-jpeg/src/mcu_prog.rs +22 -34
- data/rust-vendor/zune-jpeg/src/upsampler/avx2.rs +3 -1
- data/rust-vendor/zune-jpeg/src/upsampler/neon.rs +13 -23
- data/rust-vendor/zune-jpeg/src/upsampler/portable_simd.rs +4 -1
- data/rust-vendor/zune-jpeg/src/upsampler/scalar.rs +4 -1
- metadata +41 -8
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-unsized.stderr +0 -183
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-unsized.stderr +0 -183
- data/rust-vendor/zerocopy-derive/src/enum.rs +0 -456
- data/rust-vendor/zerocopy-derive/src/ext.rs +0 -123
- data/rust-vendor/zerocopy-derive/src/output_tests.rs +0 -5608
- data/rust-vendor/zerocopy-derive/tests/crate_path.rs +0 -189
|
@@ -1,301 +1,309 @@
|
|
|
1
1
|
error: unrecognized representation hint
|
|
2
|
-
--> tests/ui-nightly/enum.rs:
|
|
2
|
+
--> tests/ui-nightly/enum.rs:20:8
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
20 | #[repr("foo")]
|
|
5
5
|
| ^^^^^
|
|
6
6
|
|
|
7
7
|
error: unrecognized representation hint
|
|
8
|
-
--> tests/ui-nightly/enum.rs:
|
|
8
|
+
--> tests/ui-nightly/enum.rs:27:8
|
|
9
9
|
|
|
|
10
|
-
|
|
10
|
+
27 | #[repr(foo)]
|
|
11
11
|
| ^^^
|
|
12
12
|
|
|
13
13
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
14
|
-
--> tests/ui-nightly/enum.rs:
|
|
14
|
+
--> tests/ui-nightly/enum.rs:32:10
|
|
15
15
|
|
|
|
16
|
-
|
|
16
|
+
32 | #[derive(FromBytes)]
|
|
17
17
|
| ^^^^^^^^^
|
|
18
18
|
|
|
|
19
19
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
20
20
|
|
|
21
21
|
error: this conflicts with another representation hint
|
|
22
|
-
--> tests/ui-nightly/enum.rs:
|
|
22
|
+
--> tests/ui-nightly/enum.rs:41:8
|
|
23
23
|
|
|
|
24
|
-
|
|
24
|
+
41 | #[repr(u8, u16)]
|
|
25
25
|
| ^^^^^^^
|
|
26
26
|
|
|
27
27
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
28
|
-
--> tests/ui-nightly/enum.rs:
|
|
28
|
+
--> tests/ui-nightly/enum.rs:46:10
|
|
29
29
|
|
|
|
30
|
-
|
|
30
|
+
46 | #[derive(FromBytes)]
|
|
31
31
|
| ^^^^^^^^^
|
|
32
32
|
|
|
|
33
33
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
34
34
|
|
|
35
35
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
36
|
-
--> tests/ui-nightly/enum.rs:
|
|
36
|
+
--> tests/ui-nightly/enum.rs:78:1
|
|
37
37
|
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
78 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
39
|
+
79 | | enum TryFromBytes1 {
|
|
40
|
+
80 | | A,
|
|
41
|
+
81 | | }
|
|
41
42
|
| |_^
|
|
42
43
|
|
|
43
44
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
44
|
-
--> tests/ui-nightly/enum.rs:
|
|
45
|
+
--> tests/ui-nightly/enum.rs:84:1
|
|
45
46
|
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
84 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
48
|
+
85 | | enum TryFromBytes2 {
|
|
49
|
+
86 | | A,
|
|
50
|
+
87 | | B(u8),
|
|
51
|
+
88 | | }
|
|
50
52
|
| |_^
|
|
51
53
|
|
|
52
54
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
--> tests/ui-nightly/enum.rs:104:1
|
|
56
|
+
|
|
|
57
|
+
104 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
58
|
+
105 | | enum FromZeros1 {
|
|
59
|
+
106 | | A(u8),
|
|
60
|
+
107 | | }
|
|
61
|
+
| |_^
|
|
59
62
|
|
|
60
63
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
--> tests/ui-nightly/enum.rs:110:1
|
|
65
|
+
|
|
|
66
|
+
110 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
67
|
+
111 | | enum FromZeros2 {
|
|
68
|
+
112 | | A,
|
|
69
|
+
113 | | B(u8),
|
|
70
|
+
114 | | }
|
|
67
71
|
| |_^
|
|
68
72
|
|
|
69
73
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
70
|
-
--> tests/ui-nightly/enum.rs:
|
|
74
|
+
--> tests/ui-nightly/enum.rs:117:1
|
|
71
75
|
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
117 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
77
|
+
118 | | enum FromZeros3 {
|
|
78
|
+
119 | | A = 1,
|
|
79
|
+
120 | | B,
|
|
80
|
+
121 | | }
|
|
76
81
|
| |_^
|
|
77
82
|
|
|
78
83
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
79
|
-
--> tests/ui-nightly/enum.rs:
|
|
80
|
-
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
--> tests/ui-nightly/enum.rs:124:1
|
|
85
|
+
|
|
|
86
|
+
124 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
87
|
+
125 | | #[repr(u8)]
|
|
88
|
+
126 | | enum FromZeros4 {
|
|
89
|
+
127 | | A = 1,
|
|
90
|
+
128 | | B = 2,
|
|
91
|
+
129 | | }
|
|
86
92
|
| |_^
|
|
87
93
|
|
|
88
94
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
89
95
|
help: This enum has discriminants which are not literal integers. One of those may define or imply which variant has a discriminant of zero. Use a literal integer to define or imply the variant with a discriminant of zero.
|
|
90
|
-
--> tests/ui-nightly/enum.rs:
|
|
96
|
+
--> tests/ui-nightly/enum.rs:134:1
|
|
91
97
|
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
134 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
99
|
+
135 | | #[repr(i8)]
|
|
100
|
+
136 | | enum FromZeros5 {
|
|
101
|
+
137 | | A = NEGATIVE_ONE,
|
|
102
|
+
138 | | B,
|
|
103
|
+
139 | | }
|
|
97
104
|
| |_^
|
|
98
105
|
|
|
99
106
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
100
|
-
--> tests/ui-nightly/enum.rs:
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
--> tests/ui-nightly/enum.rs:151:1
|
|
108
|
+
|
|
|
109
|
+
151 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
110
|
+
152 | | #[repr(u8)]
|
|
111
|
+
153 | | enum FromZeros7 {
|
|
112
|
+
154 | | A = 1,
|
|
113
|
+
155 | | B(NotFromZeros),
|
|
114
|
+
156 | | }
|
|
107
115
|
| |_^
|
|
108
116
|
|
|
109
117
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
110
|
-
--> tests/ui-nightly/enum.rs:
|
|
118
|
+
--> tests/ui-nightly/enum.rs:162:10
|
|
111
119
|
|
|
|
112
|
-
|
|
120
|
+
162 | #[derive(FromBytes)]
|
|
113
121
|
| ^^^^^^^^^
|
|
114
122
|
|
|
|
115
123
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
116
124
|
|
|
117
125
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
118
|
-
--> tests/ui-nightly/enum.rs:
|
|
126
|
+
--> tests/ui-nightly/enum.rs:170:8
|
|
119
127
|
|
|
|
120
|
-
|
|
128
|
+
170 | #[repr(C)]
|
|
121
129
|
| ^
|
|
122
130
|
|
|
123
131
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
124
|
-
--> tests/ui-nightly/enum.rs:
|
|
132
|
+
--> tests/ui-nightly/enum.rs:177:8
|
|
125
133
|
|
|
|
126
|
-
|
|
134
|
+
177 | #[repr(usize)]
|
|
127
135
|
| ^^^^^
|
|
128
136
|
|
|
129
137
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
130
|
-
--> tests/ui-nightly/enum.rs:
|
|
138
|
+
--> tests/ui-nightly/enum.rs:184:8
|
|
131
139
|
|
|
|
132
|
-
|
|
140
|
+
184 | #[repr(isize)]
|
|
133
141
|
| ^^^^^
|
|
134
142
|
|
|
135
143
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
136
|
-
--> tests/ui-nightly/enum.rs:
|
|
144
|
+
--> tests/ui-nightly/enum.rs:191:8
|
|
137
145
|
|
|
|
138
|
-
|
|
146
|
+
191 | #[repr(u32)]
|
|
139
147
|
| ^^^
|
|
140
148
|
|
|
141
149
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
142
|
-
--> tests/ui-nightly/enum.rs:
|
|
150
|
+
--> tests/ui-nightly/enum.rs:198:8
|
|
143
151
|
|
|
|
144
|
-
|
|
152
|
+
198 | #[repr(i32)]
|
|
145
153
|
| ^^^
|
|
146
154
|
|
|
147
155
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
148
|
-
--> tests/ui-nightly/enum.rs:
|
|
156
|
+
--> tests/ui-nightly/enum.rs:205:8
|
|
149
157
|
|
|
|
150
|
-
|
|
158
|
+
205 | #[repr(u64)]
|
|
151
159
|
| ^^^
|
|
152
160
|
|
|
153
161
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
154
|
-
--> tests/ui-nightly/enum.rs:
|
|
162
|
+
--> tests/ui-nightly/enum.rs:212:8
|
|
155
163
|
|
|
|
156
|
-
|
|
164
|
+
212 | #[repr(i64)]
|
|
157
165
|
| ^^^
|
|
158
166
|
|
|
159
167
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
160
|
-
--> tests/ui-nightly/enum.rs:
|
|
168
|
+
--> tests/ui-nightly/enum.rs:483:10
|
|
161
169
|
|
|
|
162
|
-
|
|
170
|
+
483 | #[derive(Unaligned)]
|
|
163
171
|
| ^^^^^^^^^
|
|
164
172
|
|
|
|
165
173
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
166
174
|
|
|
167
175
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
168
|
-
--> tests/ui-nightly/enum.rs:
|
|
176
|
+
--> tests/ui-nightly/enum.rs:490:10
|
|
169
177
|
|
|
|
170
|
-
|
|
178
|
+
490 | #[derive(Unaligned)]
|
|
171
179
|
| ^^^^^^^^^
|
|
172
180
|
|
|
|
173
181
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
174
182
|
|
|
175
183
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
176
|
-
--> tests/ui-nightly/enum.rs:
|
|
184
|
+
--> tests/ui-nightly/enum.rs:497:10
|
|
177
185
|
|
|
|
178
|
-
|
|
186
|
+
497 | #[derive(Unaligned)]
|
|
179
187
|
| ^^^^^^^^^
|
|
180
188
|
|
|
|
181
189
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
182
190
|
|
|
183
191
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
184
|
-
--> tests/ui-nightly/enum.rs:
|
|
192
|
+
--> tests/ui-nightly/enum.rs:504:10
|
|
185
193
|
|
|
|
186
|
-
|
|
194
|
+
504 | #[derive(Unaligned)]
|
|
187
195
|
| ^^^^^^^^^
|
|
188
196
|
|
|
|
189
197
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
190
198
|
|
|
191
199
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
192
|
-
--> tests/ui-nightly/enum.rs:
|
|
200
|
+
--> tests/ui-nightly/enum.rs:511:10
|
|
193
201
|
|
|
|
194
|
-
|
|
202
|
+
511 | #[derive(Unaligned)]
|
|
195
203
|
| ^^^^^^^^^
|
|
196
204
|
|
|
|
197
205
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
198
206
|
|
|
199
207
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
200
|
-
--> tests/ui-nightly/enum.rs:
|
|
208
|
+
--> tests/ui-nightly/enum.rs:518:10
|
|
201
209
|
|
|
|
202
|
-
|
|
210
|
+
518 | #[derive(Unaligned)]
|
|
203
211
|
| ^^^^^^^^^
|
|
204
212
|
|
|
|
205
213
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
206
214
|
|
|
207
215
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
208
|
-
--> tests/ui-nightly/enum.rs:
|
|
216
|
+
--> tests/ui-nightly/enum.rs:525:10
|
|
209
217
|
|
|
|
210
|
-
|
|
218
|
+
525 | #[derive(Unaligned)]
|
|
211
219
|
| ^^^^^^^^^
|
|
212
220
|
|
|
|
213
221
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
214
222
|
|
|
215
223
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
216
|
-
--> tests/ui-nightly/enum.rs:
|
|
224
|
+
--> tests/ui-nightly/enum.rs:532:10
|
|
217
225
|
|
|
|
218
|
-
|
|
226
|
+
532 | #[derive(Unaligned)]
|
|
219
227
|
| ^^^^^^^^^
|
|
220
228
|
|
|
|
221
229
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
222
230
|
|
|
223
231
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
224
|
-
--> tests/ui-nightly/enum.rs:
|
|
232
|
+
--> tests/ui-nightly/enum.rs:539:10
|
|
225
233
|
|
|
|
226
|
-
|
|
234
|
+
539 | #[derive(Unaligned)]
|
|
227
235
|
| ^^^^^^^^^
|
|
228
236
|
|
|
|
229
237
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
230
238
|
|
|
231
239
|
error: cannot derive `Unaligned` on type with alignment greater than 1
|
|
232
|
-
--> tests/ui-nightly/enum.rs:
|
|
240
|
+
--> tests/ui-nightly/enum.rs:548:12
|
|
233
241
|
|
|
|
234
|
-
|
|
242
|
+
548 | #[repr(u8, align(2))]
|
|
235
243
|
| ^^^^^^^^
|
|
236
244
|
|
|
237
245
|
error: cannot derive `Unaligned` on type with alignment greater than 1
|
|
238
|
-
--> tests/ui-nightly/enum.rs:
|
|
246
|
+
--> tests/ui-nightly/enum.rs:555:12
|
|
239
247
|
|
|
|
240
|
-
|
|
248
|
+
555 | #[repr(i8, align(2))]
|
|
241
249
|
| ^^^^^^^^
|
|
242
250
|
|
|
243
251
|
error: this conflicts with another representation hint
|
|
244
|
-
--> tests/ui-nightly/enum.rs:
|
|
252
|
+
--> tests/ui-nightly/enum.rs:562:8
|
|
245
253
|
|
|
|
246
|
-
|
|
254
|
+
562 | #[repr(align(1), align(2))]
|
|
247
255
|
| ^^^^^^^^^^^^^^^^^^
|
|
248
256
|
|
|
249
257
|
error: this conflicts with another representation hint
|
|
250
|
-
--> tests/ui-nightly/enum.rs:
|
|
258
|
+
--> tests/ui-nightly/enum.rs:569:8
|
|
251
259
|
|
|
|
252
|
-
|
|
260
|
+
569 | #[repr(align(2), align(4))]
|
|
253
261
|
| ^^^^^^^^^^^^^^^^^^
|
|
254
262
|
|
|
255
263
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
256
|
-
--> tests/ui-nightly/enum.rs:
|
|
264
|
+
--> tests/ui-nightly/enum.rs:606:10
|
|
257
265
|
|
|
|
258
|
-
|
|
266
|
+
606 | #[derive(IntoBytes)]
|
|
259
267
|
| ^^^^^^^^^
|
|
260
268
|
|
|
|
261
269
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
262
270
|
|
|
263
271
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
264
|
-
--> tests/ui-nightly/enum.rs:
|
|
272
|
+
--> tests/ui-nightly/enum.rs:613:10
|
|
265
273
|
|
|
|
266
|
-
|
|
274
|
+
613 | #[derive(IntoBytes)]
|
|
267
275
|
| ^^^^^^^^^
|
|
268
276
|
|
|
|
269
277
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
270
278
|
|
|
271
279
|
error: generic parameters may not be used in const operations
|
|
272
|
-
--> tests/ui-nightly/enum.rs:
|
|
280
|
+
--> tests/ui-nightly/enum.rs:623:7
|
|
273
281
|
|
|
|
274
|
-
|
|
282
|
+
623 | A(T),
|
|
275
283
|
| ^ cannot perform const operation using `T`
|
|
276
284
|
|
|
|
277
285
|
= note: type parameters may not be used in const expressions
|
|
278
286
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
|
279
287
|
|
|
280
288
|
error[E0565]: meta item in `repr` must be an identifier
|
|
281
|
-
--> tests/ui-nightly/enum.rs:
|
|
289
|
+
--> tests/ui-nightly/enum.rs:20:1
|
|
282
290
|
|
|
|
283
|
-
|
|
291
|
+
20 | #[repr("foo")]
|
|
284
292
|
| ^^^^^^^^^^^^^^
|
|
285
293
|
|
|
286
294
|
error[E0552]: unrecognized representation hint
|
|
287
|
-
--> tests/ui-nightly/enum.rs:
|
|
295
|
+
--> tests/ui-nightly/enum.rs:27:8
|
|
288
296
|
|
|
|
289
|
-
|
|
297
|
+
27 | #[repr(foo)]
|
|
290
298
|
| ^^^
|
|
291
299
|
|
|
|
292
300
|
= help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
|
|
293
301
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations>
|
|
294
302
|
|
|
295
303
|
error[E0566]: conflicting representation hints
|
|
296
|
-
--> tests/ui-nightly/enum.rs:
|
|
304
|
+
--> tests/ui-nightly/enum.rs:41:8
|
|
297
305
|
|
|
|
298
|
-
|
|
306
|
+
41 | #[repr(u8, u16)]
|
|
299
307
|
| ^^ ^^^
|
|
300
308
|
|
|
|
301
309
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
@@ -303,9 +311,9 @@ error[E0566]: conflicting representation hints
|
|
|
303
311
|
= note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default
|
|
304
312
|
|
|
305
313
|
error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
|
|
306
|
-
--> tests/ui-nightly/enum.rs:
|
|
314
|
+
--> tests/ui-nightly/enum.rs:56:10
|
|
307
315
|
|
|
|
308
|
-
|
|
316
|
+
56 | #[derive(Immutable)]
|
|
309
317
|
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
|
|
310
318
|
|
|
|
311
319
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
|
|
@@ -313,11 +321,11 @@ error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
|
|
|
313
321
|
&T
|
|
314
322
|
&mut T
|
|
315
323
|
()
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
324
|
+
(A, B)
|
|
325
|
+
(A, B, C)
|
|
326
|
+
(A, B, C, D)
|
|
327
|
+
(A, B, C, D, E)
|
|
328
|
+
(A, B, C, D, E, F)
|
|
321
329
|
and $N others
|
|
322
330
|
= help: see issue #48214
|
|
323
331
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -327,9 +335,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
327
335
|
|
|
|
328
336
|
|
|
329
337
|
error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
|
|
330
|
-
--> tests/ui-nightly/enum.rs:
|
|
338
|
+
--> tests/ui-nightly/enum.rs:66:10
|
|
331
339
|
|
|
|
332
|
-
|
|
340
|
+
66 | #[derive(Immutable)]
|
|
333
341
|
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
|
|
334
342
|
|
|
|
335
343
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
|
|
@@ -337,11 +345,11 @@ error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
|
|
|
337
345
|
&T
|
|
338
346
|
&mut T
|
|
339
347
|
()
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
348
|
+
(A, B)
|
|
349
|
+
(A, B, C)
|
|
350
|
+
(A, B, C, D)
|
|
351
|
+
(A, B, C, D, E)
|
|
352
|
+
(A, B, C, D, E, F)
|
|
345
353
|
and $N others
|
|
346
354
|
= help: see issue #48214
|
|
347
355
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -351,26 +359,26 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
351
359
|
|
|
|
352
360
|
|
|
353
361
|
error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
|
|
354
|
-
--> tests/ui-nightly/enum.rs:
|
|
362
|
+
--> tests/ui-nightly/enum.rs:92:10
|
|
355
363
|
|
|
|
356
|
-
|
|
364
|
+
92 | #[derive(TryFromBytes)]
|
|
357
365
|
| ^^^^^^^^^^^^ unsatisfied trait bound
|
|
358
366
|
|
|
|
359
367
|
help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
|
|
360
|
-
--> tests/ui-nightly/enum.rs:
|
|
368
|
+
--> tests/ui-nightly/enum.rs:90:1
|
|
361
369
|
|
|
|
362
|
-
|
|
370
|
+
90 | struct NotTryFromBytes;
|
|
363
371
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
364
372
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes`
|
|
365
373
|
= help: the following other types implement trait `TryFromBytes`:
|
|
366
374
|
()
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
(A, B)
|
|
376
|
+
(A, B, C)
|
|
377
|
+
(A, B, C, D)
|
|
378
|
+
(A, B, C, D, E)
|
|
379
|
+
(A, B, C, D, E, F)
|
|
380
|
+
(A, B, C, D, E, F, G)
|
|
381
|
+
(A, B, C, D, E, F, G, H)
|
|
374
382
|
and $N others
|
|
375
383
|
= help: see issue #48214
|
|
376
384
|
= note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -380,26 +388,26 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
380
388
|
|
|
|
381
389
|
|
|
382
390
|
error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
|
|
383
|
-
--> tests/ui-nightly/enum.rs:
|
|
391
|
+
--> tests/ui-nightly/enum.rs:143:10
|
|
384
392
|
|
|
|
385
|
-
|
|
393
|
+
143 | #[derive(FromZeros)]
|
|
386
394
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
387
395
|
|
|
|
388
396
|
help: the trait `TryFromBytes` is not implemented for `NotFromZeros`
|
|
389
|
-
--> tests/ui-nightly/enum.rs:
|
|
397
|
+
--> tests/ui-nightly/enum.rs:141:1
|
|
390
398
|
|
|
|
391
|
-
|
|
399
|
+
141 | struct NotFromZeros;
|
|
392
400
|
| ^^^^^^^^^^^^^^^^^^^
|
|
393
401
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros`
|
|
394
402
|
= help: the following other types implement trait `TryFromBytes`:
|
|
395
403
|
()
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
404
|
+
(A, B)
|
|
405
|
+
(A, B, C)
|
|
406
|
+
(A, B, C, D)
|
|
407
|
+
(A, B, C, D, E)
|
|
408
|
+
(A, B, C, D, E, F)
|
|
409
|
+
(A, B, C, D, E, F, G)
|
|
410
|
+
(A, B, C, D, E, F, G, H)
|
|
403
411
|
and $N others
|
|
404
412
|
= help: see issue #48214
|
|
405
413
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -409,26 +417,26 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
409
417
|
|
|
|
410
418
|
|
|
411
419
|
error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
|
|
412
|
-
--> tests/ui-nightly/enum.rs:
|
|
420
|
+
--> tests/ui-nightly/enum.rs:143:10
|
|
413
421
|
|
|
|
414
|
-
|
|
422
|
+
143 | #[derive(FromZeros)]
|
|
415
423
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
416
424
|
|
|
|
417
425
|
help: the trait `FromZeros` is not implemented for `NotFromZeros`
|
|
418
|
-
--> tests/ui-nightly/enum.rs:
|
|
426
|
+
--> tests/ui-nightly/enum.rs:141:1
|
|
419
427
|
|
|
|
420
|
-
|
|
428
|
+
141 | struct NotFromZeros;
|
|
421
429
|
| ^^^^^^^^^^^^^^^^^^^
|
|
422
430
|
= note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros`
|
|
423
431
|
= help: the following other types implement trait `FromZeros`:
|
|
424
432
|
()
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
433
|
+
(A, B)
|
|
434
|
+
(A, B, C)
|
|
435
|
+
(A, B, C, D)
|
|
436
|
+
(A, B, C, D, E)
|
|
437
|
+
(A, B, C, D, E, F)
|
|
438
|
+
(A, B, C, D, E, F, G)
|
|
439
|
+
(A, B, C, D, E, F, G, H)
|
|
432
440
|
and $N others
|
|
433
441
|
= help: see issue #48214
|
|
434
442
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -438,21 +446,21 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
438
446
|
|
|
|
439
447
|
|
|
440
448
|
error[E0277]: the trait bound `bool: FromBytes` is not satisfied
|
|
441
|
-
--> tests/ui-nightly/enum.rs:
|
|
449
|
+
--> tests/ui-nightly/enum.rs:217:10
|
|
442
450
|
|
|
|
443
|
-
|
|
451
|
+
217 | #[derive(FromBytes)]
|
|
444
452
|
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
|
|
445
453
|
|
|
|
446
454
|
= note: Consider adding `#[derive(FromBytes)]` to `bool`
|
|
447
455
|
= help: the following other types implement trait `FromBytes`:
|
|
448
456
|
()
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
457
|
+
(A, B)
|
|
458
|
+
(A, B, C)
|
|
459
|
+
(A, B, C, D)
|
|
460
|
+
(A, B, C, D, E)
|
|
461
|
+
(A, B, C, D, E, F)
|
|
462
|
+
(A, B, C, D, E, F, G)
|
|
463
|
+
(A, B, C, D, E, F, G, H)
|
|
456
464
|
and $N others
|
|
457
465
|
= help: see issue #48214
|
|
458
466
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -462,9 +470,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
462
470
|
|
|
|
463
471
|
|
|
464
472
|
error[E0277]: `IntoBytes1` has 1 total byte(s) of padding
|
|
465
|
-
--> tests/ui-nightly/enum.rs:
|
|
473
|
+
--> tests/ui-nightly/enum.rs:578:10
|
|
466
474
|
|
|
|
467
|
-
|
|
475
|
+
578 | #[derive(IntoBytes)]
|
|
468
476
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
469
477
|
|
|
|
470
478
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
@@ -474,7 +482,7 @@ help: the trait `PaddingFree<IntoBytes1, 1>` is not implemented for `()`
|
|
|
474
482
|
but trait `PaddingFree<IntoBytes1, 0>` is implemented for it
|
|
475
483
|
--> $WORKSPACE/src/util/macro_util.rs
|
|
476
484
|
|
|
|
477
|
-
|
|
485
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
478
486
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
479
487
|
= help: see issue #48214
|
|
480
488
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -484,9 +492,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
484
492
|
|
|
|
485
493
|
|
|
486
494
|
error[E0277]: `IntoBytes2` has 3 total byte(s) of padding
|
|
487
|
-
--> tests/ui-nightly/enum.rs:
|
|
495
|
+
--> tests/ui-nightly/enum.rs:591:10
|
|
488
496
|
|
|
|
489
|
-
|
|
497
|
+
591 | #[derive(IntoBytes)]
|
|
490
498
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
491
499
|
|
|
|
492
500
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
@@ -496,7 +504,7 @@ help: the trait `PaddingFree<IntoBytes2, 3>` is not implemented for `()`
|
|
|
496
504
|
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
|
|
497
505
|
--> $WORKSPACE/src/util/macro_util.rs
|
|
498
506
|
|
|
|
499
|
-
|
|
507
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
500
508
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
501
509
|
= help: see issue #48214
|
|
502
510
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -506,9 +514,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
506
514
|
|
|
|
507
515
|
|
|
508
516
|
error[E0277]: `IntoBytes3` has 2 total byte(s) of padding
|
|
509
|
-
--> tests/ui-nightly/enum.rs:
|
|
517
|
+
--> tests/ui-nightly/enum.rs:598:10
|
|
510
518
|
|
|
|
511
|
-
|
|
519
|
+
598 | #[derive(IntoBytes)]
|
|
512
520
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
513
521
|
|
|
|
514
522
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
@@ -518,7 +526,7 @@ help: the trait `PaddingFree<IntoBytes3, 2>` is not implemented for `()`
|
|
|
518
526
|
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
|
|
519
527
|
--> $WORKSPACE/src/util/macro_util.rs
|
|
520
528
|
|
|
|
521
|
-
|
|
529
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
522
530
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
523
531
|
= help: see issue #48214
|
|
524
532
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -528,43 +536,43 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
528
536
|
|
|
|
529
537
|
|
|
530
538
|
error: generic `Self` types are currently not permitted in anonymous constants
|
|
531
|
-
--> tests/ui-nightly/enum.rs:
|
|
539
|
+
--> tests/ui-nightly/enum.rs:619:10
|
|
532
540
|
|
|
|
533
|
-
|
|
541
|
+
619 | #[derive(IntoBytes)]
|
|
534
542
|
| ^^^^^^^^^
|
|
535
543
|
|
|
|
536
544
|
note: not a concrete type
|
|
537
|
-
--> tests/ui-nightly/enum.rs:
|
|
545
|
+
--> tests/ui-nightly/enum.rs:619:10
|
|
538
546
|
|
|
|
539
|
-
|
|
547
|
+
619 | #[derive(IntoBytes)]
|
|
540
548
|
| ^^^^^^^^^
|
|
541
549
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
542
550
|
|
|
543
551
|
error[E0277]: the trait bound `bool: FromBytes` is not satisfied
|
|
544
|
-
--> tests/ui-nightly/enum.rs:
|
|
552
|
+
--> tests/ui-nightly/enum.rs:217:10
|
|
545
553
|
|
|
|
546
|
-
|
|
554
|
+
217 | #[derive(FromBytes)]
|
|
547
555
|
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
|
|
548
556
|
|
|
|
549
557
|
= note: Consider adding `#[derive(FromBytes)]` to `bool`
|
|
550
558
|
= help: the following other types implement trait `FromBytes`:
|
|
551
559
|
()
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
560
|
+
(A, B)
|
|
561
|
+
(A, B, C)
|
|
562
|
+
(A, B, C, D)
|
|
563
|
+
(A, B, C, D, E)
|
|
564
|
+
(A, B, C, D, E, F)
|
|
565
|
+
(A, B, C, D, E, F, G)
|
|
566
|
+
(A, B, C, D, E, F, G, H)
|
|
559
567
|
and $N others
|
|
560
568
|
note: required for `FooU8` to implement `FromBytes`
|
|
561
|
-
--> tests/ui-nightly/enum.rs:
|
|
569
|
+
--> tests/ui-nightly/enum.rs:217:10
|
|
562
570
|
|
|
|
563
|
-
|
|
571
|
+
217 | #[derive(FromBytes)]
|
|
564
572
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
565
573
|
note: required by a bound in `assert_is_from_bytes`
|
|
566
|
-
--> tests/ui-nightly/enum.rs:
|
|
574
|
+
--> tests/ui-nightly/enum.rs:217:10
|
|
567
575
|
|
|
|
568
|
-
|
|
576
|
+
217 | #[derive(FromBytes)]
|
|
569
577
|
| ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
|
|
570
578
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|