Alex Crichton
606bd75586
Fix merge "failures"
2013-05-10 19:20:21 -04:00
Alex Crichton
a87db3e2cd
rustc: Use the new for
protocol
2013-05-10 02:46:19 -04:00
Alex Crichton
0cde8ba684
Implement a new protocol for for
loops that's much more easily composable
2013-05-10 02:46:18 -04:00
bors
ad8e236f32
auto merge of #6336 : nikomatsakis/rust/issue-6308-closure-bounds, r=nikomatsakis
...
Use a bitset to represent built-in bounds. There are several places in the language where only builtin bounds (aka kinds) will be accepted, e.g. on closures, destructor type parameters perhaps, and on trait types.
r? @brson
2013-05-09 17:50:21 -07:00
bors
f547a671dc
auto merge of #6373 : nikomatsakis/rust/issue-6355-perf-regression, r=graydon
...
Fix #6355 and #6272---we were not giving the correct index to the derefs that occur as part of the rooting process, resulting in extra copies and generally bogus behavior. Haven't quite produced the right test for this, but I thought I'd push the fix in the meantime. Test will follow shortly.
r? @graydon
2013-05-09 13:45:49 -07:00
Niko Matsakis
e18ed77b72
Remove remnants of mutable fields from mem_categorization, borrowck.
2013-05-09 15:58:41 -04:00
Niko Matsakis
15164cc6a6
Issue the correct deref count for the implicit deref that occurs
...
as part of an autoslice operation (#6272 ).
Fixes #6272 .
2013-05-09 15:58:02 -04:00
bors
7675856253
auto merge of #6354 : Aatch/rust/uninit-intrinsic, r=graydon
...
Adds an `uninit` intrinsic.
It's just an empty function, so llvm optimizes it down to nothing.
I changed all of the `init` intrinsic usages to `uninit` where it seemed appropriate to.
2013-05-09 12:37:00 -07:00
bors
7a4c6e587d
auto merge of #6325 : sammykim/rust/lint-name, r=graydon
...
Fix #3525 .
2013-05-09 08:54:38 -07:00
Niko Matsakis
dc2ca9d883
Refactor representation of bounds to separate out BuiltinBounds into
...
its own type. Use a bitset to represent built-in bounds. There
are several places in the language where only builtin bounds (aka kinds)
will be accepted, e.g. on closures, destructor type parameters perhaps,
and on trait types.
2013-05-09 11:39:06 -04:00
bors
ca95e7f94e
auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiyn
...
Hi there,
Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes.
Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`.
Thanks!
Sean
2013-05-09 03:51:32 -07:00
James Miller
050c744c23
Add uninit intrinsic
2013-05-09 22:23:38 +12:00
Youngmin Yoo
c02064d153
librustc: rename vec::each(var) to var.each
2013-05-09 14:20:04 +09:00
Patrick Walton
3affc6ed40
librustc: Fix merge fallout.
2013-05-08 17:04:02 -07:00
Patrick Walton
16a0125e41
libcore: Fix tests.
2013-05-08 17:04:01 -07:00
Patrick Walton
99daec602f
librustc: Fix merge fallout.
2013-05-08 17:04:00 -07:00
Patrick Walton
db4573a776
librustc: Remove mutable fields from the language.
...
They're still parsed though, to get through bootstrapping.
2013-05-08 17:04:00 -07:00
Patrick Walton
4dc1c2976d
libcore: Remove mutable fields from hash
2013-05-08 17:03:58 -07:00
bors
5a65f51d66
auto merge of #6214 : sanxiyn/rust/simd-2, r=graydon
...
At the moment this only includes type checking and there is no code generation support yet. I wanted to get the design reviewed first.
From discussion with @graydon at #5841 , re-implemented as `#[simd]` attribute on structs.
Progressing towards #3499 .
2013-05-08 14:09:38 -07:00
bors
65ded84d20
auto merge of #6119 : brson/rust/main, r=brson
...
r? @ILyoan
This pulls all the logic for discovering the crate entry point into a new pass (out of resolve and typeck), then changes it so that main is only looked for at the crate level (`#[main]` can still be used anywhere).
I don't understand the special android logic here and worry that I may have broken it.
2013-05-08 12:24:39 -07:00
Brian Anderson
3970d02ec5
rustc: Fix the logic for finding the Android main function
...
I don't understand what this logic is doing
2013-05-08 12:03:15 -07:00
Sean Moon
bd4ee7c7d2
Fix typos
2013-05-09 02:34:47 +09:00
bors
b6f9295654
auto merge of #6317 : brson/rust/durable, r=z0w0
...
#6312
2013-05-08 05:03:38 -07:00
bors
1d7a136145
auto merge of #6309 : nikomatsakis/rust/issue-3678-type-of-extern-fns, r=nikomatsakis
...
Lift restriction on calling extern C functions, and propagate the ABI as part of the type of an extern fn. cc #3678
2013-05-08 02:42:37 -07:00
Sangeun Kim
dc48a558b6
Show lint names
2013-05-08 17:23:48 +09:00
bors
86500fbb13
auto merge of #6297 : sammykim/rust/static-lint-table, r=luqmana
2013-05-07 23:18:39 -07:00
Sangeun Kim
356ebe8792
extranous thing is removed
2013-05-08 10:42:47 +09:00
Brian Anderson
3df7ed15b7
Remove Durable from the language
2013-05-07 17:50:42 -07:00
Brian Anderson
d8ef723d49
rustc: Replace Durable with 'static
2013-05-07 15:30:57 -07:00
Seo Sanghyeon
0ed4495ac4
Generate LLVM SIMD vector types
2013-05-08 02:09:19 +09:00
Seo Sanghyeon
784e8369ca
Remove trailing whitespace
2013-05-08 01:01:31 +09:00
Niko Matsakis
11f7cb26c2
When autoborrowing a fn in trans, adjust the type of the datum to be &fn
.
...
Fixes #6141 .
2013-05-07 11:41:27 -04:00
Seo Sanghyeon
f3217a5c9c
Check SIMD vector types
2013-05-07 23:35:33 +09:00
Seo Sanghyeon
8e0c6fa5b6
Port IRBuilder::CreateVectorSplat
2013-05-07 23:29:19 +09:00
Niko Matsakis
387d6c597a
Lift restriction on calling extern C functions, and propagate
...
the ABI as part of the type of an extern fn. cc #3678
2013-05-07 05:28:39 -04:00
bors
bdb52e58b4
auto merge of #6251 : thestinger/rust/non_owned, r=pcwalton
...
Also fixed the docstring on `TC_ONCE_CLOSURE` (was accidentally the same as `TC_MUTABLE`) and shifted the `TC_EMPTY_ENUM` bit left by one since whatever previously used that bit has been removed.
2013-05-07 01:27:38 -07:00
Sangeun Kim
7455f986a8
Make lint_table static
2013-05-07 16:28:58 +09:00
Niko Matsakis
39a119074a
appease the tidy gods with respect to a FIXME
2013-05-06 20:27:59 -04:00
Niko Matsakis
0ef4e860da
Replace NOTE with FIXME
2013-05-06 14:02:28 -04:00
Niko Matsakis
2ea52a38e5
refinement to technique used to not run regionck
2013-05-06 09:00:37 -04:00
Niko Matsakis
e235f6ca53
remove some unused mut decls and vars
2013-05-06 05:18:23 -04:00
Niko Matsakis
4dc62dfcf3
do not run regionck if there have been type errors
2013-05-06 05:17:36 -04:00
Niko Matsakis
7b36e34c89
Fix two more write guard failures
2013-05-05 21:05:37 -04:00
Daniel Micay
bc52224d47
factor out the has_attr checks
2013-05-05 15:50:10 -04:00
Daniel Micay
58c0df2af6
add #[non_owned] and #[mutable] attributes
2013-05-05 15:36:26 -04:00
Niko Matsakis
4300d4d2fa
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freeze
...
Conflicts:
src/libcore/core.rc
src/libcore/hashmap.rs
src/libcore/num/f32.rs
src/libcore/num/f64.rs
src/libcore/num/float.rs
src/libcore/num/int-template.rs
src/libcore/num/num.rs
src/libcore/num/strconv.rs
src/libcore/num/uint-template.rs
src/libcore/ops.rs
src/libcore/os.rs
src/libcore/prelude.rs
src/libcore/rt/mod.rs
src/libcore/unstable/lang.rs
src/librustc/driver/session.rs
src/librustc/middle/astencode.rs
src/librustc/middle/borrowck/check_loans.rs
src/librustc/middle/borrowck/gather_loans.rs
src/librustc/middle/borrowck/loan.rs
src/librustc/middle/borrowck/preserve.rs
src/librustc/middle/liveness.rs
src/librustc/middle/mem_categorization.rs
src/librustc/middle/region.rs
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/inline.rs
src/librustc/middle/trans/reachable.rs
src/librustc/middle/typeck/check/_match.rs
src/librustc/middle/typeck/check/regionck.rs
src/librustc/util/ppaux.rs
src/libstd/arena.rs
src/libstd/ebml.rs
src/libstd/json.rs
src/libstd/serialize.rs
src/libstd/std.rc
src/libsyntax/ast_map.rs
src/libsyntax/parse/parser.rs
src/test/compile-fail/borrowck-uniq-via-box.rs
src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs
src/test/run-pass/borrowck-nested-calls.rs
2013-05-05 15:11:04 -04:00
Niko Matsakis
6cb273ed4e
Address all FIXMEs from #5562
2013-05-05 13:50:10 -04:00
Niko Matsakis
0b0b8018a6
add warning for #6248 and remove instances of it
2013-05-05 12:17:59 -04:00
Brian Anderson
8081e8debf
Register snapshots
2013-05-04 15:43:51 -07:00
Niko Matsakis
989d008124
separate out write_guard code into its own module
2013-05-04 14:29:32 -04:00