Skip to content

Commit 6663664

Browse files
authored
Rollup merge of #105615 - WaffleLapkin:remove_opt_scope_span_mention, r=compiler-errors
Fixup method doc that mentions removed param The param was removed in #61872 (101a2f5)
2 parents c8b07c0 + 613c121 commit 6663664

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_mir_build/src/build/expr

1 file changed

+2
-4
lines changed

compiler/rustc_mir_build/src/build/expr/stmt.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ use rustc_middle::thir::*;
66

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

0 commit comments

Comments
 (0)