]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAdd more detail to the split_grouped_constructors comment
varkor [Mon, 20 Aug 2018 23:16:12 +0000 (00:16 +0100)]
Add more detail to the split_grouped_constructors comment

5 years agoAdd assertion to constructor_intersects_pattern
varkor [Mon, 20 Aug 2018 22:59:46 +0000 (23:59 +0100)]
Add assertion to constructor_intersects_pattern

5 years agoRemove pattern consideration from split_grouped_constructors
varkor [Mon, 20 Aug 2018 22:32:01 +0000 (23:32 +0100)]
Remove pattern consideration from split_grouped_constructors

5 years agoImprove some comments
varkor [Mon, 20 Aug 2018 22:16:15 +0000 (23:16 +0100)]
Improve some comments

5 years agoTweak comments
varkor [Sun, 19 Aug 2018 22:10:18 +0000 (23:10 +0100)]
Tweak comments

5 years agoFix handling of floating-point ranges
varkor [Tue, 14 Aug 2018 18:25:26 +0000 (19:25 +0100)]
Fix handling of floating-point ranges

5 years agoHandle equivalence classes of length-1 ranges
varkor [Tue, 14 Aug 2018 15:40:04 +0000 (16:40 +0100)]
Handle equivalence classes of length-1 ranges

5 years agoAdd equivalence class splitting for range constructors
varkor [Tue, 14 Aug 2018 11:45:26 +0000 (12:45 +0100)]
Add equivalence class splitting for range constructors

5 years agoAdd some more compound exhaustiveness tests
varkor [Tue, 14 Aug 2018 02:02:31 +0000 (03:02 +0100)]
Add some more compound exhaustiveness tests

5 years agoMore formatting improvements
varkor [Mon, 13 Aug 2018 15:23:14 +0000 (16:23 +0100)]
More formatting improvements

5 years agoAdd a summary of the algorithm to the file
varkor [Mon, 13 Aug 2018 15:01:13 +0000 (16:01 +0100)]
Add a summary of the algorithm to the file

5 years agoSome reformatting
varkor [Sun, 12 Aug 2018 23:56:13 +0000 (00:56 +0100)]
Some reformatting

5 years agoAdd a test for integer products
varkor [Sun, 12 Aug 2018 19:47:23 +0000 (20:47 +0100)]
Add a test for integer products

5 years agoMove logic from push_wild_constructor to apply_constructor
varkor [Sun, 12 Aug 2018 19:39:53 +0000 (20:39 +0100)]
Move logic from push_wild_constructor to apply_constructor

5 years agoMove witnesses inside push_wild_constructor
varkor [Sun, 12 Aug 2018 19:16:25 +0000 (20:16 +0100)]
Move witnesses inside push_wild_constructor

5 years agoAdd some comments
varkor [Sun, 12 Aug 2018 10:43:42 +0000 (11:43 +0100)]
Add some comments

5 years agoRefactor condition
varkor [Fri, 22 Jun 2018 22:52:56 +0000 (23:52 +0100)]
Refactor condition

5 years agoAdd guarded arms to tests
varkor [Sat, 2 Jun 2018 09:53:47 +0000 (10:53 +0100)]
Add guarded arms to tests

5 years agoNo longer return value_constructors for all_constructors
varkor [Tue, 29 May 2018 11:47:39 +0000 (12:47 +0100)]
No longer return value_constructors for all_constructors

5 years agoRefactor for less allocation
varkor [Mon, 28 May 2018 19:53:20 +0000 (20:53 +0100)]
Refactor for less allocation

5 years agoRefactor after miri api changes
varkor [Fri, 25 May 2018 23:54:52 +0000 (00:54 +0100)]
Refactor after miri api changes

5 years agoReplace ... with ..= in suggestions
varkor [Fri, 25 May 2018 08:47:37 +0000 (09:47 +0100)]
Replace ... with ..= in suggestions

As ... is "(silently) deprecated". Presumably this means we should be giving correct, up-to-date suggestions, though.

5 years agoIntroduce signed_bias method
varkor [Thu, 24 May 2018 12:30:21 +0000 (13:30 +0100)]
Introduce signed_bias method

The epitome of simplicity!

5 years agoInline encode and decode methods
varkor [Thu, 24 May 2018 11:27:30 +0000 (12:27 +0100)]
Inline encode and decode methods

5 years agoFix print_miri_value for signed integers
varkor [Thu, 24 May 2018 11:13:28 +0000 (12:13 +0100)]
Fix print_miri_value for signed integers

5 years agoSimplify bitwise operations
varkor [Thu, 24 May 2018 09:48:23 +0000 (10:48 +0100)]
Simplify bitwise operations

5 years agoSpecial-case (RangeEnd::Included, Ordering::Equal) in lower_pattern_unadjusted
varkor [Wed, 23 May 2018 21:09:50 +0000 (22:09 +0100)]
Special-case (RangeEnd::Included, Ordering::Equal) in lower_pattern_unadjusted

5 years agoImprove the comments
varkor [Wed, 23 May 2018 20:16:07 +0000 (21:16 +0100)]
Improve the comments

5 years agoFix sign conversion arithmetic errors
varkor [Wed, 23 May 2018 09:22:45 +0000 (10:22 +0100)]
Fix sign conversion arithmetic errors

5 years agoRefactor to remove explicit integer type matching
varkor [Tue, 22 May 2018 17:23:30 +0000 (18:23 +0100)]
Refactor to remove explicit integer type matching

5 years agoAdd singleton patterns to test
varkor [Tue, 22 May 2018 00:03:05 +0000 (01:03 +0100)]
Add singleton patterns to test

5 years agoFix integer overflow
varkor [Tue, 22 May 2018 00:02:47 +0000 (01:02 +0100)]
Fix integer overflow

5 years agoUse bit operators for min_max_ty
varkor [Mon, 21 May 2018 22:51:01 +0000 (23:51 +0100)]
Use bit operators for min_max_ty

5 years agoRefactor interval conditions
varkor [Mon, 21 May 2018 20:46:12 +0000 (21:46 +0100)]
Refactor interval conditions

5 years agoFix range splitting
varkor [Mon, 21 May 2018 19:50:40 +0000 (20:50 +0100)]
Fix range splitting

5 years agoRequire just the Unicode Scalar Values to be matched for a char
varkor [Mon, 21 May 2018 19:40:38 +0000 (20:40 +0100)]
Require just the Unicode Scalar Values to be matched for a char

5 years agoImprove macros with reduced repetition
varkor [Sun, 20 May 2018 01:10:37 +0000 (02:10 +0100)]
Improve macros with reduced repetition

5 years agoAdd semi-exhaustive tests for exhaustiveness
varkor [Sun, 20 May 2018 00:55:05 +0000 (01:55 +0100)]
Add semi-exhaustive tests for exhaustiveness

5 years agoFix handling of signed integers
varkor [Sun, 20 May 2018 00:54:22 +0000 (01:54 +0100)]
Fix handling of signed integers

5 years agoAdd feature gate test
varkor [Sat, 19 May 2018 22:19:37 +0000 (23:19 +0100)]
Add feature gate test

5 years agoAdd feature gate and refactor
varkor [Sat, 19 May 2018 22:19:29 +0000 (23:19 +0100)]
Add feature gate and refactor

5 years agoAdd support for all integer types
varkor [Sat, 19 May 2018 20:57:25 +0000 (21:57 +0100)]
Add support for all integer types

5 years agoGive correct suggestions
varkor [Sat, 19 May 2018 17:46:05 +0000 (18:46 +0100)]
Give correct suggestions

5 years agoImplement interval checking
varkor [Sat, 19 May 2018 14:26:07 +0000 (15:26 +0100)]
Implement interval checking

5 years agoAuto merge of #53304 - dtolnay:extend, r=dtolnay
bors [Thu, 16 Aug 2018 15:44:30 +0000 (15:44 +0000)]
Auto merge of #53304 - dtolnay:extend, r=dtolnay

TokenStream::extend

Two new insta-stable impls in libproc_macro:

```rust
impl Extend<TokenTree> for TokenStream
impl Extend<TokenStream> for TokenStream
```

`proc_macro::TokenStream` already implements `FromIterator<TokenTree>` and `FromIterator<TokenStream>` so I elected to support the same input types for `Extend`.

**This commit reduces compile time of Serde derives by 60% (takes less than half as long to compile)** as measured by building our test suite:

```console
$ git clone https://github.com/serde-rs/serde
$ cd serde/test_suite
$ cargo check --tests --features proc-macro2/nightly
$ rm -f ../target/debug/deps/libtest_*.rmeta
$ time cargo check --tests --features proc-macro2/nightly
Before: 20.8 seconds
After: 8.6 seconds
```

r? @alexcrichton

5 years agoAuto merge of #53256 - ollie27:writeln, r=KodrAus
bors [Thu, 16 Aug 2018 13:29:40 +0000 (13:29 +0000)]
Auto merge of #53256 - ollie27:writeln, r=KodrAus

Don't accept non-string literals for the format string in writeln

This is to improve diagnostics.

`println` and `eprintln` were already fixed by #52394.

Fixes #30143

5 years agoAuto merge of #53173 - alexcrichton:win-arm64, r=sfackler
bors [Thu, 16 Aug 2018 11:18:12 +0000 (11:18 +0000)]
Auto merge of #53173 - alexcrichton:win-arm64, r=sfackler

Start adding an `aarch64-pc-windows-msvc` target

This commit adds the necessary definitions for target specs and such as well as
the necessary support in libstd to compile basic `aarch64-pc-windows-msvc`
binaries. The target is not currently built on CI, but it can be built locally
with:

    ./configure --target=aarch64-pc-windows-msvc --set rust.lld
    ./x.py build src/libstd --target aarch64-pc-windows-msvc

Currently this fails to build `libtest` due to a linker bug (seemingly in LLD?)
which hasn't been investigate yet. Otherwise though with libstd you can build a
hello world program (linked with LLD). I've not tried to execute it yet, but it
at least links!

Full support for this target is still a long road ahead, but this is hopefully a
good stepping stone to get started.

Points of note about this target are:

* Currently defaults to `panic=abort` as support is still landing in LLVM for
  SEH on AArch64.
* Currently defaults to LLD as a linker as I was able to get farther with it
  than I was with `link.exe`

5 years agoAuto merge of #53147 - ashtneoi:dont-suggest-ref, r=estebank
bors [Thu, 16 Aug 2018 08:45:32 +0000 (08:45 +0000)]
Auto merge of #53147 - ashtneoi:dont-suggest-ref, r=estebank

For move errors, suggest match ergonomics instead of `ref`

Partially fixes issue #52423. Also makes errors and suggestions more consistent between move-from-place and move-from-value errors.

Limitations:
- Only the first pattern in a match arm can have a "consider removing this borrow operator" suggestion.
- Suggestions don't always compile as-is (see the TODOs in the test for details).

Sorry for the really long test. I wanted to make sure I handled every case I could think of, and it turned out there were a lot of them.

Questions:
- Is there any particular applicability I should set on those suggestions?
- Are the notes about the `Copy` trait excessive?

5 years agoAuto merge of #53295 - estebank:on-unimplemented, r=michaelwoerister
bors [Thu, 16 Aug 2018 06:34:13 +0000 (06:34 +0000)]
Auto merge of #53295 - estebank:on-unimplemented, r=michaelwoerister

Various changes to `rustc_on_unimplemented`

- Add `from_method` and `from_desugaring` to formatting options
- Change wording of errors slightly

5 years agoSplit tests more and bless them again
ashtneoi [Thu, 16 Aug 2018 05:36:19 +0000 (22:36 -0700)]
Split tests more and bless them again

5 years agoMove tests into their own directory
ashtneoi [Thu, 16 Aug 2018 05:35:56 +0000 (22:35 -0700)]
Move tests into their own directory

5 years agoAuto merge of #53293 - petrochenkov:gramattr2, r=alexcrichton
bors [Thu, 16 Aug 2018 04:16:12 +0000 (04:16 +0000)]
Auto merge of #53293 - petrochenkov:gramattr2, r=alexcrichton

syntax: Enforce attribute grammar in the parser

Also fix feature-gating for `unrestricted_attribute_tokens` that was introduced in https://github.com/rust-lang/rust/pull/53270, but was actually broken.

cc https://github.com/rust-lang/rust/pull/50911

5 years agoAuto merge of #53289 - ljedrz:improve_lexer, r=michaelwoerister
bors [Thu, 16 Aug 2018 01:08:13 +0000 (01:08 +0000)]
Auto merge of #53289 - ljedrz:improve_lexer, r=michaelwoerister

A few cleanups and minor improvements for the lexer

- improve readability by adjusting the formatting of some function signatures and adding some newlines
- reorder some functions for easier reading
- remove redundant `'static` in `const`s
- remove some explicit `return`s
- read directly to a `String` in `gather_comments_and_literals`
- change `unwrap_or!` (macro) to `unwrap_or` (function)
- move an `assert!`ion from `try_next_token` (called in a loop) to `try_real_token` after all calls to `try_next_token`
- `#[inline]` some one-liner functions
- assign directly from an `if-else` expression
- refactor a `match` to `map_or`
- add a `token::is_irrelevant` function to detect tokens that are not "`real`"

5 years agoStart adding an `aarch64-pc-windows-msvc` target
Alex Crichton [Mon, 16 Jul 2018 23:38:56 +0000 (16:38 -0700)]
Start adding an `aarch64-pc-windows-msvc` target

This commit adds the necessary definitions for target specs and such as well as
the necessary support in libstd to compile basic `aarch64-pc-windows-msvc`
binaries. The target is not currently built on CI, but it can be built locally
with:

    ./configure --target=aarch64-pc-windows-msvc --set rust.lld
    ./x.py build src/libstd --target aarch64-pc-windows-msvc

Currently this fails to build `libtest` due to a linker bug (seemingly in LLD?)
which hasn't been investigate yet. Otherwise though with libstd you can build a
hello world program (linked with LLD). I've not tried to execute it yet, but it
at least links!

Full support for this target is still a long road ahead, but this is hopefully a
good stepping stone to get started.

Points of note about this target are:

* Currently defaults to `panic=abort` as support is still landing in LLVM for
  SEH on AArch64.
* Currently defaults to LLD as a linker as I was able to get farther with it
  than I was with `link.exe`

5 years agoRe-bless test
ashtneoi [Wed, 15 Aug 2018 22:25:53 +0000 (15:25 -0700)]
Re-bless test

5 years agoAdd files I forgot to commit earlier
ashtneoi [Wed, 15 Aug 2018 02:03:43 +0000 (19:03 -0700)]
Add files I forgot to commit earlier

5 years agoChange a method name and clarify a comment
ashtneoi [Tue, 14 Aug 2018 19:54:31 +0000 (12:54 -0700)]
Change a method name and clarify a comment

5 years agoBless tests
ashtneoi [Tue, 14 Aug 2018 19:38:37 +0000 (12:38 -0700)]
Bless tests

5 years agoTest move-into-Fn/FnMut errors too
ashtneoi [Tue, 14 Aug 2018 18:56:20 +0000 (11:56 -0700)]
Test move-into-Fn/FnMut errors too

5 years agoFix compiletest JSON error message
ashtneoi [Tue, 14 Aug 2018 06:49:21 +0000 (23:49 -0700)]
Fix compiletest JSON error message

5 years agoAllocate fewer Strings at a time
ashtneoi [Tue, 14 Aug 2018 05:01:54 +0000 (22:01 -0700)]
Allocate fewer Strings at a time

5 years agoAdd another FIXME about suggestions
ashtneoi [Tue, 14 Aug 2018 04:49:39 +0000 (21:49 -0700)]
Add another FIXME about suggestions

5 years agoBless UI tests
ashtneoi [Mon, 13 Aug 2018 23:45:40 +0000 (16:45 -0700)]
Bless UI tests

5 years agoRemove incorrect space
ashtneoi [Mon, 13 Aug 2018 23:12:35 +0000 (16:12 -0700)]
Remove incorrect space

5 years agoRemove unnecessary comment
ashtneoi [Mon, 13 Aug 2018 23:06:08 +0000 (16:06 -0700)]
Remove unnecessary comment

Turns out I didn't read the original comment correctly and had some
confusion about how MIR uses temporaries.

5 years agoTest patterns in tuples
ashtneoi [Mon, 13 Aug 2018 22:52:23 +0000 (15:52 -0700)]
Test patterns in tuples

5 years agoCoalesce var-is-not-Copy notes per move
ashtneoi [Mon, 13 Aug 2018 21:51:27 +0000 (14:51 -0700)]
Coalesce var-is-not-Copy notes per move

5 years agoDedup suggestions
ashtneoi [Mon, 13 Aug 2018 10:17:53 +0000 (03:17 -0700)]
Dedup suggestions

5 years agoRemove unnecessary underscore
ashtneoi [Sun, 12 Aug 2018 23:07:19 +0000 (16:07 -0700)]
Remove unnecessary underscore

5 years agoChange TODOs to FIXMEs
ashtneoi [Sun, 12 Aug 2018 21:42:33 +0000 (14:42 -0700)]
Change TODOs to FIXMEs

5 years agoMake move errors more consistent with typeck errors
ashtneoi [Sun, 12 Aug 2018 20:55:34 +0000 (13:55 -0700)]
Make move errors more consistent with typeck errors

5 years agoMake move error suggestions clearer
ashtneoi [Sun, 12 Aug 2018 20:27:14 +0000 (13:27 -0700)]
Make move error suggestions clearer

5 years agoAdd backquotes around variable name
ashtneoi [Sun, 12 Aug 2018 20:14:03 +0000 (13:14 -0700)]
Add backquotes around variable name

5 years agoFix move errors for index expressions
ashtneoi [Wed, 8 Aug 2018 06:44:35 +0000 (23:44 -0700)]
Fix move errors for index expressions

The suggestion logic gave up too early, which kept it from suggesting
borrowing index expressions.

5 years agoTest move errors for index expressions
ashtneoi [Wed, 8 Aug 2018 06:34:01 +0000 (23:34 -0700)]
Test move errors for index expressions

5 years agoAccept whitespace between `&` and `mut`
ashtneoi [Tue, 7 Aug 2018 23:16:37 +0000 (16:16 -0700)]
Accept whitespace between `&` and `mut`

5 years agoAdd more TODOs
ashtneoi [Tue, 7 Aug 2018 08:27:04 +0000 (01:27 -0700)]
Add more TODOs

5 years agoSuggest match ergonomics, not `ref`/`ref mut`
ashtneoi [Tue, 7 Aug 2018 08:02:39 +0000 (01:02 -0700)]
Suggest match ergonomics, not `ref`/`ref mut`

5 years agoFix some random stuff
ashtneoi [Thu, 2 Aug 2018 06:53:28 +0000 (23:53 -0700)]
Fix some random stuff

5 years agoAuto merge of #53400 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Wed, 15 Aug 2018 19:39:54 +0000 (19:39 +0000)]
Auto merge of #53400 - GuillaumeGomez:rollup, r=GuillaumeGomez

Rollup of 8 pull requests

Successful merges:

 - #52453 (improve diagnostics for tests with custom return values)
 - #53271 (use ? to simplify `TransitiveRelation.maybe_map`)
 - #53279 (Extend documentation of `rustc_on_unimplemented`)
 - #53342 (fix error for unsized packed struct field)
 - #53344 (Add doc examples for std::alloc::{alloc,alloc_zeroed}.)
 - #53368 (Ignore test that fails on stage1)
 - #53388 (Fix links' color)
 - #53396 (Fix since of Iterator::flatten to be a proper semver)

Failed merges:

r? @ghost

5 years agoRollup merge of #53396 - matklad:fix-flatten-since, r=varkor
Guillaume Gomez [Wed, 15 Aug 2018 17:20:29 +0000 (19:20 +0200)]
Rollup merge of #53396 - matklad:fix-flatten-since, r=varkor

Fix since of Iterator::flatten to be a proper semver

r? @kennytm

5 years agoRollup merge of #53388 - GuillaumeGomez:fix-links-color, r=frewsxcv
Guillaume Gomez [Wed, 15 Aug 2018 17:20:28 +0000 (19:20 +0200)]
Rollup merge of #53388 - GuillaumeGomez:fix-links-color, r=frewsxcv

Fix links' color

Fixes #53375.

Problem was coming from the minifier.

r? @frewsxcv

5 years agoRollup merge of #53368 - matthewjasper:only-stage-2, r=varkor
Guillaume Gomez [Wed, 15 Aug 2018 17:20:26 +0000 (19:20 +0200)]
Rollup merge of #53368 - matthewjasper:only-stage-2, r=varkor

Ignore test that fails on stage1

The error code is not emitted on stage1, so ignore this test there.

5 years agoRollup merge of #53344 - frewsxcv:frewsxcv-doc-ptr, r=ollie27
Guillaume Gomez [Wed, 15 Aug 2018 17:20:25 +0000 (19:20 +0200)]
Rollup merge of #53344 - frewsxcv:frewsxcv-doc-ptr, r=ollie27

Add doc examples for std::alloc::{alloc,alloc_zeroed}.

None

5 years agoRollup merge of #53342 - RalfJung:unsized-packed, r=cramertj
Guillaume Gomez [Wed, 15 Aug 2018 17:20:23 +0000 (19:20 +0200)]
Rollup merge of #53342 - RalfJung:unsized-packed, r=cramertj

fix error for unsized packed struct field

It was really confusing to be told "only the last field of a struct may have a dynamically sized type" when only the last field *was* unsized.

5 years agoRollup merge of #53279 - estebank:on-unimplemented-doc, r=GuillaumeGomez
Guillaume Gomez [Wed, 15 Aug 2018 17:20:22 +0000 (19:20 +0200)]
Rollup merge of #53279 - estebank:on-unimplemented-doc, r=GuillaumeGomez

Extend documentation of `rustc_on_unimplemented`

5 years agoRollup merge of #53271 - llogiq:simplify-maybe-map, r=joshtriplett
Guillaume Gomez [Wed, 15 Aug 2018 17:20:21 +0000 (19:20 +0200)]
Rollup merge of #53271 - llogiq:simplify-maybe-map, r=joshtriplett

use ? to simplify `TransitiveRelation.maybe_map`

I think this looks much clearer than the original.

5 years agoRollup merge of #52453 - srijs:fix-52436, r=TimNN
Guillaume Gomez [Wed, 15 Aug 2018 17:20:19 +0000 (19:20 +0200)]
Rollup merge of #52453 - srijs:fix-52436, r=TimNN

improve diagnostics for tests with custom return values

This is an attempt at getting the ball rolling to improve the diagnostics for test functions that return custom `impl Termination` values (see #52436).

An alternative could be to use `eprintln!`, but including this in the panic message felt nicely consistent with how failing test assertions would be reported.

Let me know what you think!

5 years agoAuto merge of #53164 - davidtwco:issue-52663-span-decl-captured-variables, r=nikomatsakis
bors [Wed, 15 Aug 2018 17:03:39 +0000 (17:03 +0000)]
Auto merge of #53164 - davidtwco:issue-52663-span-decl-captured-variables, r=nikomatsakis

Provide span for declaration of captured variables

Part of #52663.

r? @nikomatsakis

5 years agoFix since of Iterator::flatten to be a proper semver
Aleksey Kladov [Wed, 15 Aug 2018 16:28:42 +0000 (19:28 +0300)]
Fix since of Iterator::flatten to be a proper semver

5 years agoAuto merge of #53237 - overdrivenpotato:wasm-export-table, r=alexcrichton
bors [Wed, 15 Aug 2018 14:40:46 +0000 (14:40 +0000)]
Auto merge of #53237 - overdrivenpotato:wasm-export-table, r=alexcrichton

Export WASM table by default

This allows loading a rust-generated `.wasm` binary in a host and using the exported table much like the `memory` export.

5 years agoFix links' color
Guillaume Gomez [Wed, 15 Aug 2018 13:07:07 +0000 (15:07 +0200)]
Fix links' color

5 years agoAuto merge of #53133 - Zoxc:gen-int, r=eddyb
bors [Wed, 15 Aug 2018 12:02:00 +0000 (12:02 +0000)]
Auto merge of #53133 - Zoxc:gen-int, r=eddyb

Record adjustments and original type for expressions in the generator interior

Fixes https://github.com/rust-lang/rust/issues/50878 and https://github.com/rust-lang/rust/issues/52398.

r? @eddyb

5 years agoAuto merge of #53367 - ehuss:update-cargo, r=alexcrichton
bors [Wed, 15 Aug 2018 09:08:35 +0000 (09:08 +0000)]
Auto merge of #53367 - ehuss:update-cargo, r=alexcrichton

Update cargo

- Update transitioning url (rust-lang/cargo#5889)
- Resolve some clippy lint warnings (rust-lang/cargo#5884)
- Don't kill child processes on normal exit on Windows (rust-lang/cargo#5887)
- fix a bunch of clippy warnings (rust-lang/cargo#5876)
- Add support for rustc's --error-format short (rust-lang/cargo#5879)
- Support JSON with rustdoc. (rust-lang/cargo#5878)
- Fix rustfmt instructions in CONTRIBUTING.md (rust-lang/cargo#5880)
- Allow `cargo run` in workspaces. (rust-lang/cargo#5877)
- Change target filters in workspaces. (rust-lang/cargo#5873)
- Improve verbose console and log for finding git repo in package check (rust-lang/cargo#5858)
- Meta rename (rust-lang/cargo#5871)
- fetch: skip target tests when cross_compile is disabled (rust-lang/cargo#5870)
- Fully capture rustc and rustdoc output when -Zcompile-progress is passed (rust-lang/cargo#5862)
- Fix test --example docs. (rust-lang/cargo#5867)
- Add a feature to build a vendored OpenSSL (rust-lang/cargo#5865)

5 years agofix error for unsized packed struct field
Ralf Jung [Tue, 14 Aug 2018 10:50:01 +0000 (12:50 +0200)]
fix error for unsized packed struct field

5 years agoAuto merge of #53212 - sunjay:nll-raw-cast, r=nikomatsakis
bors [Wed, 15 Aug 2018 06:54:18 +0000 (06:54 +0000)]
Auto merge of #53212 - sunjay:nll-raw-cast, r=nikomatsakis

NLL - Prevent where clauses from extending the lifetime of bindings

Fixes https://github.com/rust-lang/rust/issues/53123

r? @nikomatsakis

5 years agoUpdate cargo
Eric Huss [Tue, 14 Aug 2018 21:27:26 +0000 (14:27 -0700)]
Update cargo

5 years agoAuto merge of #52716 - tromey:rustup-lldb, r=alexcrichton
bors [Wed, 15 Aug 2018 02:52:08 +0000 (02:52 +0000)]
Auto merge of #52716 - tromey:rustup-lldb, r=alexcrichton

Add lldb to the build

This optionally adds lldb (and clang, which it needs) to the build.

Because rust uses LLVM 7, and because clang 7 is not yet released, a
recent git master version of clang is used.

The lldb that is used includes the Rust plugin.

lldb is only built when asked for, or when doing a nightly build on
macOS.  Only macOS is done for now due to difficulties with the Python
dependency.

5 years agoAdd doc examples for std::alloc::{alloc,alloc_zeroed}.
Corey Farwell [Tue, 14 Aug 2018 12:37:12 +0000 (08:37 -0400)]
Add doc examples for std::alloc::{alloc,alloc_zeroed}.

5 years agoAdd lldb to the build
Tom Tromey [Tue, 3 Jul 2018 18:24:24 +0000 (12:24 -0600)]
Add lldb to the build

This optionally adds lldb (and clang, which it needs) to the build.

Because rust uses LLVM 7, and because clang 7 is not yet released, a
recent git master version of clang is used.

The lldb that is used includes the Rust plugin.

lldb is only built when asked for, or when doing a nightly build on
macOS.  Only macOS is done for now due to difficulties with the Python
dependency.