Raise minimum required compiler from 1.34 to 1.36
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Tolnay · committed by David Tolnay · parent 33ab02c · Browse files · 6 files·+9 added−28 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+9 added−28 removed
- other:+9 added−28 removed
Provenance
- Commit
9a6f1ac- Tree
2d6e41f- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
33ab02c
6 files changed+9 added−28 removed
modified:.github/workflows/ci.yml+2 added-9 removed
30 unmodified lines313233343535363738394041424343444546474849504445464730 unmodified lines30 unmodified lines - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.42.0 - run: cargo check --features backtrace
nostd: msrv: name: Rust 1.36.0 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.36.0 - run: cargo check - run: cargo check --no-default-features
msrv: name: Rust 1.34.0 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.34.0 - run: cargo check
windows: name: Windows runs-on: windows-latest steps:30 unmodified linesmodified:src/error.rs+1 added-1 removed
1-use crate::alloc::Box;1 use crate::backtrace::Backtrace;2 use crate::chain::Chain;3 #[cfg(any(feature = "std", anyhow_no_ptr_addr_of))]4 use crate::ptr::Mut;5 use crate::ptr::{Own, Ref};6 use crate::{Error, StdError};7+use alloc::boxed::Box;8 use core::any::TypeId;9 use core::fmt::{self, Debug, Display};10 use core::mem::ManuallyDrop;11 #[cfg(not(anyhow_no_ptr_addr_of))]956 unmodified linesmodified:src/lib.rs+3 added-15 removed
229 unmodified lines230 clippy::wildcard_imports,231 clippy::wrong_self_convention232 )]233 234-mod alloc {235- #[cfg(not(feature = "std"))]236- pub extern crate alloc;234+extern crate alloc;235 238- #[cfg(not(feature = "std"))]239- pub use alloc::boxed::Box;240-241- #[cfg(feature = "std")]242- pub use std::boxed::Box;243-}244-236 #[macro_use]237 mod backtrace;238 mod chain;239 mod context;378 unmodified lines618 pub use crate::{619 __anyhow_concat as concat, __anyhow_format as format, __anyhow_stringify as stringify,620 };621 #[cfg(not(anyhow_no_macro_reexport))]622+ pub use alloc::format;623+ #[cfg(not(anyhow_no_macro_reexport))]624 pub use core::{concat, stringify};625 633- #[cfg(all(not(anyhow_no_macro_reexport), not(feature = "std")))]634- pub use crate::alloc::alloc::format;635- #[cfg(all(not(anyhow_no_macro_reexport), feature = "std"))]636- pub use std::format;637-626 #[cfg(anyhow_no_macro_reexport)]627 #[doc(hidden)]628 #[macro_export]629 macro_rules! __anyhow_concat {23 unmodified linesmodified:src/ptr.rs+1 added-1 removed
1-use crate::alloc::Box;1+use alloc::boxed::Box;2 use core::marker::PhantomData;3 use core::ptr::NonNull;4 5 #[repr(transparent)]194 unmodified linesmodified:Cargo.toml+1 added-1 removed
12345667891020 unmodified lines[package]name = "anyhow"version = "1.0.45" # remember to update html_root_urlauthors = ["David Tolnay <dtolnay@gmail.com>"]edition = "2018"rust-version = "1.34"rust-version = "1.36"license = "MIT OR Apache-2.0"description = "Flexible concrete Error type built on std::error::Error"repository = "https://github.com/dtolnay/anyhow"documentation = "https://docs.rs/anyhow"20 unmodified linesmodified:README.md+1 added-1 removed
14 unmodified lines15 [dependencies]16 anyhow = "1.0"17 ```18 19-*Compiler support: requires rustc 1.34+*19+*Compiler support: requires rustc 1.36+*20 21 <br>22 23 ## Details159 unmodified lines