Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make fmt::Write a diagnostic item
  • Loading branch information
ada4a committed Oct 4, 2025
commit 2688f601ddc29b75caa2c48a4badc00d15042d7a
1 change: 1 addition & 0 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ symbols! {
File,
FileType,
FmtArgumentsNew,
FmtWrite,
Fn,
FnMut,
FnOnce,
Expand Down
1 change: 1 addition & 0 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ pub struct Error;
/// [`std::io::Write`]: ../../std/io/trait.Write.html
/// [flushable]: ../../std/io/trait.Write.html#tymethod.flush
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_diagnostic_item = "FmtWrite"]
pub trait Write {
/// Writes a string slice into this writer, returning whether the write
/// succeeded.
Expand Down
Loading