Commit graph

41773 commits

Author SHA1 Message Date
Manish Goregaokar
5a61d43526 Rollup merge of #24739 - nrc:span-item, r=huonw
(And other kinds of items).

This brings trait/impl items in line with top-level items in this respect. It means we don't get the attributes when showing error messages for methods, etc. (a good thing, I think). Since attributes have spans it is still easy to create a span for the item + all attributes.
2015-04-24 09:48:18 +05:30
Manish Goregaokar
cda00831e3 Rollup merge of #24734 - vadimcn:patch-1, r=alexcrichton
'win32' -> 'windows', added 'ios'
2015-04-24 09:47:58 +05:30
Manish Goregaokar
be26031672 Rollup merge of #24733 - nwin:patch-1, r=steveklabnik
Consistency. The book also refers to it as trait objects.
2015-04-24 09:47:43 +05:30
Sean Patrick Santos
b1db4ec3d0 Feature-gate associated constants. 2015-04-23 21:02:29 -06:00
Sean Patrick Santos
29eb550ee6 Get associated consts working in match patterns. 2015-04-23 21:02:29 -06:00
Sean Patrick Santos
91ae5e31ab Fix dead code check for associated const impls. 2015-04-23 21:02:28 -06:00
Sean Patrick Santos
7f78887547 Add previously omitted associated const tests. 2015-04-23 21:02:27 -06:00
Sean Patrick Santos
3d9b5d0424 Fix a number of bugs that interfered with cross-crate usage of associated consts. 2015-04-23 21:02:27 -06:00
Sean Patrick Santos
7129e8815e Functional changes for associated constants. Cross-crate usage of associated constants is not yet working. 2015-04-23 21:02:26 -06:00
Sean Patrick Santos
b5499775d6 Structural changes for associated constants
Introduces new variants and types in syntax::ast, middle::ty, and middle::def.
2015-04-23 21:02:25 -06:00
Mike Boutin
4c2274e1ab Fix spelling errors. 2015-04-23 20:49:27 -04:00
tynopex
4db0efb45c Update reference.md
Add section for range expressions.
2015-04-23 20:38:11 -04:00
Michael Rosenberg
352838ed34 Update "Generic Functions" section
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
2015-04-23 20:33:46 -04:00
Luke Gallagher
f1b40d733e Remove duplicate feature gate tests
As part of the audit for #22820 the following duplicate feature
gate tests were removed:

* `box_patterns`
* `simd_ffi`

These tests for `box_patterns` and `simd_ffi` were added in #23578,
however there were existing tests in #20723 and #21233 respectively.
2015-04-24 10:16:59 +10:00
Luke Gallagher
0cae31513b Add feature gate tests
As part of the audit for #22820 the following feature gate tests have
been added:

* `rustc_diagnostic_macros`

/cc #19624
2015-04-24 10:10:48 +10:00
Luke Gallagher
03ff28135c Add feature gate tests
As part of the audit for #22820 the following feature gate tests have
been added:

* `negate_unsigned`
* `on_unimplemented`
* `optin_builtin_traits`
* `plugin`
* `rustc_attrs`
* `slice_patterns`
2015-04-24 10:10:48 +10:00
Luke Gallagher
12e30f7f06 Add ')' in advaced_slice_patterns error message 2015-04-24 10:10:48 +10:00
Luke Gallagher
e0b4c379c4 Add missing '\' for custom_derive error message 2015-04-24 10:10:48 +10:00
Lee Aronson
3ae6a5e48d Fixed typo 2015-04-23 16:50:05 -07:00
Lee Aronson
da5f80cc6d Improve information about loops
1) Moved 'while' section below 'loop', 'break', and 'continue'; 2) Added information to 'while' and 'for' loops that they interact with 'break' and 'continue' and may have a lifetime label. 3) Clarified labeling syntax on the infinite loops.
2015-04-23 16:46:33 -07:00
bors
21f278a687 Auto merge of #24633 - rapha:master, r=alexcrichton 2015-04-23 23:44:40 +00:00
bors
90bed3f947 Auto merge of #24695 - bluss:arc-default, r=alexcrichton
Relax bounds on Default implementation for Arc.

Send + Sync are overly restrictive, follow other traits for Arc.
2015-04-23 21:42:32 +00:00
Matt Brubeck
4cab21c003 Also mention /*! doc comments. 2015-04-23 14:26:07 -07:00
Geoffrey Thomas
2f491228c0 TRPL: Remove references to "advanced macros chapter"
This was merged back into the regular macros chapter, but a few
references lingered and caused broken links.
2015-04-23 17:17:14 -04:00
Matt Brubeck
17390a1a79 Update and organize the Keywords table
* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords
2015-04-23 14:15:42 -07:00
Geoffrey Thomas
ad2684c41c TRPL: Fix link to macro section of reference 2015-04-23 17:08:19 -04:00
Matt Brubeck
1b878379e9 Clarify that //! comments are also doc comments. 2015-04-23 14:03:25 -07:00
Nick Cameron
17934e5c29 Do not include attributes in trait item spans.
(And other kinds of items).
2015-04-24 08:45:32 +12:00
bors
24e4e60ae8 Auto merge of #24615 - arielb1:rapid-reject, r=nikomatsakis
skolemize_late_bound_regions essentially copies the entire type (most of the times it shouldn't, but it does), and match_impl runs millions of times.

Times compiling rustc, tested with
$ make -j4 rustc-stage1
$ ( time RUSTFLAGS=-Z time-passes make -j4 rustc-stage2 ) # need LLVM time for calibration

Before:
real	21m44.960s
user	29m38.812s
sys	0m14.944s

After:
real	19m31.445s
user	26m47.260s
sys	0m14.952s

Making this is a 10% performance improvement.

LLVM passes took 867 seconds before, 862 seconds after.
2015-04-23 19:39:40 +00:00
Vadim Chugunov
58b3b8bcfa Update supported values of target_os
'win32' -> 'windows', added 'ios'
2015-04-23 12:32:25 -07:00
nwin
99fd7f2131 typo 2 2015-04-23 21:26:34 +02:00
nwin
a8f5989afb typo 2015-04-23 21:25:09 +02:00
nwin
efb457b8cf object type -> trait object
Consistency. The book also refers to it as trait objects.
2015-04-23 21:23:35 +02:00
bors
69e47c77b2 Auto merge of #24537 - rprichard:fix-parallel-check, r=alexcrichton
This required fixing the `pretty-rpass-full` tests to have the same `$$(CSREQ$(1)_T_$(2)_H_$(3))`  dependencies as the `rpass-full` and `cfail-full` tests.  It also required fixing the `run-make/simd-ffi` test to use unique names for its output files.
2015-04-23 17:32:16 +00:00
Robin Kruppe
e9f298082e Reference audit: section 5 (Crates and source files) 2015-04-23 19:06:09 +02:00
Guillaume Gomez
2ddc8f5eb5 Update diagnostics.rs 2015-04-23 18:43:58 +02:00
Raphael Speyer
47ebc48140 Implement IntoIterator for Receiver 2015-04-24 02:43:23 +10:00
Alex Crichton
a318b51346 std: Add missing stability for symlink functions
These functions were intended to be introduced as `#[stable]` as a stable API
was deprecated in favor of them, but they just erroneously forgot the stability
attributes.
2015-04-23 08:58:47 -07:00
Andrzej Janik
5efdbecdf9 Stop mentioning obsolete integer suffixes
`us` and `is` were replaced with `usize` and `isize` some time ago.
2015-04-23 16:39:18 +02:00
bors
65f889919d Auto merge of #24694 - liigo:toggle-all-docs-using-one-link, r=alexcrichton
Combine the two links, [-] and [+], at top-right corner of the page, to use a single and the same one, so that:

- one less link to be created/displayed
- be consistent with other [-]/[+] links in the same page
- people can easily toggle docs without moving their mouse pointer

I also added tooltips/titles to these links.
2015-04-23 14:09:10 +00:00
bors
1114fcd945 Auto merge of #24664 - steveklabnik:doc_ufcs, r=alexcrichton
AKA, two four-letter acronyms 😉

This feels a bit light, if there's other things I should add, let me know.
2015-04-23 12:04:01 +00:00
bors
879c96225b Auto merge of #24714 - frewsxcv:patch-15, r=alexcrichton 2015-04-23 09:58:12 +00:00
bors
bd5c025df4 Auto merge of #24704 - brson:installer, r=alexcrichton
r? @alexcrichton
2015-04-23 07:56:17 +00:00
Liigo Zhuang
76a590d0ef rustdoc: add back [-]/[+] toggle links for unstable-methods 2015-04-23 14:09:05 +08:00
Corey Farwell
115705f8ec Indicate trait names in doc-comment are code-like 2015-04-23 01:28:46 -04:00
bors
2a6224252c Auto merge of #24693 - brson:beta, r=alexcrichton
Instead of rustc-1.0.0-beta-$triple.tar.gz, betas will be named
rustc-beta-$triple.tar.gz. This will give betas a stable download
URL, prevent old artifacts from accumulating in the dist server's
root directory, and not require the website to be updated every
beta.

As a tradeoff, it will be harder to download previous betas because
they will need to be located in the archives.

I'm still unsure about whether this is the right choice.

cc @alexcrichton @steveklabnik
2015-04-23 04:50:39 +00:00
Ryan Prichard
38d26d811a Include the mode in compiletest's aux-build directory.
The run-pass and pretty run-pass tests could run concurrently, and if they
do, they need to keep their output segregated.

This change might be overkill. We need the suffix for the `pretty` mode,
but we might not need it otherwise. The `debuginfo-lldb` and
`debuginfo-gdb` modes look like they could also need it, but the current
`tests.mk` file happens not to enable both lldb and gdb at the same time,
for incidental reasons.
2015-04-22 20:32:14 -07:00
Ryan Prichard
89b6f397c5 Replace ignore-android with ignore-cross-compile in rustdoc tests
The problem is that rustdoc searches for external crates using the host
triple, not the target triple. It's actually unclear to me whether this is
correct behavior or not, but it is necessary to get cross-compiled tests
working.
2015-04-22 20:32:14 -07:00
Ryan Prichard
f7962d2dae Ignore cross-compilation in some fulldeps tests.
These tests fail, in general, for cross-compilation, because they require
the rustc crates to exist for the target, and they don't. We can't compile
them for the target unless we also compile LLVM for the target (we don't).

Android is a subset of cross-compilation.

The other fulldeps tests, on the other hand, work fine for
cross-compilation, and in fact, are verifying that rustc correctly searches
for a host plugin crate, not a target plugin crate.
2015-04-22 20:32:14 -07:00
Ryan Prichard
d57fc92949 Fix run-make/simd-ffi to work with parallel make check. 2015-04-22 20:32:14 -07:00