diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-12 19:20:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-12 19:20:36 +0100 |
| commit | 666366444cbba1615e72e6ef3c411e2edad27014 (patch) | |
| tree | fa452de9c4484180bd95b6e30da6a57e718d9fe1 | |
| parent | c8b07c0529026d767c7baf99b8021dbe9e46763c (diff) | |
| parent | 613c1216b78ad129a2ca87a42e1d701b3b44320d (diff) | |
| download | rust-666366444cbba1615e72e6ef3c411e2edad27014.tar.gz rust-666366444cbba1615e72e6ef3c411e2edad27014.zip | |
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 https://github.com/rust-lang/rust/pull/61872 (101a2f59b490650c12c5f9e4561a7390bfce78d3)
| -rw-r--r-- | compiler/rustc_mir_build/src/build/expr/stmt.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_mir_build/src/build/expr/stmt.rs b/compiler/rustc_mir_build/src/build/expr/stmt.rs index 00dbcaeb0c9..e9f327978aa 100644 --- a/compiler/rustc_mir_build/src/build/expr/stmt.rs +++ b/compiler/rustc_mir_build/src/build/expr/stmt.rs @@ -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, |
