Skip to content

Commit 6f21ee4

Browse files
committed
Make fmt::Write a diagnostic item
1 parent c11ef47 commit 6f21ee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/fmt/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ pub struct Error;
115115
/// [`std::io::Write`]: ../../std/io/trait.Write.html
116116
/// [flushable]: ../../std/io/trait.Write.html#tymethod.flush
117117
#[stable(feature = "rust1", since = "1.0.0")]
118+
#[rustc_diagnostic_item = "FmtWrite"]
118119
pub trait Write {
119120
/// Writes a string slice into this writer, returning whether the write
120121
/// succeeded.

0 commit comments

Comments
 (0)