bors
c69f8ea91a
auto merge of #6093 : alexcrichton/rust/issue-2647, r=thestinger
...
Closes #2647
This way it's much easier to add lints throughout compilation correctly, and
functions on impls can alter the way lints are emitted. This involved pretty much rewriting how lints are emitted. Beforehand, only items could alter the lint settings, so whenever a lint was added it had to be associated with whatever item id it was coming from. I removed this (possibly questionably) in favor of just specifying a span and a message when adding a lint. When lint checking comes around, it looks at all the lints and sees which node with attributes best encloses it and uses that level of linting. This means that all consumer code doesn't have to deal with what item things came from (especially because functions on impls aren't items). More details of this can be found in the code (and comments).
As a bonus, I managed to greatly simplify emission of lints in resolve.rs about unused imports. Now instead of it manually tracking what the lint level is, it's all moved over into the lint module (as is to be expected).
2013-05-16 22:25:39 -07: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
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
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
Brian Anderson
305331c00f
core: Document some intrinsics
2013-05-16 12:03:58 -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
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
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
Daniel Micay
d6a8343470
add DeepClone impl for @T and @mut T with T: Const
2013-05-15 21:02:54 -04:00
bors
08b4cdd395
auto merge of #6499 : dotdash/rust/static_keywords, r=thestinger
2013-05-15 15:10:48 -07:00
Brian Anderson
018dfaf9a6
core::rt: Unignore a fixed TCP test
2013-05-15 13:57:08 -07:00
Daniel Micay
22c3db5df7
add a Clone impl for borrowed pointers
2013-05-15 15:58:20 -04:00
bors
8a15333c06
auto merge of #6498 : thestinger/rust/deep_clone, r=thestinger
...
This is mostly for `std::rc` and `std::arc` (but I haven't implemented it for ARC yet).
Implementing it correctly for managed boxes is *very* non-trivial. It would probably require an unholy mix of reflection and TLS.
2013-05-15 12:22:58 -07:00
Brian Anderson
0d1331f4a0
Merge remote-tracking branch 'brson/io' into incoming
2013-05-15 12:09:15 -07:00
Brian Anderson
d951da8276
core::rt: Fix TCP test on mac
2013-05-15 12:19:17 -07:00
Brian Anderson
2bc1e6ba60
core::rt: Copy many of the old io extensions to the new io
...
Some resolve problem is keeping the tests from working
2013-05-15 12:19:16 -07:00
Brian Anderson
d45dc8df72
core::rt: More work on Reader extensions and error handling
2013-05-15 12:19:16 -07:00
Brian Anderson
28a13ec8d7
core::rt: Make push_bytes raise read_error on EOF
2013-05-15 12:19:16 -07:00
Brian Anderson
1c1f11e649
core::rt: Warnings
2013-05-15 12:19:16 -07:00
Brian Anderson
390dde571e
core::rt: Rename Task to Coroutine
2013-05-15 12:19:16 -07:00
Brian Anderson
7f5746f6d2
core::rt: Rename Sched.task_queue to work_queue
2013-05-15 12:19:16 -07:00
Brian Anderson
56c0b188b6
rt: Rename sched_key to rt_key
...
It is more general-purpose than holding scheduler pointers
2013-05-15 12:19:16 -07:00
Brian Anderson
c42b03de17
core::rt: Fix scheduling logic for enqueued tasks
2013-05-15 12:19:15 -07:00
Brian Anderson
4724966b06
core::rt: Add uv timer bindings
2013-05-15 12:19:15 -07:00
Brian Anderson
76e097761e
core::rt: read raises read_error
2013-05-15 12:19:15 -07:00
Brian Anderson
b764d4cb4f
core::rt: Begin implementing Reader extension methods
2013-05-15 12:19:15 -07:00
Brian Anderson
013b7760b7
core: Turn task::unkillable, etc. into no-ops in newsched. #6377
...
Not necessary just yet but they make ARC not work.
2013-05-15 12:19:15 -07:00
Brian Anderson
afcf4f2639
core::rt: Don't abort when reporting an unknown uv error
2013-05-15 12:19:15 -07:00
Brian Anderson
174ec1e422
core::rt: Error handling for TcpStream.read
2013-05-15 12:19:15 -07:00
Brian Anderson
0a54bad3d1
core::rt: Initialize logging
2013-05-15 12:19:14 -07:00
Brian Anderson
cc2897d559
core: Replace use of libc::getenv with os::getenv
2013-05-15 12:19:14 -07:00
Brian Anderson
f6401bad24
core: Use a global lock instead of runtime lock for os::getenv, etc. #4726
2013-05-15 12:19:14 -07:00
Brian Anderson
36ad366519
core::rt: Add a test of standalone use of the runtime
2013-05-15 12:19:14 -07:00
Brian Anderson
bfd9aa9755
core:rt: A few micro-opts
2013-05-15 12:19:14 -07:00
Corey Richardson
6ef226d5d9
Add unsetenv wrapper
2013-05-15 13:40:35 -04:00
bors
bcec83aaee
auto merge of #6493 : brson/rust/tls, r=thestinger
2013-05-15 10:14:04 -07:00
Youngsoo Son
f11297f608
rename at_vec::from_owned and at_vec::from_slice to at_vec::to_managed_consume and at_vec::to_managed
2013-05-16 00:33:54 +09: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
Daniel Micay
cda3ac905a
rc: fix tests
2013-05-15 04:34:31 -04:00