]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agocomments
Nick Cameron [Fri, 15 May 2015 07:06:56 +0000 (19:06 +1200)]
comments

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

9 years agoRollup merge of #25379 - mpark:trpl, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25379 - mpark:trpl, r=alexcrichton

9 years agoRollup merge of #25376 - swaroopch:patch-2, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25376 - swaroopch:patch-2, r=steveklabnik

I don't recall reading about this `Debug` trait so far in the book. Please ignore this PR if I have missed that part.

r? @steveklabnik

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

Fixes #25355

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

Add the repeating form of the vec macro

Remove unneeded literal annotations.

Use more conventional variable names.

9 years agoRollup merge of #25365 - meqif:error-markdown, r=huonw
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25365 - meqif:error-markdown, r=huonw

Reading through the rendered error explanations in http://doc.rust-lang.org/error-index.html, I noticed a few opportunities to improve the output.

9 years agoRollup merge of #25363 - nham:E0106_E0107_fix, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:28 +0000 (16:51 -0400)]
Rollup merge of #25363 - nham:E0106_E0107_fix, r=alexcrichton

cc #25328

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

Thanks @quantheory!

9 years agoRollup merge of #25308 - nham:audit_ref_traits, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:28 +0000 (16:51 -0400)]
Rollup merge of #25308 - nham:audit_ref_traits, r=alexcrichton

cc #16676

9 years agoFix typo
Steve Klabnik [Wed, 13 May 2015 20:43:39 +0000 (16:43 -0400)]
Fix typo

Thanks apdapreturns

9 years agotrpl/error-handling - fix typo
Swaroop C H [Wed, 13 May 2015 20:23:10 +0000 (13:23 -0700)]
trpl/error-handling - fix typo

9 years agoTRPL: Fix a broken link to 'move semantics'
Michael Park [Wed, 13 May 2015 18:41:25 +0000 (11:41 -0700)]
TRPL: Fix a broken link to 'move semantics'

9 years agoAdd link to Debug trait
Swaroop C H [Wed, 13 May 2015 16:49:11 +0000 (09:49 -0700)]
Add link to Debug trait

I don't recall reading about this `Debug` trait so far in the book.

9 years agoAuto merge of #25344 - arielb1:fresh-float, r=nikomatsakis
bors [Wed, 13 May 2015 15:42:45 +0000 (15:42 +0000)]
Auto merge of #25344 - arielb1:fresh-float, r=nikomatsakis

There is no subtyping relationship between the types (or their non-freshened
variants), so they can not be merged.

Fixes #22645
Fixes #24352
Fixes #23825

Should fix #25235 (no test in issue).
Should fix #19976 (test is outdated).

9 years agoWriter -> Write in macro docs
Steve Klabnik [Wed, 13 May 2015 14:47:33 +0000 (10:47 -0400)]
Writer -> Write in macro docs

Fixes #25355

9 years agoSmall cleanup to vec docs
Steve Klabnik [Wed, 13 May 2015 14:44:37 +0000 (10:44 -0400)]
Small cleanup to vec docs

Add the repeating form of the vec macro

Remove unneeded literal annotations.

Use more conventional variable names.

9 years agoAuto merge of #25333 - GSam:master, r=nrc
bors [Wed, 13 May 2015 13:54:48 +0000 (13:54 +0000)]
Auto merge of #25333 - GSam:master, r=nrc

As it is, save-analysis appears to return the span for the 'mut' in a declaration 'static mut identifier...' instead of the identifier. This minor change appears to fix the problem, by skipping the mut when it is present.

9 years agoAuto merge of #25318 - nrc:for-expn, r=sfackler
bors [Wed, 13 May 2015 12:07:11 +0000 (12:07 +0000)]
Auto merge of #25318 - nrc:for-expn, r=sfackler

r? @sfackler

9 years agoMarkdown formatting for error explanations.
Ricardo Martins [Wed, 13 May 2015 11:00:59 +0000 (12:00 +0100)]
Markdown formatting for error explanations.

9 years agoAuto merge of #25253 - robertfoss:master, r=brson
bors [Wed, 13 May 2015 10:19:12 +0000 (10:19 +0000)]
Auto merge of #25253 - robertfoss:master, r=brson

9 years agoRemove comment description of E0234.
Nick Hamann [Tue, 12 May 2015 08:06:30 +0000 (03:06 -0500)]
Remove comment description of E0234.

This error code has been removed.

9 years agoAdd error explanations for E0049, E0050, E0106, E0107, E0166, E0201, E0322.
Nick Hamann [Mon, 11 May 2015 19:28:31 +0000 (14:28 -0500)]
Add error explanations for E0049, E0050, E0106, E0107, E0166, E0201, E0322.

9 years agoAuto merge of #25024 - nrc:mulit-decor, r=sfackler
bors [Wed, 13 May 2015 08:31:17 +0000 (08:31 +0000)]
Auto merge of #25024 - nrc:mulit-decor, r=sfackler

9 years agoFix a typo
Steve Klabnik [Wed, 13 May 2015 06:46:23 +0000 (02:46 -0400)]
Fix a typo

Thanks @quantheory

9 years agoAuto merge of #24619 - nrc:rc-coerce, r=nikomatsakis
bors [Wed, 13 May 2015 06:43:05 +0000 (06:43 +0000)]
Auto merge of #24619 - nrc:rc-coerce, r=nikomatsakis

r? @nikomatsakis (note a few TODOs left in the code where I wasn't sure about stuff).

9 years agoAuto merge of #25357 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 13 May 2015 04:55:31 +0000 (04:55 +0000)]
Auto merge of #25357 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25224, #25317, #25321, #25324, #25348
- Failed merges: #25174, #25334, #25341

9 years agoMerge branch 'trpl_embedding' into rollup
Steve Klabnik [Wed, 13 May 2015 04:55:18 +0000 (00:55 -0400)]
Merge branch 'trpl_embedding' into rollup

9 years agoMerge branch 'doc-fixes' of https://github.com/wheals/rust into rollup
Steve Klabnik [Wed, 13 May 2015 04:54:55 +0000 (00:54 -0400)]
Merge branch 'doc-fixes' of https://github.com/wheals/rust into rollup

9 years agoMerge branch 'doc_release_channels' into rollup
Steve Klabnik [Wed, 13 May 2015 04:53:32 +0000 (00:53 -0400)]
Merge branch 'doc_release_channels' into rollup

9 years agoRollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 04:52:49 +0000 (00:52 -0400)]
Rollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnik

The enums chapter at the moment is ... weird. The examples aren't about enums, they're about structs, and most of the chapter talks about how enums don't support comparison operators by default (which is also true of other compound data types.) I think there was a story here once, but some coherency got lost in refactoring.

There are two preliminary patches here, one to combine the struct and tuple-struct chapters, and one to document unit-like structs, because enum syntax is easier to explain once you have those three. The final patch moves the enum chapter after the struct chapter, and rewrites most of it to talk about enums usefully (including covering matches on enums).

r? @steveklabnik

9 years agoRollup merge of #25324 - richo:richo-compat, r=huonw
Steve Klabnik [Wed, 13 May 2015 04:52:49 +0000 (00:52 -0400)]
Rollup merge of #25324 - richo:richo-compat, r=huonw

This makes the compatibility matrix render a little nicer on github, and also removes a note about windows support from 0.12 (Which is immaterial now that we're approaching 1.0)

9 years agoRollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichton

This is a little rough, and it needs squashed and section headers, but i'd like to get some eyes on it sooner rather than later.

9 years agoRollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichton

r? @alexcrichton

9 years agoRollup merge of #25224 - brson:stddoc, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25224 - brson:stddoc, r=steveklabnik

Attempted to organize them in a way more relevant to what newbies
would be interested in hearing.

I am not satisfied by this at all, but by virtue of deleting old links alone I think it is an improvement.

r? @steveklabnik

9 years agoRemove SNAP comments
Nick Cameron [Wed, 13 May 2015 03:05:02 +0000 (15:05 +1200)]
Remove SNAP comments

9 years agoImprove wording for the "Trait objects" section of the reference.
Nick Hamann [Wed, 13 May 2015 02:47:25 +0000 (21:47 -0500)]
Improve wording for the "Trait objects" section of the reference.

9 years agoExpand the "Traits" section of the reference.
Nick Hamann [Wed, 13 May 2015 04:33:10 +0000 (23:33 -0500)]
Expand the "Traits" section of the reference.

9 years agoRebasing
Nick Cameron [Wed, 13 May 2015 04:24:49 +0000 (16:24 +1200)]
Rebasing

9 years agoMerge branch 'master' into mulit-decor
Nick Cameron [Wed, 13 May 2015 03:09:17 +0000 (15:09 +1200)]
Merge branch 'master' into mulit-decor

9 years agoFix binder skipping
Nick Cameron [Wed, 13 May 2015 02:57:47 +0000 (14:57 +1200)]
Fix binder skipping

9 years agoRebasing
Nick Cameron [Tue, 12 May 2015 02:41:08 +0000 (14:41 +1200)]
Rebasing

9 years agoTests for custom coercions
Nick Cameron [Mon, 20 Apr 2015 05:56:25 +0000 (17:56 +1200)]
Tests for custom coercions

9 years agoFix a bunch of bugs
Nick Cameron [Sun, 19 Apr 2015 22:52:26 +0000 (10:52 +1200)]
Fix a bunch of bugs

* segfault due to not copying drop flag when coercing
* fat pointer casts
* segfault due to not checking drop flag properly
* debuginfo for DST smart pointers
* unreachable code in drop glue

9 years agoMake Rc DST-compatible
Nick Cameron [Thu, 16 Apr 2015 02:36:47 +0000 (14:36 +1200)]
Make Rc DST-compatible

9 years agoeddyb's changes for DST coercions
Nick Cameron [Tue, 14 Apr 2015 23:57:29 +0000 (11:57 +1200)]
eddyb's changes for DST coercions

+ lots of rebasing

9 years agotrpl/match: Add an example for matching on enums
Geoffrey Thomas [Wed, 13 May 2015 00:14:26 +0000 (20:14 -0400)]
trpl/match: Add an example for matching on enums

9 years agotrpl/enums: Rewrite
Geoffrey Thomas [Tue, 12 May 2015 19:34:52 +0000 (15:34 -0400)]
trpl/enums: Rewrite

9 years agotrpl/structs: Document unit-like structs
Geoffrey Thomas [Tue, 12 May 2015 20:13:34 +0000 (16:13 -0400)]
trpl/structs: Document unit-like structs

9 years agotrpl: move tuple-structs.md into structs.md
Geoffrey Thomas [Tue, 12 May 2015 18:13:03 +0000 (14:13 -0400)]
trpl: move tuple-structs.md into structs.md

9 years agoTRPL: dining philosophers
Steve Klabnik [Mon, 11 May 2015 22:21:49 +0000 (18:21 -0400)]
TRPL: dining philosophers

9 years agoTRPL: Rust inside other languages
Steve Klabnik [Tue, 12 May 2015 17:34:29 +0000 (13:34 -0400)]
TRPL: Rust inside other languages

9 years agoUse `printf %s` instead of `echo -n` in build script
Chris Wong [Tue, 12 May 2015 21:56:25 +0000 (09:56 +1200)]
Use `printf %s` instead of `echo -n` in build script

According to POSIX, the behavior of `echo -n` is "implementation
defined". So we can't guarantee that it gives the same result
everywhere.

See also:
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
* http://unix.stackexchange.com/q/65803/9814

9 years agoAuto merge of #25340 - Manishearth:rollup, r=Manishearth
bors [Tue, 12 May 2015 19:11:44 +0000 (19:11 +0000)]
Auto merge of #25340 - Manishearth:rollup, r=Manishearth

- Successful merges: #24996, #25220, #25221, #25267, #25322, #25327, #25329, #25330, #25331, #25335
- Failed merges: #25334

9 years agoTRPL: Drop
Steve Klabnik [Mon, 11 May 2015 22:53:37 +0000 (18:53 -0400)]
TRPL: Drop

9 years agoTRPL: release channels
Steve Klabnik [Thu, 7 May 2015 10:15:49 +0000 (06:15 -0400)]
TRPL: release channels

9 years agoCreate a FreshFloatTy separate from FreshIntTy
Ariel Ben-Yehuda [Tue, 12 May 2015 18:44:05 +0000 (21:44 +0300)]
Create a FreshFloatTy separate from FreshIntTy

There is no subtyping relationship between the types (or their non-freshened
variants), so they can not be merged.

Fixes #22645
Fixes #24352
Fixes #23825

Should fix #25235 (no test in issue).
Should fix #19976 (test is outdated).

9 years agodoc: Address feedback
Brian Anderson [Tue, 12 May 2015 17:53:57 +0000 (10:53 -0700)]
doc: Address feedback

9 years agoRollup merge of #25335 - nikomatsakis:updates-to-reference-manual, r=steveklabnik
Manish Goregaokar [Tue, 12 May 2015 17:27:54 +0000 (22:57 +0530)]
Rollup merge of #25335 - nikomatsakis:updates-to-reference-manual, r=steveklabnik

I did a read through of the manual. This commit corrects various small points and expands some sections, while avoiding too much detail.

r? @steveklabnik

9 years agoRollup merge of #25331 - michaelsproul:err-idx-doc-link, r=Manishearth
Manish Goregaokar [Tue, 12 May 2015 17:27:53 +0000 (22:57 +0530)]
Rollup merge of #25331 - michaelsproul:err-idx-doc-link, r=Manishearth

At the moment, http://doc.rust-lang.org/error-index.html isn't linked to from anywhere (except Reddit). This should allow search engines to find error codes!

I also capitalised "The Standard Library" and neatened a few bits of grammar.

Also fixed: `#[main]` inside one of the error descriptions.

9 years agoRollup merge of #25330 - mfs:add-wait-waitpid, r=alexcrichton
Manish Goregaokar [Tue, 12 May 2015 17:27:53 +0000 (22:57 +0530)]
Rollup merge of #25330 - mfs:add-wait-waitpid, r=alexcrichton

r? @alexcrichton

9 years agoRollup merge of #25329 - jooert:tests, r=alexcrichton
Manish Goregaokar [Tue, 12 May 2015 17:27:53 +0000 (22:57 +0530)]
Rollup merge of #25329 - jooert:tests, r=alexcrichton

9 years agoRollup merge of #25327 - Ms2ger:copy-ref, r=pnkfelix
Manish Goregaokar [Tue, 12 May 2015 17:27:52 +0000 (22:57 +0530)]
Rollup merge of #25327 - Ms2ger:copy-ref, r=pnkfelix

9 years agoRollup merge of #25322 - frewsxcv:patch-23, r=steveklabnik
Manish Goregaokar [Tue, 12 May 2015 17:27:52 +0000 (22:57 +0530)]
Rollup merge of #25322 - frewsxcv:patch-23, r=steveklabnik

`if` can be a statement or also an expression.

9 years agoRollup merge of #25267 - meqif:explain_e0317, r=alexcrichton
Manish Goregaokar [Tue, 12 May 2015 17:27:52 +0000 (22:57 +0530)]
Rollup merge of #25267 - meqif:explain_e0317, r=alexcrichton

Add diagnostic message for E0317, E0154, E0259 and E0260; part of #24407.

About E0317, I was unsure if I should add an example of what could be wrong, such as `struct i64`, `enum char { A, B }` or `type isize = i64`. I decided against it, since the diagnostic message looks clear enough to me.

What do you think?

9 years agoRollup merge of #25221 - michal-czardybon:master, r=steveklabnik
Manish Goregaokar [Tue, 12 May 2015 17:27:52 +0000 (22:57 +0530)]
Rollup merge of #25221 - michal-czardybon:master, r=steveklabnik

I corrected some pretty obvious textual mistakes. One thing requires more attention - the paragraph at line 133 in Ownership. It was confusing, so I changed it, but I am no sure if this is what the author had in mind.

9 years agoRollup merge of #25220 - brson:doc1, r=steveklabnik
Manish Goregaokar [Tue, 12 May 2015 17:27:52 +0000 (22:57 +0530)]
Rollup merge of #25220 - brson:doc1, r=steveklabnik

9 years agoRollup merge of #24996 - steveklabnik:gh24163, r=aturon
Manish Goregaokar [Tue, 12 May 2015 17:27:51 +0000 (22:57 +0530)]
Rollup merge of #24996 - steveklabnik:gh24163, r=aturon

These two traits are commonly confused. As such, explain the difference.

Fixes #24163

r? @aturon

9 years agoAuto merge of #25316 - brson:installer, r=alexcrichton
bors [Tue, 12 May 2015 17:27:11 +0000 (17:27 +0000)]
Auto merge of #25316 - brson:installer, r=alexcrichton

Revert an accidental revert.

9 years agoreadme: Rework the arch support matrix
Richo Healey [Tue, 12 May 2015 06:43:58 +0000 (23:43 -0700)]
readme: Rework the arch support matrix

9 years agoCorrect various small points, expand some sections, while avoiding
Niko Matsakis [Tue, 12 May 2015 16:02:39 +0000 (12:02 -0400)]
Correct various small points, expand some sections, while avoiding
too much detail.

9 years agobook: typo fixes, wording improvements.
Shmuale Mark [Tue, 12 May 2015 14:47:14 +0000 (10:47 -0400)]
book: typo fixes, wording improvements.

The text in iterators.md wasn't wrong, but it read awkwardly to my ear.

9 years agoTRPL: Borrow and AsRef
Steve Klabnik [Thu, 30 Apr 2015 18:40:38 +0000 (14:40 -0400)]
TRPL: Borrow and AsRef

These two traits are commonly confused. As such, explain the difference.

Fixes #24163

9 years agoAuto merge of #25300 - kballard:core-slice-overflow, r=Gankro
bors [Tue, 12 May 2015 14:39:31 +0000 (14:39 +0000)]
Auto merge of #25300 - kballard:core-slice-overflow, r=Gankro

core::slice was originally written to tolerate overflow (notably, with
slices of zero-sized elements), but it was never updated to use wrapping
arithmetic when overflow traps were added.

Also correctly handle the case of calling .nth() on an Iter with a
zero-sized element type. The iterator was assuming that the pointer
value of the returned reference was meaningful, but that's not true for
zero-sized elements.

Fixes #25016.

9 years agoRecord correct span for static mut items
Garming Sam [Tue, 12 May 2015 13:32:12 +0000 (01:32 +1200)]
Record correct span for static mut items

9 years agoAuto merge of #25171 - quantheory:associated_time_long_paths, r=nikomatsakis
bors [Tue, 12 May 2015 13:04:14 +0000 (13:04 +0000)]
Auto merge of #25171 - quantheory:associated_time_long_paths, r=nikomatsakis

It is currently broken to use syntax such as `<T as Foo>::U::static_method()` where `<T as Foo>::U` is an associated type. I was able to fix this and simplify the parser a bit at the same time.

This also fixes the corresponding issue with associated types (#22139), but that's somewhat irrelevant because #22519 is still open, so this syntax still causes an error in type checking.

Similarly, although this fix applies to associated consts, #25046 forbids associated constants from using type parameters or `Self`, while #19559 means that associated types have to always have one of those two. Therefore, I think that you can't use an associated const from an associated type anyway.

9 years agoAdd a link to the error index to the main doc page.
Michael Sproul [Tue, 12 May 2015 11:21:26 +0000 (21:21 +1000)]
Add a link to the error index to the main doc page.

I also capitalised "The Standard Library" and neatened a few bits of grammar.

Also fixed: `#[main]` inside one of the error descriptions.

9 years agoAuto merge of #25323 - eddyb:coherent-coherence, r=pnkfelix
bors [Tue, 12 May 2015 10:46:14 +0000 (10:46 +0000)]
Auto merge of #25323 - eddyb:coherent-coherence, r=pnkfelix

The loop to load all the known impls from external crates seems to have been used because `ty::populate_implementations_for_trait_if_necessary` wasn't doing its job, and solely relying on it resulted in loading only impls in the same crate as the trait.

Coherence for `librustc` was reduced from 18.310s to 0.610s, from stage1 to stage2.
Interestingly, type checking also went from 46.232s to 42.003s, though that could be noise or unrelated improvements.

On a smaller scale, `fn main() {}` now spends 0.003s in coherence instead of 0.368s, which fixes #22068.
It also peaks at only 1.2MB, instead of 16MB of heap usage.

9 years agoAdd regression test for #20413
Johannes Oertel [Tue, 12 May 2015 09:02:47 +0000 (11:02 +0200)]
Add regression test for #20413

Closes #20413.

9 years agoAdd regression test for #18075
Johannes Oertel [Mon, 11 May 2015 20:51:31 +0000 (22:51 +0200)]
Add regression test for #18075

Closes #18075.

9 years agoAdd wait and waitpid to libc.
Mike Sampson [Tue, 12 May 2015 09:57:09 +0000 (19:57 +1000)]
Add wait and waitpid to libc.

9 years agoAuto merge of #24818 - tbelaire:double-import, r=nrc
bors [Tue, 12 May 2015 08:54:40 +0000 (08:54 +0000)]
Auto merge of #24818 - tbelaire:double-import, r=nrc

This isn't quite right, but it's interesting.

9 years agoCorrect claims about &T's Copyness.
Ms2ger [Tue, 12 May 2015 08:52:36 +0000 (10:52 +0200)]
Correct claims about &T's Copyness.

9 years agoAuto merge of #23424 - arielb1:ambiguous-project, r=nikomatsakis
bors [Tue, 12 May 2015 07:02:40 +0000 (07:02 +0000)]
Auto merge of #23424 - arielb1:ambiguous-project, r=nikomatsakis

r? @nikomatsakis

9 years agorustc_typeck: remove the "preload all impls ever" workaround in coherence.
Eduard Burtescu [Tue, 12 May 2015 04:58:01 +0000 (07:58 +0300)]
rustc_typeck: remove the "preload all impls ever" workaround in coherence.

9 years agoFix ty::populate_implementations_for_trait_if_necessary to load the trait's impls...
Eduard Burtescu [Tue, 12 May 2015 04:56:37 +0000 (07:56 +0300)]
Fix ty::populate_implementations_for_trait_if_necessary to load the trait's impls from all the crates.

9 years agorustc: rename ty::populate_implementations_for_type_if_necessary to make it clear...
Eduard Burtescu [Tue, 12 May 2015 04:51:15 +0000 (07:51 +0300)]
rustc: rename ty::populate_implementations_for_type_if_necessary to make it clear that it only populates inherent impls.

9 years agorustc::metadata: use u64 for DefId's instead of strings.
Eduard Burtescu [Tue, 12 May 2015 04:49:15 +0000 (07:49 +0300)]
rustc::metadata: use u64 for DefId's instead of strings.

9 years agoMake mention of `if` more generic
Corey Farwell [Tue, 12 May 2015 04:33:22 +0000 (00:33 -0400)]
Make mention of `if` more generic

`if` can be a statement or also an expression.

9 years agoAuto merge of #25320 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 12 May 2015 04:17:30 +0000 (04:17 +0000)]
Auto merge of #25320 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25254, #25272, #25278, #25282, #25283, #25288, #25292, #25302, #25304, #25314
- Failed merges: