Skip to content

Conversation

aecsocket
Copy link
Contributor

@aecsocket aecsocket commented Sep 18, 2025

Cranelift has much faster incremental recompiles, which helps when iterating on labrinth features.

Warnings are currently denied in the root Cargo.toml, which is good for rigorous CI but is annoying when quickly prototyping features and you don't mind some dead code or unused imports. This PR keeps warnings as warnings, but passes -Dwarnings in the CI test run to fail on warnings there.

#[serde(default = "HashMap::new")]
pub file_types: HashMap<String, Option<FileType>>,
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk how this wasn't triggering a dead code warning before, but apparently this is unused. On standard codegen this doesn't emit a warning. On cranelift this does.

Self::StaleWhileRevalidateSkipOffline
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also don't know how this wasn't caught on main CI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is most likely explained due to the usage of different Rust versions. Nightly's Clippy is ahead of stable when it comes to new lints (and regressions).

@aecsocket aecsocket marked this pull request as ready for review September 18, 2025 17:31
@aecsocket aecsocket force-pushed the boris/toolchain-improvement branch from 3f2ad4e to 137f338 Compare September 18, 2025 17:32
Copy link
Contributor

@fetchfern fetchfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aecsocket aecsocket enabled auto-merge September 18, 2025 18:16
@aecsocket aecsocket added this pull request to the merge queue Sep 18, 2025
Merged via the queue into main with commit 36d0760 Sep 18, 2025
2 checks passed
@Prospector Prospector deleted the boris/toolchain-improvement branch September 29, 2025 18:08
AlexTMjugador added a commit that referenced this pull request Oct 4, 2025
PR #3960 reverted the Cranelift usage introduced in #4388 due to its
codegen not being up to standard when compiling some pieces of code
under some platforms. However, it didn't revert the switch to a nightly
Rust toolchain, which is now unnecessary, and produces unnecessary drift
between what's declared in the `rust-toolchain.toml` and the Docker
image manifests, causing inefficiencies.

These changes bring back the usage of stable Rust for the time being to
correct those inefficiencies.
github-merge-queue bot pushed a commit that referenced this pull request Oct 4, 2025
PR #3960 reverted the Cranelift usage introduced in #4388 due to its
codegen not being up to standard when compiling some pieces of code
under some platforms. However, it didn't revert the switch to a nightly
Rust toolchain, which is now unnecessary, and produces unnecessary drift
between what's declared in the `rust-toolchain.toml` and the Docker
image manifests, causing inefficiencies.

These changes bring back the usage of stable Rust for the time being to
correct those inefficiencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants