Merge pull request #179 from dtolnay/up
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Raise minimum required compiler from 1.36 to 1.38
authored by David Tolnay · committed by GitHub · parents 3c586dd, 5518a9e · Browse files · 5 files·+6 added−44 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+6 added−44 removed
- other:+6 added−44 removed
Provenance
- Commit
cd03064- Tree
8f9bc81- Author
David Tolnay <dtolnay@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
3c586dd- Parent 2
5518a9e
5 files changed+6 added−44 removed
modified:.github/workflows/ci.yml+2 added-2 removed
31 unmodified lines32333435363637383940404142434433 unmodified lines31 unmodified lines - uses: dtolnay/rust-toolchain@1.42.0 - run: cargo check --features backtrace
msrv: name: Rust 1.36.0 name: Rust 1.38.0 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.36.0 - uses: dtolnay/rust-toolchain@1.38.0 - run: cargo check - run: cargo check --no-default-features
windows:33 unmodified linesmodified:src/lib.rs+2 added-36 removed
602 unmodified lines603 604 // Not public API. Referenced by macro-generated code.605 #[doc(hidden)]606 pub mod private {607+ pub use alloc::format;608 pub use core::result::Result::Err;609+ pub use core::{concat, stringify};610 611 #[doc(hidden)]612 pub mod kind {613 pub use crate::kind::{AdhocKind, TraitKind};614 615 #[cfg(feature = "std")]616 pub use crate::kind::BoxedKind;617 }616-617- #[cfg(anyhow_no_macro_reexport)]618- 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-626- #[cfg(anyhow_no_macro_reexport)]627- #[doc(hidden)]628- #[macro_export]629- macro_rules! __anyhow_concat {630- ($($tt:tt)*) => {631- concat!($($tt)*)632- };633- }634-635- #[cfg(anyhow_no_macro_reexport)]636- #[doc(hidden)]637- #[macro_export]638- macro_rules! __anyhow_format {639- ($($tt:tt)*) => {640- format!($($tt)*)641- };642- }643-644- #[cfg(anyhow_no_macro_reexport)]645- #[doc(hidden)]646- #[macro_export]647- macro_rules! __anyhow_stringify {648- ($($tt:tt)*) => {649- stringify!($($tt)*)650- };651- }618 }modified:build.rs-4 removed
53 unmodified lines54 Some(rustc) => rustc,55 None => return,56 };57 58- if rustc < 38 {59- println!("cargo:rustc-cfg=anyhow_no_macro_reexport");60- }61-58 if rustc < 51 {59 println!("cargo:rustc-cfg=anyhow_no_ptr_addr_of");60 }61 }48 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.36"rust-version = "1.38"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.36+*19+*Compiler support: requires rustc 1.38+*20 21 <br>22 23 ## Details159 unmodified lines