diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2023-02-15 22:48:20 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-02-15 22:48:20 +0000 |
commit | 8faf64a2f72894979098823d362254310c658f00 (patch) | |
tree | 79d4b12c3aad3a79424b078688b4dfb8834f046b | |
parent | bc40dab35be74d9eaa119756a985a21a632a06b7 (diff) | |
parent | 4b6495aee1474126a5bb6a43811c088965e2c9af (diff) | |
download | anyhow-8faf64a2f72894979098823d362254310c658f00.tar.gz |
Upgrade anyhow to 1.0.69 am: 7f0c186420 am: 4b6495aee1
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/anyhow/+/2438284
Change-Id: I78bb3b9ea85849e856271c2ae4c8a21314203ef9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 15 | ||||
-rw-r--r-- | Android.bp | 16 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | LICENSE-APACHE | 25 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/lib.rs | 4 | ||||
-rw-r--r-- | tests/test_chain.rs | 1 |
9 files changed, 25 insertions, 50 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index c723f9d..4958ce0 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,6 +1,6 @@ { "git": { - "sha1": "867763b8fce65656a754d8e0d84f0aa1c610613a" + "sha1": "58377abfea67601caf6a7051de082484717fe79f" }, "path_in_vcs": "" }
\ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02f72f5..198a836 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,18 @@ env: RUSTFLAGS: -Dwarnings jobs: + pre_ci: + uses: dtolnay/.github/.github/workflows/pre_ci.yml@master + test: name: Rust ${{matrix.rust}} + needs: pre_ci + if: needs.pre_ci.outputs.continue runs-on: ubuntu-latest strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.56.0] + rust: [nightly, beta, stable, 1.60.0] timeout-minutes: 45 steps: - uses: actions/checkout@v3 @@ -32,6 +37,8 @@ jobs: build: name: Rust ${{matrix.rust}} + needs: pre_ci + if: needs.pre_ci.outputs.continue runs-on: ubuntu-latest strategy: fail-fast: false @@ -46,11 +53,11 @@ jobs: components: rust-src - run: cargo check - run: cargo check --no-default-features - - run: cargo check --features backtrace - if: matrix.rust != '1.39.0' && matrix.rust != '1.50.0' windows: name: Windows + needs: pre_ci + if: needs.pre_ci.outputs.continue runs-on: windows-latest timeout-minutes: 45 steps: @@ -74,6 +81,8 @@ jobs: miri: name: Miri + needs: pre_ci + if: needs.pre_ci.outputs.continue runs-on: ubuntu-latest timeout-minutes: 45 steps: @@ -42,7 +42,7 @@ rust_test { host_supported: true, crate_name: "anyhow", cargo_env_compat: true, - cargo_pkg_version: "1.0.68", + cargo_pkg_version: "1.0.69", srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, @@ -64,7 +64,7 @@ rust_defaults { name: "anyhow_test_defaults", crate_name: "anyhow", cargo_env_compat: true, - cargo_pkg_version: "1.0.68", + cargo_pkg_version: "1.0.69", test_suites: ["general-tests"], auto_gen_config: true, edition: "2018", @@ -140,16 +140,6 @@ rust_test { } rust_test { - name: "anyhow_test_tests_test_ffi", - defaults: ["anyhow_test_defaults"], - host_supported: true, - srcs: ["tests/test_ffi.rs"], - test_options: { - unit_test: true, - }, -} - -rust_test { name: "anyhow_test_tests_test_fmt", defaults: ["anyhow_test_defaults"], host_supported: true, @@ -194,7 +184,7 @@ rust_library { host_supported: true, crate_name: "anyhow", cargo_env_compat: true, - cargo_pkg_version: "1.0.68", + cargo_pkg_version: "1.0.69", srcs: ["src/lib.rs"], edition: "2018", features: [ @@ -13,7 +13,7 @@ edition = "2018" rust-version = "1.39" name = "anyhow" -version = "1.0.68" +version = "1.0.69" authors = ["David Tolnay <dtolnay@gmail.com>"] description = "Flexible concrete Error type built on std::error::Error" documentation = "https://docs.rs/anyhow" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 952219e..b16323b 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "anyhow" -version = "1.0.68" # remember to update html_root_url +version = "1.0.69" # remember to update html_root_url authors = ["David Tolnay <dtolnay@gmail.com>"] categories = ["rust-patterns", "no-std"] description = "Flexible concrete Error type built on std::error::Error" diff --git a/LICENSE-APACHE b/LICENSE-APACHE index 16fe87b..1b5ec8b 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -174,28 +174,3 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. @@ -11,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/anyhow/anyhow-1.0.68.crate" + value: "https://static.crates.io/crates/anyhow/anyhow-1.0.69.crate" } - version: "1.0.68" + version: "1.0.69" license_type: NOTICE last_upgrade_date { year: 2023 - month: 1 - day: 17 + month: 2 + day: 15 } } @@ -210,7 +210,7 @@ //! will require an explicit `.map_err(Error::msg)` when working with a //! non-Anyhow error type inside a function that returns Anyhow's error type. -#![doc(html_root_url = "https://docs.rs/anyhow/1.0.68")] +#![doc(html_root_url = "https://docs.rs/anyhow/1.0.69")] #![cfg_attr(backtrace, feature(error_generic_member_access, provide_any))] #![cfg_attr(doc_cfg, feature(doc_cfg))] #![cfg_attr(not(feature = "std"), no_std)] @@ -367,7 +367,7 @@ pub use anyhow as format_err; /// # Ok(()) /// } /// ``` -#[repr(transparent)] +#[cfg_attr(not(doc), repr(transparent))] pub struct Error { inner: Own<ErrorImpl>, } diff --git a/tests/test_chain.rs b/tests/test_chain.rs index 47d98af..c8b901a 100644 --- a/tests/test_chain.rs +++ b/tests/test_chain.rs @@ -56,6 +56,7 @@ fn test_default() { } #[test] +#[allow(clippy::redundant_clone)] fn test_clone() { let e = error(); let mut chain = e.chain().clone(); |