Patrick Walton
bf2a225c0b
librustc: Separate most trait bounds with '+'. rs=plussing
2013-02-20 21:14:20 -08:00
bors
0aa1aaa2c1
auto merge of #5058 : Thiez/rust/incoming, r=catamorphism
...
I've moved all intrinsics in a single file (libcore/private/intrinsics.rs) and changed a few files to make use of this file (e.g. vec.rs: move_val_init).
Two intrinsics have been commented out:
visit_tydesc: it uses TyDesc and TyVisitor, this would create a dependency on librustc which seems undesirable.
frame_address: I really had no idea what it should look like without the legacy modes (would it even work? In several places in libcore the (legacy-modes) intrinsics were wrapped
with a normal fn) and what it was supposed to do.
Some documentation is still required, but many names are fairly self-explanatory.
2013-02-20 20:26:32 -08:00
bors
a307608781
auto merge of #5066 : catamorphism/rust/luqmana-derecording, r=catamorphism
...
Most work done by @luqmana and @pcwalton - I just rebased.
2013-02-20 19:16:33 -08:00
Tim Chevalier
ad9c54c631
Merge
2013-02-20 19:09:32 -08:00
Tim Chevalier
f823d83718
Fix vdef pattern
2013-02-20 18:45:50 -08:00
Tim Chevalier
a4403e5cb8
Fix flipped tuple that was causing all that pain
2013-02-20 18:45:50 -08:00
Tim Chevalier
0c3290a217
Merge
2013-02-20 18:45:50 -08:00
Luqman Aden
6282e5da67
librustc: tidy
2013-02-20 18:45:50 -08:00
Luqman Aden
601c2edb4d
Fix fallout in rusti & rustpkg.
2013-02-20 18:45:50 -08:00
Luqman Aden
cd82c4566b
librustc: Get rid of structural records save for front/test.rs.
2013-02-20 18:45:50 -08:00
bors
1b04be6858
auto merge of #5049 : bstrie/rust/vim, r=catamorphism
...
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long
2013-02-20 18:14:34 -08:00
Tim Chevalier
bad4463a6b
rustc: Use position method in check::method
...
...because it appears to work now. Removes a FIXME.
2013-02-20 17:46:01 -08:00
bors
8f8f0ec2c6
auto merge of #5043 : brson/rust/swap, r=brson
...
r?
2013-02-20 16:58:34 -08:00
Brian Anderson
423843e54b
Don't perform swap when src == dst. #5041
2013-02-20 16:18:48 -08:00
bors
62f2b4943a
auto merge of #5046 : sanxiyn/rust/struct-match, r=catamorphism
...
Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.
Fix #4849 .
2013-02-20 16:08:36 -08:00
Patrick Walton
831840ab24
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
2013-02-20 16:04:48 -08:00
Matthijs 'Thiez' Hofstra
9776c38731
Changed a test to use intrinsics.rs and changed a few lines that were too long, had bad whitespace, etc.
2013-02-20 20:45:17 +01:00
Matthijs 'Thiez' Hofstra
675bdcf341
Created libcore/private/intrinsics.rs, which aims to contain every
...
rustc intrinsic. Several files in libcore have been changed to use
these intrinsics.
As of yet, none of the intrinsics are documented.
2013-02-20 20:39:49 +01:00
Ben Striegel
e29b7eedf9
vim improvements
...
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long
2013-02-19 23:07:09 -05:00
bors
db25210244
auto merge of #5044 : thestinger/rust/range, r=pcwalton
...
Closes #4924
There are some more `Load` calls that could use this, so it's not completely done yet.
2013-02-19 19:04:28 -08:00
Daniel Micay
fa6e3b49bf
replace explicit loops with foldr
2013-02-19 21:20:07 -05:00
bors
b88e4f3b9f
auto merge of #5039 : alexcrichton/rust/issue-4875, r=catamorphism
...
It looks like the type for the whole pattern wasn't being written back, so when privacy tried to look it up everything died.
2013-02-19 17:38:29 -08:00
Daniel Micay
12b43b274b
add range assert when loading bools
2013-02-19 20:22:04 -05:00
bors
eed2ca61a9
auto merge of #5040 : Kimundi/rust/incoming, r=graydon
2013-02-19 15:50:28 -08:00
Daniel Micay
0262e4b138
use range assert when loading enum discriminant
...
Closes #4924
2013-02-19 17:59:24 -05:00
bors
e4ff01317c
auto merge of #5006 : tedhorst/rust/linear_mand, r=brson
2013-02-19 14:58:30 -08:00
Alex Crichton
cc3fbcee51
Fix for issue 4875
2013-02-19 17:35:02 -05:00
bors
8a520ff99f
auto merge of #5000 : jld/rust/test-stdin-thing, r=graydon
...
As far as I can tell, the only reason run-pass/type-use-i1-versus-i8
is trying to do a read is because that code was left over from the
original program the issue was found in. When that test is run as
part of check-fast, and apparently only in that case, the test blocks
indefinitely, which is bad.
2013-02-19 14:12:37 -08:00
Marvin Löbel
34c39bb1c4
Rewrited section about rust tool
2013-02-19 22:19:19 +01:00
bors
1f956fc3b2
auto merge of #4999 : erickt/rust/incoming, r=brson
...
This patch series is doing a couple things with the ultimate goal of removing `#[allow(vecs_implicitly_copyable)]`, although I'm not quite there yet. The main change is passing around `@~str`s in most places, and using `ref`s in others. As far as I could tell, there are no performance changes with these patches, and all the tests pass on my mac.
2013-02-19 12:24:30 -08:00
Marvin Löbel
8ee2d58683
Give the rust tool an own section in the tutorial.
2013-02-19 20:57:23 +01:00
bors
a782efc4f1
auto merge of #5032 : lifthrasiir/rust/issue-4935, r=catamorphism
...
Actually a trivial fix. Fixes the issue #4935 .
2013-02-19 10:34:31 -08:00
Erick Tryzelaar
68746cd4fb
librustc: change driver::session::Session::str_of to return @~str
2013-02-19 10:11:05 -08:00
Erick Tryzelaar
b90ccc9a38
librustc: minor cleanup
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
ae86c03af2
librustc: change check_item_non_camel_case_types to not copy
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
3c0eca7940
librustc: convert creader and cstore to use @~strs
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
a18e7d6656
librustc: minor cleanup
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
53951afe48
librustc: convert lint_dict to take @~strs as keys
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
04334c1ae0
librustc: convert LangItemsCollector::item_refs to take @~str as a key
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
e95f21f7be
convert SyntaxExtensions's key to a @~str
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
de5fdaf934
convert ast::meta_items to take @~strs
2013-02-19 10:02:52 -08:00
Erick Tryzelaar
a2b754788d
convert syntax::attr to use @~strs
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
1808d747f6
Alias HashMap<~str, SyntaxExtension> to SyntaxExtensions
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
27e235b64a
libsyntax and librustc: minor cleanup
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
1a5b8e4aba
libsyntax: change attr:get_attr_name to take a ref
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
bc62bd3782
libsyntax: make enum variants take refs
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
59ba4fc104
syntax: fix the indentation of a function
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
e6d84268fa
Change functions from taking ~str to taking &str
2013-02-19 10:02:51 -08:00
Erick Tryzelaar
9da641bd8c
libsyntax: convert interner into a modern struct
2013-02-19 10:02:50 -08:00
Seo Sanghyeon
a29023e9b2
Check type when struct is matched against enum-like pattern
...
Previously check always succeeded because struct type was derived from
the matched expression, not the matched pattern.
2013-02-20 02:44:02 +09:00