bors
a8527e2e97
auto merge of #5456 : graydon/rust/fixups, r=pcwalton
...
Stage markers for stage3 and a trivial prelude fix.
2013-03-20 18:27:48 -07:00
Marvin Löbel
a7d296f24c
renamed str::view -> slice_DBG_BRWD
...
renamed str::slice -> slice_DBG_UNIQ
changed vec slice method -> to_owned()
renamed vec view method -> slice_V_DBG_BRWD
2013-03-21 01:50:32 +01:00
bors
b12714eff5
auto merge of #5455 : pcwalton/rust/framework, r=catamorphism
...
r? @catamorphism
2013-03-20 16:42:47 -07:00
bors
6f3d1686b2
auto merge of #5447 : erickt/rust/incoming, r=graydon
...
This normalizes the how we call reverse iteration functions. It also adds a char_len method, and a method to iterate backwards over a string.
2013-03-20 15:30:50 -07:00
Patrick Walton
a29934a61b
librustc: Fix bug preventing -framework Foo
from working cross-crate.
2013-03-20 13:54:26 -07:00
Graydon Hoare
9350d14ecb
add stage3 markers where necessary for dist-snap
2013-03-20 13:48:57 -07:00
bors
99ac243e7b
auto merge of #5445 : nikomatsakis/rust/issue-3678-refactor-trans_call, r=graydon
...
Refactor trans_call to separate out the translation of the arguments, environment, and return pointer. Towards #3678 . r? @brson
2013-03-20 13:15:58 -07:00
bors
0847d52a86
auto merge of #5450 : pcwalton/rust/warnings, r=graydon
...
r? @graydon
2013-03-20 11:52:09 -07:00
Patrick Walton
e72d011f68
librustc: Remove debug code and add scary warnings for rusti/rustpkg
2013-03-20 11:44:01 -07:00
Erick Tryzelaar
cefecd8601
core: add str::each{,i}_reverse
2013-03-20 07:53:23 -07:00
Niko Matsakis
ad70c748c3
Apply explicit self transformation before we enter check_fn
2013-03-20 06:17:03 -04:00
Niko Matsakis
00f97b9fb0
Refactor the self-info so that the def-id is carried in ty_self()
...
and the fn_ctxt doesn't need any self_info field at all.
Step towards fixing `fn(&self)` (cc #4846 ) to have a distinct
lifetime.
2013-03-20 06:14:53 -04:00
bors
db4dc1ffe2
auto merge of #5443 : alexcrichton/rust/less-bad-copy, r=catamorphism
...
Removes a lot of instances of `/*bad*/ copy` throughout libsyntax/librustc. On the plus side, this shaves about 2s off of the runtime when compiling `librustc` with optimizations.
Ideally I would have run a profiler to figure out which copies are the most critical to remove, but in reality there was a liberal amount of `git grep`s along with some spot checking and removing the easy ones.
2013-03-20 00:09:47 -07:00
bors
01e179840f
auto merge of #5432 : ILyoan/rust/arm_use_ndk_rebase, r=sanxiyn
...
Partial Fix for #5265
- Enabling LLVM ARM ehabi option.
- Add ARM debug information manually for ccall.s
- Compile object file using Android-NDK.
Current LLVM trunk version can generate ARM debug information for assembly files but it is incomplete for object files. Unwinding on ARM can be done with LLVM trunk(the LLVM submodule of rust has problem on generating ARM debug information). See #5368
The Android-NDK detour(0f89eab) can be removed after LLVM has complete feature of generating ARM debug information for object file.
2013-03-19 23:12:46 -07:00
Alex Crichton
3fac7cce8f
rustc: Remove some bad copies throughout
2013-03-20 01:28:32 -04:00
bors
f3c879fdd8
auto merge of #5442 : pcwalton/rust/extern-block-restriction, r=pcwalton
...
r? @graydon
2013-03-19 21:57:49 -07:00
Erick Tryzelaar
fe74a1c9a2
core: rename vec::rev_each{,i} to vec::each{,i}_reverse
...
I'm making this change because the _reverse suffix is more commonly
used in libcore/libstd.
2013-03-19 20:24:04 -07:00
bors
4cb9ca9296
auto merge of #5410 : luqmana/rust/cfg-and, r=graydon
...
This adopts the syntax from #2119 . No more annoying workarounds involving wrapping in mods!
2013-03-19 18:39:50 -07:00
bors
251d0c4557
auto merge of #5350 : yichoi/rust/pull-0313-2, r=graydon,pcwalton
...
FIX #5330
rename arm-unknown-android to arm-linux-androideabi
2013-03-19 17:06:55 -07:00
Patrick Walton
2e7ec80bcc
librustc: Enforce privacy for static methods.
...
This starts moving a bunch of privacy checks into the privacy
checking phase and out of resolve.
2013-03-19 13:40:48 -07:00
Luqman Aden
429fed0c8b
librustc: adjust logic for cfg attribute and add not predicate.
2013-03-19 13:00:51 -07:00
bors
e1888948c6
auto merge of #5426 : nikomatsakis/rust/issue-4846-lifetimes-in-expl-self, r=pcwalton
...
(this will be needed for snapshotting at some point)
r? @pcwalton
2013-03-19 12:43:14 -07:00
bors
a14ec73cd2
auto merge of #5356 : jld/rust/enum-less-magic, r=graydon
...
Fixes #1645 .
2013-03-19 11:43:10 -07:00
Niko Matsakis
e821671989
Refactor trans_call to separate out the translation of the arguments, environment, and return pointer
2013-03-19 14:40:34 -04:00
bors
58209910bd
auto merge of #5433 : lucab/rust/lucab/cfgspec, r=graydon
...
All current meta items types (word, name-value, list) are now
properly parsed by rustc --cfg command line. Fixes #2399
2013-03-19 10:43:24 -07:00
Luca Bruno
0a34a3f0f5
Make driver::driver::parse_cfgspecs parse any variety of meta_item
...
All current meta items types (word, name-value, list) are now
properly parsed by rustc --cfg command line. Fixes #2399
Signed-off-by: Luca Bruno <lucab@debian.org>
2013-03-19 14:02:59 +01:00
ILyoan
0f89eab89d
Use NDK for building android target objects
2013-03-19 17:23:31 +09:00
Luqman Aden
8b66578e66
Allow expressions that are not just a single value for repeated fixed length vector syntax.
2013-03-18 17:31:41 -07:00
Luqman Aden
787f5bb0db
Now actually allow using constants in those constant expressions for [T * n].
2013-03-18 17:31:41 -07:00
Luqman Aden
42f95d055c
Allow constant expressions in [Type * n].
2013-03-18 17:31:41 -07:00
Patrick Walton
e78f2e2ac5
librustc: Make the compiler ignore purity.
...
For bootstrapping purposes, this commit does not remove all uses of
the keyword "pure" -- doing so would cause the compiler to no longer
bootstrap due to some syntax extensions ("deriving" in particular).
Instead, it makes the compiler ignore "pure". Post-snapshot, we can
remove "pure" from the language.
There are quite a few (~100) borrow check errors that were essentially
all the result of mutable fields or partial borrows of `@mut`. Per
discussions with Niko I think we want to allow partial borrows of
`@mut` but detect obvious footguns. We should also improve the error
message when `@mut` is erroneously reborrowed.
2013-03-18 17:21:16 -07:00
Patrick Walton
c4db4faefa
libsyntax: Stop parsing old lifetimes, except for the ones on data type declarations.
2013-03-18 17:21:15 -07:00
Patrick Walton
352c070365
librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming
2013-03-18 17:21:14 -07:00
Niko Matsakis
a6187c62e9
Make &self permit explicit lifetimes, but don't really use them
...
(this will be needed for snapshotting at some point).
2013-03-18 15:03:37 -04:00
Luqman Aden
83f2d4ab3d
Fix type_use for inline asm.
2013-03-15 18:57:19 -07:00
Luqman Aden
d68b98a5bf
Don't use by_val for passing asm operands.
2013-03-15 18:55:44 -07:00
Luqman Aden
3d56936be3
Tidy.
2013-03-15 18:55:44 -07:00
Luqman Aden
e182ac4bbd
Actually use no or multiple operands properly.
2013-03-15 18:55:44 -07:00
Luqman Aden
9ead7dad93
Implicitly use addr_of for output operands in asm.
2013-03-15 18:55:44 -07:00
Luqman Aden
59dcbd9f1c
Initial support for output operands in asm.
2013-03-15 18:55:44 -07:00
Luqman Aden
d8ab47e7f9
Properly handle input operands for inline asm.
2013-03-15 18:55:43 -07:00
Luqman Aden
6d078db952
Actually pass inline asm operands around.
2013-03-15 18:55:43 -07:00
Luqman Aden
471d2b1765
Inline asm exprs should be RvalueStmtExpr.
2013-03-15 18:55:43 -07:00
Patrick Walton
1c8490b0d9
librustc: Remove another deprecated use of as Trait
. rs=burningtree
2013-03-14 08:03:05 -07:00
Patrick Walton
aa4c19b6ab
librustc: Allow path-qualified constants in patterns
2013-03-13 20:07:11 -07:00
Patrick Walton
8fa66e8e07
librustc: Remove implicit self from the language, except for old-style drop blocks.
2013-03-13 20:07:10 -07:00
Patrick Walton
a410652bc9
librustc: Remove "base types" from the language.
2013-03-13 20:07:09 -07:00
Patrick Walton
b85158e23a
librustc: Remove overloaded operator autoderef.
2013-03-13 20:07:09 -07:00
Patrick Walton
b1c699815d
librustc: Don't accept as Trait
anymore; fix all occurrences of it.
2013-03-13 20:07:09 -07:00
Patrick Walton
24a0de4e7f
librustc: Separate out trait storage from evec/estr storage
2013-03-13 20:07:08 -07:00