Ben Blum
32cd9b3274
Highlight Sized in vim and kate
2013-05-30 21:41:41 -04:00
Ben Blum
b8a53b5a4c
Add 'Sized' builtin kind; doesn't do anything yet
2013-05-30 21:41:41 -04:00
Patrick Walton
40b455792d
librustc: Bump the offset when translating const structs. Closes #6352 .
2013-05-30 18:17:32 -07:00
Niko Matsakis
ce5fd30270
Fix parser test
2013-05-30 21:01:25 -04:00
Daniel Micay
a9c3b3885d
add a zsh completion file for rustc
2013-05-30 18:52:23 -04:00
Steve Klabnik
220e1a6cfc
Add example for uint::range_step.
2013-05-30 14:35:07 -07:00
Niko Matsakis
21951e503d
Correct issue-2804 test
2013-05-30 16:55:50 -04:00
Graydon Hoare
2bed5dc528
rustc: change 'use' to 'add' in error message, fix #2994
2013-05-30 13:45:53 -07:00
Brian Anderson
ea633b42ae
core::rt: deny(unused_imports, unused_mut, unused_variable)
2013-05-30 13:20:17 -07:00
Daniel Farina
aef1e10eba
Remove unnecessary 'use' forms
...
Fix a laundry list of warnings involving unused imports that glutted
up compilation output. There are more, but there seems to be some
false positives (where 'remedy' appears to break the build), but this
particular set of fixes seems safe.
2013-05-30 13:08:18 -07:00
Niko Matsakis
9c7eb068e5
Replace NDM with proper FIXME
2013-05-30 15:20:36 -04:00
Niko Matsakis
7a1a40890d
Remove copy bindings from patterns.
2013-05-30 15:20:36 -04:00
Niko Matsakis
5209709e46
Fix matching of rvalues with destructors
...
Fixes #4542 .
2013-05-30 15:20:36 -04:00
Niko Matsakis
c492a2126f
Remove some spurious copies that are identified by later patches
2013-05-30 09:54:39 -04:00
Niko Matsakis
7dfb865339
Remove local_imm/local_mem since all variables are now by reference
2013-05-30 09:54:38 -04:00
Niko Matsakis
2616581863
Refactor helper routines to be less tied to match syntax
2013-05-30 09:47:15 -04:00
Niko Matsakis
dcd84901c6
Remove TrByImplicitRef and source field on datums
2013-05-30 09:47:14 -04:00
Björn Steinbrink
1720d9f663
Remove a bunch of unnecessary allocations and copies
2013-05-30 11:49:04 +02:00
Brian Anderson
053b38e7e1
core::rt: Fix two multithreading bugs and add a threadring test
...
This properly distributes the load now
2013-05-30 00:18:49 -07:00
Brian Anderson
8eb358bb00
core::rt: Begin recording scheduler metrics
2013-05-30 00:18:07 -07:00
Alex Crichton
395685079a
libextra: Require documentation by default
2013-05-30 01:03:15 -05:00
Alex Crichton
007651cd26
Require documentation by default for libstd
...
Adds documentation for various things that I understand.
Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-30 01:02:55 -05:00
Alex Crichton
4a5d887b58
Allow doc(hidden) and --test to disable doc linting
2013-05-30 01:02:55 -05:00
Alex Crichton
af995ce1e7
Make missing documentation linting more robust
...
Add some more cases for warning about missing documentation, and also add a test
to make sure it doesn't die in the future.
2013-05-30 01:02:55 -05:00
James Miller
3a3bf8bdef
Remove all of the #[inline(always)] attributes from bigint
2013-05-29 22:21:55 -07:00
Patrick Walton
e67bfabbf7
etc: Fix more check-fast breakage. rs=burningtree
2013-05-29 22:17:21 -07:00
Patrick Walton
5fa788415f
test: Fix problem with check-fast. rs=burningtree
2013-05-29 21:21:33 -07:00
Brian Anderson
ca2eebd5dd
core::rt: Add some notes about optimizations
2013-05-29 21:03:21 -07:00
Erick Tryzelaar
b916e65f3e
librustc: add some imports to back/passes.rs rs=burningtree
2013-05-29 20:00:43 -07:00
Patrick Walton
206ab89629
librustc: Stop reexporting the standard modules from prelude.
2013-05-29 19:04:53 -07:00
Patrick Walton
4e3d4b36dc
libsyntax: Stop parsing mutable fields
2013-05-29 19:04:51 -07:00
Patrick Walton
481d4ca43f
libsyntax: Make drop no longer a keyword
2013-05-29 19:04:50 -07:00
Patrick Walton
aeda178011
librustc: Redo the unsafe checker and make unsafe methods not callable from safe code
2013-05-29 19:04:50 -07:00
Brian Anderson
f4ed554ddb
Merge remote-tracking branch 'brson/io' into incoming
...
Conflicts:
src/libstd/rt/sched.rs
2013-05-29 18:22:28 -07:00
Brian Anderson
134bb0f3ee
core::rt: Change the signature of context switching methods to avoid infinite recursion
2013-05-29 17:52:00 -07:00
Brian Anderson
f343e6172b
core::rt: Fix an infinite recursion bug
2013-05-29 17:25:29 -07:00
Brian Anderson
a373dad74d
core::rt: Outline the full multithreaded scheduling algo. Implement sleeping
2013-05-29 17:00:05 -07:00
bors
b5da389d36
auto merge of #6799 : Aatch/rust/pass-refactor, r=graydon
...
This refactors pass handling to use the argument names, so it can be used
in a similar manner to `opt`. This may be slightly less efficient than the
previous version, but it is much easier to maintain.
It also adds in the ability to specify a custom pipeline on the command
line, this overrides the normal passes, however. This should completely
close #2396 .
2013-05-29 16:58:44 -07:00
Brian Anderson
5043ea269d
core::rt: Add run_in_mt_newsched_task test function
2013-05-29 16:06:10 -07:00
Brian Anderson
ed8c3594bc
core::rt: Add SleeperList to Scheduler
2013-05-29 14:09:01 -07:00
bors
35655a0fb3
auto merge of #6803 : Thiez/rust/native_fmax_fmin, r=brson
...
Calls to the libc versions of fmin and fmax were relatively slow (perhaps because they could not be inlined?). This pull request provides f32 and f64 with fmin and fmax written in Rust, and shows a significant speed increase on my system; I used https://github.com/thiez/rustray as my benchmark, with --opt-level 3 it brings the ray-tracing time down from 10.8 seconds to about 9.2, which seemed significant to me.
r?
2013-05-29 13:29:06 -07:00
bors
d2957091c4
auto merge of #6733 : alexcrichton/rust/issue-2400, r=brson
...
Most of the relevant information can be found in the commit messages.
r? @brson - I just wanted to make sure the make changes aren't completely bogus
This would close #2400 , #6517 , and #6489 (although a run through incoming-full on linux would have to confirm the latter two)
2013-05-29 12:13:49 -07:00
Matthijs Hofstra
3141acf674
Changed to a more efficient implementation.
2013-05-29 20:21:04 +02:00
bors
562069c12f
auto merge of #6800 : june0cho/rust/issue5984, r=pcwalton
...
Fix #5984 .
Resolve the problem which exists in #6780 .
2013-05-29 10:55:53 -07:00
Matthijs Hofstra
6cc9a26a2d
Replaced calls to external fmin/fmax by a Rust implementation.
2013-05-29 18:26:50 +02:00
bors
a037fa4da3
auto merge of #6796 : sfackler/rust/FromBase64-type-fix, r=bstrie
...
Previously, FromBase64 was only implemented on ~[u8] and ~str when
any pointer would do. The implementations of FromBase64 are now
consistent with the implementations of ToBase64.
2013-05-29 08:49:53 -07:00
bors
844b5cff36
auto merge of #6794 : thestinger/rust/align_zero, r=pcwalton
...
This is unlikely to alter optimized codegen much but there's no point in downgrading the known alignment to 1.
2013-05-29 07:32:06 -07:00
James Miller
faf1afee16
Further refactor optimization pass handling
...
This refactors pass handling to use the argument names, so it can be used
in a similar manner to `opt`. This may be slightly less efficient than the
previous version, but it is much easier to maintain.
It also adds in the ability to specify a custom pipeline on the command
line, this overrides the normal passes, however. This should completely
close #2396 .
2013-05-29 20:08:20 +12:00
bors
e3e55c5c04
auto merge of #6793 : graydon/rust/drop-ast-before-llvm, r=Aatch
2013-05-29 00:52:47 -07:00
bors
149960e0cf
auto merge of #6789 : luqmana/rust/compiletest-fix, r=thestinger
...
Can be removed after a snapshot I believe.
2013-05-28 23:34:48 -07:00