Skip to content

Commit cc34dc2

Browse files
committed
Correctly explain ensure_forwards_result_if_red
1 parent db7cd57 commit cc34dc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_macros/src/query.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ struct QueryModifiers {
120120

121121
/// Forward the result on ensure if the query gets recomputed, and
122122
/// return `Ok(())` otherwise. Only applicable to queries returning
123-
/// `Result<(), ErrorGuaranteed>`
123+
/// `Result<T, ErrorGuaranteed>`. The `T` is not returned from `ensure`
124+
/// invocations.
124125
ensure_forwards_result_if_red: Option<Ident>,
125126
}
126127

0 commit comments

Comments
 (0)