Skip to content

Commit 41f2b9f

Browse files
committed
Raise required compiler to Rust 1.75
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, | +++++++++
1 parent 47a831c commit 41f2b9f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
rust: [stable, 1.61.0, 1.34.0]
47+
rust: [stable, 1.75.0]
4848
timeout-minutes: 45
4949
steps:
5050
- uses: actions/checkout@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation = "https://docs.rs/typeid"
88
edition = "2018"
99
license = "MIT OR Apache-2.0"
1010
repository = "https://github.com/dtolnay/typeid"
11-
rust-version = "1.34"
11+
rust-version = "1.75"
1212

1313
[package.metadata.docs.rs]
1414
targets = ["x86_64-unknown-linux-gnu"]

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::manual_let_else)]
2+
13
use std::env;
24
use std::process::Command;
35
use std::str;

0 commit comments

Comments
 (0)