]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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 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 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 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:

9 years agoRollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:20 +0000 (23:24 -0400)]
Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichton

9 years agoRollup merge of #25304 - oli-obk:patch-2, r=steveklabnik
Steve Klabnik [Tue, 12 May 2015 03:24:20 +0000 (23:24 -0400)]
Rollup merge of #25304 - oli-obk:patch-2, r=steveklabnik

9 years agoRollup merge of #25302 - michaelsproul:error-markdown, r=pnkfelix
Steve Klabnik [Tue, 12 May 2015 03:24:19 +0000 (23:24 -0400)]
Rollup merge of #25302 - michaelsproul:error-markdown, r=pnkfelix

A few errors slipped through my filter. Markdown formatting is especially important now that http://doc.rust-lang.org/error-index.html is live!

Speaking of, the error index should probably be linked to from somewhere. It doesn't quite fit under any of the sections in the index, but I could create a new one for it? Or add it under "tools" despite it not exactly being an executable tool.

9 years agoRollup merge of #25292 - steveklabnik:stack_and_heap, r=nikomatsakis
Steve Klabnik [Tue, 12 May 2015 03:24:19 +0000 (23:24 -0400)]
Rollup merge of #25292 - steveklabnik:stack_and_heap, r=nikomatsakis

I think someday I'd like to make these drawings rather than text, but for now, this will have to be good enough.

9 years agoRollup merge of #25288 - DrKwint:master, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:19 +0000 (23:24 -0400)]
Rollup merge of #25288 - DrKwint:master, r=alexcrichton

The functions BitSet::{iter,union,symmetric_difference} each had docs that claimed u32s were output when their actual output each end up being usizes.

r? @steveklabnik

9 years agoRollup merge of #25283 - steveklabnik:gh24999, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:19 +0000 (23:24 -0400)]
Rollup merge of #25283 - steveklabnik:gh24999, r=alexcrichton

and remove references to the unit type, which no longer exists

Fixes #24999

9 years agoRollup merge of #25282 - badboy:reference-macro-1, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:18 +0000 (23:24 -0400)]
Rollup merge of #25282 - badboy:reference-macro-1, r=alexcrichton

As mentioned in https://github.com/rust-lang/rust/issues/16676#issuecomment-100676326 this makes it a little bit more correct.

I'm a bit unsure whether or not it should be explained that the transcriber can be wrapped in parentheses or curly braces if necessary.

9 years agoRollup merge of #25278 - cpjreynolds:path-doc, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:18 +0000 (23:24 -0400)]
Rollup merge of #25278 - cpjreynolds:path-doc, r=alexcrichton

Change from "must be used with behind a pointer" to "must be used behind a pointer"

9 years agoRollup merge of #25272 - nham:copy_long_diag, r=alexcrichton
Steve Klabnik [Tue, 12 May 2015 03:24:18 +0000 (23:24 -0400)]
Rollup merge of #25272 - nham:copy_long_diag, r=alexcrichton

Adds long diagnostic messages for:

 - E0184
 - E0204
 - E0205
 - E0206
 - E0243
 - E0244
 - E0249
 - E0250

This PR also adds some comments to the error codes in `librustc_typeck/diagnostics.rs`.

cc #24407

9 years agoRollup merge of #25254 - cgaebel:check-sizes-on-allocate, r=Gankro
Steve Klabnik [Tue, 12 May 2015 03:24:18 +0000 (23:24 -0400)]
Rollup merge of #25254 - cgaebel:check-sizes-on-allocate, r=Gankro

They're only enabled in debug builds, but a panic is usually more
welcome than UB in debug builds.

Previous review at https://github.com/rust-lang/rust/pull/22069

r? @Gankro
cc @huon

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

9 years agoMerge branch 'master' into
Nick Cameron [Tue, 12 May 2015 00:48:14 +0000 (12:48 +1200)]
Merge branch 'master' into

9 years agostatic method -> associated function
Steve Klabnik [Mon, 11 May 2015 22:22:49 +0000 (18:22 -0400)]
static method -> associated function

9 years agoUpdate rust-installer
Brian Anderson [Mon, 11 May 2015 22:05:57 +0000 (15:05 -0700)]
Update rust-installer

9 years agoTRPL: the stack and the heap
Steve Klabnik [Mon, 11 May 2015 00:22:06 +0000 (20:22 -0400)]
TRPL: the stack and the heap

9 years agoAuto merge of #25225 - bluss:doc-search-assoc-items, r=alexcrichton
bors [Mon, 11 May 2015 20:02:18 +0000 (20:02 +0000)]
Auto merge of #25225 - bluss:doc-search-assoc-items, r=alexcrichton

Rustdoc fixes for associated items

This is related to isssue #22442 and solves it partly.

This solves the search index links of associated types and constants,
so that they link to the trait page.

Also add an Associated Constants section if constants are present.

9 years agoAvoid returning a slice with a null pointer from Iter.as_slice()
Kevin Ballard [Mon, 11 May 2015 19:37:31 +0000 (12:37 -0700)]
Avoid returning a slice with a null pointer from Iter.as_slice()

core::slice::Iter.ptr can be null when iterating a slice of zero-sized
elements, but the pointer value used for the slice itself cannot. Handle
this case by always returning a dummy pointer for slices of zero-sized
elements.

9 years agoReintroduce non-null assumptions in core::slice iterators
Kevin Ballard [Mon, 11 May 2015 16:34:59 +0000 (09:34 -0700)]
Reintroduce non-null assumptions in core::slice iterators

The previous assumptions were not valid for slices of zero-sized
elements.

9 years agoAuto merge of #25196 - brson:relnotes, r=alexcrichton
bors [Mon, 11 May 2015 18:13:11 +0000 (18:13 +0000)]
Auto merge of #25196 - brson:relnotes, r=alexcrichton

cc @aturon

9 years agoMore authors updates
Brian Anderson [Mon, 11 May 2015 17:59:23 +0000 (10:59 -0700)]
More authors updates

9 years agoFix links in the referece
Steve Klabnik [Sun, 10 May 2015 22:11:51 +0000 (18:11 -0400)]
Fix links in the referece

and remove references to the unit type, which no longer exists

Fixes #24999

9 years agoAuto merge of #25301 - jooert:vec_map_fix_split_off, r=Gankro
bors [Mon, 11 May 2015 16:20:49 +0000 (16:20 +0000)]
Auto merge of #25301 - jooert:vec_map_fix_split_off, r=Gankro

We don't need to copy any elements if `at` is behind the last element
in the map. The last element is at index `self.v.len() - 1`, so we
should not copy if `at` is greater **or equals** `self.v.len()`.

r? @Gankro

9 years agotrpl: item macros must be followed by a semicolon
Oliver Schneider [Mon, 11 May 2015 14:46:24 +0000 (16:46 +0200)]
trpl: item macros must be followed by a semicolon

9 years agoAuto merge of #25303 - Manishearth:rollup, r=Manishearth
bors [Mon, 11 May 2015 14:30:08 +0000 (14:30 +0000)]
Auto merge of #25303 - Manishearth:rollup, r=Manishearth

- Successful merges: #25280, #25284, #25286, #25287, #25290, #25291, #25297
- Failed merges:

9 years agoRollup merge of #25297 - carols10cents:grammar-todos, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:58 +0000 (19:58 +0530)]
Rollup merge of #25297 - carols10cents:grammar-todos, r=steveklabnik

Hiiii, I've got another chunk of updates to the grammar documentation! :star: :star2: :stars:

Chipping away at #22445, still have some more to go. I'm learning so much!!!

9 years agoRollup merge of #25291 - johannhof:let-expressions-example, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:57 +0000 (19:58 +0530)]
Rollup merge of #25291 - johannhof:let-expressions-example, r=steveklabnik

Maybe it's me, but I really needed an example to understand if let and refutable statements.
Playpen: http://is.gd/mjX3Gf

Let me know if the variable names are too, uh, culinary.

9 years agoRollup merge of #25290 - bluss:docfixes, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:57 +0000 (19:58 +0530)]
Rollup merge of #25290 - bluss:docfixes, r=steveklabnik

Several Minor API / Reference Documentation Fixes

- Fix a few small errors in the reference.
- Fix paper cuts in the API docs.

Fixes #24882
Fixes #25233
Fixes #25250

9 years agoRollup merge of #25287 - petehunt:patch-2, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:57 +0000 (19:58 +0530)]
Rollup merge of #25287 - petehunt:patch-2, r=steveklabnik

9 years agoRollup merge of #25286 - johannhof:patch-1, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:57 +0000 (19:58 +0530)]
Rollup merge of #25286 - johannhof:patch-1, r=steveklabnik

The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time.

For the changed example see http://is.gd/28ak9E

Also fixed a minor grammar issue.

9 years agoRollup merge of #25284 - petehunt:patch-1, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:56 +0000 (19:58 +0530)]
Rollup merge of #25284 - petehunt:patch-1, r=steveklabnik

Noticed this while perusing the docs

9 years agoRollup merge of #25280 - frewsxcv:patch-22, r=steveklabnik
Manish Goregaokar [Mon, 11 May 2015 14:28:56 +0000 (19:58 +0530)]
Rollup merge of #25280 - frewsxcv:patch-22, r=steveklabnik

9 years agoMarkdown formatting for error explanations.
Michael Sproul [Mon, 11 May 2015 13:04:31 +0000 (23:04 +1000)]
Markdown formatting for error explanations.

9 years agoAuto merge of #25277 - polachok:docfix, r=steveklabnik
bors [Mon, 11 May 2015 12:07:39 +0000 (12:07 +0000)]
Auto merge of #25277 - polachok:docfix, r=steveklabnik

r? @steveklabnik

9 years agoMinor optimization for `VecMap::split_off`
Johannes Oertel [Mon, 11 May 2015 10:54:59 +0000 (12:54 +0200)]
Minor optimization for `VecMap::split_off`

We don't need to copy any elements if `at` is behind the last element
in the map. The last element is at index `self.v.len() - 1`, so we
should not copy if `at` is greater or equals `self.v.len()`.

9 years agoAuto merge of #25271 - tshepang:doc-deunwrap, r=steveklabnik
bors [Mon, 11 May 2015 09:50:36 +0000 (09:50 +0000)]
Auto merge of #25271 - tshepang:doc-deunwrap, r=steveklabnik

9 years agoHandle overflow properly in core::slice
Kevin Ballard [Mon, 11 May 2015 07:55:21 +0000 (00:55 -0700)]
Handle overflow properly in core::slice

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 agoAdd missing keyword in `extern crate` declarations.
Ricardo Martins [Mon, 11 May 2015 08:10:49 +0000 (09:10 +0100)]
Add missing keyword in `extern crate` declarations.

9 years agoImprove wording in error explanation.
Ricardo Martins [Mon, 11 May 2015 08:10:19 +0000 (09:10 +0100)]
Improve wording in error explanation.

9 years agoFixed one textual mistake and one casing error.
Michał Czardybon [Fri, 8 May 2015 20:15:14 +0000 (22:15 +0200)]
Fixed one textual mistake and one casing error.

Corrected "Ownership":

- [`Variable bindings`] link was not processed properly.
- Changed the paragraph about move semantics with two vectors, because it was confusing.
- Removed "So it may not be as inefficient as it initially seems", because there is nothing that seems inefficient in copying pointers only.
- Other text corrections.

Fixed copied-and-pasted text mistakes.

Revised the paragraph about moving a vector (taking into account suggestions by echochamber).

Fixed markdown.

Fixes requested by steveklabnik.

Brought back a sentence about supposed inefficiency.

9 years agoAuto merge of #25266 - richo:windows-resource-sancheck, r=steveklabnik
bors [Mon, 11 May 2015 06:42:25 +0000 (06:42 +0000)]
Auto merge of #25266 - richo:windows-resource-sancheck, r=steveklabnik

This avoids a crash on windows

Closes #25265

9 years agoAuto merge of #25085 - carols10cents:remove-old-tilde, r=steveklabnik
bors [Mon, 11 May 2015 04:46:41 +0000 (04:46 +0000)]
Auto merge of #25085 - carols10cents:remove-old-tilde, r=steveklabnik

There were still some mentions of `~[T]` and `~T`, mostly in comments and debugging statements. I tried to do my best to preserve meaning, but I might have gotten some wrong-- I'm happy to fix anything :)

9 years agoOverwrite grammar sections with what was removed from the reference
Carol Nichols [Mon, 11 May 2015 02:17:33 +0000 (22:17 -0400)]
Overwrite grammar sections with what was removed from the reference

Between ffc5f1c, when grammar.md was created by copying parts of the
reference, and 8cf2552, when all EBNF was removed from reference.md,
there were parts of the grammar that were updated in reference.md but
not grammar.md, and then they weren't copied over because they existed
already, but they were slightly out of date.

Example: the `path_item : ident | "self" ;` rule in Use declarations was
changed from "mod" to "self" in the reference in 195fd9a but wasn't
updated in the grammar.

9 years agoAdd literal semicolon to the grammar of view_item
Carol Nichols [Mon, 11 May 2015 00:48:02 +0000 (20:48 -0400)]
Add literal semicolon to the grammar of view_item

Both external crate declarations and use declarations need to end with a
semicolon.

9 years agoRemove operator precedence section covered in the reference
Carol Nichols [Wed, 6 May 2015 02:32:38 +0000 (22:32 -0400)]
Remove operator precedence section covered in the reference

9 years agoFill in more parts of the grammar for Expressions
Carol Nichols [Wed, 6 May 2015 02:32:20 +0000 (22:32 -0400)]
Fill in more parts of the grammar for Expressions

9 years agoFill in grammar for Statements
Carol Nichols [Wed, 6 May 2015 01:52:21 +0000 (21:52 -0400)]
Fill in grammar for Statements

Some of this text is duplicated in the reference (and belongs there) so
remove it. It says item grammar is the same, so point to that grammar
section.

9 years agoPoint to the use declaration section from the re-exporting section
Carol Nichols [Wed, 6 May 2015 01:06:17 +0000 (21:06 -0400)]
Point to the use declaration section from the re-exporting section

The syntax for re-exporting privacy is covered in the use declaration
item.

9 years agoAdd visibility section of the grammar
Carol Nichols [Wed, 6 May 2015 00:52:34 +0000 (20:52 -0400)]
Add visibility section of the grammar

Namely an optional "pub" before any item. The "pub" in the Use
declaration section should use this too.

9 years agoUpdate AUTHORS.txt and RELEASES.md for 1.0
Brian Anderson [Wed, 6 May 2015 20:23:33 +0000 (13:23 -0700)]
Update AUTHORS.txt and RELEASES.md for 1.0

9 years agodocs: Update SliceConcatExt docs for assoc types
Ulrik Sverdrup [Mon, 11 May 2015 00:01:27 +0000 (02:01 +0200)]
docs: Update SliceConcatExt docs for assoc types

9 years agodocs: Fixes in Reference Chapter 6.1
Ulrik Sverdrup [Sun, 10 May 2015 23:25:10 +0000 (01:25 +0200)]
docs: Fixes in Reference Chapter 6.1

9 years agodocs: Link from tls macros to relevant docs
Ulrik Sverdrup [Sun, 10 May 2015 22:38:47 +0000 (00:38 +0200)]
docs: Link from tls macros to relevant docs

Fixes #25233

9 years agodocs: Clarify Path::starts_with (and ends_with)
Ulrik Sverdrup [Sun, 10 May 2015 22:29:50 +0000 (00:29 +0200)]
docs: Clarify Path::starts_with (and ends_with)

Fixes #24882

9 years agodocs: Update FromStr documentation
Ulrik Sverdrup [Sun, 10 May 2015 22:22:04 +0000 (00:22 +0200)]
docs: Update FromStr documentation

Fixes #25250

9 years agoAdd long diagnostics for E0249 and E0250
Nick Hamann [Sun, 10 May 2015 23:58:21 +0000 (18:58 -0500)]
Add long diagnostics for E0249 and E0250

9 years agoAuto merge of #24934 - jooert:bitset-append-split_off, r=Gankro
bors [Mon, 11 May 2015 00:58:33 +0000 (00:58 +0000)]
Auto merge of #24934 - jooert:bitset-append-split_off, r=Gankro

cc #19986

9 years agoFour spaces indent, rephrasing
Johann [Mon, 11 May 2015 00:40:02 +0000 (02:40 +0200)]
Four spaces indent, rephrasing

9 years agoUpdate BitSet docs to correct types
Paul Quint [Sun, 10 May 2015 23:08:44 +0000 (18:08 -0500)]
Update BitSet docs to correct types

Update BitSet docs to correct type in one more spot

removed accidental file

9 years agoAdd if let expressions example
Johann Hofmann [Mon, 11 May 2015 00:03:37 +0000 (02:03 +0200)]
Add if let expressions example

9 years agoDocs: Compile-time bounds check in index expression
Johann Hofmann [Sun, 10 May 2015 22:53:24 +0000 (00:53 +0200)]
Docs: Compile-time bounds check in index expression

The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time.

For the changed example see http://is.gd/28ak9E

9 years agoFix typo in references-and-borrowing docs
Pete Hunt [Sun, 10 May 2015 23:10:02 +0000 (16:10 -0700)]
Fix typo in references-and-borrowing docs

9 years agoAdd a link to the E0184 long diagnostic message.
Nick Hamann [Sun, 10 May 2015 18:17:12 +0000 (13:17 -0500)]
Add a link to the E0184 long diagnostic message.

9 years agoRevise the E0206 long diagnostics message.
Nick Hamann [Sun, 10 May 2015 18:01:40 +0000 (13:01 -0500)]
Revise the E0206 long diagnostics message.

9 years agoImprove wording for E0204 and E0205 long diagnostic messages.
Nick Hamann [Sun, 10 May 2015 17:55:12 +0000 (12:55 -0500)]
Improve wording for E0204 and E0205 long diagnostic messages.

9 years agoAdd long diagnostics for E0184, E0204, E0205, E0206, E0243, E0244.
Nick Hamann [Sun, 10 May 2015 08:48:15 +0000 (03:48 -0500)]
Add long diagnostics for E0184, E0204, E0205, E0206, E0243, E0244.

9 years agoAdd some comments for error codes in librustc_typeck/diagnostics
Nick Hamann [Sun, 10 May 2015 01:38:10 +0000 (20:38 -0500)]
Add some comments for error codes in librustc_typeck/diagnostics

9 years agoFix typo in guessing-game docs
Pete Hunt [Sun, 10 May 2015 22:11:40 +0000 (15:11 -0700)]
Fix typo in guessing-game docs

9 years agodoc: unwrap is discouraged, so use Some
Tshepang Lekhonkhobe [Sun, 10 May 2015 11:32:31 +0000 (13:32 +0200)]
doc: unwrap is discouraged, so use Some

9 years agoRemove extra parentheses
Jan-Erik Rediger [Sun, 10 May 2015 21:12:45 +0000 (23:12 +0200)]
Remove extra parentheses