Alex Crichton
1daaf785ab
Optimize lint passes to perform far fewer allocations
...
Achieves ~3x speedup on lint passes for libcore
2013-05-17 00:49:17 -04: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
bors
918bfa710c
auto merge of #6546 : cmr/rust/warning, r=thestinger
2013-05-16 21:19:38 -07:00
bors
77c98f0815
auto merge of #6523 : cmr/rust/faster_each_permutation, r=luqmana
...
Closes #5127
2013-05-16 20:04:41 -07:00
Corey Richardson
af54d58891
Update to new for-loop protocol
2013-05-16 22:57:49 -04:00
James Miller
a289dcd187
Fix AtomicLoad builder code
2013-05-17 14:48:24 +12:00
Brendan Zabarauskas
5696081781
Implement sin_cos method for float, f64 and f32
2013-05-17 12:30:02 +10:00
Corey Richardson
c67a85ada1
Remove each_permutation_ref
2013-05-16 22:05:05 -04:00
bors
09bf401f1d
auto merge of #6544 : thestinger/rust/new_iter, r=nikomatsakis
2013-05-16 18:58:39 -07:00
Corey Richardson
c2baaa8d84
fix warnings
2013-05-16 21:53:54 -04:00
Daniel Micay
08ef229a65
iter: add fold, sum and product
2013-05-16 21:51:31 -04:00
Corey Richardson
c99d1de85b
Update to modern rust
2013-05-16 20:59:06 -04:00
Tommy M. McGuire
5948d8a826
Ensure reverse_part does not access outside given vector
2013-05-16 20:59:06 -04:00
Tommy M. McGuire
2264c7927d
Add reverse_part, replace each_permutation, add tests
2013-05-16 20:59:06 -04:00
bors
17970a9111
auto merge of #6545 : catamorphism/rust/unused-import, r=catamorphism
2013-05-16 17:52:40 -07:00
Tim Chevalier
1bf4f90291
rustc: Remove import that is, indeed, not necessary
2013-05-16 17:25:19 -07:00
Tim Chevalier
226f4dfdfb
rustc: One less bad copy
2013-05-16 17:02:27 -07:00
bors
f89e00b3d1
auto merge of #6543 : catamorphism/rust/traits-cleanup, r=nikomatsakis
...
r? @nikomatsakis Impls can implement either zero or one traits; this has been true
more or less since we removed classes. So I got rid of the comments
saying "we should support multiple traits" and changed the code to
make it clear that we don't. This is just cleanup, and doesn't break
any existing tests.
2013-05-16 16:49:37 -07:00
Tim Chevalier
65b7903ba3
rustc: Change ty::get_impl_traits to return an option instead of a vec
...
Impls can implement either zero or one traits; this has been true
more or less since we removed classes. So I got rid of the comments
saying "we should support multiple traits" and changed the code to
make it clear that we don't. This is just cleanup, and doesn't break
any existing tests.
2013-05-16 15:54:51 -07:00
bors
00eef96a00
auto merge of #6536 : kud1ing/rust/patch-1, r=brson
2013-05-16 13:37:39 -07:00
bors
c8159b3e35
auto merge of #6473 : nikomatsakis/rust/issue-5967-rvalue-immutability, r=pcwalton
...
Simpler version of PR #5974 based on new borrowck.
2013-05-16 12:34:40 -07:00
Niko Matsakis
63d878f36b
correct typo
2013-05-16 15:12:39 -04:00
Niko Matsakis
e665fdfc8e
Add two tests for rvalue mutability
2013-05-16 15:10:50 -04:00
Brian Anderson
305331c00f
core: Document some intrinsics
2013-05-16 12:03:58 -07:00
bors
cf8341fc9e
auto merge of #6457 : nikomatsakis/rust/issue-6308-closure-bounds, r=brson
...
Add BuiltinBounds to closure type: parse and handle subtyping,
but do not integrate with kindck etc (requires a snapshot first)
r? @brson
2013-05-16 11:31:46 -07: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
bors
ce6dc2451f
auto merge of #6520 : thestinger/rust/rc, r=pcwalton
...
This is still enough to prevent cycles (explanation given in the docstring).
2013-05-16 03:25:43 -07:00
kud1ing
f9a15a6976
main() is in ./rustc.rc. use "./../" pattern some more
2013-05-16 13:22:43 +03:00
bors
800e3c76a7
auto merge of #6519 : catamorphism/rust/rustpkg, r=catamorphism
2013-05-16 02:13:48 -07:00
bors
92a1f6de97
auto merge of #6509 : thestinger/rust/clone, r=nikomatsakis
...
somewhat annoying to actually call thanks to auto-deref, but it does let `deriving(Clone)` work
2013-05-16 01:07:45 -07:00
bors
7bef1ff4b1
auto merge of #6507 : brson/rust/swo, r=brson
2013-05-15 23:55:49 -07:00
Sangeun Kim
ba9668ed06
Add a test for bytes!
2013-05-16 15:31:25 +09:00
bors
92b7a45395
auto merge of #6488 : sammykim/rust/issue-6430, r=sanxiyn
...
Fix issue #6430 .
2013-05-15 22:52:47 -07:00
Sangeun Kim
f097f4309e
Change unsafe functions to safe functions
2013-05-16 13:34:32 +09:00
bors
62caa1e5c8
auto merge of #6505 : cmr/rust/unsetenv, r=catamorphism
2013-05-15 21:31:45 -07:00
Sangeun Kim
70a19d5f63
Implement bytes! syntax extension
2013-05-16 13:29:54 +09:00
bors
f6360b4eab
auto merge of #6527 : thestinger/rust/deep_clone, r=pcwalton
2013-05-15 20:28:45 -07:00
bors
2329651770
auto merge of #6503 : sonwow/rust/at_vec-renamed, r=graydon
...
`str::from_slice` and `vec::from_slice` are changed to `str::to_owned` and `vec::to_owned`. (#6389 )
Replace `at_vec::from_owned` and `at_vec::from_slice` with `at_vec::to_managed_consume` and `at_vec::to_managed`.
2013-05-15 19:22:49 -07: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
Daniel Micay
d6a8343470
add DeepClone impl for @T and @mut T with T: Const
2013-05-15 21:02:54 -04:00
bors
c18e44ba17
auto merge of #6501 : june0cho/rust/incoming, r=graydon
...
Fix #3783 .
2013-05-15 17:10:46 -07:00
Daniel Micay
4702667a62
allow constructing Rc/RcMut from Const types too
2013-05-15 19:18:09 -04:00
Tim Chevalier
e732912954
rustpkg: ignore tests on i686, since they fail
2013-05-15 16:17:13 -07:00
bors
7012c42c41
auto merge of #6500 : kud1ing/rust/cleanup, r=bstrie
...
Fixes #6445
2013-05-15 16:07:44 -07:00
Tim Chevalier
5421bc2942
rustpkg: Reorganize test files
2013-05-15 16:03:45 -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