Skip to content

Commit 655401c

Browse files
committed
---
yaml --- r: 278237 b: refs/heads/auto c: d460597 h: refs/heads/master i: 278235: 24c157f
1 parent 5f5a7c0 commit 655401c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 9709dff7e3b9aecd392465529790edd906d95037
11+
refs/heads/auto: d460597e3373c7ec2a54f64faf6a1f8874b958bd
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc_trans/mir/block.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
213213

214214
let extra_args = &args[sig.inputs.len()..];
215215
let extra_args = extra_args.iter().map(|op_arg| {
216-
self.mir.operand_ty(bcx.tcx(), op_arg)
216+
let op_ty = self.mir.operand_ty(bcx.tcx(), op_arg);
217+
bcx.monomorphize(&op_ty)
217218
}).collect::<Vec<_>>();
218219
let fn_ty = callee.direct_fn_type(bcx.ccx(), &extra_args);
219220

branches/auto/src/test/run-pass/mir_trans_calls_variadic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ extern {
1616
}
1717

1818
#[rustc_mir]
19-
fn test(a: i64, b: i64, c: i64, d: i64, e: i64, f: i64) -> i64 {
19+
fn test<T, U>(a: i64, b: i64, c: i64, d: i64, e: i64, f: T, g: U) -> i64 {
2020
unsafe {
2121
rust_interesting_average(6, a, a as f64,
2222
b, b as f64,
2323
c, c as f64,
2424
d, d as f64,
2525
e, e as f64,
26-
f, f as f64) as i64
26+
f, g) as i64
2727
}
2828
}
2929

3030
fn main(){
31-
assert_eq!(test(10, 20, 30, 40, 50, 60), 70);
31+
assert_eq!(test(10, 20, 30, 40, 50, 60_i64, 60.0_f64), 70);
3232
}

0 commit comments

Comments
 (0)