We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Report
ReportBuilder
#[must_use]
1 parent 7c988a6 commit 6118228Copy full SHA for 6118228
src/lib.rs
@@ -169,6 +169,7 @@ impl<S: Span> Label<S> {
169
}
170
171
/// A type representing a diagnostic that is ready to be written to output.
172
+#[must_use = "call `.print()` or `.eprint()` to print the report"]
173
pub struct Report<'a, S: Span = Range<usize>> {
174
kind: ReportKind<'a>,
175
code: Option<String>,
@@ -252,6 +253,7 @@ impl fmt::Display for ReportKind<'_> {
252
253
254
255
/// A type used to build a [`Report`].
256
+#[must_use = "call `.finish()` to obtain a `Report`"]
257
pub struct ReportBuilder<'a, S: Span> {
258
259
0 commit comments