Skip to content

Commit 9c011c8

Browse files
committed
fixes
1 parent 546bdb7 commit 9c011c8

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,9 +2451,9 @@ checksum = "dd20eec3dbe4376829cb7d80ae6ac45e0a766831dca50202ff2d40db46a8a024"
24512451

24522452
[[package]]
24532453
name = "os_info"
2454-
version = "3.0.7"
2454+
version = "3.0.9"
24552455
source = "registry+https://github.com/rust-lang/crates.io-index"
2456-
checksum = "6ac91020bfed8cc3f8aa450d4c3b5fa1d3373fc091c8a92009f3b27749d5a227"
2456+
checksum = "b89dd55b8d8d97dabd0d1adc625d188378fcf87632825bfe9c956acc9a11a72a"
24572457
dependencies = [
24582458
"log",
24592459
"serde",

compiler/rustc_ast_lowering/src/expr.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use rustc_hir::definitions::DefPathData;
1212
use rustc_span::hygiene::ExpnId;
1313
use rustc_span::source_map::{respan, DesugaringKind, Span, Spanned};
1414
use rustc_span::symbol::{sym, Ident, Symbol};
15-
use rustc_span::DUMMY_SP;
15+
use rustc_span::{hygiene::ForLoopLoc, BytePos, DUMMY_SP};
1616

1717
impl<'hir> LoweringContext<'_, 'hir> {
1818
fn lower_exprs(&mut self, exprs: &[AstP<Expr>]) -> &'hir [hir::Expr<'hir>] {
@@ -865,7 +865,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
865865
if movability == Movability::Static {
866866
struct_span_err!(self.sess, fn_decl_span, E0697, "closures cannot be static")
867867
.span_suggestion(
868-
fn_decl_span.with_lo(fn_decl_span.lo() + BytePos("static ".len())),
868+
fn_decl_span
869+
.with_lo(fn_decl_span.lo() + BytePos("static ".len() as u32)),
869870
"remove the `static` keyword to define a regular closure",
870871
"".into(),
871872
rustc_errors::Applicability::MachineApplicable,

compiler/rustc_typeck/src/check/pat.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::check::FnCtxt;
22
use rustc_ast as ast;
33

4-
use crate::path::BytePos;
54
use rustc_data_structures::fx::FxHashMap;
65
use rustc_errors::{pluralize, struct_span_err, Applicability, DiagnosticBuilder};
76
use rustc_hir as hir;

src/doc/book

Submodule book updated 167 files

src/doc/rustc-dev-guide

Submodule rustc-dev-guide updated 64 files

src/llvm-project

Submodule llvm-project updated 57 files

src/tools/rust-analyzer

0 commit comments

Comments
 (0)