Skip to content

Commit

Permalink
Raise required compiler to Rust 1.75
Browse files Browse the repository at this point in the history
On older compilers, the pointer cast does not compile due to a rustc bug.

    error[E0310]: the parameter type `T` may not live long enough
       --> src/lib.rs:223:12
        |
    223 |         &*(&phantom_data as *const dyn NonStaticAny as *const (dyn NonStaticAny + 'static))
        |            ^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
        |
    help: consider adding an explicit lifetime bound...
        |
    203 |     T: ?Sized + 'static,
        |               +++++++++
  • Loading branch information
dtolnay committed Aug 17, 2024
1 parent 47a831c commit 9e4e128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [stable, 1.61.0, 1.34.0]
rust: [stable, 1.75.0]
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ documentation = "https://docs.rs/typeid"
edition = "2018"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/typeid"
rust-version = "1.34"
rust-version = "1.75"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down

0 comments on commit 9e4e128

Please sign in to comment.