]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agodistinguish projections from the env/obj-types vs those from
Niko Matsakis [Thu, 22 Oct 2015 16:28:47 +0000 (12:28 -0400)]
distinguish projections from the env/obj-types vs those from
trait definitions, and give prefence to the former. This is consistent
with what we do for selection. It also works around a limitation
that was leading to #28871.

8 years agoAuto merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik
bors [Thu, 22 Oct 2015 16:37:28 +0000 (16:37 +0000)]
Auto merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik

The paragraph here seemed confusing, so I reworded it.  Also added
another possible reason why `curl | sh` might be objectionable to users.

r? @steveklabnik

8 years agoAuto merge of #29018 - tsion:doc-typo, r=steveklabnik
bors [Thu, 22 Oct 2015 13:12:20 +0000 (13:12 +0000)]
Auto merge of #29018 - tsion:doc-typo, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29195 - alexcrichton:fix-windows-dist, r=brson
bors [Thu, 22 Oct 2015 10:22:43 +0000 (10:22 +0000)]
Auto merge of #29195 - alexcrichton:fix-windows-dist, r=brson

These were accidentally placed into the wrong package (std) when they should
have been in the main package (rustc)

Closes #29195

8 years agoAuto merge of #28355 - DiamondLovesYou:pnacl-librustc-trans, r=alexcrichton
bors [Thu, 22 Oct 2015 08:35:38 +0000 (08:35 +0000)]
Auto merge of #28355 - DiamondLovesYou:pnacl-librustc-trans, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #29210 - arielb1:suggest-overflow, r=eddyb
bors [Thu, 22 Oct 2015 06:47:27 +0000 (06:47 +0000)]
Auto merge of #29210 - arielb1:suggest-overflow, r=eddyb

This prevents a stack-overflow when the module graph was cyclic.

Fixes #29181

r? @eddyb

8 years agoAuto merge of #29045 - mseri:patch-4, r=nrc
bors [Thu, 22 Oct 2015 02:28:36 +0000 (02:28 +0000)]
Auto merge of #29045 - mseri:patch-4, r=nrc

r? @nrc

Nothing special going on, the only real notable change is the explicit ABI on line 6183.
I re-onlined some extern on top of the file by hand.

8 years agoAuto merge of #28963 - mdinger:arrow, r=steveklabnik
bors [Thu, 22 Oct 2015 00:41:21 +0000 (00:41 +0000)]
Auto merge of #28963 - mdinger:arrow, r=steveklabnik

This is to make the link more prominent so hopefully people will actually see it. The new icon is partially because I wasn't sure how easy it would be to apply the previous transformations only to the last character of the string. As it is, I wasn't sure at first but I think the look is growing on me.

A minor nitpick is that the space after `Runnable` is underlined and I tried to fix that but it wasn't working for me right now. I tried switching a link with subelements to a div with subelements but I missed something because it wasn't working correctly.

---
Unselected:

![arrow](https://cloud.githubusercontent.com/assets/4156987/10414475/b1730ab2-6fa4-11e5-9062-15bc0c7c8b96.png)

---

Selected:

![arrow_selected](https://cloud.githubusercontent.com/assets/4156987/10414483/4a78088e-6fa5-11e5-864e-c83f354769b1.png)

Fixes https://github.com/rust-lang/rust/issues/28958

8 years agoAdd the PNaCl/JS targets to the backend.
Richard Diamond [Fri, 11 Sep 2015 15:58:04 +0000 (10:58 -0500)]
Add the PNaCl/JS targets to the backend.

8 years agodon't revisit modules while finding traits in suggest
Ariel Ben-Yehuda [Wed, 21 Oct 2015 17:17:47 +0000 (20:17 +0300)]
don't revisit modules while finding traits in suggest

Fixes #29181

8 years agoAuto merge of #29206 - apasel422:issue-28936, r=alexcrichton
bors [Wed, 21 Oct 2015 16:37:31 +0000 (16:37 +0000)]
Auto merge of #29206 - apasel422:issue-28936, r=alexcrichton

Closes #28936.

8 years agoAuto merge of #29138 - ykomatsu:trpl2, r=Manishearth
bors [Wed, 21 Oct 2015 14:45:48 +0000 (14:45 +0000)]
Auto merge of #29138 - ykomatsu:trpl2, r=Manishearth

8 years agoAuto merge of #29179 - cjdrake:fixup, r=steveklabnik
bors [Wed, 21 Oct 2015 12:56:24 +0000 (12:56 +0000)]
Auto merge of #29179 - cjdrake:fixup, r=steveklabnik

This is a pretty trivial change. My eye caught some inconsistent whitespace while perusing compiler errors tonight. Specifically, I changed `//correct` to `// correct`, and got rid of some trailing whitespace that isn't seen in other code snippets.

8 years agoAdd test for #28936
Andrew Paseltiner [Wed, 21 Oct 2015 12:40:33 +0000 (08:40 -0400)]
Add test for #28936

Closes #28936.

8 years agoAuto merge of #29017 - ykomatsu:trpl, r=steveklabnik
bors [Wed, 21 Oct 2015 11:13:46 +0000 (11:13 +0000)]
Auto merge of #29017 - ykomatsu:trpl, r=steveklabnik

8 years agoAuto merge of #29108 - notriddle:master, r=alexcrichton
bors [Wed, 21 Oct 2015 09:28:37 +0000 (09:28 +0000)]
Auto merge of #29108 - notriddle:master, r=alexcrichton

8 years agorustfmt liblibc
Marcello Seri [Wed, 14 Oct 2015 12:41:37 +0000 (13:41 +0100)]
rustfmt liblibc

8 years agoAuto merge of #29055 - alexcrichton:tiers, r=steveklabnik
bors [Wed, 21 Oct 2015 07:45:48 +0000 (07:45 +0000)]
Auto merge of #29055 - alexcrichton:tiers, r=steveklabnik

This commit expands the "supported platforms" section of the book to include
documentation on the tiers that Rust currently has as well as organizing all
supported platforms into these various tiers. Infrastructure improvements over
the next few months are likely to change the location of may of these platforms
over, but for now this should faithfully represent what we've got today!

8 years agoAuto merge of #29192 - phil-opp:unsafe-const-fns, r=alexcrichton
bors [Wed, 21 Oct 2015 06:03:39 +0000 (06:03 +0000)]
Auto merge of #29192 - phil-opp:unsafe-const-fns, r=alexcrichton

similar to #29085

8 years agoAuto merge of #29190 - alexcrichton:from-str-socket-addr, r=brson
bors [Wed, 21 Oct 2015 04:21:20 +0000 (04:21 +0000)]
Auto merge of #29190 - alexcrichton:from-str-socket-addr, r=brson

This was already implemented for SocketAddr, so the other types are lacking it
is just an oversight!

Closes #29183

8 years agomk: Fix win32 runtime DLL installation
Alex Crichton [Wed, 21 Oct 2015 03:58:03 +0000 (20:58 -0700)]
mk: Fix win32 runtime DLL installation

These were accidentally placed into the wrong package (std) when they should
have been in the main package (rustc)

8 years agoAuto merge of #29186 - pnkfelix:fsk-fix-issue-29166, r=alexcrichton
bors [Wed, 21 Oct 2015 02:39:59 +0000 (02:39 +0000)]
Auto merge of #29186 - pnkfelix:fsk-fix-issue-29166, r=alexcrichton

Add dropck unsafe escape hatch (UGEH) to vec::IntoIter.

Fix #29166

8 years agoAuto merge of #29171 - nrc:servo-dxr, r=@arielb1
bors [Wed, 21 Oct 2015 00:55:49 +0000 (00:55 +0000)]
Auto merge of #29171 - nrc:servo-dxr, r=@arielb1

8 years agosave-analysis: don't recompute crate name
Nick Cameron [Mon, 19 Oct 2015 19:54:19 +0000 (08:54 +1300)]
save-analysis: don't recompute crate name

8 years agoAuto merge of #29159 - arcnmx:travis-trusty, r=alexcrichton
bors [Tue, 20 Oct 2015 22:00:56 +0000 (22:00 +0000)]
Auto merge of #29159 - arcnmx:travis-trusty, r=alexcrichton

Moves back away from docker but still uses the GCE infrastructure with a system-installed LLVM.

See http://docs.travis-ci.com/user/trusty-ci-environment/

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 agostd: Implement FromStr for SocketAddrV{4,6}
Alex Crichton [Tue, 20 Oct 2015 18:35:05 +0000 (11:35 -0700)]
std: Implement FromStr for SocketAddrV{4,6}

This was already implemented for SocketAddr, so the other types are lacking it
is just an oversight!

Closes #29183

8 years agoMake Unique::new const function
Philipp Oppermann [Tue, 13 Oct 2015 15:11:49 +0000 (17:11 +0200)]
Make Unique::new const function

8 years agodoc: Clarify supported platforms and tiers
Alex Crichton [Wed, 14 Oct 2015 21:14:11 +0000 (14:14 -0700)]
doc: Clarify supported platforms and tiers

This commit expands the "supported platforms" section of the book to include
documentation on the tiers that Rust currently has as well as organizing all
supported platforms into these various tiers. Infrastructure improvements over
the next few months are likely to change the location of may of these platforms
over, but for now this should faithfully represent what we've got today!

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 agoAdd dropck unsafe escape hatch (UGEH) to vec::IntoIter.
Felix S. Klock II [Tue, 20 Oct 2015 12:54:38 +0000 (14:54 +0200)]
Add dropck unsafe escape hatch (UGEH) to vec::IntoIter.

Fix #29166

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 agoFixup some inconsistent whitespace
Chris Drake [Tue, 20 Oct 2015 07:11:33 +0000 (00:11 -0700)]
Fixup some inconsistent whitespace

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 agoUse Travis trusty infrastructure
arcnmx [Mon, 19 Oct 2015 01:37:14 +0000 (21:37 -0400)]
Use Travis trusty infrastructure

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 agoReplace -- with —
Keshav Kini [Mon, 19 Oct 2015 21:18:20 +0000 (16:18 -0500)]
Replace -- with —

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 agoReword `curl | sh` disclaimer in TRPL §2.1
Keshav Kini [Mon, 19 Oct 2015 17:05:52 +0000 (12:05 -0500)]
Reword `curl | sh` disclaimer in TRPL §2.1

The paragraph here seemed confusing, so I reworded it.  Also added
another possible reason why `curl | sh` might be objectionable to users.

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 agoChange to avoid repeated "is"
Yoshito Komatsu [Mon, 19 Oct 2015 05:23:51 +0000 (14:23 +0900)]
Change to avoid repeated "is"

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 agoFix some typos
Yoshito Komatsu [Sun, 18 Oct 2015 07:07:00 +0000 (16:07 +0900)]
Fix some typos

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 ago`other` should be called `other`, not `v`.
Michael Howell [Fri, 16 Oct 2015 20:45:18 +0000 (13:45 -0700)]
`other` should be called `other`, not `v`.

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).