Skip to content

Commit 8063c37

Browse files
authored
Merge pull request rust-lang#1099 from bjorn3/fix_rustc_bootstrap
Update Cranelift
2 parents 6b1902a + f4e8af2 commit 8063c37

File tree

3 files changed

+42
-10
lines changed

3 files changed

+42
-10
lines changed

Cargo.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/mini_core.rs

+10
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ unsafe impl Copy for u8 {}
4848
unsafe impl Copy for u16 {}
4949
unsafe impl Copy for u32 {}
5050
unsafe impl Copy for u64 {}
51+
unsafe impl Copy for u128 {}
5152
unsafe impl Copy for usize {}
5253
unsafe impl Copy for i8 {}
5354
unsafe impl Copy for i16 {}
@@ -283,6 +284,15 @@ impl PartialEq for u64 {
283284
}
284285
}
285286

287+
impl PartialEq for u128 {
288+
fn eq(&self, other: &u128) -> bool {
289+
(*self) == (*other)
290+
}
291+
fn ne(&self, other: &u128) -> bool {
292+
(*self) != (*other)
293+
}
294+
}
295+
286296
impl PartialEq for usize {
287297
fn eq(&self, other: &usize) -> bool {
288298
(*self) == (*other)

example/mini_core_hello_world.rs

+22
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ fn main() {
287287
assert_eq!(repeat[0], Some(42));
288288
assert_eq!(repeat[1], Some(42));
289289

290+
from_decimal_string();
291+
290292
#[cfg(not(jit))]
291293
test_tls();
292294

@@ -446,3 +448,23 @@ fn check_niche_behavior () {
446448
intrinsics::abort();
447449
}
448450
}
451+
452+
fn from_decimal_string() {
453+
loop {
454+
let multiplier = 1;
455+
456+
take_multiplier_ref(&multiplier);
457+
458+
if multiplier == 1 {
459+
break;
460+
}
461+
462+
unreachable();
463+
}
464+
}
465+
466+
fn take_multiplier_ref(_multiplier: &u128) {}
467+
468+
fn unreachable() -> ! {
469+
panic("unreachable")
470+
}

0 commit comments

Comments
 (0)