Skip to content

Commit d21e827

Browse files
authored
Update to nightly-2026-04-16 (#822)
We are pretty far behind, so let's update! The main migration was that `file_depinfo` got removed in https://github.com/rust-lang/rust/pull/153778/changes Other than that, not much. Took me a while to figure out that the huge linker error I got was due to the fact that my tmp dir had not enough space left for all the artifacts xD One i set a custom `TMPDIR` it worked like a charm. Closes #832
1 parent dd86fb4 commit d21e827

7 files changed

Lines changed: 18 additions & 14 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bevy_lint/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ harness = false
2121
# Contains a series of useful utilities when writing lints. The version is chosen to work with the
2222
# currently pinned nightly Rust version. When the Rust version changes, this too needs to be
2323
# updated!
24-
clippy_utils = "=0.1.96"
24+
clippy_utils = "=0.1.97"
2525

2626
# Easy error propagation and contexts.
2727
anyhow = "1.0.102"

bevy_lint/src/callback.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ impl Callbacks for BevyLintCallback {
5959
// Clone the input so we can `move` it into our custom `psess_created()`.
6060
let input = config.input.clone();
6161

62-
config.psess_created = Some(Box::new(move |psess| {
62+
config.track_state = Some(Box::new(move |sess, _| {
6363
if !was_invoked_from_cargo() {
6464
return;
6565
}
6666

67-
let file_depinfo = psess.file_depinfo.get_mut();
67+
let mut file_depinfo = sess.file_depinfo.borrow_mut();
6868

6969
for workspace in [false, true] {
7070
// Get the paths to the crate or workspace `Cargo.toml`, if they exist.

bevy_lint/src/lints/suspicious/unit_in_bundle.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ fn bundle_bounded_generics<'tcx>(cx: &LateContext<'tcx>, fn_id: DefId) -> Vec<Ty
275275
self_ty.kind(),
276276
// It must either be a generic parameter `B`, or a projection
277277
// `B::AssociatedType`.
278-
ty::TyKind::Param(_) | ty::TyKind::Alias(ty::AliasTyKind::Projection, _),
278+
ty::TyKind::Param(_)
279+
| ty::TyKind::Alias(ty::AliasTy {
280+
kind: ty::AliasTyKind::Projection { .. },
281+
..
282+
})
279283
),
280284
"type {self_ty} from trait bound {trait_ref} was expected to be a type parameter, but instead was a {self_ty_kind:?}",
281285
self_ty_kind = self_ty.kind(),

docs/src/linter/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
|`bevy_lint` Version|Rust Version|Rustup Toolchain|Bevy Version|
44
|-|-|-|-|
5-
|0.7.0-dev|1.96.0|`nightly-2026-03-05`|0.18|
5+
|0.7.0-dev|1.97.0|`nightly-2026-04-16`|0.18|
66
|0.6.0|1.95.0|`nightly-2026-01-22`|0.18|
77
|0.5.0|1.94.0|`nightly-2025-12-11`|0.17|
88
|0.4.0|1.90.0|`nightly-2025-06-26`|0.16|

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Writing custom lints requires using nightly Rust. We pin to a specific version of nightly version
66
# so that builds are reproducible. Note that we use the Regex `^channel = "(.+)"$` to match this
77
# line, so be wary when changing its formatting.
8-
channel = "nightly-2026-03-05"
8+
channel = "nightly-2026-04-16"
99

1010
# These components are required to use `rustc` crates. Note that we use the Regex
1111
# `^components = \[(.*)\]$` to match this line, so be wary when changing its formatting.

0 commit comments

Comments
 (0)