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,287 +1,290 @@
|
|
|
1
1
|
error: unrecognized representation hint
|
|
2
|
-
--> tests/ui-stable/enum.rs:
|
|
2
|
+
--> tests/ui-stable/enum.rs:20:8
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
20 | #[repr("foo")]
|
|
5
5
|
| ^^^^^
|
|
6
6
|
|
|
7
7
|
error: unrecognized representation hint
|
|
8
|
-
--> tests/ui-stable/enum.rs:
|
|
8
|
+
--> tests/ui-stable/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-stable/enum.rs:
|
|
14
|
+
--> tests/ui-stable/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-stable/enum.rs:
|
|
22
|
+
--> tests/ui-stable/enum.rs:41:12
|
|
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-stable/enum.rs:
|
|
28
|
+
--> tests/ui-stable/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-stable/enum.rs:
|
|
36
|
+
--> tests/ui-stable/enum.rs:78:1
|
|
37
37
|
|
|
|
38
|
-
|
|
39
|
-
|
|
|
38
|
+
78 | #[zerocopy(crate = "zerocopy_renamed")]
|
|
39
|
+
| ^
|
|
40
40
|
|
|
41
41
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
42
|
-
--> tests/ui-stable/enum.rs:
|
|
42
|
+
--> tests/ui-stable/enum.rs:84:1
|
|
43
43
|
|
|
|
44
|
-
|
|
45
|
-
|
|
|
44
|
+
84 | #[zerocopy(crate = "zerocopy_renamed")]
|
|
45
|
+
| ^
|
|
46
46
|
|
|
47
47
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
--> tests/ui-stable/enum.rs:104:1
|
|
49
|
+
|
|
|
50
|
+
104 | #[zerocopy(crate = "zerocopy_renamed")]
|
|
51
|
+
| ^
|
|
52
52
|
|
|
53
53
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
--> tests/ui-stable/enum.rs:110:1
|
|
55
|
+
|
|
|
56
|
+
110 | #[zerocopy(crate = "zerocopy_renamed")]
|
|
57
|
+
| ^
|
|
58
58
|
|
|
59
59
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
60
|
-
--> tests/ui-stable/enum.rs:
|
|
60
|
+
--> tests/ui-stable/enum.rs:117:1
|
|
61
61
|
|
|
|
62
|
-
|
|
63
|
-
|
|
|
62
|
+
117 | #[zerocopy(crate = "zerocopy_renamed")]
|
|
63
|
+
| ^
|
|
64
64
|
|
|
65
65
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
66
|
-
--> tests/ui-stable/enum.rs:
|
|
67
|
-
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
--> tests/ui-stable/enum.rs:124:1
|
|
67
|
+
|
|
|
68
|
+
124 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
69
|
+
125 | | #[repr(u8)]
|
|
70
|
+
126 | | enum FromZeros4 {
|
|
71
|
+
127 | | A = 1,
|
|
72
|
+
128 | | B = 2,
|
|
73
|
+
129 | | }
|
|
73
74
|
| |_^
|
|
74
75
|
|
|
75
76
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
76
77
|
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.
|
|
77
|
-
--> tests/ui-stable/enum.rs:
|
|
78
|
+
--> tests/ui-stable/enum.rs:134:1
|
|
78
79
|
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
134 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
81
|
+
135 | | #[repr(i8)]
|
|
82
|
+
136 | | enum FromZeros5 {
|
|
83
|
+
137 | | A = NEGATIVE_ONE,
|
|
84
|
+
138 | | B,
|
|
85
|
+
139 | | }
|
|
84
86
|
| |_^
|
|
85
87
|
|
|
86
88
|
error: FromZeros only supported on enums with a variant that has a discriminant of `0`
|
|
87
|
-
--> tests/ui-stable/enum.rs:
|
|
88
|
-
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
--> tests/ui-stable/enum.rs:151:1
|
|
90
|
+
|
|
|
91
|
+
151 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
92
|
+
152 | | #[repr(u8)]
|
|
93
|
+
153 | | enum FromZeros7 {
|
|
94
|
+
154 | | A = 1,
|
|
95
|
+
155 | | B(NotFromZeros),
|
|
96
|
+
156 | | }
|
|
94
97
|
| |_^
|
|
95
98
|
|
|
96
99
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
97
|
-
--> tests/ui-stable/enum.rs:
|
|
100
|
+
--> tests/ui-stable/enum.rs:162:10
|
|
98
101
|
|
|
|
99
|
-
|
|
102
|
+
162 | #[derive(FromBytes)]
|
|
100
103
|
| ^^^^^^^^^
|
|
101
104
|
|
|
|
102
105
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
103
106
|
|
|
104
107
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
105
|
-
--> tests/ui-stable/enum.rs:
|
|
108
|
+
--> tests/ui-stable/enum.rs:170:8
|
|
106
109
|
|
|
|
107
|
-
|
|
110
|
+
170 | #[repr(C)]
|
|
108
111
|
| ^
|
|
109
112
|
|
|
110
113
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
111
|
-
--> tests/ui-stable/enum.rs:
|
|
114
|
+
--> tests/ui-stable/enum.rs:177:8
|
|
112
115
|
|
|
|
113
|
-
|
|
116
|
+
177 | #[repr(usize)]
|
|
114
117
|
| ^^^^^
|
|
115
118
|
|
|
116
119
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
117
|
-
--> tests/ui-stable/enum.rs:
|
|
120
|
+
--> tests/ui-stable/enum.rs:184:8
|
|
118
121
|
|
|
|
119
|
-
|
|
122
|
+
184 | #[repr(isize)]
|
|
120
123
|
| ^^^^^
|
|
121
124
|
|
|
122
125
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
123
|
-
--> tests/ui-stable/enum.rs:
|
|
126
|
+
--> tests/ui-stable/enum.rs:191:8
|
|
124
127
|
|
|
|
125
|
-
|
|
128
|
+
191 | #[repr(u32)]
|
|
126
129
|
| ^^^
|
|
127
130
|
|
|
128
131
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
129
|
-
--> tests/ui-stable/enum.rs:
|
|
132
|
+
--> tests/ui-stable/enum.rs:198:8
|
|
130
133
|
|
|
|
131
|
-
|
|
134
|
+
198 | #[repr(i32)]
|
|
132
135
|
| ^^^
|
|
133
136
|
|
|
134
137
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
135
|
-
--> tests/ui-stable/enum.rs:
|
|
138
|
+
--> tests/ui-stable/enum.rs:205:8
|
|
136
139
|
|
|
|
137
|
-
|
|
140
|
+
205 | #[repr(u64)]
|
|
138
141
|
| ^^^
|
|
139
142
|
|
|
140
143
|
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
|
|
141
|
-
--> tests/ui-stable/enum.rs:
|
|
144
|
+
--> tests/ui-stable/enum.rs:212:8
|
|
142
145
|
|
|
|
143
|
-
|
|
146
|
+
212 | #[repr(i64)]
|
|
144
147
|
| ^^^
|
|
145
148
|
|
|
146
149
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
147
|
-
--> tests/ui-stable/enum.rs:
|
|
150
|
+
--> tests/ui-stable/enum.rs:483:10
|
|
148
151
|
|
|
|
149
|
-
|
|
152
|
+
483 | #[derive(Unaligned)]
|
|
150
153
|
| ^^^^^^^^^
|
|
151
154
|
|
|
|
152
155
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
153
156
|
|
|
154
157
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
155
|
-
--> tests/ui-stable/enum.rs:
|
|
158
|
+
--> tests/ui-stable/enum.rs:490:10
|
|
156
159
|
|
|
|
157
|
-
|
|
160
|
+
490 | #[derive(Unaligned)]
|
|
158
161
|
| ^^^^^^^^^
|
|
159
162
|
|
|
|
160
163
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
161
164
|
|
|
162
165
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
163
|
-
--> tests/ui-stable/enum.rs:
|
|
166
|
+
--> tests/ui-stable/enum.rs:497:10
|
|
164
167
|
|
|
|
165
|
-
|
|
168
|
+
497 | #[derive(Unaligned)]
|
|
166
169
|
| ^^^^^^^^^
|
|
167
170
|
|
|
|
168
171
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
169
172
|
|
|
170
173
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
171
|
-
--> tests/ui-stable/enum.rs:
|
|
174
|
+
--> tests/ui-stable/enum.rs:504:10
|
|
172
175
|
|
|
|
173
|
-
|
|
176
|
+
504 | #[derive(Unaligned)]
|
|
174
177
|
| ^^^^^^^^^
|
|
175
178
|
|
|
|
176
179
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
177
180
|
|
|
178
181
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
179
|
-
--> tests/ui-stable/enum.rs:
|
|
182
|
+
--> tests/ui-stable/enum.rs:511:10
|
|
180
183
|
|
|
|
181
|
-
|
|
184
|
+
511 | #[derive(Unaligned)]
|
|
182
185
|
| ^^^^^^^^^
|
|
183
186
|
|
|
|
184
187
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
185
188
|
|
|
186
189
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
187
|
-
--> tests/ui-stable/enum.rs:
|
|
190
|
+
--> tests/ui-stable/enum.rs:518:10
|
|
188
191
|
|
|
|
189
|
-
|
|
192
|
+
518 | #[derive(Unaligned)]
|
|
190
193
|
| ^^^^^^^^^
|
|
191
194
|
|
|
|
192
195
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
193
196
|
|
|
194
197
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
195
|
-
--> tests/ui-stable/enum.rs:
|
|
198
|
+
--> tests/ui-stable/enum.rs:525:10
|
|
196
199
|
|
|
|
197
|
-
|
|
200
|
+
525 | #[derive(Unaligned)]
|
|
198
201
|
| ^^^^^^^^^
|
|
199
202
|
|
|
|
200
203
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
201
204
|
|
|
202
205
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
203
|
-
--> tests/ui-stable/enum.rs:
|
|
206
|
+
--> tests/ui-stable/enum.rs:532:10
|
|
204
207
|
|
|
|
205
|
-
|
|
208
|
+
532 | #[derive(Unaligned)]
|
|
206
209
|
| ^^^^^^^^^
|
|
207
210
|
|
|
|
208
211
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
209
212
|
|
|
210
213
|
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
|
|
211
|
-
--> tests/ui-stable/enum.rs:
|
|
214
|
+
--> tests/ui-stable/enum.rs:539:10
|
|
212
215
|
|
|
|
213
|
-
|
|
216
|
+
539 | #[derive(Unaligned)]
|
|
214
217
|
| ^^^^^^^^^
|
|
215
218
|
|
|
|
216
219
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
217
220
|
|
|
218
221
|
error: cannot derive `Unaligned` on type with alignment greater than 1
|
|
219
|
-
--> tests/ui-stable/enum.rs:
|
|
222
|
+
--> tests/ui-stable/enum.rs:548:12
|
|
220
223
|
|
|
|
221
|
-
|
|
224
|
+
548 | #[repr(u8, align(2))]
|
|
222
225
|
| ^^^^^
|
|
223
226
|
|
|
224
227
|
error: cannot derive `Unaligned` on type with alignment greater than 1
|
|
225
|
-
--> tests/ui-stable/enum.rs:
|
|
228
|
+
--> tests/ui-stable/enum.rs:555:12
|
|
226
229
|
|
|
|
227
|
-
|
|
230
|
+
555 | #[repr(i8, align(2))]
|
|
228
231
|
| ^^^^^
|
|
229
232
|
|
|
230
233
|
error: this conflicts with another representation hint
|
|
231
|
-
--> tests/ui-stable/enum.rs:
|
|
234
|
+
--> tests/ui-stable/enum.rs:562:18
|
|
232
235
|
|
|
|
233
|
-
|
|
236
|
+
562 | #[repr(align(1), align(2))]
|
|
234
237
|
| ^^^^^
|
|
235
238
|
|
|
236
239
|
error: this conflicts with another representation hint
|
|
237
|
-
--> tests/ui-stable/enum.rs:
|
|
240
|
+
--> tests/ui-stable/enum.rs:569:18
|
|
238
241
|
|
|
|
239
|
-
|
|
242
|
+
569 | #[repr(align(2), align(4))]
|
|
240
243
|
| ^^^^^
|
|
241
244
|
|
|
242
245
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
243
|
-
--> tests/ui-stable/enum.rs:
|
|
246
|
+
--> tests/ui-stable/enum.rs:606:10
|
|
244
247
|
|
|
|
245
|
-
|
|
248
|
+
606 | #[derive(IntoBytes)]
|
|
246
249
|
| ^^^^^^^^^
|
|
247
250
|
|
|
|
248
251
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
249
252
|
|
|
250
253
|
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
|
|
251
|
-
--> tests/ui-stable/enum.rs:
|
|
254
|
+
--> tests/ui-stable/enum.rs:613:10
|
|
252
255
|
|
|
|
253
|
-
|
|
256
|
+
613 | #[derive(IntoBytes)]
|
|
254
257
|
| ^^^^^^^^^
|
|
255
258
|
|
|
|
256
259
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
257
260
|
|
|
258
261
|
error: generic parameters may not be used in const operations
|
|
259
|
-
--> tests/ui-stable/enum.rs:
|
|
262
|
+
--> tests/ui-stable/enum.rs:623:7
|
|
260
263
|
|
|
|
261
|
-
|
|
264
|
+
623 | A(T),
|
|
262
265
|
| ^ cannot perform const operation using `T`
|
|
263
266
|
|
|
|
264
267
|
= note: type parameters may not be used in const expressions
|
|
265
268
|
|
|
266
269
|
error[E0565]: meta item in `repr` must be an identifier
|
|
267
|
-
--> tests/ui-stable/enum.rs:
|
|
270
|
+
--> tests/ui-stable/enum.rs:20:1
|
|
268
271
|
|
|
|
269
|
-
|
|
272
|
+
20 | #[repr("foo")]
|
|
270
273
|
| ^^^^^^^^^^^^^^
|
|
271
274
|
|
|
272
275
|
error[E0552]: unrecognized representation hint
|
|
273
|
-
--> tests/ui-stable/enum.rs:
|
|
276
|
+
--> tests/ui-stable/enum.rs:27:8
|
|
274
277
|
|
|
|
275
|
-
|
|
278
|
+
27 | #[repr(foo)]
|
|
276
279
|
| ^^^
|
|
277
280
|
|
|
|
278
281
|
= help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
|
|
279
282
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations>
|
|
280
283
|
|
|
281
284
|
error[E0566]: conflicting representation hints
|
|
282
|
-
--> tests/ui-stable/enum.rs:
|
|
285
|
+
--> tests/ui-stable/enum.rs:41:8
|
|
283
286
|
|
|
|
284
|
-
|
|
287
|
+
41 | #[repr(u8, u16)]
|
|
285
288
|
| ^^ ^^^
|
|
286
289
|
|
|
|
287
290
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
@@ -289,9 +292,9 @@ error[E0566]: conflicting representation hints
|
|
|
289
292
|
= note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default
|
|
290
293
|
|
|
291
294
|
error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
|
|
292
|
-
--> tests/ui-stable/enum.rs:
|
|
295
|
+
--> tests/ui-stable/enum.rs:56:10
|
|
293
296
|
|
|
|
294
|
-
|
|
297
|
+
56 | #[derive(Immutable)]
|
|
295
298
|
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
|
|
296
299
|
|
|
|
297
300
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
|
|
@@ -299,19 +302,19 @@ error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
|
|
|
299
302
|
&T
|
|
300
303
|
&mut T
|
|
301
304
|
()
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
(A, B)
|
|
306
|
+
(A, B, C)
|
|
307
|
+
(A, B, C, D)
|
|
308
|
+
(A, B, C, D, E)
|
|
309
|
+
(A, B, C, D, E, F)
|
|
307
310
|
and $N others
|
|
308
311
|
= help: see issue #48214
|
|
309
312
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
310
313
|
|
|
311
314
|
error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
|
|
312
|
-
--> tests/ui-stable/enum.rs:
|
|
315
|
+
--> tests/ui-stable/enum.rs:66:10
|
|
313
316
|
|
|
|
314
|
-
|
|
317
|
+
66 | #[derive(Immutable)]
|
|
315
318
|
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
|
|
316
319
|
|
|
|
317
320
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
|
|
@@ -319,190 +322,202 @@ error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
|
|
|
319
322
|
&T
|
|
320
323
|
&mut T
|
|
321
324
|
()
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
(A, B)
|
|
326
|
+
(A, B, C)
|
|
327
|
+
(A, B, C, D)
|
|
328
|
+
(A, B, C, D, E)
|
|
329
|
+
(A, B, C, D, E, F)
|
|
327
330
|
and $N others
|
|
328
331
|
= help: see issue #48214
|
|
329
332
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
330
333
|
|
|
331
334
|
error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
|
|
332
|
-
--> tests/ui-stable/enum.rs:
|
|
335
|
+
--> tests/ui-stable/enum.rs:92:10
|
|
333
336
|
|
|
|
334
|
-
|
|
337
|
+
92 | #[derive(TryFromBytes)]
|
|
335
338
|
| ^^^^^^^^^^^^ unsatisfied trait bound
|
|
336
339
|
|
|
|
337
340
|
help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
|
|
338
|
-
--> tests/ui-stable/enum.rs:
|
|
341
|
+
--> tests/ui-stable/enum.rs:90:1
|
|
339
342
|
|
|
|
340
|
-
|
|
343
|
+
90 | struct NotTryFromBytes;
|
|
341
344
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
342
345
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes`
|
|
343
346
|
= help: the following other types implement trait `TryFromBytes`:
|
|
344
347
|
()
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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)
|
|
353
|
+
(A, B, C, D, E, F, G)
|
|
354
|
+
(A, B, C, D, E, F, G, H)
|
|
352
355
|
and $N others
|
|
353
356
|
= help: see issue #48214
|
|
354
357
|
= note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
355
358
|
|
|
356
359
|
error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
|
|
357
|
-
--> tests/ui-stable/enum.rs:
|
|
360
|
+
--> tests/ui-stable/enum.rs:143:10
|
|
358
361
|
|
|
|
359
|
-
|
|
362
|
+
143 | #[derive(FromZeros)]
|
|
360
363
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
361
364
|
|
|
|
362
365
|
help: the trait `TryFromBytes` is not implemented for `NotFromZeros`
|
|
363
|
-
--> tests/ui-stable/enum.rs:
|
|
366
|
+
--> tests/ui-stable/enum.rs:141:1
|
|
364
367
|
|
|
|
365
|
-
|
|
368
|
+
141 | struct NotFromZeros;
|
|
366
369
|
| ^^^^^^^^^^^^^^^^^^^
|
|
367
370
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros`
|
|
368
371
|
= help: the following other types implement trait `TryFromBytes`:
|
|
369
372
|
()
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
373
|
+
(A, B)
|
|
374
|
+
(A, B, C)
|
|
375
|
+
(A, B, C, D)
|
|
376
|
+
(A, B, C, D, E)
|
|
377
|
+
(A, B, C, D, E, F)
|
|
378
|
+
(A, B, C, D, E, F, G)
|
|
379
|
+
(A, B, C, D, E, F, G, H)
|
|
377
380
|
and $N others
|
|
378
381
|
= help: see issue #48214
|
|
379
382
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
380
383
|
|
|
381
384
|
error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
|
|
382
|
-
--> tests/ui-stable/enum.rs:
|
|
385
|
+
--> tests/ui-stable/enum.rs:143:10
|
|
383
386
|
|
|
|
384
|
-
|
|
387
|
+
143 | #[derive(FromZeros)]
|
|
385
388
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
386
389
|
|
|
|
387
390
|
help: the trait `FromZeros` is not implemented for `NotFromZeros`
|
|
388
|
-
--> tests/ui-stable/enum.rs:
|
|
391
|
+
--> tests/ui-stable/enum.rs:141:1
|
|
389
392
|
|
|
|
390
|
-
|
|
393
|
+
141 | struct NotFromZeros;
|
|
391
394
|
| ^^^^^^^^^^^^^^^^^^^
|
|
392
395
|
= note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros`
|
|
393
396
|
= help: the following other types implement trait `FromZeros`:
|
|
394
397
|
()
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
398
|
+
(A, B)
|
|
399
|
+
(A, B, C)
|
|
400
|
+
(A, B, C, D)
|
|
401
|
+
(A, B, C, D, E)
|
|
402
|
+
(A, B, C, D, E, F)
|
|
403
|
+
(A, B, C, D, E, F, G)
|
|
404
|
+
(A, B, C, D, E, F, G, H)
|
|
402
405
|
and $N others
|
|
403
406
|
= help: see issue #48214
|
|
404
407
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
405
408
|
|
|
406
409
|
error[E0277]: the trait bound `bool: FromBytes` is not satisfied
|
|
407
|
-
--> tests/ui-stable/enum.rs:
|
|
410
|
+
--> tests/ui-stable/enum.rs:217:10
|
|
408
411
|
|
|
|
409
|
-
|
|
412
|
+
217 | #[derive(FromBytes)]
|
|
410
413
|
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
|
|
411
414
|
|
|
|
412
415
|
= note: Consider adding `#[derive(FromBytes)]` to `bool`
|
|
413
416
|
= help: the following other types implement trait `FromBytes`:
|
|
414
417
|
()
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
418
|
+
(A, B)
|
|
419
|
+
(A, B, C)
|
|
420
|
+
(A, B, C, D)
|
|
421
|
+
(A, B, C, D, E)
|
|
422
|
+
(A, B, C, D, E, F)
|
|
423
|
+
(A, B, C, D, E, F, G)
|
|
424
|
+
(A, B, C, D, E, F, G, H)
|
|
422
425
|
and $N others
|
|
423
426
|
= help: see issue #48214
|
|
424
427
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
425
428
|
|
|
426
429
|
error[E0277]: `IntoBytes1` has 1 total byte(s) of padding
|
|
427
|
-
--> tests/ui-stable/enum.rs:
|
|
430
|
+
--> tests/ui-stable/enum.rs:578:10
|
|
428
431
|
|
|
|
429
|
-
|
|
432
|
+
578 | #[derive(IntoBytes)]
|
|
430
433
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
431
434
|
|
|
|
432
435
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
433
436
|
= note: consider adding explicit fields where padding would be
|
|
434
437
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
435
|
-
|
|
436
|
-
|
|
438
|
+
help: the trait `PaddingFree<IntoBytes1, 1>` is not implemented for `()`
|
|
439
|
+
but trait `PaddingFree<IntoBytes1, 0>` is implemented for it
|
|
440
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
441
|
+
|
|
|
442
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
443
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
437
444
|
= help: see issue #48214
|
|
438
445
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
439
446
|
|
|
440
447
|
error[E0277]: `IntoBytes2` has 3 total byte(s) of padding
|
|
441
|
-
--> tests/ui-stable/enum.rs:
|
|
448
|
+
--> tests/ui-stable/enum.rs:591:10
|
|
442
449
|
|
|
|
443
|
-
|
|
450
|
+
591 | #[derive(IntoBytes)]
|
|
444
451
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
445
452
|
|
|
|
446
453
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
447
454
|
= note: consider adding explicit fields where padding would be
|
|
448
455
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
449
|
-
|
|
450
|
-
|
|
456
|
+
help: the trait `PaddingFree<IntoBytes2, 3>` is not implemented for `()`
|
|
457
|
+
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
|
|
458
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
459
|
+
|
|
|
460
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
461
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
451
462
|
= help: see issue #48214
|
|
452
463
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
453
464
|
|
|
454
465
|
error[E0277]: `IntoBytes3` has 2 total byte(s) of padding
|
|
455
|
-
--> tests/ui-stable/enum.rs:
|
|
466
|
+
--> tests/ui-stable/enum.rs:598:10
|
|
456
467
|
|
|
|
457
|
-
|
|
468
|
+
598 | #[derive(IntoBytes)]
|
|
458
469
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
459
470
|
|
|
|
460
471
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
461
472
|
= note: consider adding explicit fields where padding would be
|
|
462
473
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
463
|
-
|
|
464
|
-
|
|
474
|
+
help: the trait `PaddingFree<IntoBytes3, 2>` is not implemented for `()`
|
|
475
|
+
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
|
|
476
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
477
|
+
|
|
|
478
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
479
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
465
480
|
= help: see issue #48214
|
|
466
481
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
467
482
|
|
|
468
483
|
error: generic `Self` types are currently not permitted in anonymous constants
|
|
469
|
-
--> tests/ui-stable/enum.rs:
|
|
484
|
+
--> tests/ui-stable/enum.rs:619:10
|
|
470
485
|
|
|
|
471
|
-
|
|
486
|
+
619 | #[derive(IntoBytes)]
|
|
472
487
|
| ^^^^^^^^^
|
|
473
488
|
|
|
|
474
489
|
note: not a concrete type
|
|
475
|
-
--> tests/ui-stable/enum.rs:
|
|
490
|
+
--> tests/ui-stable/enum.rs:619:10
|
|
476
491
|
|
|
|
477
|
-
|
|
492
|
+
619 | #[derive(IntoBytes)]
|
|
478
493
|
| ^^^^^^^^^
|
|
479
494
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
480
495
|
|
|
481
496
|
error[E0277]: the trait bound `bool: FromBytes` is not satisfied
|
|
482
|
-
--> tests/ui-stable/enum.rs:
|
|
497
|
+
--> tests/ui-stable/enum.rs:217:10
|
|
483
498
|
|
|
|
484
|
-
|
|
499
|
+
217 | #[derive(FromBytes)]
|
|
485
500
|
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
|
|
486
501
|
|
|
|
487
502
|
= note: Consider adding `#[derive(FromBytes)]` to `bool`
|
|
488
503
|
= help: the following other types implement trait `FromBytes`:
|
|
489
504
|
()
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
505
|
+
(A, B)
|
|
506
|
+
(A, B, C)
|
|
507
|
+
(A, B, C, D)
|
|
508
|
+
(A, B, C, D, E)
|
|
509
|
+
(A, B, C, D, E, F)
|
|
510
|
+
(A, B, C, D, E, F, G)
|
|
511
|
+
(A, B, C, D, E, F, G, H)
|
|
497
512
|
and $N others
|
|
498
513
|
note: required for `FooU8` to implement `FromBytes`
|
|
499
|
-
--> tests/ui-stable/enum.rs:
|
|
514
|
+
--> tests/ui-stable/enum.rs:217:10
|
|
500
515
|
|
|
|
501
|
-
|
|
516
|
+
217 | #[derive(FromBytes)]
|
|
502
517
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
503
518
|
note: required by a bound in `assert_is_from_bytes`
|
|
504
|
-
--> tests/ui-stable/enum.rs:
|
|
519
|
+
--> tests/ui-stable/enum.rs:217:10
|
|
505
520
|
|
|
|
506
|
-
|
|
521
|
+
217 | #[derive(FromBytes)]
|
|
507
522
|
| ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
|
|
508
523
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|