Acknowledge comments
This commit is contained in:
parent
f0f867e2d3
commit
2d5a4832f3
@ -30,7 +30,7 @@ fn bar(mut x: u8) {
|
||||
fn baz(mut x: i32) -> i32 {
|
||||
// CHECK-LABEL: fn baz(
|
||||
// CHECK: debug x => [[x:_.*]];
|
||||
// CHECK-NOT: [[x]] = {{_.*}}
|
||||
// CHECK-NOT: [[x]] =
|
||||
// self-assignment to a function argument should be eliminated
|
||||
x = x;
|
||||
x
|
||||
|
@ -5,8 +5,11 @@
|
||||
fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
|
||||
// CHECK-LABEL: fn nrvo(
|
||||
// CHECK: debug init => [[init:_.*]];
|
||||
// CHECK: debug buf => [[buf:_.*]];
|
||||
// CHECK: [[buf]] = [const 0_u8; 1024];
|
||||
// CHECK-NOT: {{_.*}} = [[init]];
|
||||
// CHECK: move [[init]](move {{_.*}})
|
||||
// CHECK: {{_.*}} = [[buf]]
|
||||
let mut buf = [0; 1024];
|
||||
init(&mut buf);
|
||||
buf
|
||||
|
@ -8,6 +8,8 @@ fn val() -> u32 {
|
||||
|
||||
// EMIT_MIR union.main.DestinationPropagation.diff
|
||||
fn main() {
|
||||
// CHECK-LABEL: fn args(
|
||||
// CHECK: {{_.*}} = Un { us: const 1_u32 };
|
||||
union Un {
|
||||
us: u32,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user