Skip to content

Commit 0b79504

Browse files
committed
Auto merge of rust-lang#111493 - matthiaskrgr:rollup-iw1z59b, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - rust-lang#111179 (Fix instrument-coverage tests by using Python to sort instantiation groups) - rust-lang#111393 (bump windows crate 0.46 -> 0.48) - rust-lang#111441 (Verify copies of mutable pointers in 2 stages in ReferencePropagation) - rust-lang#111456 (Update cargo) - rust-lang#111490 (Don't ICE in layout computation for placeholder types) - rust-lang#111492 (use by ref TokenTree iterator to avoid a few clones) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 699a862 + 9039de6 commit 0b79504

31 files changed

+475
-138
lines changed

Cargo.lock

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ dependencies = [
741741
"tracing-subscriber",
742742
"unified-diff",
743743
"walkdir",
744-
"windows 0.46.0",
744+
"windows",
745745
]
746746

747747
[[package]]
@@ -1647,7 +1647,7 @@ dependencies = [
16471647
"iana-time-zone-haiku",
16481648
"js-sys",
16491649
"wasm-bindgen",
1650-
"windows 0.48.0",
1650+
"windows",
16511651
]
16521652

16531653
[[package]]
@@ -3259,7 +3259,7 @@ dependencies = [
32593259
"tempfile",
32603260
"thorin-dwp",
32613261
"tracing",
3262-
"windows 0.46.0",
3262+
"windows",
32633263
]
32643264

32653265
[[package]]
@@ -3315,7 +3315,7 @@ dependencies = [
33153315
"tempfile",
33163316
"thin-vec",
33173317
"tracing",
3318-
"windows 0.46.0",
3318+
"windows",
33193319
]
33203320

33213321
[[package]]
@@ -3376,7 +3376,7 @@ dependencies = [
33763376
"rustc_ty_utils",
33773377
"serde_json",
33783378
"tracing",
3379-
"windows 0.46.0",
3379+
"windows",
33803380
]
33813381

33823382
[[package]]
@@ -3426,7 +3426,7 @@ dependencies = [
34263426
"termize",
34273427
"tracing",
34283428
"unicode-width",
3429-
"windows 0.46.0",
3429+
"windows",
34303430
]
34313431

34323432
[[package]]
@@ -4096,7 +4096,7 @@ dependencies = [
40964096
"smallvec",
40974097
"termize",
40984098
"tracing",
4099-
"windows 0.46.0",
4099+
"windows",
41004100
]
41014101

41024102
[[package]]
@@ -5498,15 +5498,6 @@ version = "0.4.0"
54985498
source = "registry+https://github.com/rust-lang/crates.io-index"
54995499
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
55005500

5501-
[[package]]
5502-
name = "windows"
5503-
version = "0.46.0"
5504-
source = "registry+https://github.com/rust-lang/crates.io-index"
5505-
checksum = "cdacb41e6a96a052c6cb63a144f24900236121c6f63f4f8219fef5977ecb0c25"
5506-
dependencies = [
5507-
"windows-targets 0.42.2",
5508-
]
5509-
55105501
[[package]]
55115502
name = "windows"
55125503
version = "0.48.0"

compiler/rustc_builtin_macros/src/concat_idents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn expand_concat_idents<'cx>(
1919
}
2020

2121
let mut res_str = String::new();
22-
for (i, e) in tts.into_trees().enumerate() {
22+
for (i, e) in tts.trees().enumerate() {
2323
if i & 1 == 1 {
2424
match e {
2525
TokenTree::Token(Token { kind: token::Comma, .. }, _) => {}

compiler/rustc_builtin_macros/src/trace_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub fn expand_trace_macros(
88
sp: Span,
99
tt: TokenStream,
1010
) -> Box<dyn base::MacResult + 'static> {
11-
let mut cursor = tt.into_trees();
11+
let mut cursor = tt.trees();
1212
let mut err = false;
1313
let value = match &cursor.next() {
1414
Some(TokenTree::Token(token, _)) if token.is_keyword(kw::True) => true,

compiler/rustc_codegen_ssa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ default-features = false
5151
features = ["read_core", "elf", "macho", "pe", "unaligned", "archive", "write"]
5252

5353
[target.'cfg(windows)'.dependencies.windows]
54-
version = "0.46.0"
54+
version = "0.48.0"
5555
features = ["Win32_Globalization"]

compiler/rustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ itertools = "0.10.1"
3737
version = "0.11"
3838

3939
[target.'cfg(windows)'.dependencies.windows]
40-
version = "0.46.0"
40+
version = "0.48.0"
4141
features = [
4242
"Win32_Foundation",
4343
"Win32_Storage_FileSystem",

compiler/rustc_data_structures/src/profiling.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,16 @@ cfg_if! {
865865
use std::mem;
866866

867867
use windows::{
868-
Win32::System::ProcessStatus::{K32GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
868+
// FIXME: change back to K32GetProcessMemoryInfo when windows crate
869+
// updated to 0.49.0+ to drop dependency on psapi.dll
870+
Win32::System::ProcessStatus::{GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
869871
Win32::System::Threading::GetCurrentProcess,
870872
};
871873

872874
let mut pmc = PROCESS_MEMORY_COUNTERS::default();
873875
let pmc_size = mem::size_of_val(&pmc);
874876
unsafe {
875-
K32GetProcessMemoryInfo(
877+
GetProcessMemoryInfo(
876878
GetCurrentProcess(),
877879
&mut pmc,
878880
pmc_size as u32,

compiler/rustc_driver_impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ rustc_mir_transform = { path = "../rustc_mir_transform" }
5757
libc = "0.2"
5858

5959
[target.'cfg(windows)'.dependencies.windows]
60-
version = "0.46.0"
60+
version = "0.48.0"
6161
features = [
6262
"Win32_System_Diagnostics_Debug",
6363
]

compiler/rustc_errors/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ serde = { version = "1.0.125", features = [ "derive" ] }
2727
serde_json = "1.0.59"
2828

2929
[target.'cfg(windows)'.dependencies.windows]
30-
version = "0.46.0"
30+
version = "0.48.0"
3131
features = [
3232
"Win32_Foundation",
3333
"Win32_Security",
3434
"Win32_System_Threading",
35-
"Win32_System_WindowsProgramming",
3635
]
3736

3837
[features]

compiler/rustc_errors/src/lock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
1919
use windows::{
2020
core::PCSTR,
2121
Win32::Foundation::{CloseHandle, HANDLE, WAIT_ABANDONED, WAIT_OBJECT_0},
22-
Win32::System::Threading::{CreateMutexA, ReleaseMutex, WaitForSingleObject},
23-
Win32::System::WindowsProgramming::INFINITE,
22+
Win32::System::Threading::{CreateMutexA, ReleaseMutex, WaitForSingleObject, INFINITE},
2423
};
2524

2625
struct Handle(HANDLE);

compiler/rustc_lint/src/builtin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,8 +1882,8 @@ declare_lint_pass!(
18821882
struct UnderMacro(bool);
18831883

18841884
impl KeywordIdents {
1885-
fn check_tokens(&mut self, cx: &EarlyContext<'_>, tokens: TokenStream) {
1886-
for tt in tokens.into_trees() {
1885+
fn check_tokens(&mut self, cx: &EarlyContext<'_>, tokens: &TokenStream) {
1886+
for tt in tokens.trees() {
18871887
match tt {
18881888
// Only report non-raw idents.
18891889
TokenTree::Token(token, _) => {
@@ -1944,10 +1944,10 @@ impl KeywordIdents {
19441944

19451945
impl EarlyLintPass for KeywordIdents {
19461946
fn check_mac_def(&mut self, cx: &EarlyContext<'_>, mac_def: &ast::MacroDef) {
1947-
self.check_tokens(cx, mac_def.body.tokens.clone());
1947+
self.check_tokens(cx, &mac_def.body.tokens);
19481948
}
19491949
fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::MacCall) {
1950-
self.check_tokens(cx, mac.args.tokens.clone());
1950+
self.check_tokens(cx, &mac.args.tokens);
19511951
}
19521952
fn check_ident(&mut self, cx: &EarlyContext<'_>, ident: Ident) {
19531953
self.check_ident_token(cx, UnderMacro(false), ident);

0 commit comments

Comments
 (0)