Commit Graph

38904 Commits

Author SHA1 Message Date
Manish Goregaokar
af81ec2f43 Rollup merge of #22559 - kmcallister:borrowck-readme, r=nikomatsakis
And minor fixes to other docs.

r? @nikomatsakis
2015-02-23 23:28:46 +05:30
Manish Goregaokar
0fab2b9535 Rollup merge of #22556 - brson:str, r=steveklabnik
Clarify that `to_string` is how you make `String`. Use a coercion in an example.

r? @steveklabnik
2015-02-23 23:28:46 +05:30
Manish Goregaokar
59726953cc Rollup merge of #22514 - diamondman:intro_doc_threading, r=steveklabnik
Fixed example threaded code in intro doc never printing results. Threads were created with Thread::spawn instead of Thread::scoped. Also added correct thread handling like in the first example of the document.
2015-02-23 23:28:46 +05:30
Manish Goregaokar
1517313a74 Rollup merge of #22513 - steveklabnik:doc_str, r=brson 2015-02-23 23:28:46 +05:30
Manish Goregaokar
a0375e1b4f Rollup merge of #22505 - tshepang:current_dir, r=steveklabnik 2015-02-23 23:28:45 +05:30
Manish Goregaokar
1acd7c9fe1 Rollup merge of #22371 - fhahn:issue-17829-compiletest-nocapture, r=Manishearth
This is a patch for #17829.

In `compiletest` there are multiple layers which capture the output. The first layer is  `run_tests_console` which is used to execute all tests.

Then there are some tests that contain unit tests, which by default also captures output. Therefore `compiletest` adds `RUST_TEST_NOCAPTURE` (and `RUST_TEST_TASKS` for completeness) to the run environment of the task.

Finally, the task used to execute a test redirects stdout and stdin. At the moment, the `VERBOSE=1` prints all captured output of the task (but has to print stdout and stderr separately). So at the moment using `RUST_TEST_NOCAPTURE=1` only makes sense when also using `VERBOSE=1` which seems a little bit cumbersome.

Should I update the patch to only print the output of the tasks that actually execute the test (`VERBOSE=1` includes other stuff, like the output of the task used to compile the test)? This will probably involve adding an extra flag to some functions in `src/compiletest/runtest.rs` to distinguish compilation runs from runs that execute the actual tests.
2015-02-23 14:43:44 +05:30
Manish Goregaokar
46a545100a Rollup merge of #22270 - steveklabnik:gh22152, r=huonw
Fixes #22152
2015-02-23 14:43:38 +05:30
bors
f0f7ca27de Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581
Please see discussion in #19284 .
2015-02-23 01:53:38 +00:00
bors
67eb38ee4c Auto merge of #22466 - Kimundi:str_pattern_ai_safe, r=aturon
This is not a complete implementation of the RFC:

- only existing methods got updated, no new ones added
- doc comments are not extensive enough yet
- optimizations got lost and need to be reimplemented

See https://github.com/rust-lang/rfcs/pull/528

Technically a

[breaking-change]
2015-02-22 22:45:46 +00:00
Jessy Diamond Exum
6154c88ddc Update intro.md to fix thread spawning example Closes #22419
Fixed example threaded code in intro doc never printing results. Threads were created with Thread::spawn instead of Thread::scoped.
2015-02-22 11:45:31 -08:00
Steve Klabnik
27f357106e Improve documentation for libcollections/str 2015-02-22 14:15:10 -05:00
Steve Klabnik
d7c02c39e5 Link from literals to their representation
Fixes #22152
2015-02-22 14:13:16 -05:00
bors
dcc6ce2c77 Auto merge of #22574 - huonw:remove-lame-statics, r=alexcirchton
Add a basic test that checks that the types catch the most glaring
errors that could occur.

cc #22444
2015-02-22 10:27:08 +00:00
bors
eb1b500a9a Auto merge of #22548 - Manishearth:rollup, r=Manishearth
I had most of these tested locally, why not  get them out of the way too?
2015-02-22 10:15:40 +00:00
Brian Brooks
fc9fa1a563 Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 . 2015-02-21 17:26:29 -05:00
Manish Goregaokar
686648d155 Rollup merge of #22584 - alexcrichton:snapshots, r=Gankro 2015-02-22 02:16:12 +05:30
Manish Goregaokar
5d7b216f40 Rollup merge of #22568 - semarie:openbsd-rfc592, r=huonw
The commit 1860ee52 has break the openbsd build.
Repair it.
2015-02-22 02:04:49 +05:30
Manish Goregaokar
ba568a0965 Rollup merge of #22583 - vhbit:ios-cstr, r=alexcrichton
"body": null,
2015-02-22 02:04:34 +05:30
Manish Goregaokar
47e749e5be Fix errors from #22592 2015-02-22 01:53:41 +05:30
Manish Goregaokar
d316a34ec2 Fix lint-unsafe-code test from #22542 2015-02-22 01:53:18 +05:30
Manish Goregaokar
59ab2daad3 Rollup merge of #22567 - Gankro:unstable, r=alexcrichton
* Adds features and allows
* Removes unused muts, unused imports, dead code
* Migrates some deprecated code to new io/env
* Changes std::num::uint/int to be re-exports of std::num::usize/isize

libcollections, liballoc, and libcoretest no longer warn during testing.

libstd warns much less, though there's some dangly bits that weren't obvious fixes. In particular, how to only supress deprecated warnings in specific submodules of std.
2015-02-22 01:53:16 +05:30
Manish Goregaokar
494dbe9c07 Rollup merge of #22516 - leejunseok:nonpub_field_sugg, r=jakub-
closes #22421
2015-02-22 01:52:22 +05:30
Manish Goregaokar
a95d7f53a7 Rollup merge of #22602 - steveklabnik:doc_range_step, r=alexcrichton 2015-02-22 01:51:58 +05:30
Manish Goregaokar
3e794defda Rollup merge of #22592 - nikomatsakis:deprecate-bracket-bracket, r=aturon
r? @aturon
2015-02-22 01:51:03 +05:30
Manish Goregaokar
98ec45ee0b Rollup merge of #22542 - ipetkov:unsafe-lint, r=huonw
This allows warning or forbidding all uses of unsafe code, whereas
previously only unsafe blocks were caught by the lint.

The lint has been renamed from `unsafe-blocks` to `unsafe-code` to
reflect its new purpose.

This is a minor [breaking-change]

Closes #22430
2015-02-22 01:50:53 +05:30
Manish Goregaokar
9fe2d212a0 Rollup merge of #22634 - shepmaster:std-io-typo, r=Manishearth 2015-02-22 01:50:32 +05:30
Manish Goregaokar
dcbf226518 Rollup merge of #22633 - wesleywiser:fix_22586, r=sfackler
AtomicOption was removed in 7d8d06f86b
but the docs weren't updated.

Fixes #22586
2015-02-22 01:50:22 +05:30
Manish Goregaokar
b53e510297 Rollup merge of #22627 - ddfreyne:patch-1, r=dotdash 2015-02-22 01:50:08 +05:30
Manish Goregaokar
a9570e5549 Rollup merge of #22625 - inrustwetrust:dispatch-doc-grammar, r=huonw
As far as I could tell from discussions in other docs pull requests, American spelling is preferred for the docs?
2015-02-22 01:49:46 +05:30
Manish Goregaokar
e15d016146 Rollup merge of #22620 - edwardw:issue-22356, r=brson
PR #22436 has fixed it.

Closes #22356
2015-02-22 01:49:30 +05:30
Manish Goregaokar
ffe348561e Rollup merge of #22616 - caspark:fix-typo-in-deprecation-msg, r=alexcrichton
Essentially `s/fucntion/function/g` in `src/libstd/thread.rs`.
2015-02-22 01:49:08 +05:30
Manish Goregaokar
c90e854ec9 Rollup merge of #22614 - nick29581:fix-cc-crate, r=alexcrichton
... the post-analysis callback. We can also pass this to post-write-deps callback.

This fixes a really minor bug, which is basically about argument naming.

r? @alexcrichton
2015-02-22 01:48:54 +05:30
Manish Goregaokar
9fd45514b6 Rollup merge of #22578 - nagisa:deprecated-fallout, r=alexcrichton
Fixes #22575
Fixes #22618
2015-02-22 01:48:30 +05:30
Manish Goregaokar
e1c2f77754 Rollup merge of #22571 - nagisa:style-fallout, r=alexcrichton
Links in docblock headers also became blue, which was not intended.

r? @steveklabnik
2015-02-22 01:48:18 +05:30
Manish Goregaokar
2b8160bbd5 Rollup merge of #22562 - dckc:patch-4, r=Aatch
the punch line was cut off!

p.s. I wonder if I should have updated the copyright date too.
2015-02-22 01:48:01 +05:30
Manish Goregaokar
b7487db482 Rollup merge of #22545 - Ryman:fucntion, r=dotdash 2015-02-22 01:47:41 +05:30
Manish Goregaokar
f308550c16 Rollup merge of #22527 - dotdash:if-loop, r=huonw
In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the \"return value\" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
2015-02-22 01:47:28 +05:30
Manish Goregaokar
b7ac60a2f1 Rollup merge of #22524 - stevencrockett:master, r=steveklabnik
The text is referring to the io module despite the code using the old_io module.
2015-02-22 01:47:14 +05:30
Manish Goregaokar
2e0609a8ad Rollup merge of #22522 - zeroem:patch-1, r=pnkfelix
Replaces the markdown link delimiters for the \"Code of Conduct\" link with the appropriate delimiters for using a link id

r? @steveklabnik
2015-02-22 01:47:02 +05:30
Manish Goregaokar
9d650ae723 Rollup merge of #22515 - adamhjk:add-else-if-to-docs, r=steveklabnik
Adds an example of `else if` to the If section of The Rust Programming
Language.

r? @steveklabnik
2015-02-22 01:46:42 +05:30
Manish Goregaokar
2bb8b95cd8 Rollup merge of #22509 - tshepang:not-needed-mut, r=steveklabnik 2015-02-22 01:46:27 +05:30
Manish Goregaokar
11c70a3b09 Rollup merge of #22267 - steveklabnik:fix_lie, r=Gankro
Otherwise, this line is a lie.
2015-02-22 01:46:03 +05:30
Jake Goulding
5b64845e47 Fix typo in std::io unstable reason 2015-02-21 11:56:58 -05:00
Wesley Wiser
7e533a972c Remove mention of non-existing AtomicOption in docs
AtomicOption was removed in 7d8d06f86b
but the docs weren't updated.

Fixes #22586
2015-02-21 11:51:06 -05:00
Denis Defreyne
a3aaaca088 Fix frow_raw/from_raw typo 2015-02-21 13:14:17 +01:00
Brian Brooks
1212fd8abc Resolve includeme.fragment conflict. 2015-02-21 06:56:46 -05:00
inrustwetrust
1b20767460 Minor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc 2015-02-21 11:50:25 +01:00
bors
2b01a37ec3 Auto merge of #21959 - dhuseby:bitrig-support, r=brson
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-21 09:20:48 +00:00
Edward Wang
0d218fd824 Add test for #22356
PR #22436 has fixed it.

Closes #22356
2015-02-21 14:37:30 +08:00
Alex Crichton
6686f7aa47 Register new snapshots 2015-02-20 22:17:17 -08:00