Corey Richardson
cc57ca012a
Use assert_eq! rather than assert! where possible
2013-05-19 08:16:02 -04:00
bors
99c7750ca6
auto merge of #6603 : thestinger/rust/whitespace, r=thestinger
2013-05-18 22:55:34 -07:00
Daniel Micay
20ef4238bb
reduce the usage of explicit version markers
2013-05-19 00:21:41 -04:00
Daniel Micay
1789174541
minor automated whitespace fixes
2013-05-18 22:40:12 -04:00
Marvin Löbel
7a2afb7288
Made bytes!() accept a list of string, integer or char literals
2013-05-18 00:26:04 +02:00
Alex Crichton
030c666cc1
Re-implement lint with less emphasis on item ids
...
This way it's much easier to add lints throughout compilation correctly, and
functions on impls can alter the way lints are emitted.
2013-05-17 00:49:16 -04:00
Niko Matsakis
035c01af93
Add BuiltinBounds to closure type: parse and handle subtyping,
...
but do not integrate with kindck etc (requires a snapshot first)
2013-05-16 14:21:02 -04:00
bors
53196bb364
auto merge of #6530 : huonw/rust/deriving-deepclone, r=bstrie
2013-05-16 06:58:52 -07:00
Huon Wilson
47c9157d87
syntax: use fmt! over + in deriving/clone
2013-05-16 23:22:01 +10:00
bors
f19883223c
auto merge of #6531 : sammykim/rust/bytes, r=luqmana
...
Fix #4334 .
2013-05-16 05:55:42 -07:00
Huon Wilson
cd2eb4701f
syntax: implement #[deriving(DeepClone)]. Fixes #6514 .
2013-05-16 22:55:08 +10:00
Sangeun Kim
70a19d5f63
Implement bytes! syntax extension
2013-05-16 13:29:54 +09:00
bors
8257528b6c
auto merge of #6502 : huonw/rust/no-auto-code, r=graydon
...
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute
and remove the majority of the actual auto_* code, leaving stubs to refer the user to
the new syntax.
Also, moves the useful contents of auto_encode.rs to more appropriate spots: tests and comments to deriving/encodable.rs, and the ExtCtxtMethods trait to build.rs (unused so far, but the method syntax might be nicer than using the mk_* fns in many instances).
2013-05-15 18:16:51 -07:00
bors
7012c42c41
auto merge of #6500 : kud1ing/rust/cleanup, r=bstrie
...
Fixes #6445
2013-05-15 16:07:44 -07:00
Huon Wilson
5dc5efefd4
syntax: deprecate #[auto_{en,de}code] in favour of #[deriving({En,De}codable)].
...
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute
and remove the majority of the actual code, leaving stubs to refer the user to
the new syntax.
2013-05-16 08:55:57 +10:00
bors
08b4cdd395
auto merge of #6499 : dotdash/rust/static_keywords, r=thestinger
2013-05-15 15:10:48 -07:00
bors
4e82610099
auto merge of #6487 : recrack/rust/vec_len, r=thestinger
...
Rename vec::len(var) to var.len()
```
libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax
test/auxiliary
test/bench
test/run-pass
```
2013-05-15 07:38:07 -07:00
Lenny222
017df987b8
remove deriving_eq, deriving_iter_bytes, deriving_clone (deprecated in 0.6)
2013-05-15 10:51:40 +02:00
Björn Steinbrink
109bb7c78b
Allow static strings to be used with keyword checks
2013-05-15 08:01:04 +02:00
bors
217f96339a
auto merge of #6224 : erickt/rust/rustc-cleanup, r=erickt
...
Just a couple minor cleanups and renames of librustc
2013-05-14 22:57:37 -07:00
bors
31cedf6927
auto merge of #6478 : dotdash/rust/inlining, r=catamorphism
...
Not inlining these affects the hash table performance quite badly.
2013-05-14 22:00:01 -07:00
Erick Tryzelaar
18f6a51d0a
rustc: rename ast::self_ty and related fields to explicit_self
2013-05-14 20:10:46 -07:00
Erick Tryzelaar
8d19f44c9d
syntax: add IterBytes impls for some ast types
2013-05-14 20:10:46 -07:00
Youngmin Yoo
a2a8596c3d
Rename vec::len(var) to var.len()
2013-05-15 11:05:28 +09:00
Brendan Zabarauskas
7e4a176dd3
Use parentheses for cond! macro instead of preceding pipes
...
This is temporary. Once the macro parser has improved or been re-written these can be removed.
2013-05-15 11:02:17 +10:00
Brendan Zabarauskas
b9824e18c2
Add Scheme-style cond!
macro to syntax::ext::expand
...
Addresses issue #6037
2013-05-15 07:02:43 +10:00
Björn Steinbrink
7ba685c7ab
Add inlining for iter_bytes for types used as hashmap keys
...
Not inlining these affects the hash table performance quite badly.
2013-05-14 20:32:49 +02:00
Alex Crichton
ffcc680f9c
Fix test fallout from removing vecs_implicitly_copyable
2013-05-14 12:25:19 -04:00
Alex Crichton
92d39fe4d5
syntax: Remove #[allow(vecs_implicitly_copyable)]
2013-05-14 12:24:43 -04:00
Marvin Löbel
04de8f852c
Fix cosmetics for fail!() calls
2013-05-14 16:36:24 +02:00
Björn Steinbrink
bdc182cc41
Use static string with fail!() and remove fail!(fmt!())
...
fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.
2013-05-14 16:36:23 +02:00
Patrick Walton
db0693ac8d
libsyntax: Tighten up expressions in patterns to only allow identifiers or literals (possibly with a minus).
...
This had very minimal fallout.
2013-05-12 16:35:19 -07:00
Patrick Walton
5d3559e645
librustc: Make self
and static
into keywords
2013-05-12 16:35:18 -07:00
Patrick Walton
06ef889cdc
libsyntax: Remove extern mod foo { ... }
from the language.
2013-05-12 16:33:15 -07:00
Corey Richardson
a279d65102
clean up the last bit of warnings
2013-05-11 20:36:47 -07:00
Tim Chevalier
ed41864464
Warning police
2013-05-11 20:36:44 -07:00
bors
957251817b
auto merge of #6389 : sonwow/rust/issue-3356, r=bstrie
...
Fix for #3356
2013-05-11 12:55:49 -07:00
Alex Crichton
63c7e2f991
Remove the '<->' operator from the language
2013-05-10 22:51:06 -04:00
bors
3e0400fb86
auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwalton
...
Closes #6183 .
The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout.
The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10 17:56:02 -07:00
Youngsoo Son
24ef88cee9
renamed str::from_slice to str::to_owned
2013-05-10 20:08:56 +09:00
bors
6da2c989ba
auto merge of #6329 : sonwow/rust/issue-6306, r=ILyoan
...
Fix for #6306
2013-05-10 03:04:51 -07:00
Youngsoo Son
b7da975049
renamed vec::from_slice to vec::to_owned
2013-05-10 18:38:54 +09:00
bors
e9d0018abf
auto merge of #6356 : dotdash/rust/strinterner, r=pcwalton
...
&str can be turned into @~str on demand, using to_owned(), so for
strings, we can create a specialized interner that accepts &str for
intern() and find() but stores and returns @~str.
2013-05-10 01:55:54 -07:00
Alex Crichton
cdc266e47d
Fix deriving(IterBytes) to use the new for-loop protocol
2013-05-10 02:46:19 -04:00
Alex Crichton
5eb6d19803
syntax: Use the new for
protocol
2013-05-10 02:46:18 -04:00
Youngsoo Son
c8e93edf55
Move core::task::local_data to core::local_data
2013-05-10 11:42:45 +09:00
Lenny222
e3230330b7
back-ticks
2013-05-09 15:46:32 +02:00
Björn Steinbrink
1393c3a3f4
Use a specialized string interner to reduce the need for owned strings
...
&str can be turned into @~str on demand, using to_owned(), so for
strings, we can create a specialized interner that accepts &str for
intern() and find() but stores and returns @~str.
2013-05-09 14:40:19 +02: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
Youngmin Yoo
841f4ceaf4
libsyntax: rename vec::each(var) to var.each
2013-05-09 14:20:04 +09:00