Skip to content
Myr

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

6 files+9 added−28 removed

modified:.github/workflows/ci.yml+2 added-9 removed
modified:src/error.rs+1 added-1 removed
1use crate::alloc::Box;1use crate::backtrace::Backtrace;2use crate::chain::Chain;3#[cfg(any(feature = "std", anyhow_no_ptr_addr_of))]4use crate::ptr::Mut;5use crate::ptr::{Own, Ref};6use crate::{Error, StdError};7use alloc::boxed::Box;8use core::any::TypeId;9use core::fmt::{self, Debug, Display};10use core::mem::ManuallyDrop;11#[cfg(not(anyhow_no_ptr_addr_of))]
956 unmodified lines
modified:src/lib.rs+3 added-15 removed
229 unmodified lines
230 clippy::wildcard_imports,231 clippy::wrong_self_convention232)]233234mod alloc {235 #[cfg(not(feature = "std"))]236 pub extern crate alloc;234extern crate alloc;235238 #[cfg(not(feature = "std"))]239 pub use alloc::boxed::Box;240241 #[cfg(feature = "std")]242 pub use std::boxed::Box;243}244236#[macro_use]237mod backtrace;238mod chain;239mod context;
378 unmodified lines
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};625633 #[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;637626 #[cfg(anyhow_no_macro_reexport)]627 #[doc(hidden)]628 #[macro_export]629 macro_rules! __anyhow_concat {
23 unmodified lines
modified:src/ptr.rs+1 added-1 removed
1use crate::alloc::Box;1use alloc::boxed::Box;2use core::marker::PhantomData;3use core::ptr::NonNull;45#[repr(transparent)]
194 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.34+*19*Compiler support: requires rustc 1.36+*2021<br>2223## Details
159 unmodified lines