]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRollup merge of #22544 - bombless:fix-pattern, r=pnkfelix
Manish Goregaokar [Mon, 23 Feb 2015 09:27:21 +0000 (14:57 +0530)]
Rollup merge of #22544 - bombless:fix-pattern, r=pnkfelix

9 years agoRollup merge of #22624 - vadimcn:iss-13361, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:26:29 +0000 (14:56 +0530)]
Rollup merge of #22624 - vadimcn:iss-13361, r=alexcrichton

 This test appears to pass cleanly on master.
Closes #13361

9 years agoRollup merge of #22667 - dotdash:retslot_cast.rs, r=huonw
Manish Goregaokar [Mon, 23 Feb 2015 09:24:50 +0000 (14:54 +0530)]
Rollup merge of #22667 - dotdash:retslot_cast.rs, r=huonw

 We already do this for the function arguments, but miss it for the
retslot pointer, which can lead to LLVM assertions because the retslot
has the wrong type.

Fixes #22663

9 years agoRollup merge of #22664 - lfairy:just-say-no, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:24:43 +0000 (14:54 +0530)]
Rollup merge of #22664 - lfairy:just-say-no, r=alexcrichton

 Leading hyphens already don't work (#22661), so no code should break from this change.

Closes #22661.

9 years agoRollup merge of #22640 - sfackler:fix-take, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:24:34 +0000 (14:54 +0530)]
Rollup merge of #22640 - sfackler:fix-take, r=alexcrichton

 We can't call into the inner reader for a 0-byte read because that may
end up blocking or returning an error.

r? @alexcrichton

9 years agoRollup merge of #22696 - stepancheg:use-box, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:18:54 +0000 (14:48 +0530)]
Rollup merge of #22696 - stepancheg:use-box, r=alexcrichton

 e. g.

```
let b: Box<Foo> = Box::from_raw(p);
```

instead of

```
let b: Box<Foo> = mem::transmute(p);
```

Patch also changes closure release code in `src/libstd/sys/unix/thread.rs`
when `pthread_create` failed. Raw pointer was transmuted to box of
`FnOnce()` instead of `Thunk`. This code was probably never executed,
because `pthread_create` rarely fails.

(And there are two more patches in PR: fix typo in doc and mark `from_raw` and `into_raw` functions inline.)

9 years agoRollup merge of #22693 - tshepang:use-new-slicing-syntax-runtest, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:18:45 +0000 (14:48 +0530)]
Rollup merge of #22693 - tshepang:use-new-slicing-syntax-runtest, r=alexcrichton

9 years agoRollup merge of #22688 - tshepang:use-new-slicing-syntax, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:18:35 +0000 (14:48 +0530)]
Rollup merge of #22688 - tshepang:use-new-slicing-syntax, r=alexcrichton

9 years agoRollup merge of #22691 - nick29581:fix-save-impl, r=huonw
Manish Goregaokar [Mon, 23 Feb 2015 09:15:34 +0000 (14:45 +0530)]
Rollup merge of #22691 - nick29581:fix-save-impl, r=huonw

 r? @huonw

9 years agoRollup merge of #22674 - untitaker:issue22243, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:15:25 +0000 (14:45 +0530)]
Rollup merge of #22674 - untitaker:issue22243, r=alexcrichton

   "body": null,

9 years agoRollup merge of #22670 - shepmaster:c_str_typos, r=Manishearth
Manish Goregaokar [Mon, 23 Feb 2015 09:15:18 +0000 (14:45 +0530)]
Rollup merge of #22670 - shepmaster:c_str_typos, r=Manishearth

9 years agoRollup merge of #22662 - iKevinY:readme-changes, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:15:11 +0000 (14:45 +0530)]
Rollup merge of #22662 - iKevinY:readme-changes, r=steveklabnik

 - Various grammatical changes.
- Use triple-backtick syntax and `sh` highlighting for code blocks.
- Fix indentation of code block in step 2 of \"Building on Windows\".
- Use title case for \"Getting Help\" subheading.

9 years agoRollup merge of #22660 - achernya:tuple-reference, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:15:05 +0000 (14:45 +0530)]
Rollup merge of #22660 - achernya:tuple-reference, r=alexcrichton

 The Rust Reference should include the tuple indexing (using a number
as a field) notation; currently it is only available on
http://doc.rust-lang.org/std/primitive.tuple.html and not easily
searchable.

9 years agoRollup merge of #22658 - glacjay:issue-22535, r=Gankro
Manish Goregaokar [Mon, 23 Feb 2015 09:14:59 +0000 (14:44 +0530)]
Rollup merge of #22658 - glacjay:issue-22535, r=Gankro

 fix issue #22535

9 years agoRollup merge of #22652 - tigarmo:patch-1, r=Manishearth
Manish Goregaokar [Mon, 23 Feb 2015 09:14:53 +0000 (14:44 +0530)]
Rollup merge of #22652 - tigarmo:patch-1, r=Manishearth

 Update from straight line to reference-style link.

9 years agoRollup merge of #22643 - fhartwig:bitvec-doc-fix, r=alexcrichton
Manish Goregaokar [Mon, 23 Feb 2015 09:14:47 +0000 (14:44 +0530)]
Rollup merge of #22643 - fhartwig:bitvec-doc-fix, r=alexcrichton

 It looks like a few spots in the documentation were missed when renaming `Bitv` and `BitvSet`. This fixes the docs to use their current names.

9 years agoRollup merge of #22613 - nick29581:fix-save-alias, r=huonw
Manish Goregaokar [Mon, 23 Feb 2015 09:14:40 +0000 (14:44 +0530)]
Rollup merge of #22613 - nick29581:fix-save-alias, r=huonw

 r? @huonw

9 years agoRollup merge of #22612 - jxcl:iter-replace, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:14:34 +0000 (14:44 +0530)]
Rollup merge of #22612 - jxcl:iter-replace, r=steveklabnik

 r? @steveklabnik

I've updated the iterators chapter to reflect the fact that you can now iterate over `for` loops without calling `.iter()`.

9 years agoRollup merge of #22601 - bombless:patch-1, r=Manishearth
Manish Goregaokar [Mon, 23 Feb 2015 09:14:29 +0000 (14:44 +0530)]
Rollup merge of #22601 - bombless:patch-1, r=Manishearth

 r? @steveklabnik

9 years agoRollup merge of #22593 - brson:spatch, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:14:23 +0000 (14:44 +0530)]
Rollup merge of #22593 - brson:spatch, r=steveklabnik

 r? @steveklabnik

9 years agoRollup merge of #22559 - kmcallister:borrowck-readme, r=nikomatsakis
Manish Goregaokar [Mon, 23 Feb 2015 09:14:17 +0000 (14:44 +0530)]
Rollup merge of #22559 - kmcallister:borrowck-readme, r=nikomatsakis

 And minor fixes to other docs.

r? @nikomatsakis

9 years agoRollup merge of #22556 - brson:str, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:14:12 +0000 (14:44 +0530)]
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

9 years agoRollup merge of #22514 - diamondman:intro_doc_threading, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:14:06 +0000 (14:44 +0530)]
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.

9 years agoRollup merge of #22513 - steveklabnik:doc_str, r=brson
Manish Goregaokar [Mon, 23 Feb 2015 09:14:01 +0000 (14:44 +0530)]
Rollup merge of #22513 - steveklabnik:doc_str, r=brson

9 years agoRollup merge of #22505 - tshepang:current_dir, r=steveklabnik
Manish Goregaokar [Mon, 23 Feb 2015 09:13:55 +0000 (14:43 +0530)]
Rollup merge of #22505 - tshepang:current_dir, r=steveklabnik

9 years agoRollup merge of #22371 - fhahn:issue-17829-compiletest-nocapture, r=Manishearth
Manish Goregaokar [Mon, 23 Feb 2015 09:13:44 +0000 (14:43 +0530)]
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.

9 years agoRollup merge of #22270 - steveklabnik:gh22152, r=huonw
Manish Goregaokar [Mon, 23 Feb 2015 09:13:38 +0000 (14:43 +0530)]
Rollup merge of #22270 - steveklabnik:gh22152, r=huonw

 Fixes #22152

9 years agoAuto merge of #21769 - brooksbp:column-line-macro, r=nick29581
bors [Mon, 23 Feb 2015 01:53:38 +0000 (01:53 +0000)]
Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581

Please see discussion in #19284 .

9 years agoFixed erroneous statements in iterators.md.
Alexander Bliskovsky [Mon, 23 Feb 2015 01:06:25 +0000 (20:06 -0500)]
Fixed erroneous statements in iterators.md.

9 years agoSwitch to &vector notation in the iterators chapter.
Alexander Bliskovsky [Sat, 21 Feb 2015 02:30:43 +0000 (21:30 -0500)]
Switch to &vector notation in the iterators chapter.

9 years agoUse boxed functions instead of transmute
Stepan Koltsov [Sun, 22 Feb 2015 23:58:22 +0000 (02:58 +0300)]
Use boxed functions instead of transmute

... to convert between Box and raw pointers. E. g. use

```
let b: Box<Foo> = Box::from_raw(p);
```

instead of

```
let b: Box<Foo> = mem::transmute(p);
```

Patch also changes closure release code in `src/libstd/sys/unix/thread.rs`
when `pthread_create` failed. Raw pointer was transmuted to box of
`FnOnce()` instead of `Thunk`. This code was probably never executed,
because `pthread_create` rarely fails in practice.

9 years agoboxed: mark from_raw and into_raw functions inline
Stepan Koltsov [Sun, 22 Feb 2015 23:58:54 +0000 (02:58 +0300)]
boxed: mark from_raw and into_raw functions inline

9 years agoruntest: update slicing syntax where [] becomes [..]
Tshepang Lekhonkhobe [Sun, 22 Feb 2015 23:49:07 +0000 (01:49 +0200)]
runtest: update slicing syntax where [] becomes [..]

9 years agoboxed: fix typo in doc
Stepan Koltsov [Sun, 22 Feb 2015 23:25:47 +0000 (02:25 +0300)]
boxed: fix typo in doc

9 years agosave-analysis: fix impls on primitive types
Nick Cameron [Sun, 22 Feb 2015 23:15:11 +0000 (12:15 +1300)]
save-analysis: fix impls on primitive types

9 years agoAuto merge of #22466 - Kimundi:str_pattern_ai_safe, r=aturon
bors [Sun, 22 Feb 2015 22:45:46 +0000 (22:45 +0000)]
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]

9 years agorustbook: update slicing syntax where [] --> [..]
Tshepang Lekhonkhobe [Sun, 22 Feb 2015 22:20:42 +0000 (00:20 +0200)]
rustbook: update slicing syntax where [] --> [..]

9 years agoUpdate intro.md to fix thread spawning example Closes #22419
Jessy Diamond Exum [Fri, 13 Feb 2015 20:13:28 +0000 (12:13 -0800)]
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.

9 years agosave-analysis: handle type defs in struct patterns
Nick Cameron [Thu, 19 Feb 2015 03:10:35 +0000 (16:10 +1300)]
save-analysis: handle type defs in struct patterns

9 years agoImprove documentation for libcollections/str
Steve Klabnik [Wed, 18 Feb 2015 23:56:35 +0000 (18:56 -0500)]
Improve documentation for libcollections/str

9 years agoLink from literals to their representation
Steve Klabnik [Fri, 13 Feb 2015 14:28:10 +0000 (09:28 -0500)]
Link from literals to their representation

Fixes #22152

9 years agoFix another occurrence of #22243
Markus Unterwaditzer [Sun, 22 Feb 2015 16:13:41 +0000 (17:13 +0100)]
Fix another occurrence of #22243

9 years agoFix typos in CStr docs
Jake Goulding [Sun, 22 Feb 2015 13:52:07 +0000 (08:52 -0500)]
Fix typos in CStr docs

9 years agoAdd missing cast for retslots in case of "subtyping" due to trait bounds
Björn Steinbrink [Sun, 22 Feb 2015 11:47:27 +0000 (12:47 +0100)]
Add missing cast for retslots in case of "subtyping" due to trait bounds

We already do this for the function arguments, but miss it for the
retslot pointer, which can lead to LLVM assertions because the retslot
has the wrong type.

Fixes #22663

9 years agoAuto merge of #22574 - huonw:remove-lame-statics, r=alexcirchton
bors [Sun, 22 Feb 2015 10:27:08 +0000 (10:27 +0000)]
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

9 years agoAuto merge of #22548 - Manishearth:rollup, r=Manishearth
bors [Sun, 22 Feb 2015 10:15:40 +0000 (10:15 +0000)]
Auto merge of #22548 - Manishearth:rollup, r=Manishearth

I had most of these tested locally, why not  get them out of the way too?

9 years agoMiscellaneous README changes
Kevin Yap [Sat, 21 Feb 2015 22:46:06 +0000 (14:46 -0800)]
Miscellaneous README changes

- Various grammatical changes.
- Use triple-backtick syntax and sh highlighting for code blocks.
- Fix indentation of code block in step 2 of "Building on Windows".
- Use title case for "Getting Help" subheading.

9 years agoDisallow crate names with leading hyphens
Chris Wong [Sun, 22 Feb 2015 07:05:05 +0000 (20:05 +1300)]
Disallow crate names with leading hyphens

Leading hyphens already don't work (#22661), so no code should break
from this change.

Closes #22661.

9 years agoInclude tuple indexing in the Reference.
Alexander Chernyakhovsky [Sun, 22 Feb 2015 05:25:12 +0000 (00:25 -0500)]
Include tuple indexing in the Reference.

The Rust Reference should include the tuple indexing (using a number
as a field) notation; currently it is only available on
http://doc.rust-lang.org/std/primitive.tuple.html and not easily
searchable.

9 years agoshift int/uint tests around to avoid code repetition
GlacJAY [Sun, 22 Feb 2015 03:38:35 +0000 (11:38 +0800)]
shift int/uint tests around to avoid code repetition

9 years agoFix small typo in reference to code of conduct
Tiago Nobrega [Sun, 22 Feb 2015 00:07:42 +0000 (22:07 -0200)]
Fix small typo in reference to code of conduct

Update from straight line to reference-style link.

9 years agoImplement BufRead for Take
Steven Fackler [Sat, 21 Feb 2015 22:59:29 +0000 (14:59 -0800)]
Implement BufRead for Take

9 years agoResolve barriers to changing column!() / line!() return type to u32 in #19284 . Addre...
Brian Brooks [Sat, 21 Feb 2015 22:26:29 +0000 (17:26 -0500)]
Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 .

9 years agoRollup merge of #22584 - alexcrichton:snapshots, r=Gankro
Manish Goregaokar [Sat, 21 Feb 2015 20:46:12 +0000 (02:16 +0530)]
Rollup merge of #22584 - alexcrichton:snapshots, r=Gankro

9 years agoRollup merge of #22568 - semarie:openbsd-rfc592, r=huonw
Manish Goregaokar [Sat, 21 Feb 2015 20:34:49 +0000 (02:04 +0530)]
Rollup merge of #22568 - semarie:openbsd-rfc592, r=huonw

 The commit 1860ee52 has break the openbsd build.
Repair it.

9 years agoRollup merge of #22583 - vhbit:ios-cstr, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:34:34 +0000 (02:04 +0530)]
Rollup merge of #22583 - vhbit:ios-cstr, r=alexcrichton

   "body": null,

9 years agoFix errors from #22592
Manish Goregaokar [Sat, 21 Feb 2015 10:56:57 +0000 (16:26 +0530)]
Fix errors from #22592

9 years agoFix lint-unsafe-code test from #22542
Manish Goregaokar [Sat, 21 Feb 2015 05:11:52 +0000 (10:41 +0530)]
Fix lint-unsafe-code test from #22542

9 years agoRollup merge of #22567 - Gankro:unstable, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:23:16 +0000 (01:53 +0530)]
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.

9 years agoRollup merge of #22516 - leejunseok:nonpub_field_sugg, r=jakub-
Manish Goregaokar [Sat, 21 Feb 2015 20:22:22 +0000 (01:52 +0530)]
Rollup merge of #22516 - leejunseok:nonpub_field_sugg, r=jakub-

  closes #22421

9 years agoRollup merge of #22602 - steveklabnik:doc_range_step, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:21:58 +0000 (01:51 +0530)]
Rollup merge of #22602 - steveklabnik:doc_range_step, r=alexcrichton

9 years agoRollup merge of #22592 - nikomatsakis:deprecate-bracket-bracket, r=aturon
Manish Goregaokar [Sat, 21 Feb 2015 20:21:03 +0000 (01:51 +0530)]
Rollup merge of #22592 - nikomatsakis:deprecate-bracket-bracket, r=aturon

 r? @aturon

9 years agoRollup merge of #22542 - ipetkov:unsafe-lint, r=huonw
Manish Goregaokar [Sat, 21 Feb 2015 20:20:53 +0000 (01:50 +0530)]
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

9 years agoRollup merge of #22634 - shepmaster:std-io-typo, r=Manishearth
Manish Goregaokar [Sat, 21 Feb 2015 20:20:32 +0000 (01:50 +0530)]
Rollup merge of #22634 - shepmaster:std-io-typo, r=Manishearth

9 years agoRollup merge of #22633 - wesleywiser:fix_22586, r=sfackler
Manish Goregaokar [Sat, 21 Feb 2015 20:20:22 +0000 (01:50 +0530)]
Rollup merge of #22633 - wesleywiser:fix_22586, r=sfackler

 AtomicOption was removed in 7d8d06f86b48520814596bd5363d2b82bc619774
but the docs weren't updated.

Fixes #22586

9 years agoRollup merge of #22627 - ddfreyne:patch-1, r=dotdash
Manish Goregaokar [Sat, 21 Feb 2015 20:20:08 +0000 (01:50 +0530)]
Rollup merge of #22627 - ddfreyne:patch-1, r=dotdash

9 years agoRollup merge of #22625 - inrustwetrust:dispatch-doc-grammar, r=huonw
Manish Goregaokar [Sat, 21 Feb 2015 20:19:46 +0000 (01:49 +0530)]
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?

9 years agoRollup merge of #22620 - edwardw:issue-22356, r=brson
Manish Goregaokar [Sat, 21 Feb 2015 20:19:30 +0000 (01:49 +0530)]
Rollup merge of #22620 - edwardw:issue-22356, r=brson

 PR #22436 has fixed it.

Closes #22356

9 years agoRollup merge of #22616 - caspark:fix-typo-in-deprecation-msg, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:19:08 +0000 (01:49 +0530)]
Rollup merge of #22616 - caspark:fix-typo-in-deprecation-msg, r=alexcrichton

 Essentially `s/fucntion/function/g` in `src/libstd/thread.rs`.

9 years agoRollup merge of #22614 - nick29581:fix-cc-crate, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:18:54 +0000 (01:48 +0530)]
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

9 years agoRollup merge of #22578 - nagisa:deprecated-fallout, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:18:30 +0000 (01:48 +0530)]
Rollup merge of #22578 - nagisa:deprecated-fallout, r=alexcrichton

 Fixes #22575
Fixes #22618

9 years agoRollup merge of #22571 - nagisa:style-fallout, r=alexcrichton
Manish Goregaokar [Sat, 21 Feb 2015 20:18:18 +0000 (01:48 +0530)]
Rollup merge of #22571 - nagisa:style-fallout, r=alexcrichton

 Links in docblock headers also became blue, which was not intended.

r? @steveklabnik

9 years agoRollup merge of #22562 - dckc:patch-4, r=Aatch
Manish Goregaokar [Sat, 21 Feb 2015 20:18:01 +0000 (01:48 +0530)]
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.

9 years agoRollup merge of #22545 - Ryman:fucntion, r=dotdash
Manish Goregaokar [Sat, 21 Feb 2015 20:17:41 +0000 (01:47 +0530)]
Rollup merge of #22545 - Ryman:fucntion, r=dotdash

9 years agoRollup merge of #22527 - dotdash:if-loop, r=huonw
Manish Goregaokar [Sat, 21 Feb 2015 20:17:28 +0000 (01:47 +0530)]
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.

9 years agoRollup merge of #22524 - stevencrockett:master, r=steveklabnik
Manish Goregaokar [Sat, 21 Feb 2015 20:17:14 +0000 (01:47 +0530)]
Rollup merge of #22524 - stevencrockett:master, r=steveklabnik

 The text is referring to the io module despite the code using the old_io module.

9 years agoRollup merge of #22522 - zeroem:patch-1, r=pnkfelix
Manish Goregaokar [Sat, 21 Feb 2015 20:17:02 +0000 (01:47 +0530)]
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

9 years agoRollup merge of #22515 - adamhjk:add-else-if-to-docs, r=steveklabnik
Manish Goregaokar [Sat, 21 Feb 2015 20:16:42 +0000 (01:46 +0530)]
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

9 years agoRollup merge of #22509 - tshepang:not-needed-mut, r=steveklabnik
Manish Goregaokar [Sat, 21 Feb 2015 20:16:27 +0000 (01:46 +0530)]
Rollup merge of #22509 - tshepang:not-needed-mut, r=steveklabnik

9 years agoRollup merge of #22267 - steveklabnik:fix_lie, r=Gankro
Manish Goregaokar [Sat, 21 Feb 2015 20:16:03 +0000 (01:46 +0530)]
Rollup merge of #22267 - steveklabnik:fix_lie, r=Gankro

 Otherwise, this line is a lie.

9 years agoRemove last traces of BitV and BitVSet from documentation
Florian Hartwig [Sat, 21 Feb 2015 19:36:44 +0000 (20:36 +0100)]
Remove last traces of BitV and BitVSet from documentation

9 years agoFix io::Take behavior with limit 0
Steven Fackler [Sat, 21 Feb 2015 19:15:58 +0000 (11:15 -0800)]
Fix io::Take behavior with limit 0

We can't call into the inner reader for a 0-byte read because that may
end up blocking or returning an error.

9 years agoFix typo in std::io unstable reason
Jake Goulding [Sat, 21 Feb 2015 16:56:58 +0000 (11:56 -0500)]
Fix typo in std::io unstable reason

9 years agoRemove mention of non-existing AtomicOption in docs
Wesley Wiser [Sat, 21 Feb 2015 16:49:29 +0000 (11:49 -0500)]
Remove mention of non-existing AtomicOption in docs

AtomicOption was removed in 7d8d06f86b48520814596bd5363d2b82bc619774
but the docs weren't updated.

Fixes #22586

9 years agoFix frow_raw/from_raw typo
Denis Defreyne [Sat, 21 Feb 2015 12:14:17 +0000 (13:14 +0100)]
Fix frow_raw/from_raw typo

9 years agoResolve includeme.fragment conflict.
Brian Brooks [Sat, 21 Feb 2015 11:56:46 +0000 (06:56 -0500)]
Resolve includeme.fragment conflict.

9 years agoMinor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc
inrustwetrust [Sat, 21 Feb 2015 10:50:25 +0000 (11:50 +0100)]
Minor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc

9 years agoUn-ignore lang-item-public test.
Vadim Chugunov [Sat, 21 Feb 2015 09:35:33 +0000 (01:35 -0800)]
Un-ignore lang-item-public test.

9 years agoAuto merge of #21959 - dhuseby:bitrig-support, r=brson
bors [Sat, 21 Feb 2015 09:20:48 +0000 (09:20 +0000)]
Auto merge of #21959 - dhuseby:bitrig-support, r=brson

This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org

9 years agoAdd test for #22356
Edward Wang [Sat, 21 Feb 2015 06:37:30 +0000 (14:37 +0800)]
Add test for #22356

PR #22436 has fixed it.

Closes #22356

9 years agoRegister new snapshots
Alex Crichton [Fri, 20 Feb 2015 02:35:52 +0000 (18:35 -0800)]
Register new snapshots

9 years agoRemove `'static` bound from sync::mpsc, Mutex and RwLock.
Huon Wilson [Fri, 20 Feb 2015 06:33:11 +0000 (17:33 +1100)]
Remove `'static` bound from sync::mpsc, Mutex and RwLock.

Adds some basic tests to check that the types still catch the most
glaring errors that could occur.

cc #22444.

9 years agoFix typo in deprecation msg
Caspar Krieger [Sat, 21 Feb 2015 03:57:20 +0000 (14:57 +1100)]
Fix typo in deprecation msg

9 years agoIn the rustc driver, we pass the expanded, not the pre-expansion, AST to the post...
Nick Cameron [Sat, 21 Feb 2015 03:25:51 +0000 (16:25 +1300)]
In the rustc driver, we pass the expanded, not the pre-expansion, AST to the post-analysis callback. We can also pass this to post-write-deps callback.

9 years agomake int/uint modules just re-exports
Alexis [Fri, 20 Feb 2015 06:18:12 +0000 (01:18 -0500)]
make int/uint modules just re-exports

9 years agotry to reduce bajillion warnings
Alexis [Thu, 19 Feb 2015 17:57:25 +0000 (12:57 -0500)]
try to reduce bajillion warnings

9 years agoadded license header to test
Junseok Lee [Thu, 19 Feb 2015 01:59:44 +0000 (17:59 -0800)]
added license header to test

9 years agoadded local crate struct with priv field to test
Junseok Lee [Thu, 19 Feb 2015 01:58:15 +0000 (17:58 -0800)]
added local crate struct with priv field to test

9 years agoadded 'suggest-private-fields' cfail test
Junseok Lee [Thu, 19 Feb 2015 01:53:56 +0000 (17:53 -0800)]
added 'suggest-private-fields' cfail test

9 years agosuggestions no longer include private fields for structs outside local crate. closes...
Junseok Lee [Thu, 19 Feb 2015 00:23:13 +0000 (16:23 -0800)]
suggestions no longer include private fields for structs outside local crate. closes #22421