diff options
| author | bors <bors@rust-lang.org> | 2025-08-13 07:27:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-13 07:27:12 +0000 |
| commit | 1c9952f4dd6e0947ee91f07130c03813a088a894 (patch) | |
| tree | 76ab8fffd7bb2141f450a0d7a7bdde95610cf93c /compiler/rustc_passes/src/errors.rs | |
| parent | b1b26b834d85e84b46aa8f8f3ce210a1627aa85f (diff) | |
| parent | 8cb78fe3b63ab1f83d084411cb1f768ce9443a3d (diff) | |
| download | rust-1c9952f4dd6e0947ee91f07130c03813a088a894.tar.gz rust-1c9952f4dd6e0947ee91f07130c03813a088a894.zip | |
Auto merge of #145334 - Kobzol:rollup-fs5a133, r=Kobzol
Rollup of 11 pull requests Successful merges: - rust-lang/rust#143467 (Add ASCII-related methods from `u8` and `MIN`/`MAX` to `core::ascii::Char`) - rust-lang/rust#144519 (Constify `SystemTime` methods) - rust-lang/rust#144642 (editorconfig: don't trim trailing whitespace in tests) - rust-lang/rust#144870 (Stabilize `path_file_prefix` feature) - rust-lang/rust#145269 (Deprecate RUST_TEST_* env variables) - rust-lang/rust#145274 (Remove unused `#[must_use]`) - rust-lang/rust#145289 (chore(ci): upgrade checkout to v5) - rust-lang/rust#145303 (Docs: Link to payload_as_str() from payload().) - rust-lang/rust#145308 (Adjust documentation of `dangling`) - rust-lang/rust#145320 (Allow cross-compiling the Cranelift dist component) - rust-lang/rust#145325 (Add `cast_init` and `cast_uninit` methods for pointers) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_passes/src/errors.rs')
| -rw-r--r-- | compiler/rustc_passes/src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/errors.rs b/compiler/rustc_passes/src/errors.rs index 10b30fbe8c9..37216656e57 100644 --- a/compiler/rustc_passes/src/errors.rs +++ b/compiler/rustc_passes/src/errors.rs @@ -469,6 +469,8 @@ pub(crate) struct FfiConstInvalidTarget { pub(crate) struct MustUseNoEffect { pub article: &'static str, pub target: rustc_hir::Target, + #[suggestion(code = "", applicability = "machine-applicable", style = "tool-only")] + pub attr_span: Span, } #[derive(Diagnostic)] |
