Skip to content

Commit

Permalink
Merge pull request #4111 from rust-lang/rustup-2024-12-27
Browse files Browse the repository at this point in the history
Automatic Rustup
  • Loading branch information
RalfJung authored Dec 27, 2024
2 parents 505efe4 + 0308d17 commit 97517d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion miri-script/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl Command {
.map(|path| path.into_os_string().into_string().unwrap())
.collect()
} else {
benches.into_iter().map(Into::into).collect()
benches.into_iter().collect()
};
let target_flag = if let Some(target) = target {
let mut flag = OsString::from("--target=");
Expand Down
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13170cd787cb733ed24842ee825bcbd98dc01476
917bfa78478cbcc77406e5ea37b24c3eedefacf4
8 changes: 4 additions & 4 deletions src/concurrency/cpu_affinity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ impl CpuAffinityMask {
let chunk = self.0[start..].first_chunk_mut::<4>().unwrap();
let offset = cpu % 32;
*chunk = match target.options.endian {
Endian::Little => (u32::from_le_bytes(*chunk) | 1 << offset).to_le_bytes(),
Endian::Big => (u32::from_be_bytes(*chunk) | 1 << offset).to_be_bytes(),
Endian::Little => (u32::from_le_bytes(*chunk) | (1 << offset)).to_le_bytes(),
Endian::Big => (u32::from_be_bytes(*chunk) | (1 << offset)).to_be_bytes(),
};
}
8 => {
let start = cpu / 64 * 8; // first byte of the correct u64
let chunk = self.0[start..].first_chunk_mut::<8>().unwrap();
let offset = cpu % 64;
*chunk = match target.options.endian {
Endian::Little => (u64::from_le_bytes(*chunk) | 1 << offset).to_le_bytes(),
Endian::Big => (u64::from_be_bytes(*chunk) | 1 << offset).to_be_bytes(),
Endian::Little => (u64::from_le_bytes(*chunk) | (1 << offset)).to_le_bytes(),
Endian::Big => (u64::from_be_bytes(*chunk) | (1 << offset)).to_be_bytes(),
};
}
other => bug!("chunk size not supported: {other}"),
Expand Down
2 changes: 1 addition & 1 deletion src/shims/windows/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Handle {

// packs the data into the lower `data_size` bits
// and packs the discriminant right above the data
discriminant << data_size | data
(discriminant << data_size) | data
}

fn new(discriminant: u32, data: u32) -> Option<Self> {
Expand Down

0 comments on commit 97517d0

Please sign in to comment.