rust/src
Matthias Krüger 9adf2189f5
Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicola
Denote `ControlFlow` as `#[must_use]`

I've repeatedly hit bugs in the compiler due to `ControlFlow` not being marked `#[must_use]`. There seems to be an accepted ACP to make the type `#[must_use]` (https://github.com/rust-lang/libs-team/issues/444), so this PR implements that part of it.

Most of the usages in the compiler that trigger this new warning are "root" usages (calling into an API that uses control-flow internally, but for which the callee doesn't really care) and have been suppressed by `let _ = ...`, but I did legitimately find one instance of a missing `?` and one for a never-used `ControlFlow` value in #137448.

Presumably this needs an FCP too, so I'm opening this and nominating it for T-libs-api.

This PR also touches the tools (incl. rust-analyzer), but if this went into FCP, I'd split those out into separate PRs which can land before this one does.

r? libs-api
`@rustbot` label: T-libs-api I-libs-api-nominated
2025-03-17 16:34:47 +01:00
..
bootstrap Rollup merge of #138592 - onur-ozkan:follow-up-137147, r=Kobzol 2025-03-17 05:47:54 -04:00
build_helper Add post-merge analysis CI workflow 2025-03-07 09:43:52 +01:00
ci Auto merge of #137011 - LuuuXXX:promote-ohos-with-host-tools, r=Amanieu 2025-03-16 18:42:18 +00:00
doc Rollup merge of #133870 - nbdd0121:asm, r=traviscross,nnethercote 2025-03-17 16:34:47 +01:00
etc Rollup merge of #137968 - dingxiangfei2009:patch-1, r=Mark-Simulacrum 2025-03-16 09:40:04 +08:00
gcc@48664a6cab Revert "add fix for full tools and sanitizer" 2025-03-04 17:38:06 +08:00
librustdoc Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicola 2025-03-17 16:34:47 +01:00
llvm-project@1c3bb96fdb Revert "add fix for full tools and sanitizer" 2025-03-04 17:38:06 +08:00
rustc-std-workspace update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustdoc-json-types Add RTN support to rustdoc 2025-03-15 18:13:27 +00:00
tools Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicola 2025-03-17 16:34:47 +01:00
README.md
stage0 bump stage0 2025-02-18 08:51:01 -08:00
version Bump to version 1.87.0 2025-02-14 09:55:45 -08:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.