Skip to content
Myr

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

5 files+6 added−44 removed

modified:.github/workflows/ci.yml+2 added-2 removed
modified:src/lib.rs+2 added-36 removed
602 unmodified lines
603604// Not public API. Referenced by macro-generated code.605#[doc(hidden)]606pub mod private {607 pub use alloc::format;608 pub use core::result::Result::Err;609 pub use core::{concat, stringify};610611 #[doc(hidden)]612 pub mod kind {613 pub use crate::kind::{AdhocKind, TraitKind};614615 #[cfg(feature = "std")]616 pub use crate::kind::BoxedKind;617 }616617 #[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};625626 #[cfg(anyhow_no_macro_reexport)]627 #[doc(hidden)]628 #[macro_export]629 macro_rules! __anyhow_concat {630 ($($tt:tt)*) => {631 concat!($($tt)*)632 };633 }634635 #[cfg(anyhow_no_macro_reexport)]636 #[doc(hidden)]637 #[macro_export]638 macro_rules! __anyhow_format {639 ($($tt:tt)*) => {640 format!($($tt)*)641 };642 }643644 #[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 lines
54 Some(rustc) => rustc,55 None => return,56 };5758 if rustc < 38 {59 println!("cargo:rustc-cfg=anyhow_no_macro_reexport");60 }6158 if rustc < 51 {59 println!("cargo:rustc-cfg=anyhow_no_ptr_addr_of");60 }61}
48 unmodified lines
modified:Cargo.toml+1 added-1 removed
modified:README.md+1 added-1 removed
14 unmodified lines
15[dependencies]16anyhow = "1.0"17```1819*Compiler support: requires rustc 1.36+*19*Compiler support: requires rustc 1.38+*2021<br>2223## Details
159 unmodified lines