Skip to content

Commit 24f08e3

Browse files
committed
---
yaml --- r: 64244 b: refs/heads/snap-stage3 c: 052c482 h: refs/heads/master v: v3
1 parent 9f18f99 commit 24f08e3

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7910c72de575a679d299dc8673206882e069c2dd
4+
refs/heads/snap-stage3: 052c482bbd87acc7ee824b6b8d2efb36c5b9917e
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/typeck/check/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,11 +3327,15 @@ pub fn instantiate_path(fcx: @mut FnCtxt,
33273327
fcx.infcx().next_ty_vars(ty_param_count)
33283328
} else if ty_substs_len > ty_param_count {
33293329
fcx.ccx.tcx.sess.span_err
3330-
(span, "too many type parameters provided for this item");
3330+
(span,
3331+
fmt!("too many type parameters provided: expected %u, found %u",
3332+
ty_param_count, ty_substs_len));
33313333
fcx.infcx().next_ty_vars(ty_param_count)
33323334
} else if ty_substs_len < ty_param_count {
33333335
fcx.ccx.tcx.sess.span_err
3334-
(span, "not enough type parameters provided for this item");
3336+
(span,
3337+
fmt!("not enough type parameters provided: expected %u, found %u",
3338+
ty_param_count, ty_substs_len));
33353339
fcx.infcx().next_ty_vars(ty_param_count)
33363340
} else {
33373341
pth.types.map(|aty| fcx.to_ty(aty))

branches/snap-stage3/src/rt/rust_env.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#define RUST_DEBUG_MEM "RUST_DEBUG_MEM"
2828
#define RUST_DEBUG_BORROW "RUST_DEBUG_BORROW"
2929

30-
#define DEFAULT_RUST_MIN_STACK_32 0x300
31-
#define DEFAULT_RUST_MIN_STACK_64 0x400000
32-
3330
static lock_and_signal env_lock;
3431

3532
extern "C" CDECL void
@@ -102,10 +99,8 @@ get_min_stk_size() {
10299
if(minsz) {
103100
return strtol(minsz, NULL, 0);
104101
}
105-
else if (sizeof(size_t) > 4) {
106-
return DEFAULT_RUST_MIN_STACK_64;
107-
} else {
108-
return DEFAULT_RUST_MIN_STACK_32;
102+
else {
103+
return 0x300;
109104
}
110105
}
111106

0 commit comments

Comments
 (0)