summaryrefslogtreecommitdiff
path: root/vendor/dyn-clone
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/dyn-clone')
-rw-r--r--vendor/dyn-clone/.cargo-checksum.json1
-rw-r--r--vendor/dyn-clone/Cargo.lock301
-rw-r--r--vendor/dyn-clone/Cargo.toml74
-rw-r--r--vendor/dyn-clone/LICENSE-APACHE176
-rw-r--r--vendor/dyn-clone/LICENSE-MIT23
-rw-r--r--vendor/dyn-clone/README.md89
-rw-r--r--vendor/dyn-clone/examples/readme.rs26
-rw-r--r--vendor/dyn-clone/src/lib.rs215
-rw-r--r--vendor/dyn-clone/src/macros.rs121
-rw-r--r--vendor/dyn-clone/tests/compiletest.rs7
-rw-r--r--vendor/dyn-clone/tests/macros.rs57
-rw-r--r--vendor/dyn-clone/tests/trait.rs65
-rw-r--r--vendor/dyn-clone/tests/ui/missing-supertrait.rs5
-rw-r--r--vendor/dyn-clone/tests/ui/missing-supertrait.stderr91
14 files changed, 1251 insertions, 0 deletions
diff --git a/vendor/dyn-clone/.cargo-checksum.json b/vendor/dyn-clone/.cargo-checksum.json
new file mode 100644
index 00000000..b0f25875
--- /dev/null
+++ b/vendor/dyn-clone/.cargo-checksum.json
@@ -0,0 +1 @@
+{"files":{"Cargo.lock":"eecfe07b271f88dc0174ad76bf973e631d64ef5dc88b32c5c48b961b71fea663","Cargo.toml":"c21fb28d78ccff44a3afa9a3fd13b1604ccccd4539e09e5facd93a19d3c37cfa","LICENSE-APACHE":"62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","README.md":"864fd84ec0dae30bc664133709c37a43f37a6af8912b756c6cb9663f5b38a082","examples/readme.rs":"b1ba0f1e1de54250c737347acc4853516ff54746e31646daff083b3ef21da3f9","src/lib.rs":"907665215f7b2ecdf11d13b91755c4d1ba6aeb319975ec4c2c00f7c010a69870","src/macros.rs":"c7d5a9ed757d28b5895096d52c6fcf3346ac6a069bbb6a6f93dde75f47dbe65d","tests/compiletest.rs":"4e381aa8ca3eabb7ac14d1e0c3700b3223e47640547a6988cfa13ad68255f60f","tests/macros.rs":"83342fca0bb0c94fb4956d2b7dbe230a36f6cf347686fc4c3c382b7e79cd8b22","tests/trait.rs":"3e0a3cc1fe502a9f72c7d48e2e9f8d85c873bac79d7e2db26e471bd156ae2fae","tests/ui/missing-supertrait.rs":"b93e0ef7d8e8fa6b90bcea66978071302a074e338d1141dd310773ede99f74b4","tests/ui/missing-supertrait.stderr":"f9d6e6d6ffcf50a174c498d2b241a6b0115327736dea1c0ab33c204856ff1d55"},"package":"1c7a8fb8a9fbf66c1f703fe16184d10ca0ee9d23be5b4436400408ba54a95005"} \ No newline at end of file
diff --git a/vendor/dyn-clone/Cargo.lock b/vendor/dyn-clone/Cargo.lock
new file mode 100644
index 00000000..14964a96
--- /dev/null
+++ b/vendor/dyn-clone/Cargo.lock
@@ -0,0 +1,301 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "dissimilar"
+version = "1.0.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8975ffdaa0ef3661bfe02dbdcc06c9f829dfafe6a3c474de366a8d5e44276921"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.19"
+dependencies = [
+ "rustversion",
+ "trybuild",
+]
+
+[[package]]
+name = "equivalent"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+
+[[package]]
+name = "glob"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
+
+[[package]]
+name = "hashbrown"
+version = "0.15.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
+
+[[package]]
+name = "indexmap"
+version = "2.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652"
+dependencies = [
+ "equivalent",
+ "hashbrown",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
+
+[[package]]
+name = "memchr"
+version = "2.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.94"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.39"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1f1914ce909e1658d9907913b4b91947430c7d9be598b15a1912935b8c04801"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
+
+[[package]]
+name = "ryu"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd"
+
+[[package]]
+name = "serde"
+version = "1.0.218"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.218"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.140"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
+dependencies = [
+ "itoa",
+ "memchr",
+ "ryu",
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.99"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e02e925281e18ffd9d640e234264753c43edc62d64b2d4cf898f1bc5e75f3fc2"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "target-triple"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ac9aa371f599d22256307c24a9d748c041e548cbf599f35d890f9d365361790"
+
+[[package]]
+name = "termcolor"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "toml"
+version = "0.8.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148"
+dependencies = [
+ "serde",
+ "serde_spanned",
+ "toml_datetime",
+ "toml_edit",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.22.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474"
+dependencies = [
+ "indexmap",
+ "serde",
+ "serde_spanned",
+ "toml_datetime",
+ "winnow",
+]
+
+[[package]]
+name = "trybuild"
+version = "1.0.103"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b812699e0c4f813b872b373a4471717d9eb550da14b311058a4d9cf4173cbca6"
+dependencies = [
+ "dissimilar",
+ "glob",
+ "serde",
+ "serde_derive",
+ "serde_json",
+ "target-triple",
+ "termcolor",
+ "toml",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
+dependencies = [
+ "windows-sys",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm",
+ "windows_aarch64_msvc",
+ "windows_i686_gnu",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc",
+ "windows_x86_64_gnu",
+ "windows_x86_64_gnullvm",
+ "windows_x86_64_msvc",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "winnow"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e7f4ea97f6f78012141bcdb6a216b2609f0979ada50b20ca5b52dde2eac2bb1"
+dependencies = [
+ "memchr",
+]
diff --git a/vendor/dyn-clone/Cargo.toml b/vendor/dyn-clone/Cargo.toml
new file mode 100644
index 00000000..d2e75991
--- /dev/null
+++ b/vendor/dyn-clone/Cargo.toml
@@ -0,0 +1,74 @@
+# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
+#
+# When uploading crates to the registry Cargo will automatically
+# "normalize" Cargo.toml files for maximal compatibility
+# with all versions of Cargo and also rewrite `path` dependencies
+# to registry (e.g., crates.io) dependencies.
+#
+# If you are reading this file be aware that the original Cargo.toml
+# will likely look very different (and much more reasonable).
+# See Cargo.toml.orig for the original contents.
+
+[package]
+edition = "2018"
+rust-version = "1.45"
+name = "dyn-clone"
+version = "1.0.19"
+authors = ["David Tolnay <dtolnay@gmail.com>"]
+build = false
+autolib = false
+autobins = false
+autoexamples = false
+autotests = false
+autobenches = false
+description = "Clone trait that is dyn-compatible"
+documentation = "https://docs.rs/dyn-clone"
+readme = "README.md"
+keywords = [
+ "dyn",
+ "clone",
+ "trait-object",
+ "object-safe",
+]
+categories = [
+ "rust-patterns",
+ "no-std",
+]
+license = "MIT OR Apache-2.0"
+repository = "https://github.com/dtolnay/dyn-clone"
+
+[package.metadata.docs.rs]
+rustdoc-args = [
+ "--generate-link-to-definition",
+ "--extern-html-root-url=core=https://doc.rust-lang.org",
+ "--extern-html-root-url=alloc=https://doc.rust-lang.org",
+ "--extern-html-root-url=std=https://doc.rust-lang.org",
+]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[lib]
+name = "dyn_clone"
+path = "src/lib.rs"
+
+[[example]]
+name = "readme"
+path = "examples/readme.rs"
+
+[[test]]
+name = "compiletest"
+path = "tests/compiletest.rs"
+
+[[test]]
+name = "macros"
+path = "tests/macros.rs"
+
+[[test]]
+name = "trait"
+path = "tests/trait.rs"
+
+[dev-dependencies.rustversion]
+version = "1.0"
+
+[dev-dependencies.trybuild]
+version = "1.0.66"
+features = ["diff"]
diff --git a/vendor/dyn-clone/LICENSE-APACHE b/vendor/dyn-clone/LICENSE-APACHE
new file mode 100644
index 00000000..1b5ec8b7
--- /dev/null
+++ b/vendor/dyn-clone/LICENSE-APACHE
@@ -0,0 +1,176 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
diff --git a/vendor/dyn-clone/LICENSE-MIT b/vendor/dyn-clone/LICENSE-MIT
new file mode 100644
index 00000000..31aa7938
--- /dev/null
+++ b/vendor/dyn-clone/LICENSE-MIT
@@ -0,0 +1,23 @@
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/vendor/dyn-clone/README.md b/vendor/dyn-clone/README.md
new file mode 100644
index 00000000..780c4f75
--- /dev/null
+++ b/vendor/dyn-clone/README.md
@@ -0,0 +1,89 @@
+Clone trait that is dyn-compatible
+==================================
+
+[<img alt="github" src="https://img.shields.io/badge/github-dtolnay/dyn--clone-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/dtolnay/dyn-clone)
+[<img alt="crates.io" src="https://img.shields.io/crates/v/dyn-clone.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/dyn-clone)
+[<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-dyn--clone-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height="20">](https://docs.rs/dyn-clone)
+[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/dtolnay/dyn-clone/ci.yml?branch=master&style=for-the-badge" height="20">](https://github.com/dtolnay/dyn-clone/actions?query=branch%3Amaster)
+
+This crate provides a `DynClone` trait that can be used in trait objects, and a
+`clone_box` function that can clone any sized or dynamically sized
+implementation of `DynClone`. Types that implement the standard library's
+[`std::clone::Clone`] trait are automatically usable by a `DynClone` trait
+object.
+
+[`std::clone::Clone`]: https://doc.rust-lang.org/std/clone/trait.Clone.html
+
+The signature of `clone_box` is:
+
+```rust
+fn clone_box<T>(t: &T) -> Box<T>
+where
+ T: ?Sized + DynClone
+```
+
+## Example
+
+```rust
+use dyn_clone::DynClone;
+
+trait MyTrait: DynClone {
+ fn recite(&self);
+}
+
+impl MyTrait for String {
+ fn recite(&self) {
+ println!("{} ♫", self);
+ }
+}
+
+fn main() {
+ let line = "The slithy structs did gyre and gimble the namespace";
+
+ // Build a trait object holding a String.
+ // This requires String to implement MyTrait and std::clone::Clone.
+ let x: Box<dyn MyTrait> = Box::new(String::from(line));
+
+ x.recite();
+
+ // The type of x2 is a Box<dyn MyTrait> cloned from x.
+ let x2 = dyn_clone::clone_box(&*x);
+
+ x2.recite();
+}
+```
+
+This crate includes a macro for generating the implementation `impl
+std::clone::Clone for Box<dyn MyTrait>` in terms of `dyn_clone::clone_box`:
+
+```rust
+// As before.
+trait MyTrait: DynClone {
+ /* ... */
+}
+
+dyn_clone::clone_trait_object!(MyTrait);
+
+// Now data structures containing Box<dyn MyTrait> can derive Clone:
+#[derive(Clone)]
+struct Container {
+ trait_object: Box<dyn MyTrait>,
+}
+```
+
+<br>
+
+#### License
+
+<sup>
+Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
+2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
+</sup>
+
+<br>
+
+<sub>
+Unless you explicitly state otherwise, any contribution intentionally submitted
+for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
+be dual licensed as above, without any additional terms or conditions.
+</sub>
diff --git a/vendor/dyn-clone/examples/readme.rs b/vendor/dyn-clone/examples/readme.rs
new file mode 100644
index 00000000..41682cd1
--- /dev/null
+++ b/vendor/dyn-clone/examples/readme.rs
@@ -0,0 +1,26 @@
+use dyn_clone::DynClone;
+
+trait MyTrait: DynClone {
+ fn recite(&self);
+}
+
+impl MyTrait for String {
+ fn recite(&self) {
+ println!("{} ♫", self);
+ }
+}
+
+fn main() {
+ let line = "The slithy structs did gyre and gimble the namespace";
+
+ // Build a trait object holding a String.
+ // This requires String to implement MyTrait and std::clone::Clone.
+ let x: Box<dyn MyTrait> = Box::new(String::from(line));
+
+ x.recite();
+
+ // The type of x2 is a Box<dyn MyTrait> cloned from x.
+ let x2 = dyn_clone::clone_box(&*x);
+
+ x2.recite();
+}
diff --git a/vendor/dyn-clone/src/lib.rs b/vendor/dyn-clone/src/lib.rs
new file mode 100644
index 00000000..e35e1089
--- /dev/null
+++ b/vendor/dyn-clone/src/lib.rs
@@ -0,0 +1,215 @@
+//! [![github]](https://github.com/dtolnay/dyn-clone)&ensp;[![crates-io]](https://crates.io/crates/dyn-clone)&ensp;[![docs-rs]](https://docs.rs/dyn-clone)
+//!
+//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
+//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
+//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
+//!
+//! <br>
+//!
+//! This crate provides a [`DynClone`] trait that can be used in trait objects,
+//! and a [`clone_box`] function that can clone any sized or dynamically sized
+//! implementation of `DynClone`. Types that implement the standard library's
+//! [`std::clone::Clone`] trait are automatically usable by a `DynClone` trait
+//! object.
+//!
+//! # Example
+//!
+//! ```
+//! use dyn_clone::DynClone;
+//!
+//! trait MyTrait: DynClone {
+//! fn recite(&self);
+//! }
+//!
+//! impl MyTrait for String {
+//! fn recite(&self) {
+//! println!("{} ♫", self);
+//! }
+//! }
+//!
+//! fn main() {
+//! let line = "The slithy structs did gyre and gimble the namespace";
+//!
+//! // Build a trait object holding a String.
+//! // This requires String to implement MyTrait and std::clone::Clone.
+//! let x: Box<dyn MyTrait> = Box::new(String::from(line));
+//!
+//! x.recite();
+//!
+//! // The type of x2 is a Box<dyn MyTrait> cloned from x.
+//! let x2 = dyn_clone::clone_box(&*x);
+//!
+//! x2.recite();
+//! }
+//! ```
+//!
+//! This crate includes a macro for concisely implementing `impl
+//! std::clone::Clone for Box<dyn MyTrait>` in terms of `dyn_clone::clone_box`.
+//!
+//! ```
+//! # use dyn_clone::DynClone;
+//! #
+//! // As before.
+//! trait MyTrait: DynClone {
+//! /* ... */
+//! }
+//!
+//! dyn_clone::clone_trait_object!(MyTrait);
+//!
+//! // Now data structures containing Box<dyn MyTrait> can derive Clone:
+//! #[derive(Clone)]
+//! struct Container {
+//! trait_object: Box<dyn MyTrait>,
+//! }
+//! ```
+//!
+//! The `clone_trait_object!` macro expands to just the following, which you can
+//! handwrite instead if you prefer:
+//!
+//! ```
+//! # use dyn_clone::DynClone;
+//! #
+//! # trait MyTrait: DynClone {}
+//! #
+//! impl Clone for Box<dyn MyTrait> {
+//! fn clone(&self) -> Self {
+//! dyn_clone::clone_box(&**self)
+//! }
+//! }
+//!
+//! // and similar for Box<dyn MyTrait + Send>, Box<dyn MyTrait + Sync>, Box<dyn MyTrait + Send + Sync>
+//! ```
+
+#![doc(html_root_url = "https://docs.rs/dyn-clone/1.0.19")]
+#![no_std]
+#![allow(
+ clippy::missing_panics_doc,
+ clippy::needless_doctest_main,
+ clippy::ptr_as_ptr
+)]
+
+extern crate alloc;
+
+#[cfg(doc)]
+extern crate core as std;
+
+#[macro_use]
+mod macros;
+
+// Not public API.
+#[doc(hidden)]
+pub mod __private {
+ #[doc(hidden)]
+ pub use core::clone::Clone;
+ #[doc(hidden)]
+ pub use core::marker::{Send, Sync};
+
+ #[doc(hidden)]
+ pub type Box<T> = alloc::boxed::Box<T>;
+}
+
+mod sealed {
+ pub trait Sealed {}
+ impl<T: Clone> Sealed for T {}
+ impl Sealed for str {}
+ impl<T: Clone> Sealed for [T] {}
+ pub struct Private;
+}
+
+use crate::sealed::{Private, Sealed};
+use alloc::boxed::Box;
+use alloc::rc::Rc;
+use alloc::sync::Arc;
+
+/// This trait is implemented by any type that implements [`std::clone::Clone`].
+pub trait DynClone: Sealed {
+ // Not public API
+ #[doc(hidden)]
+ fn __clone_box(&self, _: Private) -> *mut ();
+}
+
+/// `&T`&ensp;&mdash;&blacktriangleright;&ensp;`T`
+pub fn clone<T>(t: &T) -> T
+where
+ T: DynClone,
+{
+ unsafe { *Box::from_raw(<T as DynClone>::__clone_box(t, Private) as *mut T) }
+}
+
+/// `&T`&ensp;&mdash;&blacktriangleright;&ensp;`Box<T>`
+pub fn clone_box<T>(t: &T) -> Box<T>
+where
+ T: ?Sized + DynClone,
+{
+ let mut fat_ptr = t as *const T;
+ unsafe {
+ let data_ptr = &mut fat_ptr as *mut *const T as *mut *mut ();
+ assert_eq!(*data_ptr as *const (), t as *const T as *const ());
+ *data_ptr = <T as DynClone>::__clone_box(t, Private);
+ }
+ unsafe { Box::from_raw(fat_ptr as *mut T) }
+}
+
+/// `&mut Arc<T>`&ensp;&mdash;&blacktriangleright;&ensp;`&mut T`
+pub fn arc_make_mut<T>(arc: &mut Arc<T>) -> &mut T
+where
+ T: ?Sized + DynClone,
+{
+ // Atomic. Find out whether the Arc in the argument is the single holder of
+ // a reference count (strong or weak) on the target object. If yes, it is
+ // guaranteed to remain that way throughout the rest of this function
+ // because no other threads could bump the reference count through any other
+ // Arc (because no others exist) or through this Arc (because the current
+ // thread holds an exclusive borrow of it).
+ let is_unique = Arc::get_mut(arc).is_some();
+ if !is_unique {
+ // Non-atomic.
+ let clone = Arc::from(clone_box(&**arc));
+ // Atomic. Check the reference counts again to find out whether the old
+ // object needs to be dropped. Probably not, but it can happen if all
+ // the other holders of a reference count went away during the time that
+ // the clone operation took.
+ *arc = clone;
+ }
+ // Non-atomic. TODO: replace with Arc::get_mut_unchecked when stable.
+ let ptr = Arc::as_ptr(arc) as *mut T;
+ unsafe { &mut *ptr }
+}
+
+/// `&mut Rc<T>`&ensp;&mdash;&blacktriangleright;&ensp;`&mut T`
+pub fn rc_make_mut<T>(rc: &mut Rc<T>) -> &mut T
+where
+ T: ?Sized + DynClone,
+{
+ let is_unique = Rc::get_mut(rc).is_some();
+ if !is_unique {
+ let clone = Rc::from(clone_box(&**rc));
+ *rc = clone;
+ }
+ let ptr = Rc::as_ptr(rc) as *mut T;
+ unsafe { &mut *ptr }
+}
+
+impl<T> DynClone for T
+where
+ T: Clone,
+{
+ fn __clone_box(&self, _: Private) -> *mut () {
+ Box::<T>::into_raw(Box::new(self.clone())) as *mut ()
+ }
+}
+
+impl DynClone for str {
+ fn __clone_box(&self, _: Private) -> *mut () {
+ Box::<str>::into_raw(Box::from(self)) as *mut ()
+ }
+}
+
+impl<T> DynClone for [T]
+where
+ T: Clone,
+{
+ fn __clone_box(&self, _: Private) -> *mut () {
+ Box::<[T]>::into_raw(self.iter().cloned().collect()) as *mut ()
+ }
+}
diff --git a/vendor/dyn-clone/src/macros.rs b/vendor/dyn-clone/src/macros.rs
new file mode 100644
index 00000000..b4c09606
--- /dev/null
+++ b/vendor/dyn-clone/src/macros.rs
@@ -0,0 +1,121 @@
+use crate::DynClone;
+
+/// Implement the standard library `Clone` for a trait object that has
+/// `DynClone` as a supertrait.
+///
+/// ```
+/// use dyn_clone::DynClone;
+///
+/// trait MyTrait: DynClone {
+/// /* ... */
+/// }
+///
+/// dyn_clone::clone_trait_object!(MyTrait);
+///
+/// // Now data structures containing Box<dyn MyTrait> can derive Clone.
+/// #[derive(Clone)]
+/// struct Container {
+/// trait_object: Box<dyn MyTrait>,
+/// }
+/// ```
+///
+/// The macro supports traits that have type parameters and/or `where` clauses.
+///
+/// ```
+/// use dyn_clone::DynClone;
+/// use std::io::Read;
+///
+/// trait Difficult<R>: DynClone where R: Read {
+/// /* ... */
+/// }
+///
+/// dyn_clone::clone_trait_object!(<R> Difficult<R> where R: Read);
+/// ```
+#[macro_export]
+macro_rules! clone_trait_object {
+ ($($path:tt)+) => {
+ $crate::__internal_clone_trait_object!(begin $($path)+);
+ };
+}
+
+#[doc(hidden)]
+#[macro_export]
+macro_rules! __internal_clone_trait_object {
+ // Invocation started with `<`, parse generics.
+ (begin < $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(generics () () $($rest)*);
+ };
+
+ // Invocation did not start with `<`.
+ (begin $first:tt $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(path () ($first) $($rest)*);
+ };
+
+ // End of generics.
+ (generics ($($generics:tt)*) () > $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(path ($($generics)*) () $($rest)*);
+ };
+
+ // Generics open bracket.
+ (generics ($($generics:tt)*) ($($brackets:tt)*) < $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(generics ($($generics)* <) ($($brackets)* <) $($rest)*);
+ };
+
+ // Generics close bracket.
+ (generics ($($generics:tt)*) (< $($brackets:tt)*) > $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(generics ($($generics)* >) ($($brackets)*) $($rest)*);
+ };
+
+ // Token inside of generics.
+ (generics ($($generics:tt)*) ($($brackets:tt)*) $first:tt $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(generics ($($generics)* $first) ($($brackets)*) $($rest)*);
+ };
+
+ // End with `where` clause.
+ (path ($($generics:tt)*) ($($path:tt)*) where $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(impl ($($generics)*) ($($path)*) ($($rest)*));
+ };
+
+ // End without `where` clause.
+ (path ($($generics:tt)*) ($($path:tt)*)) => {
+ $crate::__internal_clone_trait_object!(impl ($($generics)*) ($($path)*) ());
+ };
+
+ // Token inside of path.
+ (path ($($generics:tt)*) ($($path:tt)*) $first:tt $($rest:tt)*) => {
+ $crate::__internal_clone_trait_object!(path ($($generics)*) ($($path)* $first) $($rest)*);
+ };
+
+ // The impl.
+ (impl ($($generics:tt)*) ($($path:tt)*) ($($bound:tt)*)) => {
+ #[allow(unknown_lints, non_local_definitions)] // false positive: https://github.com/rust-lang/rust/issues/121621
+ impl<'clone, $($generics)*> $crate::__private::Clone for $crate::__private::Box<dyn $($path)* + 'clone> where $($bound)* {
+ fn clone(&self) -> Self {
+ $crate::clone_box(&**self)
+ }
+ }
+
+ #[allow(unknown_lints, non_local_definitions)]
+ impl<'clone, $($generics)*> $crate::__private::Clone for $crate::__private::Box<dyn $($path)* + $crate::__private::Send + 'clone> where $($bound)* {
+ fn clone(&self) -> Self {
+ $crate::clone_box(&**self)
+ }
+ }
+
+ #[allow(unknown_lints, non_local_definitions)]
+ impl<'clone, $($generics)*> $crate::__private::Clone for $crate::__private::Box<dyn $($path)* + $crate::__private::Sync + 'clone> where $($bound)* {
+ fn clone(&self) -> Self {
+ $crate::clone_box(&**self)
+ }
+ }
+
+ #[allow(unknown_lints, non_local_definitions)]
+ impl<'clone, $($generics)*> $crate::__private::Clone for $crate::__private::Box<dyn $($path)* + $crate::__private::Send + $crate::__private::Sync + 'clone> where $($bound)* {
+ fn clone(&self) -> Self {
+ $crate::clone_box(&**self)
+ }
+ }
+ };
+}
+
+clone_trait_object!(DynClone);
diff --git a/vendor/dyn-clone/tests/compiletest.rs b/vendor/dyn-clone/tests/compiletest.rs
new file mode 100644
index 00000000..23a6a065
--- /dev/null
+++ b/vendor/dyn-clone/tests/compiletest.rs
@@ -0,0 +1,7 @@
+#[rustversion::attr(not(nightly), ignore = "requires nightly")]
+#[cfg_attr(miri, ignore = "incompatible with miri")]
+#[test]
+fn ui() {
+ let t = trybuild::TestCases::new();
+ t.compile_fail("tests/ui/*.rs");
+}
diff --git a/vendor/dyn-clone/tests/macros.rs b/vendor/dyn-clone/tests/macros.rs
new file mode 100644
index 00000000..3b585cec
--- /dev/null
+++ b/vendor/dyn-clone/tests/macros.rs
@@ -0,0 +1,57 @@
+#![allow(clippy::extra_unused_type_parameters)]
+
+use dyn_clone::{clone_trait_object, DynClone};
+
+fn assert_clone<T: Clone>() {}
+
+#[test]
+fn test_plain() {
+ trait Trait: DynClone {}
+
+ clone_trait_object!(Trait);
+
+ assert_clone::<Box<dyn Trait>>();
+ assert_clone::<Box<dyn Trait + Send>>();
+ assert_clone::<Box<dyn Trait + Sync>>();
+ assert_clone::<Box<dyn Trait + Send + Sync>>();
+}
+
+#[test]
+fn test_type_parameter() {
+ trait Trait<T>: DynClone {}
+
+ clone_trait_object!(<T> Trait<T>);
+
+ assert_clone::<Box<dyn Trait<u32>>>();
+}
+
+#[test]
+fn test_generic_bound() {
+ trait Trait<T: PartialEq<T>, U>: DynClone {}
+
+ clone_trait_object!(<T: PartialEq<T>, U> Trait<T, U>);
+
+ assert_clone::<Box<dyn Trait<u32, ()>>>();
+}
+
+#[test]
+fn test_where_clause() {
+ trait Trait<T>: DynClone
+ where
+ T: Clone,
+ {
+ }
+
+ clone_trait_object!(<T> Trait<T> where T: Clone);
+
+ assert_clone::<Box<dyn Trait<u32>>>();
+}
+
+#[test]
+fn test_lifetime() {
+ trait Trait<'a>: DynClone {}
+
+ clone_trait_object!(<'a> Trait<'a>);
+
+ assert_clone::<Box<dyn Trait>>();
+}
diff --git a/vendor/dyn-clone/tests/trait.rs b/vendor/dyn-clone/tests/trait.rs
new file mode 100644
index 00000000..e155f045
--- /dev/null
+++ b/vendor/dyn-clone/tests/trait.rs
@@ -0,0 +1,65 @@
+use dyn_clone::DynClone;
+use std::fmt::{self, Display};
+use std::sync::{Arc, Mutex};
+
+struct Log {
+ id: u64,
+ events: Arc<Mutex<Vec<String>>>,
+}
+
+impl Clone for Log {
+ fn clone(&self) -> Self {
+ Log {
+ id: self.id + 1,
+ events: self.events.clone(),
+ }
+ }
+}
+
+impl Display for Log {
+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+ write!(formatter, "id={}", self.id)
+ }
+}
+
+impl Drop for Log {
+ fn drop(&mut self) {
+ self.events
+ .lock()
+ .unwrap()
+ .push(format!("dropping {}", self));
+ }
+}
+
+#[test]
+fn clone_sized() {
+ let arc = Arc::new(0);
+ assert_eq!(Arc::strong_count(&arc), 1);
+
+ let c = dyn_clone::clone(&arc);
+ assert_eq!(Arc::strong_count(&arc), 2);
+ drop(c);
+ assert_eq!(Arc::strong_count(&arc), 1);
+}
+
+#[test]
+fn clone_trait_object() {
+ trait MyTrait: Display + Sync + DynClone {}
+
+ impl MyTrait for Log {}
+
+ let events = Arc::new(Mutex::new(Vec::new()));
+ let mut expected = Vec::new();
+ {
+ let b11: Box<dyn MyTrait> = Box::new(Log {
+ id: 11,
+ events: events.clone(),
+ });
+ let b12 = dyn_clone::clone_box(&*b11);
+ assert_eq!(b11.to_string(), "id=11");
+ assert_eq!(b12.to_string(), "id=12");
+ expected.push("dropping id=12".to_owned());
+ expected.push("dropping id=11".to_owned());
+ }
+ assert_eq!(*events.lock().unwrap(), expected);
+}
diff --git a/vendor/dyn-clone/tests/ui/missing-supertrait.rs b/vendor/dyn-clone/tests/ui/missing-supertrait.rs
new file mode 100644
index 00000000..db61b3f3
--- /dev/null
+++ b/vendor/dyn-clone/tests/ui/missing-supertrait.rs
@@ -0,0 +1,5 @@
+pub trait MyTrait {}
+
+dyn_clone::clone_trait_object!(MyTrait);
+
+fn main() {}
diff --git a/vendor/dyn-clone/tests/ui/missing-supertrait.stderr b/vendor/dyn-clone/tests/ui/missing-supertrait.stderr
new file mode 100644
index 00000000..593d4923
--- /dev/null
+++ b/vendor/dyn-clone/tests/ui/missing-supertrait.stderr
@@ -0,0 +1,91 @@
+error[E0277]: the trait bound `dyn MyTrait: DynClone` is not satisfied
+ --> tests/ui/missing-supertrait.rs:3:1
+ |
+3 | dyn_clone::clone_trait_object!(MyTrait);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | the trait `Clone` is not implemented for `dyn MyTrait`
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `DynClone`:
+ [T]
+ str
+ = note: required for `dyn MyTrait` to implement `DynClone`
+note: required by a bound in `clone_box`
+ --> src/lib.rs
+ |
+ | pub fn clone_box<T>(t: &T) -> Box<T>
+ | --------- required by a bound in this function
+ | where
+ | T: ?Sized + DynClone,
+ | ^^^^^^^^ required by this bound in `clone_box`
+ = note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0277]: the trait bound `dyn MyTrait + Send: DynClone` is not satisfied
+ --> tests/ui/missing-supertrait.rs:3:1
+ |
+3 | dyn_clone::clone_trait_object!(MyTrait);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | the trait `Clone` is not implemented for `dyn MyTrait + Send`
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `DynClone`:
+ [T]
+ str
+ = note: required for `dyn MyTrait + Send` to implement `DynClone`
+note: required by a bound in `clone_box`
+ --> src/lib.rs
+ |
+ | pub fn clone_box<T>(t: &T) -> Box<T>
+ | --------- required by a bound in this function
+ | where
+ | T: ?Sized + DynClone,
+ | ^^^^^^^^ required by this bound in `clone_box`
+ = note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0277]: the trait bound `dyn MyTrait + Sync: DynClone` is not satisfied
+ --> tests/ui/missing-supertrait.rs:3:1
+ |
+3 | dyn_clone::clone_trait_object!(MyTrait);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | the trait `Clone` is not implemented for `dyn MyTrait + Sync`
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `DynClone`:
+ [T]
+ str
+ = note: required for `dyn MyTrait + Sync` to implement `DynClone`
+note: required by a bound in `clone_box`
+ --> src/lib.rs
+ |
+ | pub fn clone_box<T>(t: &T) -> Box<T>
+ | --------- required by a bound in this function
+ | where
+ | T: ?Sized + DynClone,
+ | ^^^^^^^^ required by this bound in `clone_box`
+ = note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0277]: the trait bound `dyn MyTrait + Send + Sync: DynClone` is not satisfied
+ --> tests/ui/missing-supertrait.rs:3:1
+ |
+3 | dyn_clone::clone_trait_object!(MyTrait);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | the trait `Clone` is not implemented for `dyn MyTrait + Send + Sync`
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `DynClone`:
+ [T]
+ str
+ = note: required for `dyn MyTrait + Send + Sync` to implement `DynClone`
+note: required by a bound in `clone_box`
+ --> src/lib.rs
+ |
+ | pub fn clone_box<T>(t: &T) -> Box<T>
+ | --------- required by a bound in this function
+ | where
+ | T: ?Sized + DynClone,
+ | ^^^^^^^^ required by this bound in `clone_box`
+ = note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)