Skip to content

Commit

Permalink
Correctly explain ensure_forwards_result_if_red
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 24, 2024
1 parent db7cd57 commit cc34dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_macros/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ struct QueryModifiers {

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

Expand Down

0 comments on commit cc34dc2

Please sign in to comment.