Skip to content

Commit

Permalink
Raise required compiler to rust 1.39
Browse files Browse the repository at this point in the history
This is required for attributes on function parameters, which I hope to
use for #[track_caller] / Location support:

    unsafe fn construct<E>(
        error: E,
        vtable: &'static ErrorVTable,
        backtrace: Option<Backtrace>,
        #[cfg(track_caller)] location: &'static Location<'static>,
    ) -> Self
    where
        E: StdError + Send + Sync + 'static;
  • Loading branch information
dtolnay committed Oct 20, 2022
1 parent 47e902a commit cccc785
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [1.52.0, 1.51.0, 1.50.0, 1.42.0, 1.38.0]
rust: [1.52.0, 1.51.0, 1.50.0, 1.42.0, 1.39.0]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand All @@ -45,7 +45,7 @@ jobs:
- run: cargo check
- run: cargo check --no-default-features
- run: cargo check --features backtrace
if: matrix.rust != '1.38.0'
if: matrix.rust != '1.39.0'

windows:
name: Windows
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2018"
keywords = ["error", "error-handling"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/anyhow"
rust-version = "1.38"
rust-version = "1.39"

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for easy idiomatic error handling in Rust applications.
anyhow = "1.0"
```

*Compiler support: requires rustc 1.38+*
*Compiler support: requires rustc 1.39+*

<br>

Expand Down

0 comments on commit cccc785

Please sign in to comment.