Skip to content

Commit

Permalink
Fixup method doc that mentions removed param
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Dec 12, 2022
1 parent c5351ad commit 613c121
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 613c121

Please sign in to comment.