Patrick Walton
02c49b32ca
libsyntax: Remove @const
from the language
2013-03-21 17:31:35 -07:00
Patrick Walton
d4fee24c7c
librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis
2013-03-21 17:31:34 -07:00
Patrick Walton
5726fd4526
librustc: Forbid access to cross-crate private static methods
2013-03-21 09:47:17 -07:00
bors
56d288d0dc
auto merge of #5464 : luqmana/rust/const-pat, r=pcwalton
...
r? @pcwalton
2013-03-21 08:49:13 -07:00
Patrick Walton
efb5f8734a
libcore: Remove a few possibly-cyclic imports in an effort to unbreak the tree on Linux
2013-03-21 08:06:20 -07:00
bors
b8899138f8
auto merge of #5466 : Kimundi/rust/view-slice-rename, r=bstrie
...
A slice now always refers to something that returns an borrowed pointer, views don't exist anymore. If you want to have an explictit copy of a slice, use `to_owned()`
2013-03-21 07:06:54 -07:00
bors
0b4f2687ce
auto merge of #5470 : sanxiyn/rust/remove-oldmap-2, r=sanxiyn
...
Referencing #4986 .
2013-03-21 06:15:58 -07:00
Seo Sanghyeon
e2b9cddbbb
Switch impls_seen from oldmap
2013-03-21 22:11:30 +09:00
Marvin Löbel
9d9a209e9a
back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> slice_unique
2013-03-21 14:05:57 +01:00
Seo Sanghyeon
f0beb8c059
Switch CoherenceInfo from oldmap
2013-03-21 20:55:28 +09:00
Marvin Löbel
8f4448837b
removed str::slice_DBG_UNIQ
2013-03-21 11:59:25 +01:00
Patrick Walton
1fa2b9980f
test: XFAIL test issue-4120 due to Valgrind complaints.
2013-03-21 03:55:25 -07:00
Seo Sanghyeon
dad5c3029d
Time type checking passes separately
2013-03-21 19:28:58 +09:00
Seo Sanghyeon
64d923f7dd
Move the function to time passes to util
2013-03-21 18:50:02 +09:00
bors
3ac89737ca
auto merge of #5465 : sanxiyn/rust/remove-oldmap, r=sanxiyn
...
Improves resolve by 20% as measured by time-passes on rustc.
2013-03-21 01:21:51 -07:00
Seo Sanghyeon
f68f2282c1
Switch Module.import_resolutions from oldmap
2013-03-21 17:10:57 +09:00
Luqman Aden
3f2d576a38
Test for cross-crate const in match pattern.
2013-03-21 00:38:31 -07:00
Luqman Aden
2ed80c35e2
librustc: Fix path-qualified and cross-crate constants in match patterns.
2013-03-21 00:38:30 -07:00
Seo Sanghyeon
e84323e9b8
Switch Module.children from oldmap
2013-03-21 16:26:38 +09:00
bors
9814d0d412
auto merge of #5458 : pcwalton/rust/valgrind-suppress, r=pcwalton
2013-03-20 20:00:50 -07:00
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
257ef26bf1
etc: Suppress Linux valgrind issues for new scheduler
2013-03-20 15:13:01 -07:00
bors
51da7d4bc7
auto merge of #5453 : catamorphism/rust/issue-4120, r=catamorphism
2013-03-20 14:27:56 -07:00
Patrick Walton
a29934a61b
librustc: Fix bug preventing -framework Foo
from working cross-crate.
2013-03-20 13:54:26 -07:00
Patrick Walton
9c4d804cfe
libsyntax: Never use ::<>
in the type grammar
2013-03-20 13:54:25 -07:00
Graydon Hoare
9350d14ecb
add stage3 markers where necessary for dist-snap
2013-03-20 13:48:57 -07:00
Graydon Hoare
bb9e1e2660
core: add Reader, Writer, ReaderUtil, WriterUtil to prelude. Close #4182 .
2013-03-20 13:48:57 -07:00
Tim Chevalier
373504a7ac
testsuite: Add test for #4210
2013-03-20 13:37: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
Erick Tryzelaar
8d5ab3061a
core: add char_len method
2013-03-20 07:53:23 -07:00
Erick Tryzelaar
4b0f29a466
core: add char_at_reverse
2013-03-20 07:53:23 -07:00
bors
63a292fd86
auto merge of #5434 : apasel422/rust/deriving, r=nikomatsakis
...
This is the first step in refactoring the deriving code in libsyntax. No code is changed, just rearranged.
2013-03-20 06:45:51 -07:00
bors
c202430687
auto merge of #5435 : nikomatsakis/rust/issue-4846-refactor-self_info, r=nikomatsakis
...
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. Pull out explicit self transformation into `check_method`. Step towards fixing `fn(&self)` to have a distinct lifetime. (cc #4846 )
r? @catamorphism
2013-03-20 03:18:45 -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
Patrick Walton
f8dab3a6c0
test: Fix test. rs=test
2013-03-19 21:55:23 -07:00
Alex Crichton
cd7f3ad22e
syntax: Removing some bad copies
2013-03-20 00:33:15 -04:00
Patrick Walton
ca3bc644f4
libcore: Make a couple of constructors public. rs=testfixing
2013-03-19 20:37:53 -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