Skip to content

Commit b571a87

Browse files
committed
---
yaml --- r: 156590 b: refs/heads/try c: 61ab2ea h: refs/heads/master v: v3
1 parent 31e805c commit b571a87

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a34b8dec697014f15e725215e17ea8d956c0ab1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d44ea720fa9dfe062ef06d0eb49a58d4e7e92344
5-
refs/heads/try: 1ee345a87b05a4972e100f148819d2020c55381f
5+
refs/heads/try: 61ab2ea08ae669711c5d9c0c069da2d0a8606639
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75

branches/try/src/librustc/middle/trans/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
720720
}
721721

722722
pub fn max_obj_size(&self) -> u64 {
723-
1<<31 /* FIXME: select based on architecture */
723+
1<<31 /* FIXME #18069: select based on architecture */
724724
}
725725

726726
pub fn report_overbig_object(&self, obj: ty::t) -> ! {
727727
self.sess().fatal(
728-
format!("Objects of type `{}` are too big for the current ABI",
728+
format!("the type `{}` is too big for the current architecture",
729729
obj.repr(self.tcx())).as_slice())
730730
}
731731
}

branches/try/src/librustc/middle/trans/controlflow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ pub fn trans_fail<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
499499
let loc = bcx.sess().codemap().lookup_char_pos(sp.lo);
500500
let filename = token::intern_and_get_ident(loc.file.name.as_slice());
501501
let filename = C_str_slice(ccx, filename);
502-
let line = C_int(ccx, loc.line as i64);
502+
let line = C_uint(ccx, loc.line);
503503
let expr_file_line_const = C_struct(ccx, &[v_str, filename, line], false);
504504
let expr_file_line = consts::const_addr_of(ccx, expr_file_line_const, ast::MutImmutable);
505505
let args = vec!(expr_file_line);
@@ -526,7 +526,7 @@ pub fn trans_fail_bounds_check<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
526526

527527
// Invoke the lang item
528528
let filename = C_str_slice(ccx, filename);
529-
let line = C_int(ccx, loc.line as i64);
529+
let line = C_uint(ccx, loc.line);
530530
let file_line_const = C_struct(ccx, &[filename, line], false);
531531
let file_line = consts::const_addr_of(ccx, file_line_const, ast::MutImmutable);
532532
let args = vec!(file_line, index, len);

branches/try/src/librustc/middle/trans/type_of.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ use std::num::CheckedMul;
2828

2929
// LLVM doesn't like objects that are too big. Issue #17913
3030
fn ensure_array_fits_in_address_space(ccx: &CrateContext,
31-
llet: Type,
32-
size: machine::llsize,
33-
scapegoat: ty::t) {
31+
llet: Type,
32+
size: machine::llsize,
33+
scapegoat: ty::t) {
3434
let esz = machine::llsize_of_alloc(ccx, llet);
3535
match esz.checked_mul(&size) {
3636
Some(n) if n < ccx.max_obj_size() => {}

branches/try/src/test/compile-fail/simple-oversized-array.rs renamed to branches/try/src/test/compile-fail/huge-array-simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: too big for the current ABI
11+
// error-pattern: too big for the current
1212

1313
fn main() {
1414
let fat : [u8, ..1<<61] = [0, ..1<<61];

branches/try/src/test/compile-fail/oversized-struct.rs renamed to branches/try/src/test/compile-fail/huge-struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: are too big for the current ABI
11+
// error-pattern: too big for the current
1212

1313
struct S32<T> {
1414
v0: T,

0 commit comments

Comments
 (0)