Skip to content

Commit

Permalink
Rollup merge of #105615 - WaffleLapkin:remove_opt_scope_span_mention,…
Browse files Browse the repository at this point in the history
… r=compiler-errors

Fixup method doc that mentions removed param

The param was removed in #61872 (101a2f5)
  • Loading branch information
matthiaskrgr authored Dec 12, 2022
2 parents c8b07c0 + 613c121 commit 6663664
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compiler/rustc_mir_build/src/build/expr/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ use rustc_middle::thir::*;

impl<'a, 'tcx> Builder<'a, 'tcx> {
/// Builds a block of MIR statements to evaluate the THIR `expr`.
/// If the original expression was an AST statement,
/// (e.g., `some().code(&here());`) then `opt_stmt_span` is the
/// span of that statement (including its semicolon, if any).
/// The scope is used if a statement temporary must be dropped.
///
/// The `statement_scope` is used if a statement temporary must be dropped.
pub(crate) fn stmt_expr(
&mut self,
mut block: BasicBlock,
Expand Down

0 comments on commit 6663664

Please sign in to comment.