Skip to content

Conversation

@dingxiangfei2009
Copy link

Motivation

We would like to apply some Rust 2024 idioms so that, in case of edition migration, the workload is slightly reduced.

At the very least, this will allow experimentation with latest tracing crates in rustc.

Here is a list of applied idioms.

  • -Dwarnings
  • -Wunused_lifetimes
  • -Wrustc::internal
  • -Wunreachable_pub
  • -Wunused_crate_dependencies
  • -Wrust_2018_idioms
  • -Wunsafe_op_in_unsafe_fn
  • -Wkeyword_idents_2024

Solution

We would like to apply some Rust 2024 idioms so that, in case of
edition migration, the workload is slightly reduced.

At the very least, this will allow experimentation with latest tracing
crates in `rustc`.

Here is a list of applied idioms.
- `-Dwarnings`
- `-Wunused_lifetimes`
- `-Wrustc::internal`
- `-Wunreachable_pub`
- `-Wunused_crate_dependencies`
- `-Wrust_2018_idioms`
- `-Wunsafe_op_in_unsafe_fn`
- `-Wkeyword_idents_2024`

Signed-off-by: Xiangfei Ding <[email protected]>
@dingxiangfei2009 dingxiangfei2009 requested review from a team, hawkw and yaahc as code owners October 17, 2025 09:49
Signed-off-by: Xiangfei Ding <[email protected]>
@dingxiangfei2009
Copy link
Author

I looked at the changed compile_fail test. It seems to be a shuffle of the diagnostic message. I tentatively added commit to update the fixture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant