We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ensure_forwards_result_if_red
1 parent db7cd57 commit cc34dc2Copy full SHA for cc34dc2
compiler/rustc_macros/src/query.rs
@@ -120,7 +120,8 @@ struct QueryModifiers {
120
121
/// Forward the result on ensure if the query gets recomputed, and
122
/// return `Ok(())` otherwise. Only applicable to queries returning
123
- /// `Result<(), ErrorGuaranteed>`
+ /// `Result<T, ErrorGuaranteed>`. The `T` is not returned from `ensure`
124
+ /// invocations.
125
ensure_forwards_result_if_red: Option<Ident>,
126
}
127
0 commit comments