Commit Graph

42570 Commits

Author SHA1 Message Date
Steve Klabnik
6df13d4d88 Rollup merge of #25420 - habnabit:master, r=steveklabnik
It seems to refer to something that used to exist, but got moved, and then not everything got cleaned up.
2015-05-14 20:30:44 -04:00
Steve Klabnik
5501f076c2 Rollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik 2015-05-14 20:30:43 -04:00
Steve Klabnik
8d522746f3 Rollup merge of #25414 - apasel422:patch-1, r=alexcrichton 2015-05-14 20:30:43 -04:00
Steve Klabnik
aa560115b0 Rollup merge of #25413 - killercup:patch-11, r=alexcrichton
r? @steveklabnik
2015-05-14 20:30:43 -04:00
Steve Klabnik
609b4a117c Rollup merge of #25412 - koute:master, r=alexcrichton
Every time I profile my code I find something new to add #[inline] to. (:
2015-05-14 20:30:43 -04:00
Steve Klabnik
dd60abc697 Rollup merge of #25410 - durka:patch-2, r=steveklabnik 2015-05-14 20:30:42 -04:00
Steve Klabnik
765a55ed20 Rollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik
I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables so they display properly in html pages.
2015-05-14 20:30:42 -04:00
Steve Klabnik
c3562110d0 Rollup merge of #25407 - durka:patch-1, r=alexcrichton 2015-05-14 20:30:42 -04:00
Steve Klabnik
0028f855e2 Rollup merge of #25405 - dreid:patch-3, r=nikomatsakis 2015-05-14 20:30:42 -04:00
Steve Klabnik
1f40cde836 Rollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnik
This PR fixes a comment in the `while Loops` section of the Rust book with the correct type of a variable binding.
2015-05-14 20:30:41 -04:00
Aaron Gallagher
568f13ac70 Remove an almost-duplicated sentence.
It seems to refer to something that used to exist, but got moved, and
then not everything got cleaned up.
2015-05-14 17:04:00 -07:00
leunggamciu
82c7282bec trpl: Fix missing internal links 2015-05-15 06:25:01 +08:00
bors
571f371b3f Auto merge of #25403 - Manishearth:rollup, r=Manishearth
- Successful merges: #25354, #25381, #25391, #25395, #25397, #25398, #25401
- Failed merges:
2015-05-14 20:03:39 +00:00
Andrew Paseltiner
50fb669241 s/Iterater/Iterator/ 2015-05-14 15:57:33 -04:00
Pascal Hertleif
a1577db825 TRPL: Fix Internal Link 2015-05-14 21:24:09 +02:00
Jan Bujak
4bdeb31124 Add #[inline] to Borrow<str>::borrow for String. 2015-05-14 20:54:02 +02:00
Alex Burka
c8b06891f0 trpl: punctuation fix in Patterns 2015-05-14 14:51:16 -04:00
Alex Burka
c147ac42ca trpl: fix link from Match to If Let 2015-05-14 14:43:50 -04:00
Alex Burka
66c0fe0d3d trpl: fix link from Enums to Traits 2015-05-14 14:35:46 -04:00
Alex Burka
dc6eb7839c trpl: fix link from Structs to Traits 2015-05-14 14:20:24 -04:00
bors
dd4dad8c86 Auto merge of #24920 - alexcrichton:duration, r=aturon
This commit is an implementation of [RFC 1040][rfc] which is a redesign of the
currently-unstable `Duration` type. The API of the type has been scaled back to
be more conservative and it also no longer supports negative durations.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md

The inner `duration` module of the `time` module has now been hidden (as
`Duration` is reexported) and the feature name for this type has changed from
`std_misc` to `duration`. All APIs accepting durations have also been audited to
take a more flavorful feature name instead of `std_misc`.

Closes #24874
2015-05-14 18:18:39 +00:00
Paul Faria
785cbe3ac9 I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables. 2015-05-14 13:43:11 -04:00
Alex Burka
e2bb734ac1 trpl: punctuation fix 2015-05-14 12:20:33 -04:00
David Reid
acb5e02add Another thread->task fix. 2015-05-14 08:15:50 -07:00
Marin Atanasov Nikolov
b4e1ce56a3 trpl-docs: Specify correct type of variable binding 2015-05-14 17:38:22 +03:00
Manish Goregaokar
2df7ae6e64 Rollup merge of #25401 - WiSaGaN:bugfix/fix_crates_io_link, r=steveklabnik
Minor link fix for crates.io.
2015-05-14 19:33:10 +05:30
Manish Goregaokar
1109b6dd8d Rollup merge of #25398 - nham:E0066_E0069, r=huonw
Adds explanations for E0053, E0066, E0069, E0251, E0252, E0255, E0256, E0368.

cc #24407
2015-05-14 19:33:10 +05:30
Manish Goregaokar
ff207b7a05 Rollup merge of #25397 - dreid:patch-2, r=alexcrichton 2015-05-14 19:33:09 +05:30
Manish Goregaokar
0cbef04817 Rollup merge of #25395 - dreid:patch-1, r=alexcrichton 2015-05-14 19:33:09 +05:30
Manish Goregaokar
3ce4b993e3 Rollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton
This somehow got left out of https://github.com/rust-lang/rust/pull/25308
2015-05-14 19:33:09 +05:30
Manish Goregaokar
ab47005482 Rollup merge of #25381 - mathroc:patch-1, r=alexcrichton
closes rust-lang/cargo#1554
2015-05-14 19:33:09 +05:30
Manish Goregaokar
ca225df7f3 Rollup merge of #25354 - mdinger:delete_book, r=steveklabnik
rustbook throws errors if the `_book` folder exists already. Common if you build twice in a row. Identical to https://github.com/steveklabnik/rustbook/issues/20
2015-05-14 19:33:09 +05:30
Wangshan Lu
62d0ef41c1 Fix crates.io link. 2015-05-14 21:08:20 +08:00
bors
af522079a2 Auto merge of #25381 - mathroc:patch-1, r=alexcrichton
closes rust-lang/cargo#1554
2015-05-14 10:54:44 +00:00
bors
b1bd3a3c51 Auto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichton
We don't have any pending snapshot-requiring changes. Closes #20184.

Works toward #3965.
2015-05-14 09:04:45 +00:00
Nick Hamann
588777f547 Improve E0053 and E0066 error explanations. 2015-05-14 03:25:45 -05:00
Nick Hamann
d636b5cf65 Improve examples in the E0255/E0256 error explanations. 2015-05-14 02:54:50 -05:00
bors
0a1a53d693 Auto merge of #24741 - cgwalters:note-setenv-and-unsetenv-are-not-threadsafe, r=alexcrichton
See:
https://sourceware.org/bugzilla/show_bug.cgi?id=4887#c9
https://bugs.freedesktop.org/show_bug.cgi?id=65681

I just noticed this while talking to someone who was using
`os.environ['FOO'] = 'BAR'` in Python and since I'm learning Rust, I
was curious if it did anything special here (and the answer appears to
be no).

Java got this right by disallowing `setenv()` from the start.
2015-05-14 07:15:51 +00:00
Nick Hamann
06aef339f1 Add error explanations for E0053, E0251, E0252, E0255, E0256, E0368. 2015-05-14 02:04:51 -05:00
bors
e77b03d783 Auto merge of #25238 - alexcrichton:fix-archive-with-slashes, r=brson
I've been working with some archives generated by MSVC's `lib.exe` tool lately,
and it looks like the embedded name of the members in those archives sometimes
have slahes in the name (e.g. `foo/bar/baz.obj`). Currently the compiler chokes
on these paths as it assumes that each file in the archive is only the filename
(which is what unix does).

This commit interprets the name of each file in all archives as a path and then
only uses the `file_name` portion of the path to extract the file to a separate
location and then reassemble it back into a new archive later. Note that
duplicate filenames are already handled, so this won't introduce any conflicts.
2015-05-14 05:25:43 +00:00
David Reid
f539c416a0 Fix automatic substitution of task->thread. 2015-05-13 20:41:03 -07:00
bors
1b5b6390ba Auto merge of #25065 - quantheory:fix_associated_const_ambiguity_message, r=nikomatsakis
This fixes #24922 and #25017, and reduces the number of error messages that talk about "methods" when associated constants rather than methods are involved.

I will admit that I haven't thought very carefully about the error messages. My goal has been to make more of the messages technically correct in all situations, and to avoid ICEs. But in some cases we could probably talk specifically about "methods" rather than "items".
2015-05-14 03:36:37 +00:00
David Reid
71f7fb2b59 Fix table syntax. 2015-05-13 20:03:56 -07:00
Colin Walters
44a5bf1b7d libstd/env: Add non-Rust synchronization warnings for setenv()
See:
https://sourceware.org/bugzilla/show_bug.cgi?id=4887#c9
https://bugs.freedesktop.org/show_bug.cgi?id=65681

I just noticed this while talking to someone who was using
`os.environ['FOO'] = 'BAR'` in Python and since I'm learning Rust, I
was curious if it did anything special here.  It looks like Rust has
an internal mutex, which helps for apps that are pure Rust, but it
will be an evil trap for someone later adding in native code (apps
like Servo and games will be at risk).

Java got this right by disallowing `setenv()` from the start.

I suggest Rust program authors only use `setenv()` early in main.
2015-05-13 21:14:15 -04:00
Nick Hamann
a4444aa780 Add error explanations for E0066 and E0069.
This also updates the error messages for both. For E0066, it removes mention
of "managed heap", which was removed in 8a91d33. For E0069, I just tweaked
the wording to make it a bit more explicit.
2015-05-13 19:55:34 -05:00
Alex Crichton
556e76bb78 std: Redesign Duration, implementing RFC 1040
This commit is an implementation of [RFC 1040][rfc] which is a redesign of the
currently-unstable `Duration` type. The API of the type has been scaled back to
be more conservative and it also no longer supports negative durations.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md

The inner `duration` module of the `time` module has now been hidden (as
`Duration` is reexported) and the feature name for this type has changed from
`std_misc` to `duration`. All APIs accepting durations have also been audited to
take a more flavorful feature name instead of `std_misc`.

Closes #24874
2015-05-13 17:50:58 -07:00
bors
e5394240a2 Auto merge of #25208 - lfairy:version-hash, r=brson
The code takes a prefix of the MD5 hash of the version string.

Since the hash command differs across GNU and BSD platforms, we scan for
the right one in the configure script.

Closes #25007
2015-05-14 00:42:32 +00:00
Sean Patrick Santos
b4bbf3a88d Fix ICE that occurs when an associated const is ambiguous.
Also change several error messages to refer to "items" rather than
"methods", since associated items that require resolution during type
checking are not always methods.
2015-05-13 18:10:01 -06:00
Nick Hamann
809be9b7f4 Fix link to RFC 255 in Reference. 2015-05-13 19:07:19 -05:00
Tamir Duberstein
f548a05542 Unignore some tests in stage1
We don't have any pending snapshot-requiring changes. Tests which
continue to be ignored are those that are broken by codegen changes.
2015-05-13 19:58:49 -04:00