File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
librustc/middle/typeck/check Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 7910c72de575a679d299dc8673206882e069c2dd
4
+ refs/heads/snap-stage3: 052c482bbd87acc7ee824b6b8d2efb36c5b9917e
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -3327,11 +3327,15 @@ pub fn instantiate_path(fcx: @mut FnCtxt,
3327
3327
fcx. infcx( ) . next_ty_vars( ty_param_count)
3328
3328
} else if ty_substs_len > ty_param_count {
3329
3329
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) ) ;
3331
3333
fcx. infcx( ) . next_ty_vars( ty_param_count)
3332
3334
} else if ty_substs_len < ty_param_count {
3333
3335
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) ) ;
3335
3339
fcx. infcx ( ) . next_ty_vars ( ty_param_count)
3336
3340
} else {
3337
3341
pth. types . map ( |aty| fcx. to_ty ( aty) )
Original file line number Diff line number Diff line change 27
27
#define RUST_DEBUG_MEM " RUST_DEBUG_MEM"
28
28
#define RUST_DEBUG_BORROW " RUST_DEBUG_BORROW"
29
29
30
- #define DEFAULT_RUST_MIN_STACK_32 0x300
31
- #define DEFAULT_RUST_MIN_STACK_64 0x400000
32
-
33
30
static lock_and_signal env_lock;
34
31
35
32
extern " C" CDECL void
@@ -102,10 +99,8 @@ get_min_stk_size() {
102
99
if (minsz) {
103
100
return strtol (minsz, NULL , 0 );
104
101
}
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 ;
109
104
}
110
105
}
111
106
You can’t perform that action at this time.
0 commit comments