]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoDon't deoptimize llvm when --enable-debug
Brian Anderson [Thu, 9 Apr 2015 01:01:46 +0000 (18:01 -0700)]
Don't deoptimize llvm when --enable-debug

libLTO fails to link here.

9 years agoconfigure: Add --enable-debug-jemalloc
Brian Anderson [Wed, 8 Apr 2015 22:12:08 +0000 (15:12 -0700)]
configure: Add --enable-debug-jemalloc

9 years agoAdd --enable-debug to control multiple perf options
Brian Anderson [Wed, 8 Apr 2015 21:21:36 +0000 (14:21 -0700)]
Add --enable-debug to control multiple perf options

9 years agoconfigure: Add --enable-debuginfo
Brian Anderson [Wed, 8 Apr 2015 20:57:37 +0000 (13:57 -0700)]
configure: Add --enable-debuginfo

9 years agoconfigure: Clarify --enable-debug-assertions status message
Brian Anderson [Wed, 8 Apr 2015 20:31:26 +0000 (13:31 -0700)]
configure: Clarify --enable-debug-assertions status message

9 years agoconfigure: Disable LLVM asserts by default
Brian Anderson [Wed, 8 Apr 2015 20:27:12 +0000 (13:27 -0700)]
configure: Disable LLVM asserts by default

9 years agoconfigure: Clarify help message for --enable-debug-assertions
Brian Anderson [Wed, 8 Apr 2015 20:25:20 +0000 (13:25 -0700)]
configure: Clarify help message for --enable-debug-assertions

9 years agoconfigure: Disable debug assertions by default
Brian Anderson [Wed, 8 Apr 2015 20:23:44 +0000 (13:23 -0700)]
configure: Disable debug assertions by default

9 years agoconfigure: Rename --enable-debug to --enable-debug-assertions
Brian Anderson [Wed, 8 Apr 2015 20:17:46 +0000 (13:17 -0700)]
configure: Rename --enable-debug to --enable-debug-assertions

9 years agoconfigure: Remove obsolete --disable-verify option
Brian Anderson [Wed, 8 Apr 2015 19:16:45 +0000 (12:16 -0700)]
configure: Remove obsolete --disable-verify option

rust-installer never verifies.

9 years agoconfigure: Remove obsolete --nightly flag
Brian Anderson [Wed, 8 Apr 2015 19:06:29 +0000 (12:06 -0700)]
configure: Remove obsolete --nightly flag

9 years agoAuto merge of #24021 - pnkfelix:fn-params-outlive-body, r=nikomatsakis
bors [Wed, 8 Apr 2015 12:57:58 +0000 (12:57 +0000)]
Auto merge of #24021 - pnkfelix:fn-params-outlive-body, r=nikomatsakis

Encode more precise scoping rules for function params

Function params outlive everything in the body (incl temporaries).  Thus if we assign them their own `CodeExtent`, the region inference can properly show that it is sound to have temporaries with destructors that reference the parameters (because such temporaries will be dropped before the parameters are dropped).

Fix #23338

9 years agoAddress review nit by making `map_id` take an `FnMut`.
Felix S. Klock II [Wed, 8 Apr 2015 11:55:01 +0000 (13:55 +0200)]
Address review nit by making `map_id` take an `FnMut`.

9 years agoAuto merge of #23998 - nrc:impl-self, r=nikomatsakis
bors [Wed, 8 Apr 2015 09:58:05 +0000 (09:58 +0000)]
Auto merge of #23998 - nrc:impl-self, r=nikomatsakis

Closes #23909

r? @nikomatsakis (or anyone else, really)

9 years agoAuto merge of #24120 - aturon:range-perf, r=alexcrichton
bors [Wed, 8 Apr 2015 07:02:06 +0000 (07:02 +0000)]
Auto merge of #24120 - aturon:range-perf, r=alexcrichton

A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators *always* involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes #24095
Closes #24119
cc #24014

r? @alexcrichton

9 years agoAuto merge of #24078 - whipsch:extra-token-msg, r=huonw
bors [Wed, 8 Apr 2015 04:10:12 +0000 (04:10 +0000)]
Auto merge of #24078 - whipsch:extra-token-msg, r=huonw

Addresses issue #22425.  See `src/test/compile-fail/macro-incomplete-parse.rs` for a relevant test:

    macro-incomplete-parse.rs:15:9: 15:10 error: macro expansion ignores token `,` and any following
    macro-incomplete-parse.rs:15         , //~ ERROR macro expansion ignores token `,`
                                         ^
    macro-incomplete-parse.rs:27:1: 27:17 note: caused by the macro expansion here; the usage of `ignored_item` is likely invalid in this context
    macro-incomplete-parse.rs:27 ignored_item!();
                                 ^~~~~~~~~~~~~~~~
    macro-incomplete-parse.rs:20:14: 20:15 error: macro expansion ignores token `,` and any following
    macro-incomplete-parse.rs:20     () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
                                              ^
    macro-incomplete-parse.rs:30:5: 30:21 note: caused by the macro expansion here; the usage of `ignored_expr` is likely invalid in this context
    macro-incomplete-parse.rs:30     ignored_expr!();
                                     ^~~~~~~~~~~~~~~~
    macro-incomplete-parse.rs:24:14: 24:15 error: macro expansion ignores token `,` and any following
    macro-incomplete-parse.rs:24     () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
                                              ^
    macro-incomplete-parse.rs:32:9: 32:23 note: caused by the macro expansion here; the usage of `ignored_pat` is likely invalid in this context
    macro-incomplete-parse.rs:32         ignored_pat!() => (),
                                         ^~~~~~~~~~~~~~

This does not address the case of improper expansion inside of an impl { } as seen in issue #21607.

I'm not sure if the note text is ideal, but it can be refined if needed.

9 years agoAuto merge of #23293 - tbu-:pr_additive_multiplicative, r=alexcrichton
bors [Wed, 8 Apr 2015 00:42:10 +0000 (00:42 +0000)]
Auto merge of #23293 - tbu-:pr_additive_multiplicative, r=alexcrichton

Previously it could not be implemented for types outside `libcore/iter.rs` due
to coherence issues.

9 years agoFix range performance regression
Aaron Turon [Mon, 6 Apr 2015 18:07:20 +0000 (11:07 -0700)]
Fix range performance regression

A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators *always* involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes #24095
cc #24014

9 years agoMake `sum` and `product` inherent methods on `Iterator`
Tobias Bucher [Mon, 6 Apr 2015 15:43:50 +0000 (17:43 +0200)]
Make `sum` and `product` inherent methods on `Iterator`

In addition to being nicer, this also allows you to use `sum` and `product` for
iterators yielding custom types aside from the standard integers.

Due to removing the `AdditiveIterator` and `MultiplicativeIterator` trait, this
is a breaking change.

[breaking-change]

9 years agoAuto merge of #24169 - Manishearth:rollup, r=Manishearth
bors [Tue, 7 Apr 2015 19:49:59 +0000 (19:49 +0000)]
Auto merge of #24169 - Manishearth:rollup, r=Manishearth

- Successful merges: #24132, #24139, #24147, #24148, #24150, #24166
- Failed merges:

9 years agoRollup merge of #24166 - lgvz:email, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 19:49:38 +0000 (01:19 +0530)]
Rollup merge of #24166 - lgvz:email, r=steveklabnik

9 years agoRollup merge of #24150 - wg:master, r=alexcrichton
Manish Goregaokar [Tue, 7 Apr 2015 19:49:38 +0000 (01:19 +0530)]
Rollup merge of #24150 - wg:master, r=alexcrichton

This fix allows the gdb debuginfo tests to pass on FreeBSD when using the newer 7.8 package.

9 years agoRollup merge of #24148 - xfq:patch-2, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 19:49:38 +0000 (01:19 +0530)]
Rollup merge of #24148 - xfq:patch-2, r=steveklabnik

People use programming language *implementations* like Ruby MRI, CPython, and SpiderMonkey for executing programs.

9 years agoRollup merge of #24147 - lstat:needstest-22560, r=alexcrichton
Manish Goregaokar [Tue, 7 Apr 2015 19:49:38 +0000 (01:19 +0530)]
Rollup merge of #24147 - lstat:needstest-22560, r=alexcrichton

Closes #22560

9 years agoRollup merge of #24139 - xfq:patch-1, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 19:49:37 +0000 (01:19 +0530)]
Rollup merge of #24139 - xfq:patch-1, r=steveklabnik

Use HTTPS where possible to avoid plaintext HTTP connections.

9 years agoRollup merge of #24132 - kwantam:master, r=alexcrichton
Manish Goregaokar [Tue, 7 Apr 2015 19:49:37 +0000 (01:19 +0530)]
Rollup merge of #24132 - kwantam:master, r=alexcrichton

@mahkoh points out in #15628 that unicode.py does not use
normative data for Grapheme classes. This pr fixes that issue,
and does some minor cleanup of the unicode.py script.

In addition, GC_RegionalIndicator is renamed GC_Regional_Indicator
in order to stay in line with the Unicode class name definitions.
I have updated refs in u_str.rs, and verified that there are no
refs elsewhere in the codebase. However, in principle someone
using the unicode tables for their own purposes might see breakage
from this.

9 years agoChange my email
Tero Hänninen [Tue, 7 Apr 2015 18:21:46 +0000 (21:21 +0300)]
Change my email

9 years agoAuto merge of #24156 - Manishearth:rollup, r=Manishearth
bors [Tue, 7 Apr 2015 16:44:11 +0000 (16:44 +0000)]
Auto merge of #24156 - Manishearth:rollup, r=Manishearth

9 years agodoc ignore (fixup #24059)
Manish Goregaokar [Tue, 7 Apr 2015 16:40:55 +0000 (22:10 +0530)]
doc ignore (fixup #24059)

9 years agoRollup merge of #24113 - mbrubeck:doc-edit, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 12:43:24 +0000 (18:13 +0530)]
Rollup merge of #24113 - mbrubeck:doc-edit, r=steveklabnik

 * Fix broken \"module-level documentation\" link on the [`trait Any` docs](http://doc.rust-lang.org/std/any/trait.Any.html) and related broken markup on the [`std::any` docs](http://doc.rust-lang.org/std/any/index.html).

* Remove an outdated or incorrect notice in the `BufRead::lines` docs. There is no such `read_string` function, and `lines` never returns an error.

r? @steveklabnik

9 years agoRollup merge of #24112 - joshtriplett:patch-1, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 12:43:12 +0000 (18:13 +0530)]
Rollup merge of #24112 - joshtriplett:patch-1, r=steveklabnik

 traits.md said:

If we add a `use` line right above `main` and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead.  Move
the use line to right above main.  That also makes the example more evocative
of cases where the module is defined in a separate file.

9 years agoRollup merge of #24110 - tbu-:pr_doc_fix_add, r=alexcrichton
Manish Goregaokar [Tue, 7 Apr 2015 12:43:04 +0000 (18:13 +0530)]
Rollup merge of #24110 - tbu-:pr_doc_fix_add, r=alexcrichton

9 years agoRollup merge of #24088 - GuillaumeGomez:patch-1, r=alexcrichton
Manish Goregaokar [Tue, 7 Apr 2015 12:42:55 +0000 (18:12 +0530)]
Rollup merge of #24088 - GuillaumeGomez:patch-1, r=alexcrichton

 Fixes #24060.

9 years agoRollup merge of #24059 - nikomatsakis:issue-22914-phantomdata-docs, r=huon
Manish Goregaokar [Tue, 7 Apr 2015 12:42:47 +0000 (18:12 +0530)]
Rollup merge of #24059 - nikomatsakis:issue-22914-phantomdata-docs, r=huon

 This probably needs a bit more work, but I wanted to try and capture some common use cases and be a bit more helpful.

r? @huonw
cc @steveklabnik

9 years agoRollup merge of #24057 - nikomatsakis:lifetime-shadowing-hard-error, r=huon
Manish Goregaokar [Tue, 7 Apr 2015 12:42:40 +0000 (18:12 +0530)]
Rollup merge of #24057 - nikomatsakis:lifetime-shadowing-hard-error, r=huon

9 years agoRollup merge of #24042 - callahad:bug_24030, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 12:42:32 +0000 (18:12 +0530)]
Rollup merge of #24042 - callahad:bug_24030, r=steveklabnik

 Fixes #24030

Of the four code samples with modules in TRPL:

    - 2 use `mod test`
    - 2 use `mod tests`

We should be consistent here, but which is right? The stdlib is split:

    $ grep -r 'mod tests {' src/lib* | wc -l
          63
    $ grep -r 'mod test {'  src/lib* | wc -l
          58

Subjectively, I like the plural, but both the language reference and the
style guide recommend the singular. So we'll go with that here, for now.

r? @steveklabnik

9 years agoRollup merge of #23277 - aochagavia:intro, r=steveklabnik
Manish Goregaokar [Tue, 7 Apr 2015 12:42:22 +0000 (18:12 +0530)]
Rollup merge of #23277 - aochagavia:intro, r=steveklabnik

 cc @steveklabnik

9 years agoAdd `ignore-tidy-linelength` and fix formatting
Luke Gallagher [Tue, 7 Apr 2015 11:37:16 +0000 (21:37 +1000)]
Add `ignore-tidy-linelength` and fix formatting

9 years agoFix charset of debuginfo test on FreeBSD
Will [Tue, 7 Apr 2015 11:41:34 +0000 (20:41 +0900)]
Fix charset of debuginfo test on FreeBSD

9 years agoAuto merge of #23277 - aochagavia:intro, r=steveklabnik
bors [Tue, 7 Apr 2015 11:34:38 +0000 (11:34 +0000)]
Auto merge of #23277 - aochagavia:intro, r=steveklabnik

cc @steveklabnik

9 years agoUpdate hello-world.md
Xue Fuqiao [Tue, 7 Apr 2015 10:07:10 +0000 (18:07 +0800)]
Update hello-world.md

People use programming language *implementations* like Ruby MRI, CPython, and SpiderMonkey for executing programs.

9 years agoAdd test for #22560
Luke Gallagher [Tue, 7 Apr 2015 01:31:28 +0000 (11:31 +1000)]
Add test for #22560

Closes #22560

9 years agoAuto merge of #24116 - zaeleus:rustdoc-codespan, r=alexcrichton
bors [Tue, 7 Apr 2015 07:41:32 +0000 (07:41 +0000)]
Auto merge of #24116 - zaeleus:rustdoc-codespan, r=alexcrichton

Because the current style for `code` in rustdoc is to prewrap whitespace, code spans that are hard wrapped in the source documentation are prematurely wrapped when rendered in HTML. [For example][2],

```
/// ...
/// type can be borrowed as multiple different types. In particular, `Vec<T>:
/// Borrow<Vec<T>>` and `Vec<T>: Borrow<[T]>`.
```

renders as

![screen shot 2015-04-06 at 12 11 21](https://cloud.githubusercontent.com/assets/191331/7008216/2706b3b0-dc56-11e4-941e-1b0154fcbc5c.png)

because "`Vec<T>: Borrow<Vec<T>>`" wraps to the next line in the source.

CommonMark 0.18 [[1]] specifies "interior spaces and line endings are collapsed into single spaces" for code spans, which would actually prevent this issue, but hoedown does not currently conform to the
CommonMark spec.

The added span-level callback attempts to adhere to how whitespace is handled as described by CommonMark, fixing the issue of early, unintentional wrapping of code spans in rendered HTML.

[1]: http://spec.commonmark.org/0.18/
[2]: https://doc.rust-lang.org/std/borrow/trait.Borrow.html

9 years agoWork with assoc types in a super trait.
Nick Cameron [Tue, 7 Apr 2015 05:59:10 +0000 (17:59 +1200)]
Work with assoc types in a super trait.

And fix a bug with type param visibility though the Self rib.

9 years agoUpdate intro.md
Xue Fuqiao [Tue, 7 Apr 2015 05:35:26 +0000 (13:35 +0800)]
Update intro.md

Use HTTPS where possible to avoid plaintext HTTP connections.

9 years agoAuto merge of #24101 - remram44:fix-rustdoc-passes-help, r=nikomatsakis
bors [Tue, 7 Apr 2015 04:52:03 +0000 (04:52 +0000)]
Auto merge of #24101 - remram44:fix-rustdoc-passes-help, r=nikomatsakis

The current help string ("space separated list") suggests that `--passes "pass1 pass2"` is expected; the orrect usage is `--passes pass1 --passes pass2`.

9 years agoProvide context for macro expansions which result in unparsed tokens.
Will Hipschman [Sat, 4 Apr 2015 20:13:57 +0000 (13:13 -0700)]
Provide context for macro expansions which result in unparsed tokens.

Issue #22425

9 years agoAuto merge of #23952 - Kimundi:more_string_pattern, r=alexcrichton
bors [Tue, 7 Apr 2015 00:57:08 +0000 (00:57 +0000)]
Auto merge of #23952 - Kimundi:more_string_pattern, r=alexcrichton

This adds the missing methods and turns `str::pattern` in a user facing module, as per RFC.

This also contains some big internal refactorings:
- string iterator pairs are implemented with a central macro to reduce redundancy
- Moved all tests from `coretest::str` into `collectionstest::str` and left a note to prevent the two sets of tests drifting apart further.

See https://github.com/rust-lang/rust/issues/22477

9 years agouse normative source for Grapheme class data
kwantam [Mon, 6 Apr 2015 23:42:18 +0000 (19:42 -0400)]
use normative source for Grapheme class data

@mahkoh points out in #15628 that unicode.py does not use
normative data for Grapheme classes. This pr fixes that issue.

In addition, GC_RegionalIndicator is renamed GC_Regional_Indicator
in order to stay in line with the Unicode class name definitions.
I have updated refs in u_str.rs, and verified that there are no
refs elsewhere in the codebase. However, in principle someone
using the unicode tables for their own purposes might see breakage
from this.

9 years agoAuto merge of #23857 - phildawes:libsyntax_nopanic, r=nikomatsakis
bors [Mon, 6 Apr 2015 22:08:01 +0000 (22:08 +0000)]
Auto merge of #23857 - phildawes:libsyntax_nopanic, r=nikomatsakis

Hello!

I've been working towards a libsyntax without panics. See:
http://internals.rust-lang.org/t/changing-libsyntax-to-use-result-instead-of-panic/1670

This patch changes the internals of parser.rs to use Result<> rather than panicing. It keeps the following old-style panicing functions as a facade:
parse_expr, parse_item, parse_pat, parse_arm, parse_ty, parse_stmt

I left these functions because I wasn't sure what to do about the quote_* macros or how many syntax-extensions would break if these and quoting macros returned Result.

The gyst of the rest of the patch is:

 - Functions in parse/parser.rs return PResult<> rather than panicing
 - Other functions in libsyntax call panic! explicitly if they rely on panicing behaviour.
 - I added a macro 'panictry!()' to act as scaffolding for callers while converting panicing functions. (This does the same as 'unwrap()' but is easier to grep for and turn into try!()).

Am I on the right track?  I'd quite like to get something merged soon as keeping this rebased in the face of libsyntax changes is a lot of work. Please let me know what changes you'd like to see to make this happen.

Thanks!, Phil

9 years agoAuto merge of #23655 - gereeter:rustc-remove-ident, r=sanxiyn
bors [Mon, 6 Apr 2015 19:20:39 +0000 (19:20 +0000)]
Auto merge of #23655 - gereeter:rustc-remove-ident, r=sanxiyn

...of #6993.

cc @pcwalton

9 years agorustdoc: Use iterators to collapse whitespace
Michael Macias [Mon, 6 Apr 2015 18:56:39 +0000 (13:56 -0500)]
rustdoc: Use iterators to collapse whitespace

Thanks, @alexcrichton!

9 years agorustdoc: Add a custom callback for codespan to collapse whitespace
Michael Macias [Mon, 6 Apr 2015 17:06:39 +0000 (12:06 -0500)]
rustdoc: Add a custom callback for codespan to collapse whitespace

Because the current style for `code` in rustdoc is to prewrap
whitespace, code spans that are hard wrapped in the source
documentation are prematurely wrapped when rendered in HTML.

CommonMark 0.18 [[1]] specifies "interior spaces and line endings are
collapsed into single spaces" for code spans, which would actually
prevent this issue, but hoedown does not currently conform to the
CommonMark spec.

The added span-level callback attempts to adhere to how whitespace is
handled as described by CommonMark, fixing the issue of early,
unintentional wrapping of code spans in rendered HTML.

[1]: http://spec.commonmark.org/0.18/

9 years agoAuto merge of #24056 - nikomatsakis:issue-23853-crates-io, r=aturon
bors [Mon, 6 Apr 2015 16:07:18 +0000 (16:07 +0000)]
Auto merge of #24056 - nikomatsakis:issue-23853-crates-io, r=aturon

If we find a blanket impl for `Trait` but we're matching on an object `Trait`, prefer the object (I think we could perhaps go either way, but this seems safer). Also give a nice error for attempts to manually `impl Trait for Trait`, since they will be ineffectual.

This fixes the problems around ambiguity ICEs relating to `Any` and `MarkerTrait` that were cropping up all over the place. There may still be similar ICEs reported in #21756 that this PR does not address.

Fixes #24015.

Fixes #24051.
Fixes #24037.
Fixes #23853.
Fixes #21942.
cc #21756.

cc @alexcrichton (this fixes crates.io)
r? @aturon

9 years agoRemove outdated notice from BufRead::lines docs.
Matt Brubeck [Mon, 6 Apr 2015 15:40:11 +0000 (08:40 -0700)]
Remove outdated notice from BufRead::lines docs.

There is no `read_string` function, and `lines` never returns an error.

9 years agoFix broken link and markup in `trait Any` docs.
Matt Brubeck [Mon, 6 Apr 2015 15:36:37 +0000 (08:36 -0700)]
Fix broken link and markup in `trait Any` docs.

9 years agotraits.md: Fix example of using traits to match description
Josh Triplett [Mon, 6 Apr 2015 15:14:11 +0000 (08:14 -0700)]
traits.md: Fix example of using traits to match description

traits.md said:

If we add a `use` line right above `main` and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead.  Move
the use line to right above main.  That also makes the example more evocative
of cases where the module is defined in a separate file.

9 years agoFix code formatting in `core::ops::Add` example
Tobias Bucher [Mon, 6 Apr 2015 14:01:01 +0000 (16:01 +0200)]
Fix code formatting in `core::ops::Add` example

9 years agoTry to improve PhantomData docs with more examples
Niko Matsakis [Sat, 4 Apr 2015 10:30:35 +0000 (06:30 -0400)]
Try to improve PhantomData docs with more examples

9 years agoFix tests
Niko Matsakis [Mon, 6 Apr 2015 13:35:12 +0000 (09:35 -0400)]
Fix tests

9 years agoMake `AdditiveIterator` and `MultiplicativeIterator` extensible
Tobias Bucher [Wed, 11 Mar 2015 23:13:37 +0000 (00:13 +0100)]
Make `AdditiveIterator` and `MultiplicativeIterator` extensible

Previously it could not be implemented for types outside `libcore/iter.rs` due
to coherence issues.

9 years agoAuto merge of #24104 - frewsxcv:patch-12, r=sanxiyn
bors [Mon, 6 Apr 2015 12:23:21 +0000 (12:23 +0000)]
Auto merge of #24104 - frewsxcv:patch-12, r=sanxiyn

9 years agoIf we find a blanket impl for `Trait` but we're matching on an object
Niko Matsakis [Sat, 4 Apr 2015 09:42:24 +0000 (05:42 -0400)]
If we find a blanket impl for `Trait` but we're matching on an object
`Trait`, prefer the object. Also give a nice error for attempts to
manually `impl Trait for Trait`, since they will be ineffectual.

Fixes #24015.

Fixes #24051.
Fixes #24037.
Fixes #23853.
Fixes #21942.
cc #21756.

9 years agoReplace alpha state by pre-1.0
Guillaume Gomez [Mon, 6 Apr 2015 09:14:21 +0000 (11:14 +0200)]
Replace alpha state by pre-1.0

9 years agoRemove unnecessary returns in API examples
Corey Farwell [Mon, 6 Apr 2015 07:06:24 +0000 (00:06 -0700)]
Remove unnecessary returns in API examples

9 years agoChanges rustdoc --passes help message
Remi Rampin [Mon, 6 Apr 2015 02:32:09 +0000 (22:32 -0400)]
Changes rustdoc --passes help message

The current help string ("space separated list") suggests that
`--passes "pass1 pass2"` is expected; the correct usage is
`--passes pass1 --passes pass2`.

9 years agoAuto merge of #24087 - mossberg:docs-comma, r=steveklabnik
bors [Mon, 6 Apr 2015 02:00:21 +0000 (02:00 +0000)]
Auto merge of #24087 - mossberg:docs-comma, r=steveklabnik

Correct mistyped comma, and slightly improve sentence.

r? @steveklabnik

9 years agoAuto merge of #24093 - GuillaumeGomez:typo, r=steveklabnik
bors [Sun, 5 Apr 2015 22:18:29 +0000 (22:18 +0000)]
Auto merge of #24093 - GuillaumeGomez:typo, r=steveklabnik

Fixes #24080.

9 years agoRemove external iterator in CharIndices comment and the reference to the std::iter...
Guillaume Gomez [Sun, 5 Apr 2015 16:54:07 +0000 (18:54 +0200)]
Remove external iterator in CharIndices comment and the reference to the std::iter module

9 years agoAdded smoke tests for new methods.
Marvin Löbel [Wed, 1 Apr 2015 23:12:58 +0000 (01:12 +0200)]
Added smoke tests for new methods.
Fixed bug in existing StrSearcher impl

9 years agoMoved coretest::str tests into collectiontest::str
Marvin Löbel [Wed, 1 Apr 2015 20:45:00 +0000 (22:45 +0200)]
Moved coretest::str tests into collectiontest::str

9 years agoRefactored core::str::pattern to become a user-facing module and hide away
Marvin Löbel [Mon, 23 Mar 2015 13:21:42 +0000 (14:21 +0100)]
Refactored core::str::pattern to become a user-facing module and hide away
CharEq.

9 years agoFormat all str docs to 80 char line breaks
Marvin Löbel [Sat, 4 Apr 2015 10:03:59 +0000 (12:03 +0200)]
Format all str docs to 80 char line breaks

9 years agoRe-added Clone impls to all str iterators
Marvin Löbel [Sun, 5 Apr 2015 16:52:14 +0000 (18:52 +0200)]
Re-added Clone impls to all str iterators

9 years agoImplemented remaining string pattern iterators.
Marvin Löbel [Sun, 15 Mar 2015 00:48:34 +0000 (01:48 +0100)]
Implemented remaining string pattern iterators.

- Added missing reverse versions of methods
- Added [r]matches()
- Generated the string pattern iterators with a macro
- Added where bounds to the methods returning reverse iterators
  for better error messages.

9 years agoAuto merge of #24053 - kvark:get_mut, r=alexcrichton
bors [Sun, 5 Apr 2015 16:14:11 +0000 (16:14 +0000)]
Auto merge of #24053 - kvark:get_mut, r=alexcrichton

As requested by @kballard in #23844

9 years agoAuto merge of #24084 - mdinger:align_nit, r=steveklabnik
bors [Sun, 5 Apr 2015 13:29:48 +0000 (13:29 +0000)]
Auto merge of #24084 - mdinger:align_nit, r=steveklabnik

Really minor nitpick but if you're gonna align them, they should be aligned properly.

r? @steveklabnik

9 years agoAuto merge of #24071 - github-monoculture:patch-1, r=steveklabnik
bors [Sun, 5 Apr 2015 10:46:38 +0000 (10:46 +0000)]
Auto merge of #24071 - github-monoculture:patch-1, r=steveklabnik

doc copy error
r? @steveklabnik

9 years agoAdd comments suggested by Niko
Phil Dawes [Sat, 4 Apr 2015 20:47:40 +0000 (21:47 +0100)]
Add comments suggested by Niko

9 years agoWork towards a non-panicing parser (libsyntax)
Phil Dawes [Sat, 28 Mar 2015 21:58:51 +0000 (21:58 +0000)]
Work towards a non-panicing parser (libsyntax)

- Functions in parser.rs return PResult<> rather than panicing
- Other functions in libsyntax call panic! explicitly for now if they rely on panicing behaviour.
- 'panictry!' macro added as scaffolding while converting panicing functions.
  (This does the same as 'unwrap()' but is easier to grep for and turn into try!())
- Leaves panicing wrappers for the following functions so that the
  quote_* macros behave the same:
  - parse_expr, parse_item, parse_pat, parse_arm, parse_ty, parse_stmt

9 years agoDocumentation fix
Mark Mossberg [Sun, 5 Apr 2015 06:56:16 +0000 (02:56 -0400)]
Documentation fix

Correct mistyped comma, and slightly improve sentence.

9 years agoAuto merge of #23976 - dhuseby:bitrig_fixing_tests, r=alexcrichton
bors [Sun, 5 Apr 2015 06:28:08 +0000 (06:28 +0000)]
Auto merge of #23976 - dhuseby:bitrig_fixing_tests, r=alexcrichton

This fixes up the "make check" part of the rust build os that the Bitrig buildbot will succeed.

9 years agoAuto merge of #24067 - apasel422:patch-1, r=Gankro
bors [Sun, 5 Apr 2015 02:47:13 +0000 (02:47 +0000)]
Auto merge of #24067 - apasel422:patch-1, r=Gankro

Per [RFC #0505](https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#formatting).

9 years agoAlignment nitpick
mdinger [Sun, 5 Apr 2015 00:34:59 +0000 (20:34 -0400)]
Alignment nitpick

9 years agoAuto merge of #24055 - estsauver:24044, r=alexcrichton
bors [Sun, 5 Apr 2015 00:03:21 +0000 (00:03 +0000)]
Auto merge of #24055 - estsauver:24044, r=alexcrichton

If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes #24044

cc @steveklabnik

9 years agoRemoved explicit lifetimes for `get_mut`. Fixed the doc test.
Dzmitry Malyshau [Sat, 4 Apr 2015 22:54:23 +0000 (18:54 -0400)]
Removed explicit lifetimes for `get_mut`. Fixed the doc test.

9 years agoRenamed Arc::try_unique to get_mut
Dzmitry Malyshau [Sat, 4 Apr 2015 06:54:49 +0000 (02:54 -0400)]
Renamed Arc::try_unique to get_mut

9 years agoAuto merge of #24016 - aquach:master, r=Manishearth
bors [Sat, 4 Apr 2015 21:19:31 +0000 (21:19 +0000)]
Auto merge of #24016 - aquach:master, r=Manishearth

Ran across this one while learning from the Book.

9 years agofixing some tests and temporarily disabling others to get Bitrig build working 100%
Dave Huseby [Mon, 23 Mar 2015 19:48:42 +0000 (12:48 -0700)]
fixing some tests and temporarily disabling others to get Bitrig build working 100%

9 years agoAuto merge of #24045 - frewsxcv:cleanup, r=alexcrichton
bors [Sat, 4 Apr 2015 18:35:39 +0000 (18:35 +0000)]
Auto merge of #24045 - frewsxcv:cleanup, r=alexcrichton

9 years agoUpdate method-syntax.md
github-monoculture [Sat, 4 Apr 2015 17:49:16 +0000 (17:49 +0000)]
Update method-syntax.md

doc copy error
r? @steveklabnik

9 years agoAuto merge of #23987 - liammonahan:master, r=Manishearth
bors [Sat, 4 Apr 2015 15:51:03 +0000 (15:51 +0000)]
Auto merge of #23987 - liammonahan:master, r=Manishearth

I ran across a comma splice.

I didn't set the "note:" off inside parenthesis.  I looked around in other places and saw it both ways, but without surrounding parenthesis seemed to be the more common convention followed elsewhere in the docs.  Let me know if you have an overriding preference about that and I'll change it.

r? @steveklabnik

9 years agos/Perform/Performs/
Andrew Paseltiner [Sat, 4 Apr 2015 14:26:14 +0000 (10:26 -0400)]
s/Perform/Performs/

Per [RFC #0505](https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#formatting).

9 years agoAuto merge of #23981 - chastell:book_crates-and-modules_io_sync, r=Manishearth
bors [Sat, 4 Apr 2015 13:07:34 +0000 (13:07 +0000)]
Auto merge of #23981 - chastell:book_crates-and-modules_io_sync, r=Manishearth

This syncs the _Crates and Modules_ chapter of the book with current output:

* the runs are supposed to be in the project’s directory,
* `rustc` has slightly different error messages (and things like macro line:col numbers),
* Cargo now compiles things into `target/debug`.

9 years agoConvert lifetime shadowing into a hard error, as promised.
Niko Matsakis [Sat, 4 Apr 2015 09:54:28 +0000 (05:54 -0400)]
Convert lifetime shadowing into a hard error, as promised.

9 years agoMake changing doc search unhighlight current result
Earl St Sauver [Sat, 4 Apr 2015 08:21:18 +0000 (15:21 +0700)]
Make changing doc search unhighlight current result

If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes #24044

cc @steveklabnik

9 years agoTest cases for Issue 23338.
Felix S. Klock II [Fri, 3 Apr 2015 18:09:04 +0000 (20:09 +0200)]
Test cases for Issue 23338.

We ignore pretty for the params-outlive-temps-of-body test because the
way its comments are formatted exercises a known bug in the pretty
printer.

9 years agoEncode more precise scoping rules for function params.
Felix S. Klock II [Fri, 3 Apr 2015 17:50:32 +0000 (19:50 +0200)]
Encode more precise scoping rules for function params.

Function params which outlive everything in the body (incl
temporaries).  Thus if we assign them their own `CodeExtent`, the
region inference can properly show that it is sound to have
temporaries with destructors that reference the parameters (because
such temporaries will be dropped before the parameters are).

This allows us to address issue 23338 in a clean way.

As a drive-by, fix a mistake in the tyencode for
`CodeExtent::BlockRemainder`.

9 years agoAuto merge of #24009 - Manishearth:rollup, r=Manishearth
bors [Sat, 4 Apr 2015 07:20:04 +0000 (07:20 +0000)]
Auto merge of #24009 - Manishearth:rollup, r=Manishearth

9 years agoFix doc (fixup #24031)
Manish Goregaokar [Sat, 4 Apr 2015 07:20:43 +0000 (12:50 +0530)]
Fix doc (fixup #24031)