Skip to content

Commit

Permalink
Make rust_tools_util package compatible with current stable by loweri…
Browse files Browse the repository at this point in the history
…ng rust edition to 2021. (rust-lang#14211)

Between the release of v0.4.0 and v0.4.1 the edition was pushed to 2024
by
rust-lang@a4805ff

changelog: Use edition=2021 in `rustc_tools_util`
  • Loading branch information
flip1995 authored Feb 14, 2025
2 parents 50ecb6e + f7f7888 commit 823b818
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ path = "src/driver.rs"
[dependencies]
clippy_config = { path = "clippy_config" }
clippy_lints = { path = "clippy_lints" }
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.1" }
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
tempfile = { version = "3.3", optional = true }
termize = "0.1"
color-print = "0.3.4"
Expand Down Expand Up @@ -54,7 +54,7 @@ parking_lot = "0.12"
tokio = { version = "1", features = ["io-util"] }

[build-dependencies]
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.1" }
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }

[features]
integration = ["tempfile"]
Expand Down
4 changes: 2 additions & 2 deletions rustc_tools_util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "rustc_tools_util"
version = "0.4.1"
version = "0.4.2"
description = "small helper to generate version information for git packages"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["rustc", "tool", "git", "version", "hash"]
categories = ["development-tools"]
edition = "2024"
edition = "2021" # Keep this, for this crate's MSRV to stay low

[dependencies]
4 changes: 2 additions & 2 deletions rustc_tools_util/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ build = "build.rs"
List rustc_tools_util as regular AND build dependency.
````toml
[dependencies]
rustc_tools_util = "0.4.1"
rustc_tools_util = "0.4.2"

[build-dependencies]
rustc_tools_util = "0.4.1"
rustc_tools_util = "0.4.2"
````

In `build.rs`, generate the data in your `main()`
Expand Down
6 changes: 3 additions & 3 deletions rustc_tools_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ mod test {
let vi = get_version_info!();
assert_eq!(vi.major, 0);
assert_eq!(vi.minor, 4);
assert_eq!(vi.patch, 1);
assert_eq!(vi.patch, 2);
assert_eq!(vi.crate_name, "rustc_tools_util");
// hard to make positive tests for these since they will always change
assert!(vi.commit_hash.is_none());
Expand All @@ -200,7 +200,7 @@ mod test {
#[test]
fn test_display_local() {
let vi = get_version_info!();
assert_eq!(vi.to_string(), "rustc_tools_util 0.4.1");
assert_eq!(vi.to_string(), "rustc_tools_util 0.4.2");
}

#[test]
Expand All @@ -209,7 +209,7 @@ mod test {
let s = format!("{vi:?}");
assert_eq!(
s,
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 4, patch: 1 }"
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 4, patch: 2 }"
);
}
}

0 comments on commit 823b818

Please sign in to comment.