]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #29148 - petrochenkov:noshow, r=alexcrichton
bors [Tue, 20 Oct 2015 19:02:27 +0000 (19:02 +0000)]
Auto merge of #29148 - petrochenkov:noshow, r=alexcrichton

Closes https://github.com/rust-lang/rust/issues/29145

[breaking-change], needs a crater run.

8 years agoAuto merge of #29187 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 20 Oct 2015 15:28:08 +0000 (15:28 +0000)]
Auto merge of #29187 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29158, #29162, #29175, #29176
- Failed merges:

8 years agoRollup merge of #29176 - huonw:shared-tracking, r=Gankro
Steve Klabnik [Tue, 20 Oct 2015 13:43:48 +0000 (09:43 -0400)]
Rollup merge of #29176 - huonw:shared-tracking, r=Gankro

8 years agoRollup merge of #29175 - durka:patch-8, r=Gankro
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29175 - durka:patch-8, r=Gankro

Yay, markdown isn't standardized and rustbook's parser has subtle incompatibilities with Github's! So in the Github preview you don't see that this list fails to separate from the previous paragraph. I think this should fix it, but I didn't check.

8 years agoRollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton

r? @steveklabnik

8 years agoRollup merge of #29158 - arcnmx:process-test, r=alexcrichton
Steve Klabnik [Tue, 20 Oct 2015 13:43:47 +0000 (09:43 -0400)]
Rollup merge of #29158 - arcnmx:process-test, r=alexcrichton

This test was mysteriously messed with as part of #28500

r? @alexcrichton

8 years agoAuto merge of #29156 - arcnmx:net-tests, r=alexcrichton
bors [Tue, 20 Oct 2015 13:39:23 +0000 (13:39 +0000)]
Auto merge of #29156 - arcnmx:net-tests, r=alexcrichton

Just some minor cleanup.

8 years agoAuto merge of #27723 - mystor:vecdeque_drain_range, r=bluss
bors [Tue, 20 Oct 2015 11:55:17 +0000 (11:55 +0000)]
Auto merge of #27723 - mystor:vecdeque_drain_range, r=bluss

This is a WIP PR for my implementation of drain over the VecDeque data structure supporting ranges. It brings the VecDeque drain implementation in line with Vec's.

Tests haven't been written for the new function yet.

8 years agoAuto merge of #29155 - retep998:read-no-dir, r=alexcrichton
bors [Tue, 20 Oct 2015 10:06:42 +0000 (10:06 +0000)]
Auto merge of #29155 - retep998:read-no-dir, r=alexcrichton

Fixes #29150

r? @alexcrichton

8 years agoAuto merge of #29152 - petrochenkov:derstab, r=alexcrichton
bors [Tue, 20 Oct 2015 08:19:19 +0000 (08:19 +0000)]
Auto merge of #29152 - petrochenkov:derstab, r=alexcrichton

The attributes are copied from the item for which the trait impl is derived

I think now we can close these two issues:
https://github.com/rust-lang/rust/issues/13054 - `allow`, `deny` etc. were already copied, now `stable` and `unstable` are copied as well.
https://github.com/rust-lang/rust/issues/18969 - I'm not sure this is needed, insta-stability were good enough so far, copied stability will be better. Nonetheless, it can be subsumed by some more general mechanism for supplying arbitrary not necessarily stability related attributes (for example `inline`) to derived impls and their methods (I haven't found an open issue for such mechanism).

r? @alexcrichton

8 years agoAuto merge of #29140 - sorear:dst-document-on-sized, r=alexcrichton
bors [Tue, 20 Oct 2015 06:36:50 +0000 (06:36 +0000)]
Auto merge of #29140 - sorear:dst-document-on-sized, r=alexcrichton

This is for discoverability.  If someone wants to know what `?Sized` means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.

8 years agoPoint core::ptr::Shared to tracking issue #27730.
Huon Wilson [Tue, 20 Oct 2015 00:49:08 +0000 (11:49 +1100)]
Point core::ptr::Shared to tracking issue #27730.

8 years agoAuto merge of #29009 - alexcrichton:std-pkgs, r=brson
bors [Tue, 20 Oct 2015 00:30:23 +0000 (00:30 +0000)]
Auto merge of #29009 - alexcrichton:std-pkgs, r=brson

This commit splits out the standard library from the current 'rustc' package
into a new 'rust-std' package. This is the basis for the work on easily
packaging compilers that can cross-compile to new targets.

8 years agofix markdown in nomicon/dropck
Alex Burka [Tue, 20 Oct 2015 00:14:38 +0000 (20:14 -0400)]
fix markdown in nomicon/dropck

8 years agoAuto merge of #29172 - steveklabnik:rollup, r=steveklabnik
bors [Mon, 19 Oct 2015 21:44:56 +0000 (21:44 +0000)]
Auto merge of #29172 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29027, #29125, #29132, #29165, #29168, #29169
- Failed merges:

8 years agoRollup merge of #29169 - apasel422:spell, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29169 - apasel422:spell, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #29168 - aarzee:master, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29168 - aarzee:master, r=steveklabnik

Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines.

This PR was created semiautomatically.

8 years agoRollup merge of #29165 - iajrz:patch-1, r=steveklabnik
Steve Klabnik [Mon, 19 Oct 2015 21:14:08 +0000 (17:14 -0400)]
Rollup merge of #29165 - iajrz:patch-1, r=steveklabnik

To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.

8 years agoRollup merge of #29132 - sorear:document-ordering-relaxed, r=alexcrichton
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29132 - sorear:document-ordering-relaxed, r=alexcrichton

I wasn't sure whether `Ordering::Relaxed` meant `Monotonic` or `Unordered`, so I checked the compiler sources and found https://github.com/rust-lang/rust/blob/206af38e74ce7fa4b0e781ece7f1067c018c580e/src/librustc_trans/trans/intrinsic.rs#L846 which appears conclusive.  Adding this answer to the documentation.

8 years agoRollup merge of #29125 - iKevinY:std-io-doc-fixes, r=alexcrichton
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29125 - iKevinY:std-io-doc-fixes, r=alexcrichton

Just a few minor spelling/grammar fixes.

8 years agoRollup merge of #29027 - steveklabnik:iter_docs, r=manishearth
Steve Klabnik [Mon, 19 Oct 2015 21:14:07 +0000 (17:14 -0400)]
Rollup merge of #29027 - steveklabnik:iter_docs, r=manishearth

Due to the way iterators work, the std::iter module is chock full of
structs that you, humble Rust programmer, will never actually use.
However, they have URLs, and therefore get linked to, because they are
real structs that do exist.

So, rather than just have a tiny sentence about each one of them,
this patch adds links back to the functions and methods on Iterator
which actually create the structs, where helpful documentation already
exists.

8 years agoCorrect spelling in docs
Andrew Paseltiner [Mon, 19 Oct 2015 17:45:33 +0000 (13:45 -0400)]
Correct spelling in docs

8 years agoAuto merge of #28977 - arcnmx:cstring-into, r=alexcrichton
bors [Mon, 19 Oct 2015 17:05:40 +0000 (17:05 +0000)]
Auto merge of #28977 - arcnmx:cstring-into, r=alexcrichton

`OsString` has these sorts of conversions, while `CString` has been missing them. I'm iffy on `into_string` simply because the return type would be better off as `FromUtf8Error<CString>`, which of course isn't generic :cry:

Also should a different/new feature gate be used?

8 years agoCorrect drain implementations in libcollectionstest
Michael Layzell [Mon, 19 Oct 2015 15:53:35 +0000 (11:53 -0400)]
Correct drain implementations in libcollectionstest

8 years agoClean whitespace
Carlos Liam [Mon, 19 Oct 2015 15:16:31 +0000 (11:16 -0400)]
Clean whitespace

Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines

8 years agoMade the example capable of consistent deadlocking
Irving A.J. Rivas Z. [Mon, 19 Oct 2015 14:02:46 +0000 (10:02 -0400)]
Made the example capable of consistent deadlocking

To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.

8 years agoAuto merge of #29153 - arcnmx:thread-spawn, r=alexcrichton
bors [Mon, 19 Oct 2015 12:45:25 +0000 (12:45 +0000)]
Auto merge of #29153 - arcnmx:thread-spawn, r=alexcrichton

Fixes #29128

Most of the weird lifetime things and `inner` stuff seems like leftover cruft from `thread::scoped`. Should `JoinInner` just be removed/merged with `JoinHandle`?

Also is it okay to remove the `FnBox`? I'm not really sure why there were two allocations there...

8 years agoAuto merge of #29144 - dotdash:llvmup, r=alexcrichton
bors [Mon, 19 Oct 2015 07:48:20 +0000 (07:48 +0000)]
Auto merge of #29144 - dotdash:llvmup, r=alexcrichton

Fixes #28947

8 years agoFix minor syntax error in example.
Scott Olson [Mon, 19 Oct 2015 07:43:48 +0000 (01:43 -0600)]
Fix minor syntax error in example.

8 years agoOwned conversions for CString
arcnmx [Sun, 11 Oct 2015 23:49:57 +0000 (19:49 -0400)]
Owned conversions for CString

8 years agoAdd error kind handling for ERROR_PATH_NOT_FOUND
Peter Atashian [Mon, 19 Oct 2015 04:54:51 +0000 (00:54 -0400)]
Add error kind handling for ERROR_PATH_NOT_FOUND
Fixes #29150

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAdd missing #[test] attribute to test
arcnmx [Mon, 19 Oct 2015 04:36:28 +0000 (00:36 -0400)]
Add missing #[test] attribute to test

8 years agoTouch up net tests
arcnmx [Mon, 19 Oct 2015 04:19:01 +0000 (00:19 -0400)]
Touch up net tests

8 years agoClean up thread::spawn
arcnmx [Mon, 19 Oct 2015 00:01:55 +0000 (20:01 -0400)]
Clean up thread::spawn

8 years agoGenerate stability attributes for derived impls
Vadim Petrochenkov [Sun, 18 Oct 2015 22:52:08 +0000 (01:52 +0300)]
Generate stability attributes for derived impls

The attributes are copied from the item for which the trait impl is derived

8 years agoAuto merge of #29117 - mseri:patch-5a, r=nrc
bors [Sun, 18 Oct 2015 21:56:51 +0000 (21:56 +0000)]
Auto merge of #29117 - mseri:patch-5a, r=nrc

r? @nrc

Re-submission of the closed PR #29054 with the additional rustfmt-zation of the full librand.

8 years agoAuto merge of #29141 - marcusklaas:pat-expr, r=alexcrichton
bors [Sun, 18 Oct 2015 20:06:07 +0000 (20:06 +0000)]
Auto merge of #29141 - marcusklaas:pat-expr, r=alexcrichton

Closes https://github.com/rust-lang/rust/issues/29120.

8 years agoDocument DST parameters on std::marker::Sized
Stefan O'Rear [Sun, 18 Oct 2015 11:17:33 +0000 (04:17 -0700)]
Document DST parameters on std::marker::Sized

This is for discoverability.  If someone wants to know what ?Sized means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.

8 years agoAuto merge of #29142 - liigo:patch-6, r=alexcrichton
bors [Sun, 18 Oct 2015 17:17:56 +0000 (17:17 +0000)]
Auto merge of #29142 - liigo:patch-6, r=alexcrichton

https://github.com/rust-lang/rust/blob/master/src/libcore/iter.rs#L1541

r? @alexcrichton

8 years agoRemove #[derive(Show)]
Vadim Petrochenkov [Sun, 18 Oct 2015 16:03:42 +0000 (19:03 +0300)]
Remove #[derive(Show)]

8 years agoUpdate LLVM fork to include a backported fix for broken debug locations
Björn Steinbrink [Sun, 18 Oct 2015 14:40:45 +0000 (16:40 +0200)]
Update LLVM fork to include a backported fix for broken debug locations

Fixes #28947

8 years agodocs: change where clause to bound
Liigo Zhuang [Sun, 18 Oct 2015 13:23:56 +0000 (21:23 +0800)]
docs: change where clause to bound

https://github.com/rust-lang/rust/blob/master/src/libcore/iter.rs#L1541

8 years agoAuto merge of #29131 - apasel422:transmute, r=bluss
bors [Sun, 18 Oct 2015 12:59:29 +0000 (12:59 +0000)]
Auto merge of #29131 - apasel422:transmute, r=bluss

8 years agoFix span for pattern literals
Marcus Klaas [Sun, 18 Oct 2015 12:45:56 +0000 (14:45 +0200)]
Fix span for pattern literals

8 years agoAuto merge of #28845 - oli-obk:rfc1229, r=pnkfelix
bors [Sun, 18 Oct 2015 11:09:03 +0000 (11:09 +0000)]
Auto merge of #28845 - oli-obk:rfc1229, r=pnkfelix

This PR turns statically known erroneous code (e.g. numeric overflow) into a warning and continues normal code-generation to emit the same code that would have been generated without `check_const` detecting that the result can be computed at compile-time.

<del>It's not done yet, as I don't know how to properly emit a lint from trans. I can't seem to extract the real lint level of the item the erroneous expression is in.</del> It's an unconditional warning now.

r? @pnkfelix

cc @nikomatsakis

* [RFC 1229 text](https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md)
* RFC PR: rust-lang/rfcs#1229
* tracking issue: https://github.com/rust-lang/rust/issues/28238

8 years agoAuto merge of #29134 - wthrowe:linker-output-ICE, r=pnkfelix
bors [Sun, 18 Oct 2015 08:20:38 +0000 (08:20 +0000)]
Auto merge of #29134 - wthrowe:linker-output-ICE, r=pnkfelix

The escaped form isn't pretty, but this should be a very rare error.
Having a general binary-escaping string creation function might be a
good idea, though.

Closes #29122

8 years agoDon't ICE if the linker prints something non-UTF-8
William Throwe [Sun, 18 Oct 2015 03:54:48 +0000 (23:54 -0400)]
Don't ICE if the linker prints something non-UTF-8

The escaped form isn't pretty, but this should be a very rare error.
Having a general binary-escaping string creation function might be a
good idea, though.

Closes #29122

8 years agoAuto merge of #29091 - luqmana:29073-overflow-cabi, r=pnkfelix
bors [Sun, 18 Oct 2015 02:07:01 +0000 (02:07 +0000)]
Auto merge of #29091 - luqmana:29073-overflow-cabi, r=pnkfelix

Fixes #29073.

8 years agoDocument that Ordering::Relaxed is Monotonic
Stefan O'Rear [Sun, 18 Oct 2015 00:39:31 +0000 (17:39 -0700)]
Document that Ordering::Relaxed is Monotonic

8 years agoRemove some trivial `transmute`s
Andrew Paseltiner [Sun, 18 Oct 2015 00:15:26 +0000 (20:15 -0400)]
Remove some trivial `transmute`s

`rbml::writer::Encoder::unsafe_clone` had no users across the entire
repo.

8 years agoFix minor issues with std::io docs
Kevin Yap [Sat, 17 Oct 2015 19:34:25 +0000 (12:34 -0700)]
Fix minor issues with std::io docs

8 years agoAuto merge of #29105 - billpmurphy:master, r=alexcrichton
bors [Sat, 17 Oct 2015 17:53:53 +0000 (17:53 +0000)]
Auto merge of #29105 - billpmurphy:master, r=alexcrichton

Change the spacing/order of lines in the final pointer conversion example to make it more clear.

Very small change, can be rolled up.

8 years agoAuto merge of #29089 - kickinbahk:edit-testing-docs, r=steveklabnik
bors [Sat, 17 Oct 2015 15:10:07 +0000 (15:10 +0000)]
Auto merge of #29089 - kickinbahk:edit-testing-docs, r=steveklabnik

When going through the docs, it is not clear that binary files cannot be tested. Additionally, it is hard to find the proper structure of a Rust crate and it took me several hours of looking through the docs to find the crates and modules section. I think we can link to it from here and it will be beneficial to those who are coming to the language.

8 years agoAuto merge of #28933 - fhahn:issue-28837-partialeq-note, r=alexcrichton
bors [Sat, 17 Oct 2015 13:24:01 +0000 (13:24 +0000)]
Auto merge of #28933 - fhahn:issue-28837-partialeq-note, r=alexcrichton

this PR adds notes for missing `PartialEq` and `PartialOrd`. I've added a test case but it seems like `NOTE` is ignored by the test runner.

#28837

8 years agoRe-formatted macros by hand with rustfmt style
Marcello Seri [Sat, 17 Oct 2015 12:16:13 +0000 (13:16 +0100)]
Re-formatted macros by hand with rustfmt style

8 years agoAuto merge of #29114 - apasel422:issue-27105, r=alexcrichton
bors [Sat, 17 Oct 2015 11:38:10 +0000 (11:38 +0000)]
Auto merge of #29114 - apasel422:issue-27105, r=alexcrichton

Closes #27105.

8 years agoAuto merge of #29110 - apasel422:shared, r=alexcrichton
bors [Sat, 17 Oct 2015 09:51:30 +0000 (09:51 +0000)]
Auto merge of #29110 - apasel422:shared, r=alexcrichton

Fixes #29037.
Fixes #29106.

r? @pnkfelix
CC @Gankro

8 years agoattitional tests fixups
Marcello Seri [Fri, 16 Oct 2015 21:54:14 +0000 (22:54 +0100)]
attitional tests fixups

8 years agoAuto merge of #29109 - nxnfufunezn:master, r=Manishearth
bors [Sat, 17 Oct 2015 08:04:32 +0000 (08:04 +0000)]
Auto merge of #29109 - nxnfufunezn:master, r=Manishearth

Fixes : #19668

r? @Manishearth

8 years agoAuto merge of #29102 - petrochenkov:spanvis, r=alexcrichton
bors [Sat, 17 Oct 2015 06:16:09 +0000 (06:16 +0000)]
Auto merge of #29102 - petrochenkov:spanvis, r=alexcrichton

Closes https://github.com/rust-lang/rust/issues/28750
`Arm` and `Generics` don't have spans at all, so it's not a visitor's problem, `visit_struct_def` was fixed in https://github.com/rust-lang/rust/pull/28816

8 years agoAuto merge of #29079 - fhahn:remove-unused-files-libcoretest, r=alexcrichton
bors [Sat, 17 Oct 2015 03:19:45 +0000 (03:19 +0000)]
Auto merge of #29079 - fhahn:remove-unused-files-libcoretest, r=alexcrichton

While working on #28711 I found out that

*  src/libcoretest/clone.rs
* src/libcoretest/fmt/float.rs
* src/libcoretest/intrinsics.rs

are not used. I am not sure if removing them is the right way to go. If it makes sense to keep (and fix and enable) them, I would be happy to update the PR.

8 years agoAdd test for #27105
Andrew Paseltiner [Sat, 17 Oct 2015 01:32:06 +0000 (21:32 -0400)]
Add test for #27105

Closes #27105.

8 years agotrans: Use an isize to count the number of registers so we don't underflow for fn...
Luqman Aden [Thu, 15 Oct 2015 21:03:27 +0000 (17:03 -0400)]
trans: Use an isize to count the number of registers so we don't underflow for fn's with > 7 args in debug builds.

8 years agoAuto merge of #28683 - GuillaumeGomez:rustdoc_error, r=alexcrichton
bors [Fri, 16 Oct 2015 23:28:14 +0000 (23:28 +0000)]
Auto merge of #28683 - GuillaumeGomez:rustdoc_error, r=alexcrichton

This PR solves the following issues (or at least help users to understand the problem):

```Rust
#![crate_name = "b"]
#![crate_type = "rlib"]

pub fn his_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_moreis_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_more_() {}
```

```Rust
#![crate_name = "b"]
#![crate_type = "rlib"]

pub struct his_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_moreis_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_more_;
```

For the maximum filename length chosen, @gkoz gave me [this link](http://unix.stackexchange.com/a/32834).

8 years agoAdd `Shared` pointer and have `{Arc, Rc}` use it
Andrew Paseltiner [Fri, 16 Oct 2015 15:54:05 +0000 (11:54 -0400)]
Add `Shared` pointer and have `{Arc, Rc}` use it

This change has two consequences:

1. It makes `Arc<T>` and `Rc<T>` covariant in `T`.

2. It causes the compiler to reject code that was unsound with respect
to dropck. See compile-fail/issue-29106.rs for an example of code that
no longer compiles. Because of this, this is a [breaking-change].

Fixes #29037.
Fixes #29106.

8 years agoImprove error handling by providing Error struct with Path information
Guillaume Gomez [Sat, 26 Sep 2015 21:59:32 +0000 (23:59 +0200)]
Improve error handling by providing Error struct with Path information

8 years agoTests fixup
Marcello Seri [Fri, 16 Oct 2015 21:47:54 +0000 (22:47 +0100)]
Tests fixup

8 years agoAdded attributes to allow rustfmt_skip in librand
Marcello Seri [Fri, 16 Oct 2015 21:43:50 +0000 (22:43 +0100)]
Added attributes to allow rustfmt_skip in librand

8 years agofixup
Marcello Seri [Fri, 16 Oct 2015 21:40:08 +0000 (22:40 +0100)]
fixup

8 years agorustfmt src/librand
Marcello Seri [Fri, 16 Oct 2015 21:38:49 +0000 (22:38 +0100)]
rustfmt src/librand

8 years agomk: Fix compile for mips
Alex Crichton [Fri, 16 Oct 2015 19:42:36 +0000 (12:42 -0700)]
mk: Fix compile for mips

* Don't pass `-mno-compact-eh`, apparently not all compilers have this?
* Don't pass `+o32`, apparently LLVm doesn't recognize this
* Use `mipsel-linux-gnu` as a prefix instead of `mipsel-unknown-linux-gnu`, this
  matches the ubuntu package at least!

8 years agoUpdated librustc_lint/builtin.rs to use span_lint_note
nxnfufunezn [Fri, 16 Oct 2015 20:44:26 +0000 (02:14 +0530)]
Updated librustc_lint/builtin.rs to use span_lint_note

8 years agoAuto merge of #29082 - DenisKolodin:patch-3, r=alexcrichton
bors [Fri, 16 Oct 2015 20:35:51 +0000 (20:35 +0000)]
Auto merge of #29082 - DenisKolodin:patch-3, r=alexcrichton

8 years agoAdd span_lint_note and span_lint_help to the LintContext
nxnfufunezn [Fri, 16 Oct 2015 20:20:33 +0000 (01:50 +0530)]
Add span_lint_note and span_lint_help to the LintContext

8 years agoAdd unused modules to libcoretest
Florian Hahn [Thu, 15 Oct 2015 19:07:20 +0000 (21:07 +0200)]
Add unused modules to libcoretest

8 years agoUpdate the testing doc to be more clear and include dynamic link
kickinbahk [Fri, 16 Oct 2015 18:45:22 +0000 (11:45 -0700)]
Update the testing doc to be more clear and include dynamic link

Fixed some typos and changed the link to the link to crates-and-modules to be dynamic.

8 years agoAuto merge of #29014 - petrochenkov:stability, r=brson
bors [Fri, 16 Oct 2015 17:47:01 +0000 (17:47 +0000)]
Auto merge of #29014 - petrochenkov:stability, r=brson

Stricter checking of stability attributes + enforcement of their invariants at compile time
(+ removed dead file librustc_front/attr.rs)
I intended to enforce use of `reason` for unstable items as well (it normally presents for new items), but it turned out too intrusive, many older unstable items don't have `reason`s.

r? @aturon
I'm studying how stability works and do some refactoring along the way, so it's probably not the last PR.

8 years agoUpdate explanation about offset method
DenisKolodin [Thu, 15 Oct 2015 20:57:23 +0000 (23:57 +0300)]
Update explanation about offset method

8 years agoAuto merge of #29074 - Manishearth:astconv-doc, r=eddyb
bors [Fri, 16 Oct 2015 16:03:57 +0000 (16:03 +0000)]
Auto merge of #29074 - Manishearth:astconv-doc, r=eddyb

Confusion about what this does caused a bug in Servo's lints.

r? @eddyb

8 years agobook: Change raw pointer conversion example
billpmurphy [Fri, 16 Oct 2015 15:42:27 +0000 (11:42 -0400)]
book: Change raw pointer conversion example

Change the spacing/order of lines in the final pointer conversion example to make it more clear.

8 years agoAuto merge of #29020 - goyox86:goyox86/rustfmting-libarena, r=nrc
bors [Fri, 16 Oct 2015 14:20:25 +0000 (14:20 +0000)]
Auto merge of #29020 - goyox86:goyox86/rustfmting-libarena, r=nrc

Hi Rustaceans!

This is the result of running latest rustfmt on libarena!

//cc @nrc

8 years agoProvide span for visit_enum_def
Vadim Petrochenkov [Fri, 16 Oct 2015 14:17:14 +0000 (17:17 +0300)]
Provide span for visit_enum_def

8 years agoAuto merge of #29086 - fhahn:book-update-lint-plugin-example, r=alexcrichton
bors [Fri, 16 Oct 2015 11:33:01 +0000 (11:33 +0000)]
Auto merge of #29086 - fhahn:book-update-lint-plugin-example, r=alexcrichton

8 years agoAuto merge of #28957 - GuillaumeGomez:patch-5, r=Manishearth
bors [Fri, 16 Oct 2015 09:49:50 +0000 (09:49 +0000)]
Auto merge of #28957 - GuillaumeGomez:patch-5, r=Manishearth

cc @nagisa

8 years agoChange error message in rustbook
Guillaume Gomez [Fri, 16 Oct 2015 08:59:04 +0000 (10:59 +0200)]
Change error message in rustbook

8 years agoAuto merge of #29085 - petrochenkov:nonzero, r=alexcrichton
bors [Fri, 16 Oct 2015 08:06:56 +0000 (08:06 +0000)]
Auto merge of #29085 - petrochenkov:nonzero, r=alexcrichton

8 years agoAuto merge of #29081 - rust-lang:arc-example-edit, r=alexcrichton
bors [Fri, 16 Oct 2015 06:24:11 +0000 (06:24 +0000)]
Auto merge of #29081 - rust-lang:arc-example-edit, r=alexcrichton

The text says it's a vector of floats, but the code actually uses a vector of integers.  The type of the Vec doesn't really matter, so I just cut it from the text.

8 years agoAuto merge of #29080 - Havvy:remove_doc_style_changing, r=alexcrichton
bors [Fri, 16 Oct 2015 03:10:30 +0000 (03:10 +0000)]
Auto merge of #29080 - Havvy:remove_doc_style_changing, r=alexcrichton

Fixes issue #29077.

There **are** API changing guidelines in the RFCs, so it might be prudent to put those there. But I'm leaving that up to another person. This PR just removes bad documentation.

8 years agoAdd to Testing docs to make more clear
kickinbahk [Fri, 16 Oct 2015 00:44:21 +0000 (17:44 -0700)]
Add to Testing docs to make more clear

When going through the docs, it is not clear that binary files cannot be tested. Additionally, it is hard to find the proper structure of a Rust crate and it took me several hours of looking through the docs to find the crates and modules section. I think we can link to it from here and it will be beneficial to those who are coming to the language.

8 years agomk: Split out a standard library package
Alex Crichton [Tue, 13 Oct 2015 00:24:30 +0000 (17:24 -0700)]
mk: Split out a standard library package

This commit splits out the standard library from the current 'rustc' package
into a new 'rust-std' package. This is the basis for the work on easily
packaging compilers that can cross-compile to new targets.

8 years agoUpdate lint plugin example in book to work with recent master
Florian Hahn [Thu, 15 Oct 2015 21:53:05 +0000 (23:53 +0200)]
Update lint plugin example in book to work with recent master

8 years agoMake NonZero::new const function
Vadim Petrochenkov [Thu, 15 Oct 2015 21:33:45 +0000 (00:33 +0300)]
Make NonZero::new const function

8 years agoAuto merge of #29031 - cristicbz:mtx_inner, r=alexcrichton
bors [Thu, 15 Oct 2015 21:21:27 +0000 (21:21 +0000)]
Auto merge of #29031 - cristicbz:mtx_inner, r=alexcrichton

The implementation for `into_inner` was a bit more complex than I had hoped for---is there any simpler, less unsafe way of getting around the fact that one can't move out of a `Drop` struct?

See #28968 and rust-lang/rfcs#1269 .

8 years agoFix minor error in Arc docs
Matt Brubeck [Thu, 15 Oct 2015 20:52:51 +0000 (13:52 -0700)]
Fix minor error in Arc docs

The text says it's a vector of floats, but the code actually uses a vector of integers.  The type of the Vec doesn't really matter, so I just cut it from the text.

8 years agoRemove outdated Changing directory.
Ryan Scheel (Havvy) [Thu, 15 Oct 2015 19:35:39 +0000 (19:35 +0000)]
Remove outdated Changing directory.

8 years agostd: add into_inner and get_mut to RwLock
Cristi Cobzarenco [Thu, 15 Oct 2015 16:14:06 +0000 (17:14 +0100)]
std: add into_inner and get_mut to RwLock

8 years agostd: add into_inner and get_mut to mutex
Cristi Cobzarenco [Tue, 13 Oct 2015 20:55:34 +0000 (21:55 +0100)]
std: add into_inner and get_mut to mutex

8 years agoAdd docs for `ast_ty_to_prim_ty`
Manish Goregaokar [Thu, 15 Oct 2015 13:27:24 +0000 (18:57 +0530)]
Add docs for `ast_ty_to_prim_ty`

Confusion about what this does caused a bug in Servo's lints.

8 years agoAuto merge of #29050 - rkruppe:dec2flt-lonely-sign, r=alexcrichton
bors [Thu, 15 Oct 2015 14:43:47 +0000 (14:43 +0000)]
Auto merge of #29050 - rkruppe:dec2flt-lonely-sign, r=alexcrichton

Fixes #29042

8 years agoFixed comment.
Jose Narvaez [Thu, 15 Oct 2015 13:56:03 +0000 (14:56 +0100)]
Fixed comment.