summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-05-27Fix section headers on Not Found pageSteve Klabnik-3/+3
Fixes #25794
2015-05-27Auto merge of #25796 - arielb1:default-assoc, r=eddybbors-120/+222
r? @eddyb Fixes #19476.
2015-05-27Auto merge of #25827 - Manishearth:rollup, r=Manishearthbors-16/+68
- Successful merges: #25128, #25651, #25668, #25726, #25760, #25792, #25806, #25807 - Failed merges:
2015-05-28Rollup merge of #25807 - rillian:manpages, r=alexcrichtonManish Goregaokar-3/+3
Quick update to fix two manpage issues I noticed in #25689.
2015-05-28Rollup merge of #25806 - nrc:20184-msg, r=alexcrichtonManish Goregaokar-4/+5
Closes #20184
2015-05-28Rollup merge of #25792 - koobs:patch-1, r=alexcrichtonManish Goregaokar-5/+0
Currently, there are two conditional blocks that exist to check for "clang or gcc" On line 866: ``` if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ] then err "either clang or gcc is required" fi ``` and on line 1019: ``` if [ -z "$CC" -a -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ] then err "either clang or gcc is required" fi ``` Given the order of the clauses, this results in the "either clang or gcc is required" error from the earlier block, (even) when CC is set. The expected behaviour is to honour user-flags, in this case CC. Aside from removing all hand-holdy compiler checks in favour of actual compiler *feature* checks, this change removes the redundant former block in favour of the latter block, which appears designed to allow the expected behaviour.
2015-05-27Improve docs for Vec::as_slice and as_mut_sliceMatt Brubeck-1/+5
Fixes #25622.
2015-05-28Rollup merge of #25726 - nham:cell_docs, r=alexcrichtonManish Goregaokar-4/+4
Currently part of the description of the `into_inner` method of `UnsafeCell` seems backwards.
2015-05-28Rollup merge of #25668 - steveklabnik:doc_const, r=alexcrichtonManish Goregaokar-0/+54
2015-05-28Rollup merge of #25128 - steveklabnik:gh24816, r=alexcrichtonManish Goregaokar-0/+2
Fixes #24816 r? @alexcrichton
2015-05-27Small wording fix in TRPL: lifetimesSteve Klabnik-2/+2
Fixes #25438
2015-05-27fix example for E0018Steve Klabnik-3/+3
Fixes #25326
2015-05-27Address review commentsAriel Ben-Yehuda-0/+2
2015-05-27test fixesAriel Ben-Yehuda-2/+2
2015-05-27Auto merge of #25799 - alexcrichton:fix-link-in-mk, r=luqmanabors-8/+9
The changes scaled back in 4cc025d8 were a little too aggressive and broke a bunch of cross compilations by not defining the `LINK_$(1)` variable for all targets. This commit ensures that the variable is defined for all targets by defaulting it to the normal compiler if it's not already defined (it's only defined specially for MSVC). Closes #25723 Closes #25802
2015-05-27test: Join child threads on windows in testsAlex Crichton-3/+1
Windows tests can often deadlock if a child thread continues after the main thread and then panics, and a `println!` executed in a child thread after the main thread has exited is at risk of panicking.
2015-05-27Auto merge of #25797 - eddyb:const-trait-to-trait, r=luqmanabors-3/+36
Fixes #24644.
2015-05-27Auto merge of #25762 - dotdash:codegen_test, r=alexcrichtonbors-524/+209
The current codegen tests only compare IR line counts between similar rust and C programs, the latter getting compiled with clang. That looked like a good idea back then, but actually things like lifetime intrinsics mean that less IR isn't always better, so the metric isn't really helpful. Instead, we can start doing tests that check specific aspects of the generated IR, like attributes or metadata. To do that, we can use LLVM's FileCheck tool which has a number of useful features for such tests. To start off, I created some tests for a few things that were recently added and/or broken.
2015-05-27Revamp codegen tests to check IR quality instead of quantityBjörn Steinbrink-524/+209
The current codegen tests only compare IR line counts between similar rust and C programs, the latter getting compiled with clang. That looked like a good idea back then, but actually things like lifetime intrinsics mean that less IR isn't always better, so the metric isn't really helpful. Instead, we can start doing tests that check specific aspects of the generated IR, like attributes or metadata. To do that, we can use LLVM's FileCheck tool which has a number of useful features for such tests. To start off, I created some tests for a few things that were recently added and/or broken.
2015-05-27Remove build date from the output of --versionJohannes Oertel-9/+0
Closes #25812.
2015-05-27Auto merge of #25790 - eddyb:oh-snap-ctfe-arrived, r=alexcrichtonbors-1878/+441
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-525/+417
2015-05-27Remove #[cfg(stage0)] items.Eduard Burtescu-1353/+14
2015-05-27Register snapshots (2015-05-24 ba0e1cd).Eduard Burtescu-0/+10
2015-05-27Auto merge of #25791 - barosl:use-paths-as-items, r=alexcrichtonbors-0/+29
Currently, for `use` declarations with multiple paths, only the `use` item itself is saved in the AST map, not the individual path nodes. This can lead to a problem when a span of a specific path node is needed. For example, #24818 caused an ICE because of this, in `ImportResolver::check_for_conflicting_import()`. Fixes #25763.
2015-05-27Auto merge of #25749 - richo:python3, r=alexcrichtonbors-177/+42
This is enough to make `make tidy` work if you're using python3 There's definitely more stuff to do, but PR'ing now to avoid bitrot
2015-05-27Auto merge of #25741 - richo:backtrace-message, r=alexcrichtonbors-1/+4
The second commit seems reasonable to me but I can remove if it's contentious. The first is purely cosmetic but has been irking me for ages.
2015-05-27Auto merge of #25713 - Stebalien:pattern, r=alexcrichtonbors-1/+32
Needed to support: ```rust match X { pattern if Y ... } for pattern in Y {} ``` IMO, this shouldn't require an RFC because it can't interfere with any future language changes (because `pattern if` and `pattern in` are already legal in rust) and can't cause any ambiguity.
2015-05-26Update rustc manpage.Ralph Giles-1/+1
rustc -C target-cpu=help is no longer supported. Recommend the llc tool intead like 'rustc --help'.
2015-05-26Bump manpage date and version for 1.2.0-dev.Ralph Giles-2/+2
Estimating August as the release date for 1.2.0.
2015-05-26Auto merge of #25688 - nham:E0055_E0192, r=alexcrichtonbors-95/+240
- Adds explanations for E0055, E0089, E0192, E0261-E0263, E0318 - Improves explanations for E0250, E0368, E0372. - Converts 15 diagnostics to have error codes (E0380-E0394). Adds an explanation for E0380. - The E0087-E0090 messages currently look like "expected {} parameter(s) found {} parameter(s)". This changes them to either use "parameter" or "parameters", based on the number. This is, in part, more progress towards #24407
2015-05-26Add note about filesystems to fs::renameSteve Klabnik-0/+2
Fixes #24816
2015-05-27Add a WONTFIX message to a failing test.Nick Cameron-4/+5
Closes #20184
2015-05-26Enable colored test output when capturing output of testsJohannes Oertel-1/+1
The output of individual tests can be captured now so it's safe to use colorized output even when running tests in parallel. Closes #782.
2015-05-26Auto merge of #25675 - bluss:rustdoc-assoc-types-index, r=alexcrichtonbors-28/+83
rustdoc: Associated type fixes The first commit fixes a bug with "dud" items in the search index from misrepresented `type` items in trait impl blocks. For a trait *implementation* there are typedefs which are the types for that particular trait and implementor. Skip these in the search index. There were lots of dud items in the search index due to this (search for Item, Iterator's associated type). Add a boolean to clean::TypedefItem so that it tracks whether the it is a type alias on its own, or if it's a `type` item in a trait impl. The second commit fixes a bug that made signatures and where bounds using associated types (if they were not on `Self`) incorrect. The third commit fixes so that where clauses in type alias definititons are shown. Fixes #22442 Fixes #24417 Fixes #25769
2015-05-26Convert 15 diagnostics to have error codes (E0380-E0394).Nick Hamann-66/+94
Also adds explanations for E0380 and E0381.
2015-05-26Pluralize E0087-E0090 messages based on number of parameters.Nick Hamann-12/+23
2015-05-26Fix typo.Nick Hamann-2/+2
2015-05-26Small improvements for explanations of E0250, E0368, E0372.Nick Hamann-8/+5
2015-05-26Add error explanations for E0055, E0089, E0192, E0261, E0262, E0263, E0318.Nick Hamann-7/+116
2015-05-26Auto merge of #24657 - aochagavia:rustdoc, r=alexcrichtonbors-23/+44
Fixes #24575 Fixes #25673 r? @alexcrichton
2015-05-26etc: use codecs in featureckRicho Healey-9/+5
this asserts that source is valid utf8 on both python3 and python2
2015-05-26Auto merge of #25593 - nham:E0210_E0326, r=alexcrichtonbors-30/+82
Changes: - adds explanations for E0185, E0186, E0202, E0326 - fixes the explanation for E0053. The previous description was too narrow; there are other error cases. - changes the error message for E0202 to be specific for associated types, since it seems inherent associated constants are implemented. Part of #24407
2015-05-26mk: Ensure LINK_$(1) is defined for all targetsAlex Crichton-8/+9
The changes scaled back in 4cc025d8 were a little too aggressive and broke a bunch of cross compilations by not defining the `LINK_$(1)` variable for all targets. This commit ensures that the variable is defined for all targets by defaulting it to the normal compiler if it's not already defined (it's only defined specially for MSVC). Closes #25723
2015-05-26Add tests for fixed issuesAriel Ben-Yehuda-0/+53
Fixes #23037. Fixes #25339.
2015-05-26Auto merge of #25091 - quantheory:trait_associated_const_fixes, r=nikomatsakisbors-15/+133
Closes #25046 (by rejecting the code that causes the ICE) and #24946. I haven't been able to deal with the array size or recursion issues yet for associated consts, though my hope was that the change I made for range match patterns might help with array sizes, too. This PR is pretty much orthogonal to #25065.
2015-05-26Document std::env::const valuesSteve Klabnik-0/+54
2015-05-26Do not trip an assert when coercing &Trait to &Trait in constants.Eduard Burtescu-3/+36
Fixes #24644.
2015-05-26Implement defaults for associated typesAriel Ben-Yehuda-120/+167
2015-05-26Auto merge of #25411 - alexcrichton:issue-18913, r=brsonbors-1/+51
This flag indicates that when files are being replaced or added to archives (the `r` flag) that the new file should not be inserted if it is not newer than the file that already exists in the archive. The compiler never actually has a use case of *not* wanting to insert a file because it already exists, and this causes rlibs to not be updated in some cases when the compiler was re-run too quickly. Closes #18913