]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoAuto merge of #25219 - Eljay:fix-comment-parsing, r=alexcrichton
bors [Fri, 15 May 2015 16:53:53 +0000 (16:53 +0000)]
Auto merge of #25219 - Eljay:fix-comment-parsing, r=alexcrichton

Fixes #25182, parser didn't account for \r\n in regular comments, only doc-comments.

9 years agotrpl: change from "int" to "i32" in Traits
Alex Burka [Fri, 15 May 2015 16:14:39 +0000 (12:14 -0400)]
trpl: change from "int" to "i32" in Traits

The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`.

9 years agoAuto merge of #25059 - erickt:pprint, r=acrichto
bors [Fri, 15 May 2015 15:14:25 +0000 (15:14 +0000)]
Auto merge of #25059 - erickt:pprint, r=acrichto

The recent quote changes unfortunately broke unquoting statements like `let foo = 5` because the parser requires their to be a trailing semicolon in those statements. Along the way I added support for unquoting generics and where clauses as well as better pretty printing of `token::Interpolated`.

9 years agosyntax: Unquoting some statements requires trailing semicolons
Erick Tryzelaar [Fri, 15 May 2015 15:07:48 +0000 (08:07 -0700)]
syntax: Unquoting some statements requires trailing semicolons

9 years agosyntax: Add unquoting ast::{Generics,WhereClause}
Erick Tryzelaar [Sat, 2 May 2015 17:55:41 +0000 (10:55 -0700)]
syntax: Add unquoting ast::{Generics,WhereClause}

9 years agosyntax: Allow pretty printing more interpolated items
Erick Tryzelaar [Fri, 1 May 2015 18:27:36 +0000 (11:27 -0700)]
syntax: Allow pretty printing more interpolated items

9 years agoFix download links of Nightly Windows installers
Z1 [Fri, 15 May 2015 14:52:47 +0000 (10:52 -0400)]
Fix download links of Nightly Windows installers

The download links of Windows installers on the Nightly Rust page are using beta builds instead of nightly builds, which caused some confusions when I was setting up my env. Probably it's better to use the links of nightly builds here.

9 years agoAuto merge of #25402 - parir:master, r=Manishearth
bors [Fri, 15 May 2015 13:35:49 +0000 (13:35 +0000)]
Auto merge of #25402 - parir:master, r=Manishearth

r? @steveklabnik

9 years agoAllow for better optimizations of iterators for zero-sized types
Björn Steinbrink [Fri, 15 May 2015 13:20:42 +0000 (15:20 +0200)]
Allow for better optimizations of iterators for zero-sized types

Using regular pointer arithmetic to iterate collections of zero-sized types
doesn't work, because we'd get the same pointer all the time. Our
current solution is to convert the pointer to an integer, add an offset
and then convert back, but this inhibits certain optimizations.

What we should do instead is to convert the pointer to one that points
to an i8*, and then use a LLVM GEP instructions without the inbounds
flag to perform the pointer arithmetic. This allows to generate pointers
that point outside allocated objects without causing UB (as long as you
don't dereference them), and it wraps around using two's complement,
i.e. it behaves exactly like the wrapping_* operations we're currently
using, with the added benefit of LLVM being able to better optimize the
resulting IR.

9 years agoTRPL: Fix Inline Code Typography
Pascal Hertleif [Fri, 15 May 2015 12:41:21 +0000 (14:41 +0200)]
TRPL: Fix Inline Code Typography

9 years agoAuto merge of #25423 - dotdash:assume, r=huonw
bors [Fri, 15 May 2015 11:57:31 +0000 (11:57 +0000)]
Auto merge of #25423 - dotdash:assume, r=huonw

The assume intrinsic has a strong, negative impact on compile times, so
we're currently only using it in places where LLVM can simplify it to
nonnull metadata on a load intruction. Unfortunately a recent change
that fixed invalid assume calls introduce new assume calls for which
this simplification can not happen, leading to a massive regression in
compile times in certain cases.

Moving the assumptions from the middle of the function to the beginning
allows the simplification to happen again, bringing compile times back
to their old levels.

Fixes #25393

9 years agoTRPL: Remove Duplicate Reference
Pascal Hertleif [Fri, 15 May 2015 10:23:26 +0000 (12:23 +0200)]
TRPL: Remove Duplicate Reference

Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown.

9 years agoAuto merge of #25400 - nrc:save-api, r=huonw
bors [Fri, 15 May 2015 10:10:35 +0000 (10:10 +0000)]
Auto merge of #25400 - nrc:save-api, r=huonw

Also start factoring out an API for compiler tools to use and fix a bug that was preventing DXR indexing Rust properly.

r? @huonw

9 years ago5 != 4
parir [Fri, 15 May 2015 09:28:32 +0000 (11:28 +0200)]
5 != 4

Closes #25430

9 years agocomments
Nick Cameron [Fri, 15 May 2015 07:06:56 +0000 (19:06 +1200)]
comments

9 years agoAuto merge of #25422 - cactorium:unsafe_errors, r=huonw
bors [Fri, 15 May 2015 06:40:20 +0000 (06:40 +0000)]
Auto merge of #25422 - cactorium:unsafe_errors, r=huonw

For https://github.com/rust-lang/rust/issues/24407

9 years agoUpdate README
Nick Hamann [Fri, 15 May 2015 05:43:40 +0000 (00:43 -0500)]
Update README

Tries to make the introductory portion of the README flow better.

9 years agoAdd backticks around language keyword
Kelvin Ly [Fri, 15 May 2015 04:07:01 +0000 (00:07 -0400)]
Add backticks around language keyword

9 years agoAuto merge of #25419 - nrc:time, r=alexcrichton
bors [Fri, 15 May 2015 03:46:42 +0000 (03:46 +0000)]
Auto merge of #25419 - nrc:time, r=alexcrichton

r? @alexcrichton

9 years agoAuto merge of #25421 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 15 May 2015 01:53:03 +0000 (01:53 +0000)]
Auto merge of #25421 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25404, #25405, #25407, #25408, #25410, #25412, #25413, #25414, #25418, #25420
- Failed merges:

9 years agoFix major compile time regression
Björn Steinbrink [Fri, 15 May 2015 01:14:16 +0000 (03:14 +0200)]
Fix major compile time regression

The assume intrinsic has a strong, negative impact on compile times, so
we're currently only using it in places where LLVM can simplify it to
nonnull metadata on a load intruction. Unfortunately a recent change
that fixed invalid assume calls introduce new assume calls for which
this simplification can not happen, leading to a massive regression in
compile times in certain cases.

Moving the assumptions from the middle of the function to the beginning
allows the simplification to happen again, bringing compile times back
to their old levels.

Fixes #25393

9 years agoFix merge conflict and also add markdown formatting
Kelvin Ly [Fri, 15 May 2015 00:45:18 +0000 (20:45 -0400)]
Fix merge conflict and also add markdown formatting

9 years agoRollup merge of #25420 - habnabit:master, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:44 +0000 (20:30 -0400)]
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.

9 years agoRollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik

9 years agoRollup merge of #25414 - apasel422:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25414 - apasel422:patch-1, r=alexcrichton

9 years agoRollup merge of #25413 - killercup:patch-11, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25413 - killercup:patch-11, r=alexcrichton

r? @steveklabnik

9 years agoRollup merge of #25412 - koute:master, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25412 - koute:master, r=alexcrichton

Every time I profile my code I find something new to add #[inline] to. (:

9 years agoRollup merge of #25410 - durka:patch-2, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25410 - durka:patch-2, r=steveklabnik

9 years agoRollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
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.

9 years agoRollup merge of #25407 - durka:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25407 - durka:patch-1, r=alexcrichton

9 years agoRollup merge of #25405 - dreid:patch-3, r=nikomatsakis
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25405 - dreid:patch-3, r=nikomatsakis

9 years agoRollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:41 +0000 (20:30 -0400)]
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.

9 years agoFix error codes E0197-E0200
Kelvin Ly [Fri, 15 May 2015 00:08:30 +0000 (20:08 -0400)]
Fix error codes E0197-E0200

9 years agoAuto merge of #25399 - kballard:crate-attributes-cfg_attr, r=alexcrichton
bors [Fri, 15 May 2015 00:06:56 +0000 (00:06 +0000)]
Auto merge of #25399 - kballard:crate-attributes-cfg_attr, r=alexcrichton

Stripping unconfigured items prior to collecting crate metadata means we
can say things like `#![cfg_attr(foo, crate_type="lib")]`.

Fixes #25347.

9 years agoRemove an almost-duplicated sentence.
Aaron Gallagher [Fri, 15 May 2015 00:04:00 +0000 (17:04 -0700)]
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.

9 years agoDon't use <Duration as Display>::display() in time passes
Nick Cameron [Thu, 14 May 2015 22:55:23 +0000 (10:55 +1200)]
Don't use <Duration as Display>::display() in time passes

9 years agotrpl: Fix missing internal links
leunggamciu [Thu, 14 May 2015 22:25:01 +0000 (06:25 +0800)]
trpl: Fix missing internal links

9 years agoAuto merge of #25403 - Manishearth:rollup, r=Manishearth
bors [Thu, 14 May 2015 20:03:39 +0000 (20:03 +0000)]
Auto merge of #25403 - Manishearth:rollup, r=Manishearth

- Successful merges: #25354, #25381, #25391, #25395, #25397, #25398, #25401
- Failed merges:

9 years agos/Iterater/Iterator/
Andrew Paseltiner [Thu, 14 May 2015 19:57:33 +0000 (15:57 -0400)]
s/Iterater/Iterator/

9 years agoTRPL: Fix Internal Link
Pascal Hertleif [Thu, 14 May 2015 19:24:09 +0000 (21:24 +0200)]
TRPL: Fix Internal Link

9 years agoAdd #[inline] to Borrow<str>::borrow for String.
Jan Bujak [Thu, 14 May 2015 18:54:02 +0000 (20:54 +0200)]
Add #[inline] to Borrow<str>::borrow for String.

9 years agotrpl: punctuation fix in Patterns
Alex Burka [Thu, 14 May 2015 18:51:16 +0000 (14:51 -0400)]
trpl: punctuation fix in Patterns

9 years agotrpl: fix link from Match to If Let
Alex Burka [Thu, 14 May 2015 18:43:50 +0000 (14:43 -0400)]
trpl: fix link from Match to If Let

9 years agotrpl: fix link from Enums to Traits
Alex Burka [Thu, 14 May 2015 18:35:46 +0000 (14:35 -0400)]
trpl: fix link from Enums to Traits

9 years agotrpl: fix link from Structs to Traits
Alex Burka [Thu, 14 May 2015 18:20:24 +0000 (14:20 -0400)]
trpl: fix link from Structs to Traits

9 years agoAuto merge of #24920 - alexcrichton:duration, r=aturon
bors [Thu, 14 May 2015 18:18:39 +0000 (18:18 +0000)]
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

9 years agoI fixed the typo of the value of e in the memory tables. It is a reference to d,...
Paul Faria [Thu, 14 May 2015 17:43:11 +0000 (13:43 -0400)]
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.

9 years agoMove configuration 1 phase before crate metadata collection
Kevin Ballard [Thu, 14 May 2015 07:54:05 +0000 (00:54 -0700)]
Move configuration 1 phase before crate metadata collection

Stripping unconfigured items prior to collecting crate metadata means we
can say things like `#![cfg_attr(foo, crate_type="lib")]`.

Fixes #25347.

9 years agoFix stupid mistake from previous commit
Lee Jeffery [Thu, 14 May 2015 17:28:28 +0000 (18:28 +0100)]
Fix stupid mistake from previous commit

9 years agoMake BytePos calculation same as original
Lee Jeffery [Thu, 14 May 2015 17:19:51 +0000 (18:19 +0100)]
Make BytePos calculation same as original

9 years agotrpl: punctuation fix
Alex Burka [Thu, 14 May 2015 16:20:33 +0000 (12:20 -0400)]
trpl: punctuation fix

9 years agoAnother thread->task fix.
David Reid [Thu, 14 May 2015 15:15:50 +0000 (08:15 -0700)]
Another thread->task fix.

9 years agotrpl-docs: Specify correct type of variable binding
Marin Atanasov Nikolov [Thu, 14 May 2015 14:38:22 +0000 (17:38 +0300)]
trpl-docs: Specify correct type of variable binding

9 years agoRollup merge of #25401 - WiSaGaN:bugfix/fix_crates_io_link, r=steveklabnik
Manish Goregaokar [Thu, 14 May 2015 14:03:10 +0000 (19:33 +0530)]
Rollup merge of #25401 - WiSaGaN:bugfix/fix_crates_io_link, r=steveklabnik

Minor link fix for crates.io.

9 years agoRollup merge of #25398 - nham:E0066_E0069, r=huonw
Manish Goregaokar [Thu, 14 May 2015 14:03:10 +0000 (19:33 +0530)]
Rollup merge of #25398 - nham:E0066_E0069, r=huonw

Adds explanations for E0053, E0066, E0069, E0251, E0252, E0255, E0256, E0368.

cc #24407

9 years agoRollup merge of #25397 - dreid:patch-2, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25397 - dreid:patch-2, r=alexcrichton

9 years agoRollup merge of #25395 - dreid:patch-1, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25395 - dreid:patch-1, r=alexcrichton

9 years agoRollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton

This somehow got left out of https://github.com/rust-lang/rust/pull/25308

9 years agoRollup merge of #25381 - mathroc:patch-1, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25381 - mathroc:patch-1, r=alexcrichton

closes rust-lang/cargo#1554

9 years agoRollup merge of #25354 - mdinger:delete_book, r=steveklabnik
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
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

9 years agoAdd some missing links.
parir [Thu, 14 May 2015 13:39:38 +0000 (15:39 +0200)]
Add some missing links.

9 years agoFix version numbers in the guessing game.
parir [Thu, 14 May 2015 13:30:32 +0000 (15:30 +0200)]
Fix version numbers in the guessing game.

9 years agoFix crates.io link.
Wangshan Lu [Thu, 14 May 2015 13:08:20 +0000 (21:08 +0800)]
Fix crates.io link.

9 years agoAuto merge of #25381 - mathroc:patch-1, r=alexcrichton
bors [Thu, 14 May 2015 10:54:44 +0000 (10:54 +0000)]
Auto merge of #25381 - mathroc:patch-1, r=alexcrichton

closes rust-lang/cargo#1554

9 years agosave-analysis: fix a bracket counting bug
Nick Cameron [Thu, 14 May 2015 05:44:08 +0000 (17:44 +1200)]
save-analysis: fix a bracket counting bug

9 years agosave-analysis: update the smoke test
Nick Cameron [Thu, 14 May 2015 04:49:46 +0000 (16:49 +1200)]
save-analysis: update the smoke test

9 years agosave-analysis: start factoring out an API
Nick Cameron [Sun, 10 May 2015 20:35:08 +0000 (08:35 +1200)]
save-analysis: start factoring out an API

9 years agoAuto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichton
bors [Thu, 14 May 2015 09:04:45 +0000 (09:04 +0000)]
Auto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichton

We don't have any pending snapshot-requiring changes. Closes #20184.

Works toward #3965.

9 years agoImprove E0053 and E0066 error explanations.
Nick Hamann [Thu, 14 May 2015 08:22:55 +0000 (03:22 -0500)]
Improve E0053 and E0066 error explanations.

9 years agoImprove examples in the E0255/E0256 error explanations.
Nick Hamann [Thu, 14 May 2015 07:50:39 +0000 (02:50 -0500)]
Improve examples in the E0255/E0256 error explanations.

9 years agoAuto merge of #24741 - cgwalters:note-setenv-and-unsetenv-are-not-threadsafe, r=alexc...
bors [Thu, 14 May 2015 07:15:51 +0000 (07:15 +0000)]
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.

9 years agoAdd error explanations for E0053, E0251, E0252, E0255, E0256, E0368.
Nick Hamann [Thu, 14 May 2015 03:32:52 +0000 (22:32 -0500)]
Add error explanations for E0053, E0251, E0252, E0255, E0256, E0368.

9 years agoAuto merge of #25238 - alexcrichton:fix-archive-with-slashes, r=brson
bors [Thu, 14 May 2015 05:25:43 +0000 (05:25 +0000)]
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.

9 years agoFix automatic substitution of task->thread.
David Reid [Thu, 14 May 2015 03:41:03 +0000 (20:41 -0700)]
Fix automatic substitution of task->thread.

9 years agoAuto merge of #25065 - quantheory:fix_associated_const_ambiguity_message, r=nikomatsakis
bors [Thu, 14 May 2015 03:36:37 +0000 (03:36 +0000)]
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".

9 years agoExtract PathCollector
Nick Cameron [Tue, 5 May 2015 10:03:20 +0000 (22:03 +1200)]
Extract PathCollector

9 years agomove out function data
Nick Cameron [Tue, 5 May 2015 07:27:44 +0000 (19:27 +1200)]
move out function data

9 years agoUse the new-style API for external crate listings
Nick Cameron [Tue, 5 May 2015 06:46:09 +0000 (18:46 +1200)]
Use the new-style API for external crate listings

9 years agosave-analysis: move csv dumping stuff to its own module and rename
Nick Cameron [Mon, 4 May 2015 10:33:07 +0000 (22:33 +1200)]
save-analysis: move csv dumping stuff to its own module and rename

9 years agoFix table syntax.
David Reid [Thu, 14 May 2015 03:03:56 +0000 (20:03 -0700)]
Fix table syntax.

9 years agolibstd/env: Add non-Rust synchronization warnings for setenv()
Colin Walters [Thu, 23 Apr 2015 20:59:36 +0000 (16:59 -0400)]
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.

9 years agoAdd error explanations for E0066 and E0069.
Nick Hamann [Tue, 12 May 2015 04:36:54 +0000 (23:36 -0500)]
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.

9 years agostd: Redesign Duration, implementing RFC 1040
Alex Crichton [Tue, 28 Apr 2015 18:40:04 +0000 (11:40 -0700)]
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

9 years agoAuto merge of #25208 - lfairy:version-hash, r=brson
bors [Thu, 14 May 2015 00:42:32 +0000 (00:42 +0000)]
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

9 years agoFix ICE that occurs when an associated const is ambiguous.
Sean Patrick Santos [Sun, 3 May 2015 05:30:59 +0000 (23:30 -0600)]
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.

9 years agoFix link to RFC 255 in Reference.
Nick Hamann [Thu, 14 May 2015 00:07:19 +0000 (19:07 -0500)]
Fix link to RFC 255 in Reference.

9 years agoUnignore some tests in stage1
Tamir Duberstein [Tue, 12 May 2015 16:52:05 +0000 (12:52 -0400)]
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.

9 years agoAllow `T::C` syntax in match patterns to refer to trait-assosociated constants.
Sean Patrick Santos [Fri, 1 May 2015 03:46:37 +0000 (21:46 -0600)]
Allow `T::C` syntax in match patterns to refer to trait-assosociated constants.

9 years agorustc_typeck: export modules and fields for sub-passes.
Eduard Burtescu [Wed, 13 May 2015 23:04:56 +0000 (02:04 +0300)]
rustc_typeck: export modules and fields for sub-passes.

9 years agosyntax: abstract over the file loading mechanism.
Eduard Burtescu [Wed, 13 May 2015 22:44:57 +0000 (01:44 +0300)]
syntax: abstract over the file loading mechanism.

9 years agosyntax::parse: optimize file_to_filemap to read a string directly.
Eduard Burtescu [Wed, 13 May 2015 20:26:09 +0000 (23:26 +0300)]
syntax::parse: optimize file_to_filemap to read a string directly.

9 years agosyntax: replace sess.span_diagnostic.cm with sess.codemap().
Eduard Burtescu [Wed, 13 May 2015 20:08:02 +0000 (23:08 +0300)]
syntax: replace sess.span_diagnostic.cm with sess.codemap().

9 years agosyntax: refactor (Span)Handler and ParseSess constructors to be methods.
Eduard Burtescu [Wed, 13 May 2015 20:00:17 +0000 (23:00 +0300)]
syntax: refactor (Span)Handler and ParseSess constructors to be methods.

9 years agoMove tracking of the next NodeId from syntax's ParseSess to rustc's Session.
Eduard Burtescu [Wed, 13 May 2015 13:45:50 +0000 (16:45 +0300)]
Move tracking of the next NodeId from syntax's ParseSess to rustc's Session.

9 years agoAuto merge of #25384 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 13 May 2015 21:56:56 +0000 (21:56 +0000)]
Auto merge of #25384 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25308, #25360, #25363, #25365, #25371, #25372, #25376, #25379, #25382
- Failed merges:

9 years agoFix test failure in the reference
Steve Klabnik [Wed, 13 May 2015 21:53:57 +0000 (17:53 -0400)]
Fix test failure in the reference

9 years agoAdded test to check that newlines are stripped from comments
Lee Jeffery [Wed, 13 May 2015 21:06:26 +0000 (22:06 +0100)]
Added test to check that newlines are stripped from comments

9 years agoFix byte offset and error message inconsistencies
Lee Jeffery [Wed, 13 May 2015 21:05:01 +0000 (22:05 +0100)]
Fix byte offset and error message inconsistencies

9 years agomake diagnostic message clearer when called from cargo
Mathieu Rochette [Wed, 13 May 2015 20:31:36 +0000 (22:31 +0200)]
make diagnostic message clearer when called from cargo

9 years agoRollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:30 +0000 (16:51 -0400)]
Rollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichton

Thanks apdapreturns