Skip to content

Commit 47aea6f

Browse files
committed
Auto merge of #3785 - rust-lang:rustup-2024-08-03, r=RalfJung
Automatic Rustup
2 parents 5852b24 + 62e2800 commit 47aea6f

File tree

298 files changed

+4104
-2274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+4104
-2274
lines changed

Diff for: Cargo.lock

+65-23
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ dependencies = [
771771
"tracing-subscriber",
772772
"unified-diff",
773773
"walkdir",
774-
"windows",
774+
"windows 0.52.0",
775775
]
776776

777777
[[package]]
@@ -1713,7 +1713,7 @@ dependencies = [
17131713
"iana-time-zone-haiku",
17141714
"js-sys",
17151715
"wasm-bindgen",
1716-
"windows-core",
1716+
"windows-core 0.52.0",
17171717
]
17181718

17191719
[[package]]
@@ -2436,15 +2436,6 @@ dependencies = [
24362436
"windows-sys 0.52.0",
24372437
]
24382438

2439-
[[package]]
2440-
name = "ntapi"
2441-
version = "0.4.1"
2442-
source = "registry+https://github.com/rust-lang/crates.io-index"
2443-
checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4"
2444-
dependencies = [
2445-
"winapi",
2446-
]
2447-
24482439
[[package]]
24492440
name = "nu-ansi-term"
24502441
version = "0.46.0"
@@ -3717,7 +3708,7 @@ dependencies = [
37173708
"thorin-dwp",
37183709
"tracing",
37193710
"wasm-encoder 0.210.0",
3720-
"windows",
3711+
"windows 0.52.0",
37213712
]
37223713

37233714
[[package]]
@@ -3774,7 +3765,7 @@ dependencies = [
37743765
"tempfile",
37753766
"thin-vec",
37763767
"tracing",
3777-
"windows",
3768+
"windows 0.52.0",
37783769
]
37793770

37803771
[[package]]
@@ -3835,7 +3826,7 @@ dependencies = [
38353826
"shlex",
38363827
"time",
38373828
"tracing",
3838-
"windows",
3829+
"windows 0.52.0",
38393830
]
38403831

38413832
[[package]]
@@ -3886,7 +3877,7 @@ dependencies = [
38863877
"termcolor",
38873878
"termize",
38883879
"tracing",
3889-
"windows",
3880+
"windows 0.52.0",
38903881
]
38913882

38923883
[[package]]
@@ -4355,6 +4346,7 @@ dependencies = [
43554346
"rustc_span",
43564347
"rustc_target",
43574348
"rustc_trait_selection",
4349+
"rustc_type_ir",
43584350
"smallvec",
43594351
"tracing",
43604352
]
@@ -4607,7 +4599,7 @@ dependencies = [
46074599
"smallvec",
46084600
"termize",
46094601
"tracing",
4610-
"windows",
4602+
"windows 0.52.0",
46114603
]
46124604

46134605
[[package]]
@@ -5365,16 +5357,13 @@ dependencies = [
53655357

53665358
[[package]]
53675359
name = "sysinfo"
5368-
version = "0.30.12"
5360+
version = "0.31.2"
53695361
source = "registry+https://github.com/rust-lang/crates.io-index"
5370-
checksum = "732ffa00f53e6b2af46208fba5718d9662a421049204e156328b66791ffa15ae"
5362+
checksum = "d4115055da5f572fff541dd0c4e61b0262977f453cc9fe04be83aba25a89bdab"
53715363
dependencies = [
5372-
"cfg-if",
53735364
"core-foundation-sys",
53745365
"libc",
5375-
"ntapi",
5376-
"once_cell",
5377-
"windows",
5366+
"windows 0.57.0",
53785367
]
53795368

53805369
[[package]]
@@ -6299,7 +6288,17 @@ version = "0.52.0"
62996288
source = "registry+https://github.com/rust-lang/crates.io-index"
63006289
checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
63016290
dependencies = [
6302-
"windows-core",
6291+
"windows-core 0.52.0",
6292+
"windows-targets 0.52.5",
6293+
]
6294+
6295+
[[package]]
6296+
name = "windows"
6297+
version = "0.57.0"
6298+
source = "registry+https://github.com/rust-lang/crates.io-index"
6299+
checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143"
6300+
dependencies = [
6301+
"windows-core 0.57.0",
63036302
"windows-targets 0.52.5",
63046303
]
63056304

@@ -6326,12 +6325,55 @@ dependencies = [
63266325
"windows-targets 0.52.5",
63276326
]
63286327

6328+
[[package]]
6329+
name = "windows-core"
6330+
version = "0.57.0"
6331+
source = "registry+https://github.com/rust-lang/crates.io-index"
6332+
checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d"
6333+
dependencies = [
6334+
"windows-implement",
6335+
"windows-interface",
6336+
"windows-result",
6337+
"windows-targets 0.52.5",
6338+
]
6339+
6340+
[[package]]
6341+
name = "windows-implement"
6342+
version = "0.57.0"
6343+
source = "registry+https://github.com/rust-lang/crates.io-index"
6344+
checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
6345+
dependencies = [
6346+
"proc-macro2",
6347+
"quote",
6348+
"syn 2.0.67",
6349+
]
6350+
6351+
[[package]]
6352+
name = "windows-interface"
6353+
version = "0.57.0"
6354+
source = "registry+https://github.com/rust-lang/crates.io-index"
6355+
checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
6356+
dependencies = [
6357+
"proc-macro2",
6358+
"quote",
6359+
"syn 2.0.67",
6360+
]
6361+
63296362
[[package]]
63306363
name = "windows-metadata"
63316364
version = "0.58.0"
63326365
source = "registry+https://github.com/rust-lang/crates.io-index"
63336366
checksum = "2e837f3c3012cfe9e7086302a93f441a7999439be1ad4c530d55d2f6d2921809"
63346367

6368+
[[package]]
6369+
name = "windows-result"
6370+
version = "0.1.2"
6371+
source = "registry+https://github.com/rust-lang/crates.io-index"
6372+
checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
6373+
dependencies = [
6374+
"windows-targets 0.52.5",
6375+
]
6376+
63356377
[[package]]
63366378
name = "windows-sys"
63376379
version = "0.48.0"

Diff for: compiler/rustc_ast_passes/src/ast_validation.rs

+12-30
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,6 @@ impl<'a> AstValidator<'a> {
453453
item_span: span,
454454
block: Some(self.current_extern_span().shrink_to_lo()),
455455
});
456-
} else if !self.features.unsafe_extern_blocks {
457-
self.dcx().emit_err(errors::InvalidSafetyOnExtern {
458-
item_span: span,
459-
block: None,
460-
});
461456
}
462457
}
463458
}
@@ -1054,32 +1049,19 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
10541049
errors::VisibilityNotPermittedNote::IndividualForeignItems,
10551050
);
10561051

1057-
if this.features.unsafe_extern_blocks {
1058-
if &Safety::Default == safety {
1059-
if item.span.at_least_rust_2024() {
1060-
this.dcx()
1061-
.emit_err(errors::MissingUnsafeOnExtern { span: item.span });
1062-
} else {
1063-
this.lint_buffer.buffer_lint(
1064-
MISSING_UNSAFE_ON_EXTERN,
1065-
item.id,
1066-
item.span,
1067-
BuiltinLintDiag::MissingUnsafeOnExtern {
1068-
suggestion: item.span.shrink_to_lo(),
1069-
},
1070-
);
1071-
}
1052+
if &Safety::Default == safety {
1053+
if item.span.at_least_rust_2024() {
1054+
this.dcx().emit_err(errors::MissingUnsafeOnExtern { span: item.span });
1055+
} else {
1056+
this.lint_buffer.buffer_lint(
1057+
MISSING_UNSAFE_ON_EXTERN,
1058+
item.id,
1059+
item.span,
1060+
BuiltinLintDiag::MissingUnsafeOnExtern {
1061+
suggestion: item.span.shrink_to_lo(),
1062+
},
1063+
);
10721064
}
1073-
} else if let &Safety::Unsafe(span) = safety {
1074-
let mut diag = this
1075-
.dcx()
1076-
.create_err(errors::UnsafeItem { span, kind: "extern block" });
1077-
rustc_session::parse::add_feature_diagnostics(
1078-
&mut diag,
1079-
self.session,
1080-
sym::unsafe_extern_blocks,
1081-
);
1082-
diag.emit();
10831065
}
10841066

10851067
if abi.is_none() {

Diff for: compiler/rustc_ast_passes/src/feature_gate.rs

-4
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,6 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
560560
gate_all!(precise_capturing, "precise captures on `impl Trait` are experimental");
561561
gate_all!(global_registration, "global registration is experimental");
562562
gate_all!(unsafe_attributes, "`#[unsafe()]` markers for attributes are experimental");
563-
gate_all!(
564-
unsafe_extern_blocks,
565-
"`unsafe extern {}` blocks and `safe` keyword are experimental"
566-
);
567563
gate_all!(return_type_notation, "return type notation is experimental");
568564

569565
if !visitor.features.never_patterns {

Diff for: compiler/rustc_builtin_macros/src/alloc_error_handler.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn generate_handler(cx: &ExtCtxt<'_>, handler: Ident, span: Span, sig_span: Span
8080
let params = thin_vec![cx.param(span, size, ty_usize.clone()), cx.param(span, align, ty_usize)];
8181
let decl = cx.fn_decl(params, never);
8282
let header = FnHeader { safety: Safety::Unsafe(span), ..FnHeader::default() };
83-
let sig = FnSig { decl, header, span: span };
83+
let sig = FnSig { decl, header, span };
8484

8585
let body = Some(cx.block_expr(call));
8686
let kind = ItemKind::Fn(Box::new(Fn {

Diff for: compiler/rustc_builtin_macros/src/cfg_eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl CfgEval<'_> {
202202
}
203203

204204
// Now that we have our re-parsed `AttrTokenStream`, recursively configuring
205-
// our attribute target will correctly the tokens as well.
205+
// our attribute target will correctly configure the tokens as well.
206206
flat_map_annotatable(self, annotatable)
207207
}
208208
}

0 commit comments

Comments
 (0)