Alex Crichton
aca1749493
Don't leave lingering files in doc tests
...
Closes #11234
2014-01-01 13:06:44 -08:00
Alex Crichton
0daaeab244
Conservatively export all trait methods and impls
...
The comments have more information as to why this is done, but the basic idea is
that finding an exported trait is actually a fairly difficult problem. The true
answer lies in whether a trait is ever referenced from another exported method,
and right now this kind of analysis doesn't exist, so the conservative answer of
"yes" is always returned to answer whether a trait is exported.
Closes #11224
Closes #11225
2013-12-31 12:42:13 -08:00
bors
1502b1197b
auto merge of #11199 : alexcrichton/rust/windows-isnt-waiting, r=pcwalton
...
Turns out with an argument of 0 the function always returns immediately!
Closes #11003
2013-12-30 09:51:49 -08:00
bors
f7fd61876a
auto merge of #11194 : kballard/rust/gitignore-doc-green-native, r=alexcrichton
2013-12-30 08:36:48 -08:00
bors
6db7e35c59
auto merge of #11190 : eliovir/rust/patch-3, r=alexcrichton
...
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
replace `pkgid` by `crate_id`
add `comment`
2013-12-30 07:16:48 -08:00
bors
a4f30bf0c0
auto merge of #11185 : huonw/rust/doc-ignore, r=cmr
...
Currently any line starting with `#` is filtered from the output,
including line like `#[deriving]`; this patch makes it so lines are only
filtered when followed by a space similar to the current behaviour of
the tutorial/manual tester.
2013-12-30 05:51:51 -08:00
bors
f37b746699
auto merge of #11182 : luisbg/rust/crateid, r=cmr
...
Issue #11048
2013-12-30 04:32:09 -08:00
bors
ac0c376c36
auto merge of #11169 : alexcrichton/rust/snapshots, r=sanxiyn
...
Hurray trait coercion!
2013-12-30 03:11:56 -08:00
bors
28a091fc7c
auto merge of #10885 : kballard/rust/as_mut_slice, r=cmr
...
This method is primarily intended to allow for converting a [T, ..N] to
a &mut [T].
2013-12-30 01:41:55 -08:00
bors
adc5eefa23
auto merge of #11168 : sfackler/rust/de-at-extctxt, r=alexcrichton
...
* Pass `&ExtCtxt` instead of `@ExtCtxt`.
* Stop passing duplicate parameters around in `expand`.
* Make `ast_fold` methods take `&mut self`.
After these, it should be possible to remove the `@mut` boxes from `ExtCtxt` altogether, though #11167 is doing some of that so I'm holding off on that for now. This will probably conflict with that PR, so I'm guessing that one will have to be rebased on top of the other.
r? @pcwalton
2013-12-30 00:11:55 -08:00
Steven Fackler
dc830345e8
Remove @muts from ExtCtxt
2013-12-29 23:41:09 -08:00
Steven Fackler
8143662836
Start passing around &mut ExtCtxt
2013-12-29 23:41:09 -08:00
Steven Fackler
3965dddf49
Make ast_fold take &mut self
2013-12-29 23:41:05 -08:00
Huon Wilson
dedc29f128
rustdoc: Unify the handling of the hidden example lines.
2013-12-30 16:55:49 +11:00
Huon Wilson
582ad8ffc2
rustdoc: only filter lines starting with '# ' from the shown code.
...
Currently any line starting with `#` is filtered from the output,
including line like `#[deriving]`; this patch makes it so lines are only
filtered when followed by a space similar to the current behaviour of
the tutorial/manual tester.
2013-12-30 16:55:49 +11:00
bors
0cbb44aff9
auto merge of #11181 : luqmana/rust/up-llvm, r=alexcrichton
...
No longer need to handle GNUEABIHF and hard floats since LLVM should now choose the right default. Fixes #11164 .
2013-12-29 21:51:56 -08:00
Luqman Aden
d9eaeda21c
Update llvm.
2013-12-29 23:38:43 -05:00
bors
b5b570b6be
auto merge of #11204 : alexcrichton/rust/issue-11200, r=cmr
...
Turns out when you grab an OS mutex, you need to be careful about when and where
things are scheduled!
I've confirmed that I could fairly reliably get a deadlock (1 in 100 times ish) before this, and I cannot get a deadlock after this (after 1000+ runs).
Closes #11200
2013-12-29 18:46:57 -08:00
Alex Crichton
b27c53b15f
Fix a deadlock in a libgreen test
...
Turns out when you grab an OS mutex, you need to be careful about when and where
things are scheduled!
2013-12-29 17:34:15 -08:00
Alex Crichton
0da86ba48b
Actually block in a windows cvar
...
Turns out with an argument of 0 the function always returns immediately!
Closes #11003
2013-12-29 15:23:15 -08:00
Alex Crichton
5580b4c74f
Register new snapshots.
2013-12-29 14:06:34 -08:00
Luis de Bethencourt
51b5f32d33
Update Docs to use crateid
2013-12-29 15:25:43 -05:00
Luis de Bethencourt
016d52ed50
Rename uses of PkgId to CrateId in librustpkg
2013-12-29 15:25:37 -05:00
Luis de Bethencourt
f872c47278
Rename PkgId to CrateId
2013-12-29 15:25:32 -05:00
Luis de Bethencourt
4bc09713df
Rename pkgid variables
2013-12-29 15:25:26 -05:00
Kevin Ballard
1db746474d
Add /doc/{rustc,syntax} to .gitignore
2013-12-29 14:30:34 -05:00
Kevin Ballard
01209f1e3a
Add method .as_mut_slice() to MutableVector
...
This method is primarily intended to allow for converting a [T, ..N] to
a &mut [T].
2013-12-29 13:27:59 -05:00
Kevin Ballard
b3ae7b13ec
Add /doc/{green,native} to .gitignore
2013-12-29 13:24:48 -05:00
bors
aa5d779a35
auto merge of #11134 : lucab/rust/lucab/libstd-doc, r=cmr
...
Uniform the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index.
2013-12-29 08:22:04 -08:00
eliovir
466065946f
rust.md : update crate attributes.
...
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
2013-12-29 12:37:51 +01:00
bors
afe8f6e106
auto merge of #11177 : cmr/rust/native_and_green_docs, r=alexcrichton
...
Some people have requested this, and I think it's quite useful to have
documentation for the compiler libraries. libnative and libgreen are
self-explanatory I think.
2013-12-28 21:36:59 -08:00
Corey Richardson
7b382e58b1
Fix rustdoc bug involving PatLit
2013-12-29 00:13:29 -05:00
Corey Richardson
e53e86a3f3
Add a compiler-docs target
2013-12-29 00:13:19 -05:00
Steven Fackler
933def408c
Stop passing duplicate parameters in expand
2013-12-28 21:16:03 -07:00
Steven Fackler
711d5106bc
Remove unecessary extern "Rust" specifiers
2013-12-28 21:16:03 -07:00
Steven Fackler
0607c138ca
Stop using @ExtCtxt
2013-12-28 21:16:03 -07:00
bors
38a5edbfe6
auto merge of #11180 : alexcrichton/rust/fix-deferred-send, r=cmr
...
I forgot to add this back in after I removed can_resched and then realized I had
to add it back.
2013-12-28 19:06:57 -08:00
bors
b90989a728
auto merge of #11179 : alexcrichton/rust/update-gyp, r=cmr
...
Closes #11152
2013-12-28 17:37:06 -08:00
bors
c0d4abf8c5
auto merge of #11150 : huonw/rust/moar-docs, r=alexcrichton
...
(I removed the `fn main` from the `std::rand` examples to make it consistent with the rest of the codebase.)
2013-12-28 16:06:59 -08:00
Huon Wilson
8715736117
std::hashmap: add an example with the basic methods.
2013-12-29 10:32:56 +11:00
bors
2922697087
auto merge of #11175 : klutzy/rust/ice, r=alexcrichton
...
`ln_str` caused ICE if `RUST_LOG=rustc::middle::liveness` is given
due to borrow failure.
2013-12-28 14:12:01 -08:00
bors
482f75f595
auto merge of #11171 : eliovir/rust/patch-2, r=alexcrichton
2013-12-28 12:56:58 -08:00
Alex Crichton
0aab974a6c
Guard a maybe_yield in Chan with can_resched
...
I forgot to add this back in after I removed can_resched and then realized I had
to add it back.
2013-12-28 11:25:28 -08:00
Alex Crichton
6c6a076df6
Update bundled gyp
...
Closes #11152
2013-12-28 10:42:25 -08:00
bors
200c52a34e
auto merge of #11159 : alexcrichton/rust/native-io, r=pcwalton
...
The old `rtio-processes` run-pass test is now moved into libstd's `io::process` module, and all process and TCP tests are now run with `iotest!` (both a native and a green version are tested).
All TCP networking on windows is provided by `ws2_32` which is apparently very similar to unix networking (hurray!).
2013-12-28 10:36:54 -08:00
Corey Richardson
8ca1c344d5
Add docs for more crates
2013-12-28 13:06:05 -05:00
klutzy
eaae0ac68a
rustc: Fix a borrow failure in .ln_str()
...
`ln_str` caused ICE if `RUST_LOG=rustc::middle::liveness` is given
due to borrow failure.
2013-12-29 02:47:12 +09:00
bors
1b2cebc2c1
auto merge of #11170 : alexcrichton/rust/fix-llvm-race, r=pcwalton
...
This also appears to fix a race in LLVM that was causing a deadlock on the bots
during the doc-test tests (where we use rustc in parallel).
2013-12-28 09:21:51 -08:00
eliovir
743d39293f
Update tutorial.md : rename pkgid to crate_id
2013-12-28 10:32:03 +01:00
Alex Crichton
b6a7463526
Initialize LLVM only once
...
This also appears to fix a race in LLVM that was causing a deadlock on the bots
during the doc-test tests (where we use rustc in parallel).
2013-12-27 23:39:33 -08:00