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,11 +1,11 @@
|
|
|
1
1
|
error: FromBytes only supported on repr(u8) enum with 256 variants
|
|
2
2
|
--> tests/ui-nightly/enum_from_bytes_u8_too_few.rs:15:1
|
|
3
3
|
|
|
|
4
|
-
15 | / #[
|
|
5
|
-
16 | |
|
|
6
|
-
17 | |
|
|
7
|
-
18 | |
|
|
4
|
+
15 | / #[zerocopy(crate = "zerocopy_renamed")]
|
|
5
|
+
16 | | #[repr(u8)]
|
|
6
|
+
17 | | enum Foo {
|
|
7
|
+
18 | | Variant0,
|
|
8
8
|
... |
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
272 | | Variant254,
|
|
10
|
+
273 | | }
|
|
11
11
|
| |_^
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
9
|
#[macro_use]
|
|
10
|
-
extern crate
|
|
10
|
+
extern crate zerocopy_renamed;
|
|
11
11
|
|
|
12
12
|
#[path = "../include.rs"]
|
|
13
13
|
mod util;
|
|
14
14
|
|
|
15
|
-
use
|
|
15
|
+
use zerocopy_renamed::KnownLayout;
|
|
16
16
|
|
|
17
17
|
use self::util::util::{NotZerocopy, AU16};
|
|
18
18
|
|
|
@@ -27,6 +27,7 @@ fn main() {}
|
|
|
27
27
|
//
|
|
28
28
|
|
|
29
29
|
#[derive(TryFromBytes)]
|
|
30
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
30
31
|
struct TryFromBytes1 {
|
|
31
32
|
value: NotZerocopy,
|
|
32
33
|
}
|
|
@@ -36,6 +37,7 @@ struct TryFromBytes1 {
|
|
|
36
37
|
//
|
|
37
38
|
|
|
38
39
|
#[derive(FromZeros)]
|
|
40
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
39
41
|
struct FromZeros1 {
|
|
40
42
|
value: NotZerocopy,
|
|
41
43
|
}
|
|
@@ -45,6 +47,7 @@ struct FromZeros1 {
|
|
|
45
47
|
//
|
|
46
48
|
|
|
47
49
|
#[derive(FromBytes)]
|
|
50
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
48
51
|
struct FromBytes1 {
|
|
49
52
|
value: NotZerocopy,
|
|
50
53
|
}
|
|
@@ -54,6 +57,7 @@ struct FromBytes1 {
|
|
|
54
57
|
//
|
|
55
58
|
|
|
56
59
|
#[derive(IntoBytes)]
|
|
60
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
57
61
|
#[repr(C)]
|
|
58
62
|
struct IntoBytes1 {
|
|
59
63
|
value: NotZerocopy,
|
|
@@ -64,6 +68,7 @@ struct IntoBytes1 {
|
|
|
64
68
|
//
|
|
65
69
|
|
|
66
70
|
#[derive(Unaligned)]
|
|
71
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
67
72
|
#[repr(C)]
|
|
68
73
|
struct Unaligned1 {
|
|
69
74
|
aligned: AU16,
|
|
@@ -72,6 +77,7 @@ struct Unaligned1 {
|
|
|
72
77
|
// This specifically tests a bug we had in an old version of the code in which
|
|
73
78
|
// the trait bound would only be enforced for the first field's type.
|
|
74
79
|
#[derive(Unaligned)]
|
|
80
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
75
81
|
#[repr(C)]
|
|
76
82
|
struct Unaligned2 {
|
|
77
83
|
unaligned: u8,
|
|
@@ -79,6 +85,7 @@ struct Unaligned2 {
|
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
#[derive(Unaligned)]
|
|
88
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
82
89
|
#[repr(transparent)]
|
|
83
90
|
struct Unaligned3 {
|
|
84
91
|
aligned: AU16,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
warning: unused import: `
|
|
1
|
+
warning: unused import: `zerocopy_renamed::KnownLayout`
|
|
2
2
|
--> tests/ui-nightly/late_compile_pass.rs:15:5
|
|
3
3
|
|
|
|
4
|
-
15 | use
|
|
5
|
-
|
|
|
4
|
+
15 | use zerocopy_renamed::KnownLayout;
|
|
5
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
|
|
|
7
7
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
8
8
|
|
|
9
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
9
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
|
|
10
10
|
--> tests/ui-nightly/late_compile_pass.rs:29:10
|
|
11
11
|
|
|
|
12
12
|
29 | #[derive(TryFromBytes)]
|
|
13
13
|
| ^^^^^^^^^^^^ unsatisfied trait bound
|
|
14
14
|
|
|
|
15
|
-
help: the trait `
|
|
15
|
+
help: the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
|
|
16
16
|
--> tests/ui-nightly/../include.rs
|
|
17
17
|
|
|
|
18
18
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
19
19
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
20
20
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
21
|
-
= help: the following other types implement trait `
|
|
21
|
+
= help: the following other types implement trait `zerocopy_renamed::TryFromBytes`:
|
|
22
22
|
()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
(A, B)
|
|
24
|
+
(A, B, C)
|
|
25
|
+
(A, B, C, D)
|
|
26
|
+
(A, B, C, D, E)
|
|
27
|
+
(A, B, C, D, E, F)
|
|
28
|
+
(A, B, C, D, E, F, G)
|
|
29
|
+
(A, B, C, D, E, F, G, H)
|
|
30
30
|
and $N others
|
|
31
31
|
= help: see issue #48214
|
|
32
32
|
= note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -35,27 +35,27 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
35
35
|
9 + #![feature(trivial_bounds)]
|
|
36
36
|
|
|
|
37
37
|
|
|
38
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
39
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
38
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
|
|
39
|
+
--> tests/ui-nightly/late_compile_pass.rs:39:10
|
|
40
40
|
|
|
|
41
|
-
|
|
41
|
+
39 | #[derive(FromZeros)]
|
|
42
42
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
43
43
|
|
|
|
44
|
-
help: the trait `
|
|
44
|
+
help: the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
|
|
45
45
|
--> tests/ui-nightly/../include.rs
|
|
46
46
|
|
|
|
47
47
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
48
48
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
49
49
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
50
|
-
= help: the following other types implement trait `
|
|
50
|
+
= help: the following other types implement trait `zerocopy_renamed::TryFromBytes`:
|
|
51
51
|
()
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
(A, B)
|
|
53
|
+
(A, B, C)
|
|
54
|
+
(A, B, C, D)
|
|
55
|
+
(A, B, C, D, E)
|
|
56
|
+
(A, B, C, D, E, F)
|
|
57
|
+
(A, B, C, D, E, F, G)
|
|
58
|
+
(A, B, C, D, E, F, G, H)
|
|
59
59
|
and $N others
|
|
60
60
|
= help: see issue #48214
|
|
61
61
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -65,9 +65,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
65
65
|
|
|
|
66
66
|
|
|
67
67
|
error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
|
|
68
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
68
|
+
--> tests/ui-nightly/late_compile_pass.rs:39:10
|
|
69
69
|
|
|
|
70
|
-
|
|
70
|
+
39 | #[derive(FromZeros)]
|
|
71
71
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
72
72
|
|
|
|
73
73
|
help: the trait `FromZeros` is not implemented for `NotZerocopy`
|
|
@@ -78,13 +78,13 @@ help: the trait `FromZeros` is not implemented for `NotZerocopy`
|
|
|
78
78
|
= note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
|
|
79
79
|
= help: the following other types implement trait `FromZeros`:
|
|
80
80
|
()
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
(A, B)
|
|
82
|
+
(A, B, C)
|
|
83
|
+
(A, B, C, D)
|
|
84
|
+
(A, B, C, D, E)
|
|
85
|
+
(A, B, C, D, E, F)
|
|
86
|
+
(A, B, C, D, E, F, G)
|
|
87
|
+
(A, B, C, D, E, F, G, H)
|
|
88
88
|
and $N others
|
|
89
89
|
= help: see issue #48214
|
|
90
90
|
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -93,27 +93,27 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
93
93
|
9 + #![feature(trivial_bounds)]
|
|
94
94
|
|
|
|
95
95
|
|
|
96
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
97
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
96
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
|
|
97
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
98
98
|
|
|
|
99
|
-
|
|
99
|
+
49 | #[derive(FromBytes)]
|
|
100
100
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
101
101
|
|
|
|
102
|
-
help: the trait `
|
|
102
|
+
help: the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
|
|
103
103
|
--> tests/ui-nightly/../include.rs
|
|
104
104
|
|
|
|
105
105
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
106
106
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
107
107
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
108
|
-
= help: the following other types implement trait `
|
|
108
|
+
= help: the following other types implement trait `zerocopy_renamed::TryFromBytes`:
|
|
109
109
|
()
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
(A, B)
|
|
111
|
+
(A, B, C)
|
|
112
|
+
(A, B, C, D)
|
|
113
|
+
(A, B, C, D, E)
|
|
114
|
+
(A, B, C, D, E, F)
|
|
115
|
+
(A, B, C, D, E, F, G)
|
|
116
|
+
(A, B, C, D, E, F, G, H)
|
|
117
117
|
and $N others
|
|
118
118
|
= help: see issue #48214
|
|
119
119
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -123,9 +123,9 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
123
123
|
|
|
|
124
124
|
|
|
125
125
|
error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
|
|
126
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
126
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
127
127
|
|
|
|
128
|
-
|
|
128
|
+
49 | #[derive(FromBytes)]
|
|
129
129
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
130
130
|
|
|
|
131
131
|
help: the trait `FromZeros` is not implemented for `NotZerocopy`
|
|
@@ -136,13 +136,13 @@ help: the trait `FromZeros` is not implemented for `NotZerocopy`
|
|
|
136
136
|
= note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
|
|
137
137
|
= help: the following other types implement trait `FromZeros`:
|
|
138
138
|
()
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
(A, B)
|
|
140
|
+
(A, B, C)
|
|
141
|
+
(A, B, C, D)
|
|
142
|
+
(A, B, C, D, E)
|
|
143
|
+
(A, B, C, D, E, F)
|
|
144
|
+
(A, B, C, D, E, F, G)
|
|
145
|
+
(A, B, C, D, E, F, G, H)
|
|
146
146
|
and $N others
|
|
147
147
|
= help: see issue #48214
|
|
148
148
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -151,27 +151,27 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
151
151
|
9 + #![feature(trivial_bounds)]
|
|
152
152
|
|
|
|
153
153
|
|
|
154
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
155
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
154
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::FromBytes` is not satisfied
|
|
155
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
156
156
|
|
|
|
157
|
-
|
|
157
|
+
49 | #[derive(FromBytes)]
|
|
158
158
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
159
159
|
|
|
|
160
|
-
help: the trait `
|
|
160
|
+
help: the trait `zerocopy_renamed::FromBytes` is not implemented for `NotZerocopy`
|
|
161
161
|
--> tests/ui-nightly/../include.rs
|
|
162
162
|
|
|
|
163
163
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
164
164
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
165
165
|
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
|
|
166
|
-
= help: the following other types implement trait `
|
|
166
|
+
= help: the following other types implement trait `zerocopy_renamed::FromBytes`:
|
|
167
167
|
()
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
(A, B)
|
|
169
|
+
(A, B, C)
|
|
170
|
+
(A, B, C, D)
|
|
171
|
+
(A, B, C, D, E)
|
|
172
|
+
(A, B, C, D, E, F)
|
|
173
|
+
(A, B, C, D, E, F, G)
|
|
174
|
+
(A, B, C, D, E, F, G, H)
|
|
175
175
|
and $N others
|
|
176
176
|
= help: see issue #48214
|
|
177
177
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -180,19 +180,19 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
180
180
|
9 + #![feature(trivial_bounds)]
|
|
181
181
|
|
|
|
182
182
|
|
|
183
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
184
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
183
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::IntoBytes` is not satisfied
|
|
184
|
+
--> tests/ui-nightly/late_compile_pass.rs:59:10
|
|
185
185
|
|
|
|
186
|
-
|
|
186
|
+
59 | #[derive(IntoBytes)]
|
|
187
187
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
188
188
|
|
|
|
189
|
-
help: the trait `
|
|
189
|
+
help: the trait `zerocopy_renamed::IntoBytes` is not implemented for `NotZerocopy`
|
|
190
190
|
--> tests/ui-nightly/../include.rs
|
|
191
191
|
|
|
|
192
192
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
193
193
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
194
194
|
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
|
|
195
|
-
= help: the following other types implement trait `
|
|
195
|
+
= help: the following other types implement trait `zerocopy_renamed::IntoBytes`:
|
|
196
196
|
()
|
|
197
197
|
AU16
|
|
198
198
|
AtomicBool
|
|
@@ -209,19 +209,19 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
209
209
|
9 + #![feature(trivial_bounds)]
|
|
210
210
|
|
|
|
211
211
|
|
|
212
|
-
error[E0277]: the trait bound `AU16:
|
|
213
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
212
|
+
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
|
|
213
|
+
--> tests/ui-nightly/late_compile_pass.rs:70:10
|
|
214
214
|
|
|
|
215
|
-
|
|
215
|
+
70 | #[derive(Unaligned)]
|
|
216
216
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
217
217
|
|
|
|
218
|
-
help: the trait `
|
|
218
|
+
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
|
|
219
219
|
--> tests/ui-nightly/../include.rs
|
|
220
220
|
|
|
|
221
221
|
| pub struct AU16(pub u16);
|
|
222
222
|
| ^^^^^^^^^^^^^^^
|
|
223
223
|
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
|
|
224
|
-
= help: the following other types implement trait `
|
|
224
|
+
= help: the following other types implement trait `zerocopy_renamed::Unaligned`:
|
|
225
225
|
()
|
|
226
226
|
AtomicBool
|
|
227
227
|
AtomicI8
|
|
@@ -238,19 +238,19 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
238
238
|
9 + #![feature(trivial_bounds)]
|
|
239
239
|
|
|
|
240
240
|
|
|
241
|
-
error[E0277]: the trait bound `AU16:
|
|
242
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
241
|
+
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
|
|
242
|
+
--> tests/ui-nightly/late_compile_pass.rs:79:10
|
|
243
243
|
|
|
|
244
|
-
|
|
244
|
+
79 | #[derive(Unaligned)]
|
|
245
245
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
246
246
|
|
|
|
247
|
-
help: the trait `
|
|
247
|
+
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
|
|
248
248
|
--> tests/ui-nightly/../include.rs
|
|
249
249
|
|
|
|
250
250
|
| pub struct AU16(pub u16);
|
|
251
251
|
| ^^^^^^^^^^^^^^^
|
|
252
252
|
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
|
|
253
|
-
= help: the following other types implement trait `
|
|
253
|
+
= help: the following other types implement trait `zerocopy_renamed::Unaligned`:
|
|
254
254
|
()
|
|
255
255
|
AtomicBool
|
|
256
256
|
AtomicI8
|
|
@@ -267,19 +267,19 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
267
267
|
9 + #![feature(trivial_bounds)]
|
|
268
268
|
|
|
|
269
269
|
|
|
270
|
-
error[E0277]: the trait bound `AU16:
|
|
271
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
270
|
+
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
|
|
271
|
+
--> tests/ui-nightly/late_compile_pass.rs:87:10
|
|
272
272
|
|
|
|
273
|
-
|
|
273
|
+
87 | #[derive(Unaligned)]
|
|
274
274
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
275
275
|
|
|
|
276
|
-
help: the trait `
|
|
276
|
+
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
|
|
277
277
|
--> tests/ui-nightly/../include.rs
|
|
278
278
|
|
|
|
279
279
|
| pub struct AU16(pub u16);
|
|
280
280
|
| ^^^^^^^^^^^^^^^
|
|
281
281
|
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
|
|
282
|
-
= help: the following other types implement trait `
|
|
282
|
+
= help: the following other types implement trait `zerocopy_renamed::Unaligned`:
|
|
283
283
|
()
|
|
284
284
|
AtomicBool
|
|
285
285
|
AtomicI8
|
|
@@ -296,36 +296,36 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
296
296
|
9 + #![feature(trivial_bounds)]
|
|
297
297
|
|
|
|
298
298
|
|
|
299
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
300
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
299
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::FromBytes` is not satisfied
|
|
300
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
301
301
|
|
|
|
302
|
-
|
|
302
|
+
49 | #[derive(FromBytes)]
|
|
303
303
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
304
304
|
|
|
|
305
|
-
help: the trait `
|
|
305
|
+
help: the trait `zerocopy_renamed::FromBytes` is not implemented for `NotZerocopy`
|
|
306
306
|
--> tests/ui-nightly/../include.rs
|
|
307
307
|
|
|
|
308
308
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
309
309
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
310
310
|
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
|
|
311
|
-
= help: the following other types implement trait `
|
|
311
|
+
= help: the following other types implement trait `zerocopy_renamed::FromBytes`:
|
|
312
312
|
()
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
313
|
+
(A, B)
|
|
314
|
+
(A, B, C)
|
|
315
|
+
(A, B, C, D)
|
|
316
|
+
(A, B, C, D, E)
|
|
317
|
+
(A, B, C, D, E, F)
|
|
318
|
+
(A, B, C, D, E, F, G)
|
|
319
|
+
(A, B, C, D, E, F, G, H)
|
|
320
320
|
and $N others
|
|
321
|
-
note: required for `FromBytes1` to implement `
|
|
322
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
321
|
+
note: required for `FromBytes1` to implement `zerocopy_renamed::FromBytes`
|
|
322
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
323
323
|
|
|
|
324
|
-
|
|
324
|
+
49 | #[derive(FromBytes)]
|
|
325
325
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
326
|
-
note: required by a bound in `_::<impl
|
|
327
|
-
--> tests/ui-nightly/late_compile_pass.rs:
|
|
326
|
+
note: required by a bound in `_::_::<impl zerocopy_renamed::TryFromBytes for FromBytes1>::is_bit_valid::assert_is_from_bytes`
|
|
327
|
+
--> tests/ui-nightly/late_compile_pass.rs:49:10
|
|
328
328
|
|
|
|
329
|
-
|
|
329
|
+
49 | #[derive(FromBytes)]
|
|
330
330
|
| ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
|
|
331
331
|
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
extern crate
|
|
9
|
+
extern crate zerocopy_renamed;
|
|
10
10
|
|
|
11
|
-
use
|
|
11
|
+
use zerocopy_renamed::KnownLayout;
|
|
12
12
|
|
|
13
13
|
fn main() {}
|
|
14
14
|
|
|
@@ -25,6 +25,7 @@ fn assert_kl<T: ?Sized + KnownLayout>(_: &T) {}
|
|
|
25
25
|
// | `repr(C)`? | generic? | `KnownLayout`? | `Sized`? | Type Name |
|
|
26
26
|
// | N | Y | N | N | KL04 |
|
|
27
27
|
#[derive(KnownLayout)]
|
|
28
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
28
29
|
struct KL04<T: ?Sized>(u8, T);
|
|
29
30
|
|
|
30
31
|
fn test_kl04<T: ?Sized>(kl: &KL04<T>) {
|
|
@@ -34,6 +35,7 @@ fn test_kl04<T: ?Sized>(kl: &KL04<T>) {
|
|
|
34
35
|
// | `repr(C)`? | generic? | `KnownLayout`? | `Sized`? | Type Name |
|
|
35
36
|
// | N | Y | Y | N | KL06 |
|
|
36
37
|
#[derive(KnownLayout)]
|
|
38
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
37
39
|
struct KL06<T: ?Sized + KnownLayout>(u8, T);
|
|
38
40
|
|
|
39
41
|
fn test_kl06<T: ?Sized + KnownLayout>(kl: &KL06<T>) {
|
|
@@ -43,6 +45,7 @@ fn test_kl06<T: ?Sized + KnownLayout>(kl: &KL06<T>) {
|
|
|
43
45
|
// | `repr(C)`? | generic? | `KnownLayout`? | `Sized`? | Type Name |
|
|
44
46
|
// | Y | Y | N | N | KL12 |
|
|
45
47
|
#[derive(KnownLayout)]
|
|
48
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
46
49
|
#[repr(C)]
|
|
47
50
|
struct KL12<T: ?Sized>(u8, T);
|
|
48
51
|
|
|
@@ -53,6 +56,7 @@ fn test_kl12<T: ?Sized>(kl: &KL12<T>) {
|
|
|
53
56
|
// | `repr(C)`? | generic? | `KnownLayout`? | `Sized`? | Type Name |
|
|
54
57
|
// | Y | Y | N | Y | KL13 |
|
|
55
58
|
#[derive(KnownLayout)]
|
|
59
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
56
60
|
#[repr(C)]
|
|
57
61
|
struct KL13<T>(u8, T);
|
|
58
62
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
error[E0277]: the trait bound `T: KnownLayout` is not satisfied
|
|
2
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
2
|
+
--> tests/ui-nightly/mid_compile_pass.rs:63:26
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
63 | fn test_kl13<T>(t: T) -> impl KnownLayout {
|
|
5
5
|
| ^^^^^^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `T`
|
|
6
|
-
|
|
6
|
+
64 | KL13(0u8, t)
|
|
7
7
|
| ------------ return type was inferred to be `KL13<T>` here
|
|
8
8
|
|
|
|
9
9
|
= note: Consider adding `#[derive(KnownLayout)]` to `T`
|
|
10
10
|
note: required for `KL13<T>` to implement `KnownLayout`
|
|
11
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
11
|
+
--> tests/ui-nightly/mid_compile_pass.rs:58:10
|
|
12
12
|
|
|
|
13
|
-
|
|
13
|
+
58 | #[derive(KnownLayout)]
|
|
14
14
|
| ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
15
15
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
16
16
|
help: consider restricting type parameter `T` with trait `KnownLayout`
|
|
17
17
|
|
|
|
18
|
-
|
|
19
|
-
|
|
|
18
|
+
63 | fn test_kl13<T: zerocopy_renamed::KnownLayout>(t: T) -> impl KnownLayout {
|
|
19
|
+
| +++++++++++++++++++++++++++++++
|
|
20
20
|
|
|
21
21
|
error[E0277]: the size for values of type `T` cannot be known at compilation time
|
|
22
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
22
|
+
--> tests/ui-nightly/mid_compile_pass.rs:32:15
|
|
23
23
|
|
|
|
24
|
-
|
|
24
|
+
31 | fn test_kl04<T: ?Sized>(kl: &KL04<T>) {
|
|
25
25
|
| - this type parameter needs to be `Sized`
|
|
26
|
-
|
|
26
|
+
32 | assert_kl(kl);
|
|
27
27
|
| --------- ^^ doesn't have a size known at compile-time
|
|
28
28
|
| |
|
|
29
29
|
| required by a bound introduced by this call
|
|
30
30
|
|
|
|
31
31
|
note: required because it appears within the type `KL04<T>`
|
|
32
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
32
|
+
--> tests/ui-nightly/mid_compile_pass.rs:29:8
|
|
33
33
|
|
|
|
34
|
-
|
|
34
|
+
29 | struct KL04<T: ?Sized>(u8, T);
|
|
35
35
|
| ^^^^
|
|
36
36
|
note: required for `KL04<T>` to implement `KnownLayout`
|
|
37
37
|
--> tests/ui-nightly/mid_compile_pass.rs:27:10
|
|
@@ -46,29 +46,29 @@ note: required by a bound in `assert_kl`
|
|
|
46
46
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
47
47
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
48
48
|
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
31 - fn test_kl04<T: ?Sized>(kl: &KL04<T>) {
|
|
50
|
+
31 + fn test_kl04<T>(kl: &KL04<T>) {
|
|
51
51
|
|
|
|
52
52
|
|
|
53
53
|
error[E0277]: the size for values of type `T` cannot be known at compilation time
|
|
54
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
54
|
+
--> tests/ui-nightly/mid_compile_pass.rs:42:15
|
|
55
55
|
|
|
|
56
|
-
|
|
56
|
+
41 | fn test_kl06<T: ?Sized + KnownLayout>(kl: &KL06<T>) {
|
|
57
57
|
| - this type parameter needs to be `Sized`
|
|
58
|
-
|
|
58
|
+
42 | assert_kl(kl);
|
|
59
59
|
| --------- ^^ doesn't have a size known at compile-time
|
|
60
60
|
| |
|
|
61
61
|
| required by a bound introduced by this call
|
|
62
62
|
|
|
|
63
63
|
note: required because it appears within the type `KL06<T>`
|
|
64
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
64
|
+
--> tests/ui-nightly/mid_compile_pass.rs:39:8
|
|
65
65
|
|
|
|
66
|
-
|
|
66
|
+
39 | struct KL06<T: ?Sized + KnownLayout>(u8, T);
|
|
67
67
|
| ^^^^
|
|
68
68
|
note: required for `KL06<T>` to implement `KnownLayout`
|
|
69
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
69
|
+
--> tests/ui-nightly/mid_compile_pass.rs:37:10
|
|
70
70
|
|
|
|
71
|
-
|
|
71
|
+
37 | #[derive(KnownLayout)]
|
|
72
72
|
| ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
73
73
|
note: required by a bound in `assert_kl`
|
|
74
74
|
--> tests/ui-nightly/mid_compile_pass.rs:23:26
|
|
@@ -78,22 +78,22 @@ note: required by a bound in `assert_kl`
|
|
|
78
78
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
79
79
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
80
80
|
|
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
41 - fn test_kl06<T: ?Sized + KnownLayout>(kl: &KL06<T>) {
|
|
82
|
+
41 + fn test_kl06<T: KnownLayout>(kl: &KL06<T>) {
|
|
83
83
|
|
|
|
84
84
|
|
|
85
85
|
error[E0277]: the trait bound `KL12<T>: KnownLayout` is not satisfied
|
|
86
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
86
|
+
--> tests/ui-nightly/mid_compile_pass.rs:53:15
|
|
87
87
|
|
|
|
88
|
-
|
|
88
|
+
53 | assert_kl(kl)
|
|
89
89
|
| --------- ^^ the trait `KnownLayout` is not implemented for `KL12<T>`
|
|
90
90
|
| |
|
|
91
91
|
| required by a bound introduced by this call
|
|
92
92
|
|
|
|
93
93
|
note: required for `KL12<T>` to implement `KnownLayout`
|
|
94
|
-
--> tests/ui-nightly/mid_compile_pass.rs:
|
|
94
|
+
--> tests/ui-nightly/mid_compile_pass.rs:47:10
|
|
95
95
|
|
|
|
96
|
-
|
|
96
|
+
47 | #[derive(KnownLayout)]
|
|
97
97
|
| ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
98
98
|
note: required by a bound in `assert_kl`
|
|
99
99
|
--> tests/ui-nightly/mid_compile_pass.rs:23:26
|
|
@@ -103,7 +103,7 @@ note: required by a bound in `assert_kl`
|
|
|
103
103
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
104
104
|
help: consider borrowing here
|
|
105
105
|
|
|
|
106
|
-
|
|
106
|
+
53 | assert_kl(&kl)
|
|
107
107
|
| +
|
|
108
|
-
|
|
108
|
+
53 | assert_kl(&mut kl)
|
|
109
109
|
| ++++
|