Alex Crichton
dc18321ef5
Don't run passes again on JIT code
...
These passes are already run beforehand, no need to do them twice.
2013-06-13 22:53:10 -07:00
Alex Crichton
079ffa362f
Correctly parse commands for rusti
...
Closes #7120
2013-06-13 21:48:16 -07:00
Alex Crichton
a90fffe367
Revert "Revert "Have JIT execution take ownership of the LLVMContextRef""
...
This reverts commit 19adece68b
.
2013-06-13 21:25:18 -07:00
Alex Crichton
1a3edecbf2
Revert "Revert "Remove all usage of the global LLVMContextRef""
...
This reverts commit 541c657a73
.
2013-06-13 21:25:12 -07:00
Brian Anderson
7755018074
Revert "std: convert {vec,str}::to_owned to methods."
...
This fixes the strange random crashes in compile-fail tests.
This reverts commit 96cd61ad03
.
Conflicts:
src/librustc/driver/driver.rs
src/libstd/str.rs
src/libsyntax/ext/quote.rs
2013-06-13 19:06:47 -07:00
Daniel Micay
2b13606d9f
update the libstd docstring for the rename
2013-06-13 21:41:11 -04:00
Huon Wilson
8431e609ea
xfail test on windows, because extern mod doesn't work there
2013-06-14 11:12:06 +10:00
Huon Wilson
e6c3e4a000
syntax: revert the uint -> u32 "fix"; make the names/comment match.
2013-06-14 11:12:06 +10:00
Huon Wilson
f93a974558
syntax: correct the Rand::rand call to select enum variants in #[deriving(Rand)].
...
Previously, this was not a global call, and so when `#[deriving(Rand)]`
was in any module other than the top-level one, it failed (unless there
was a `use std;` in scope).
Also, fix a minor inconsistency between uints and u32s for this piece
of code.
2013-06-14 11:12:06 +10:00
Daniel Micay
ec27644870
automated whitespace fixes
2013-06-13 18:03:08 -04:00
Graydon Hoare
b417bc8511
Update CONTRIBUTING.md
2013-06-13 15:41:34 -06:00
Felix S. Klock II
b03a0b27aa
make pp file conform to actual output, noting some oddities along the way.
2013-06-13 23:40:24 +02:00
Felix S. Klock II
0f4d5c2134
checkpoint block-comment-wchar state.
2013-06-13 23:40:24 +02:00
Felix S. Klock II
1deebeef7d
Fix #3961 : use char range methods instead of byte offsets to detect whitespace.
2013-06-13 23:40:24 +02:00
Brian Anderson
541c657a73
Revert "Remove all usage of the global LLVMContextRef"
...
This reverts commit 779191cd4b
.
Conflicts:
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/common.rs
2013-06-13 13:08:57 -07:00
Brian Anderson
19adece68b
Revert "Have JIT execution take ownership of the LLVMContextRef"
...
This reverts commit 5c5095d25e
.
Conflicts:
src/librusti/rusti.rc
2013-06-13 13:08:57 -07:00
Ben Blum
2ef8774ac5
Improve comments in sync and arc a bit more.
2013-06-13 15:20:38 -04:00
bors
5bff471dde
auto merge of #7105 : sstewartgallus/rust/removed_unused_imports, r=sanxiyn
...
I was able to remove unused imports, and fix the following warnings
src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)]
src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)]
src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)]
src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)]
I was unable to fix the following unused import warnings. The code
here was weird.
src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)]
src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-13 12:08:05 -07:00
Ben Blum
57cb44dbeb
Change sync::RWlock implementation to use atomic uint instead of exclusive, for performance. Close #7066 .
2013-06-13 14:45:14 -04:00
Ben Blum
68e8fe9b6e
Add a test case for #7065 .
2013-06-13 14:41:22 -04:00
Ben Blum
bd019c4c26
Thread order_lock through rwlock condvars for reacquiring access_lock. Fixes #7065 .
2013-06-13 14:41:20 -04:00
Steven Stewart-Gallus
d9d50a5bd4
Remove unused imports
...
I was able to remove unused imports, and fix the following warnings
src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)]
src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)]
src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)]
src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)]
I was unable to fix the following unused import warnings. The code
here was weird.
src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)]
src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-13 10:46:17 -07:00
bors
a198aad8f3
auto merge of #7100 : thestinger/rust/hashmap, r=pnkfelix
...
Not much point in leaving these around. They just get in the way when you actually want to log something else.
2013-06-13 03:25:11 -07:00
bors
4e950e9702
auto merge of #7099 : brson/rust/releasenotes, r=thestinger
2013-06-13 02:31:13 -07:00
Daniel Micay
ed7892ac00
hashmap: remove leftover debug!() logging
2013-06-13 03:25:28 -04:00
Brian Anderson
59546689d5
Add some 0.7 release notes
2013-06-13 00:01:28 -07:00
bors
e6503995ab
auto merge of #7096 : huonw/rust/invalid-null-str, r=thestinger
...
A slice of a 'static str is still 'static, but doesn't necessarily
have the null terminator.
2013-06-12 23:10:15 -07:00
bors
9355330c1e
auto merge of #7094 : yichoi/rust/arm_jemalloc, r=thestinger
...
rt.mk :
in case of arm, add --disable-tls at jemalloc configure
(to solve SEGV)
2013-06-12 22:16:12 -07:00
bors
4ec08d8e12
auto merge of #7070 : alexcrichton/rust/rusti++, r=graydon
...
More descriptive comments can be found throughout the code, but the bulk of this is that it addresses a vast number of issues with the old rusti model.
Closes #6772 , #5675 , #5469 , and #6617
2013-06-12 21:22:11 -07:00
Huon Wilson
abadece3ba
std: remove the invalid NullTerminatedStr instance for &'static str.
...
A slice of a 'static str is still 'static, but doesn't necessarily
have the null terminator.
2013-06-13 14:12:08 +10:00
Alex Crichton
0c47632898
Rewrite rusti
2013-06-12 21:03:17 -07:00
bors
996301331e
auto merge of #7079 : thestinger/rust/jemalloc, r=graydon
...
Minor release, the ChangeLog is included in the update.
2013-06-12 20:25:17 -07:00
Young-il Choi
00ff170e7f
mk: arm support - disable tls of jemalloc on rt.mk
2013-06-13 11:48:22 +09:00
bors
6c45160f19
auto merge of #7027 : sstewartgallus/rust/dynamic_lib, r=graydon
...
I would appreciate if someone could help out with the Windows code on this pull request. I tried to test it using WINE but I couldn't figure out a way to set that up.
2013-06-12 19:07:30 -07:00
bors
da510bfb4a
auto merge of #7086 : huonw/rust/5048, r=graydon
...
Fixes #5048 .
I'm sure this reduces memory usage, but I can't get cgroups to work properly to actually measure memory. (It doesn't appear to offer much speed improvement, but I'm fairly sure it's not slower.)
This is quite huge, so it'd be nice to get a resolution soon.
2013-06-12 18:10:49 -07:00
Ben Blum
0ca2056e46
Document unstable::atomics fetch_* return values
2013-06-12 20:53:40 -04:00
Ben Blum
d809f54a7c
remove bitrotted cant_nest field from RWARC (the #[mutable] tag suffices)
2013-06-12 20:53:40 -04:00
Ben Blum
6b22c090a5
make util::NonCopyable a unit struct instead of a struct with a unit
2013-06-12 20:53:40 -04:00
Huon Wilson
5ebffd46d5
rustc: fix test failures after rebase.
2013-06-13 10:47:33 +10:00
Steven Stewart-Gallus
786ea3ffe6
Prototyped a dynamic library facility interface
2013-06-12 17:32:13 -07:00
Huon Wilson
a30ee0dee1
rustdoc: fix tests for @~str -> @str change.
2013-06-13 10:20:52 +10:00
Huon Wilson
096f6f56a8
Use @str instead of @~str in libsyntax and librustc. Fixes #5048 .
...
This almost removes the StringRef wrapper, since all strings are
Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts
several things to be &'static str (the lint table and the intrinsics
table).
There are many instances of .to_managed(), unfortunately.
2013-06-13 10:20:52 +10:00
Huon Wilson
641910dc13
std: make all strings Equiv-alent to each other, generalise Path.push_many to take any type of string.
2013-06-13 10:19:34 +10:00
bors
84bed9769b
auto merge of #7091 : msullivan/rust/default-methods, r=graydon
...
r? @nikomatsakis
2013-06-12 16:25:34 -07:00
bors
26a5c9768b
auto merge of #7077 : SiegeLord/rust/new_css, r=pnkfelix
...
I was making documentation for my own little Rust project, and I was somewhat unhappy with how the documentation looked. While many of the issues are endemic to how rustdoc generates its output, you can get pretty far in making the documentation readable by using a better CSS style.
This commit alters the CSS style used in Rust's documentation in order to make the various sections stand out more. You can see an example of its usage in my own project's documentation: http://siegelord.github.io/RustGnuplot/#implementation-for-figureself-where-self . I showed it to some people on IRC and they suggested that I make a pull request here. I tested it on the only browser that matters, but also Chrome and Opera.
2013-06-12 15:31:39 -07:00
bors
df483e82e7
auto merge of #7084 : pnkfelix/rust/fsk-visitor-refactoring, r=pnkfelix
...
This step 1 in my plan for issue #7081 : Refactor visit.rs with a `@Visitor` trait.
2013-06-12 14:34:34 -07:00
Felix S. Klock II
009a2fdc5e
Fix a test-predicated use of the visit.rs api.
2013-06-12 23:31:07 +02:00
Felix S. Klock II
58b4fe6fea
Merge branch 'moz-incoming' into fsk-visitor-refactoring
2013-06-12 23:28:38 +02:00
Michael Sullivan
36e3d64c3e
Fix a lot of the handling of default methods and type parameters. Closes #4099 , #4102 .
2013-06-12 13:50:45 -07:00
Michael Sullivan
5835158170
Drop some dead method handling code.
2013-06-12 13:50:45 -07:00