]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoexpand comment in StorageLive
Ralf Jung [Sat, 18 May 2019 12:40:17 +0000 (14:40 +0200)]
expand comment in StorageLive

5 years agoAuto merge of #60386 - Goirad:sgx-ignore-tests, r=nikomatsakis
bors [Sat, 18 May 2019 09:04:14 +0000 (09:04 +0000)]
Auto merge of #60386 - Goirad:sgx-ignore-tests, r=nikomatsakis

Added ignore-sgx for appropriate tests in src/test

These are all the tests that make sense to ignore when targeting fortanix-unknonw-sgx, at least in test/runpass. Other suites not yet covered.

5 years agoAuto merge of #60910 - nnethercote:avoid-some-unnecessary-interning, r=petrochenkov
bors [Sat, 18 May 2019 02:10:21 +0000 (02:10 +0000)]
Auto merge of #60910 - nnethercote:avoid-some-unnecessary-interning, r=petrochenkov

Avoid some unnecessary interning

r? @petrochenkov

5 years agoAuto merge of #49799 - hdhoang:46205_deny_incoherent_fundamental_impls, r=nikomatsakis
bors [Fri, 17 May 2019 23:06:51 +0000 (23:06 +0000)]
Auto merge of #49799 - hdhoang:46205_deny_incoherent_fundamental_impls, r=nikomatsakis

lint: convert incoherent_fundamental_impls into hard error

*Summary for affected authors:* If your crate depends on one of the following crates, please upgrade to a newer version:
- gtk-rs: upgrade to at least 0.4
- rusqlite: upgrade to at least 0.14
- nalgebra: upgrade to at least 0.15, or the last patch version of 0.14
- spade: upgrade or refresh the Cargo.lock file to use version 1.7
- imageproc: upgrade to at least 0.16 (newer versions no longer use nalgebra)

implement #46205

r? @nikomatsakis

5 years agoAuto merge of #60920 - Manishearth:rollup-p4xp4gk, r=Manishearth
bors [Fri, 17 May 2019 20:02:13 +0000 (20:02 +0000)]
Auto merge of #60920 - Manishearth:rollup-p4xp4gk, r=Manishearth

Rollup of 4 pull requests

Successful merges:

 - #60791 (Update books)
 - #60891 (Allow claiming issues with triagebot)
 - #60901 (Handle more string addition cases with appropriate suggestions)
 - #60902 (Prevent Error::type_id overrides)

Failed merges:

r? @ghost

5 years agoRollup merge of #60902 - sfackler:fix-error-soudness, r=alexcrichton
Manish Goregaokar [Fri, 17 May 2019 18:34:13 +0000 (11:34 -0700)]
Rollup merge of #60902 - sfackler:fix-error-soudness, r=alexcrichton

Prevent Error::type_id overrides

type_id now takes an argument that can't be named outside of the
std::error module, which prevents any implementations from overriding
it. It's a pretty grody solution, and there's no way we can stabilize
the method with this API, but it avoids the soudness issue!

Closes #60784

r? @alexcrichton

5 years agoRollup merge of #60901 - estebank:str-str-str, r=Centril
Manish Goregaokar [Fri, 17 May 2019 18:34:12 +0000 (11:34 -0700)]
Rollup merge of #60901 - estebank:str-str-str, r=Centril

Handle more string addition cases with appropriate suggestions

5 years agoRollup merge of #60891 - jonas-schievink:triagebot-claim, r=Mark-Simulacrum
Manish Goregaokar [Fri, 17 May 2019 18:34:10 +0000 (11:34 -0700)]
Rollup merge of #60891 - jonas-schievink:triagebot-claim, r=Mark-Simulacrum

Allow claiming issues with triagebot

Not sure if this was intentionally left out, but it can probably be enabled now that https://github.com/rust-lang/triagebot/issues/3 is fixed (assuming that the deployed commit is recent enough). People have tried to use it already (https://github.com/rust-lang/rust/issues/60622#issuecomment-493212465).

r? @Mark-Simulacrum

5 years agoRollup merge of #60791 - ehuss:update-books, r=Mark-Simulacrum
Manish Goregaokar [Fri, 17 May 2019 18:34:08 +0000 (11:34 -0700)]
Rollup merge of #60791 - ehuss:update-books, r=Mark-Simulacrum

Update books

## nomicon

1 commits in fb29b147be4d9a1f8e24aba753a7e1de537abf61..c656171b749b7307f21371dd0d3278efee5573b8
2019-04-22 19:10:29 -0400 to 2019-04-25 15:31:26 -0400
- Lifetimes: Updates to incorporate NLL (rust-lang-nursery/nomicon#101)

## reference

5 commits in 2a2de9ce095979978ad7b582daecf94e4070b916..862b669c395822bb0938781d74f860e5762ad4fb
2019-04-22 10:25:52 -0700 to 2019-05-04 23:41:35 -0700
- Typo (rust-lang-nursery/reference#606)
- Added missing ? to Generics from InherentImpl and TraitImpl (rust-lang-nursery/reference#604)
- Add missing ( to ExternalFunctionItem (rust-lang-nursery/reference#603)
- Remove unneeded | from AssignmentExpression (rust-lang-nursery/reference#601)
- Remove unneeded ( from TypePathSegment (rust-lang-nursery/reference#602)

## book

6 commits in db919bc6bb9071566e9c4f05053672133eaac33e..29fe982990e43b9367be0ff47abc82fb2123fd03
2019-04-15 20:11:03 -0400 to 2019-05-15 17:48:40 -0400
- Ignore a non-compiling test listing and add code to fix a test listing
- Remove nostarch snapshots I've checked in layout
- Reword error messages to maybe not need to wrap lines in print
- This example doesn't compile but wasn't marked as such
- Update install instructions for VS 2019 (rust-lang/book#1923)
- Switch IRC to Discord

## rust-by-example

9 commits in 1ff0f8e018838a710ebc0cc1a7bf74ebe73ad9f1..811c697b232c611ed754d279ed20643a0c4096f6
2019-04-15 08:15:32 -0300 to 2019-04-28 18:56:42 -0300
- Fix typo in dsl.md (rust-lang/rust-by-example#1187)
- File read lines (rust-lang/rust-by-example#1186)
- For https://github.com/rust-lang/rust-by-example/issues/1184 closes rust-lang/rust-by-example#1184 (rust-lang/rust-by-example#1185)
- Link to Reference for macro_rules designators (rust-lang/rust-by-example#1182)
- Improve section Meta/Docs (rust-lang/rust-by-example#1183)
- Small improvements to various files (rust-lang/rust-by-example#1173)
- 19.2 Vectors Error in Code Example (rust-lang/rust-by-example#1178)
- For https://github.com/rust-lang/rust-by-example/issues/1175 (rust-lang/rust-by-example#1176)
- For https://github.com/rust-lang/rust-by-example/issues/1179 (rust-lang/rust-by-example#1180)

## rustc-guide

12 commits in 99e1b1d53656be08654df399fc200584aebb50e4..3cb727b62b953d59b4360d39aa68b6dc8f157655
2019-04-20 09:57:54 -0500 to 2019-05-07 09:53:32 -0500
- Fix typo, 'which' repeated twice
- [canonicalization] fix result canonicalization example (rust-lang/rustc-guide#304)
- Rename to RUSTC_LOG
- Added mention of universal ctags
- Fix link in walkthrough
- Remove IRC from discussion chats
- Bring the updating LLVM guide up to date
- use nightly rust for ci
- Fixed broken chalk links
- Add documentation for two-phase borrows
- Explain new powers of the `treat-err-as-bug` flag
- Update lowering-module test case

## edition-guide

3 commits in c413d42a207bd082f801ec0137c31b71e4bfed4c..581c6cccfaf995394ea9dcac362dc8e731c18558
2019-04-22 01:14:56 +0200 to 2019-05-06 12:47:44 -0700
- Fix typo in controlling-panics-with-std-panic.md (rust-lang-nursery/edition-guide#158)
- Fix links for book editions. (rust-lang-nursery/edition-guide#149)
- Update now that NLL is enabled in 2015. (rust-lang-nursery/edition-guide#157)

## embedded-book

3 commits in de3d55f521e657863df45260ebbca1b10527f662..9858872bd1b7dbba5ec27dc30d34eba00acd7ef9
2019-04-22 12:58:28 +0000 to 2019-05-02 18:56:54 +0000
- Update linux.md  (rust-embedded/book#167)
- Clarify list of available targets for installation  (rust-embedded/book#165)
- minor grammar fix  (rust-embedded/book#188)

5 years agoAccount for &String + String
Esteban Küber [Fri, 17 May 2019 17:45:54 +0000 (10:45 -0700)]
Account for &String + String

5 years agoAuto merge of #60841 - alexcrichton:update-compiler-builtins, r=RalfJung
bors [Fri, 17 May 2019 16:11:20 +0000 (16:11 +0000)]
Auto merge of #60841 - alexcrichton:update-compiler-builtins, r=RalfJung

Update the compiler_builtins crate

This updates to 0.1.13 for `compiler_builtins`, published to fix a few
issues. The feature changes here are updated because `compiler_builtins`
no longer enables the `c` feature by default but we want to do so
through our build still.

Closes #60747
Closes #60782

5 years agoUpdate the compiler_builtins crate
Alex Crichton [Tue, 14 May 2019 21:43:43 +0000 (14:43 -0700)]
Update the compiler_builtins crate

This updates to 0.1.13 for `compiler_builtins`, published to fix a few
issues. The feature changes here are updated because `compiler_builtins`
no longer enables the `c` feature by default but we want to do so
through our build still.

Closes #60747
Closes #60782

5 years agoAuto merge of #60171 - matthewjasper:full-nll-compare-mode, r=pnkfelix
bors [Fri, 17 May 2019 13:01:23 +0000 (13:01 +0000)]
Auto merge of #60171 - matthewjasper:full-nll-compare-mode, r=pnkfelix

Use -Zborrowck=mir for NLL compare mode

closes #56993

r? @pnkfelix

5 years agoAuto merge of #60892 - davidtwco:issue-60622, r=oli-obk
bors [Fri, 17 May 2019 10:14:19 +0000 (10:14 +0000)]
Auto merge of #60892 - davidtwco:issue-60622, r=oli-obk

Checking generic args after late bound region err.

Fixes #60622.

This PR fixes an ICE that occurs when a late bound region error is
emitted and that resulted in the rest of the generic arguments of a
function not being checked.

For example, you could specify a generic type parameter `T` in a function
call `foo<'_, T>()` to a function that doesn't have a generic type
parameter.

Since an error wasn't emitted from the function, compilation
continued to parts of typeck that didn't expect a generic type argument
in a call for a function that didn't have any generic type arguments.

5 years agoAvoid unnecessary interning in `DefPathData::as_interned_str()`.
Nicholas Nethercote [Fri, 17 May 2019 08:47:49 +0000 (18:47 +1000)]
Avoid unnecessary interning in `DefPathData::as_interned_str()`.

5 years agoAvoid unnecessary interning in `Ident::from_str()` calls.
Nicholas Nethercote [Fri, 17 May 2019 08:37:53 +0000 (18:37 +1000)]
Avoid unnecessary interning in `Ident::from_str()` calls.

A lot of these static symbols are pre-interned.

5 years agoChange `rustc::util::common::FN_OUTPUT_NAME` to a `Symbol`.
Nicholas Nethercote [Fri, 17 May 2019 05:21:31 +0000 (15:21 +1000)]
Change `rustc::util::common::FN_OUTPUT_NAME` to a `Symbol`.

5 years agoChecking generic args after late bound region err.
David Wood [Thu, 16 May 2019 21:00:27 +0000 (22:00 +0100)]
Checking generic args after late bound region err.

This commit fixes an ICE that occurs when a late bound region error is
emitted and that resulted in the rest of the generic arguments of a
function not being checked.

For example, you could specify a generic type parameter `T` in a function
call `foo<'_, T>()` to a function that doesn't have a generic type
parameter.

Since an error wasn't emitted from the function, compilation
continued to parts of typeck that didn't expect a generic type argument
in a call for a function that didn't have any generic type arguments.

5 years agoAuto merge of #60899 - cuviper:RawEntryMut-origin-story, r=Centril
bors [Fri, 17 May 2019 07:24:16 +0000 (07:24 +0000)]
Auto merge of #60899 - cuviper:RawEntryMut-origin-story, r=Centril

doc: correct the origin of RawEntryMut

5 years agoreview comments
Esteban Küber [Fri, 17 May 2019 03:05:00 +0000 (20:05 -0700)]
review comments

5 years agoAuto merge of #60817 - ecstatic-morse:issue-60779, r=Centril
bors [Fri, 17 May 2019 03:52:27 +0000 (03:52 +0000)]
Auto merge of #60817 - ecstatic-morse:issue-60779, r=Centril

Add stubs to keyword docs

Resolves #60779.

This commit gives each stable keyword a short entry in the "Keywords" section in the docs for `std`. The newly added entries are only a single line each and contain the main purpose of the keyword. I changed some of the existing summary lines for consistency's sake. Each line is either an imperative ("name the type of a trait object" for `dyn`), or an object ("An abstract data type" for `enum`). I tried to avoid using the keyword itself or the word "keyword" in the summary.

Later commits can flesh out each keyword with an example for each context in which it can appear as well as a link to the appropriate part of the rust book.

**edit:**
Here's the list of keywords and summaries (sans formatting) to ease reviewing. I'll try to keep this up to date as I make changes:

keyword | summary
-- | --
Self | The implementing type within a `trait` or `impl` block, or the current type within a type definition.
as | Cast between types, or rename an import.
async | ExperimentalReturn a Future instead of blocking the current thread.
await | ExperimentalSuspend execution until the result of a Future is ready.
break | Exit early from a loop.
const | Compile-time constants and deterministic functions.
continue | Skip to the next iteration of a loop.
crate | A Rust binary or library.
dyn | Name the type of a trait object.
else | What to do when an if condition does not hold.
enum | A type that can be any one of several variants.
extern | Link to or import external code.
false | A value of type bool representing logical false.
fn | A function or function pointer.
for | Iteration with in, trait implementation with impl, or higher-ranked trait bounds (for<'a>).
if | Evaluate a block if a condition holds.
impl | Implement some functionality for a type.
in | Iterate over a series of values with for.
let | Bind a value to a variable.
loop | Loop indefinitely.
match | Control flow based on pattern matching.
mod | Organize code into modules.
move | Capture a closure's environment by value.
mut | A mutable binding, reference, or pointer.
pub | Make an item visible to others.
ref | Bind by reference during pattern matching.
return | Return a value from a function.
self | The receiver of a method, or the current module.
static | A place that is valid for the duration of a program.
struct | A type that is composed of other types.
super | The parent of the current module.
trait | A common interface for a class of types.
true | A value of type bool representing logical true.
type | Define an alias for an existing type.
union | The Rust equivalent of a C-style union.
unsafe | Code or interfaces whose memory safety cannot be verified by the type system.
use | Import or rename items from other crates or modules.
where | Add constraints that must be upheld to use an item.
while | Loop while a condition is upheld.

5 years agoUpdate src/libstd/error.rs
Steven Fackler [Fri, 17 May 2019 03:18:29 +0000 (20:18 -0700)]
Update src/libstd/error.rs

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
5 years agoFix binop span
Esteban Küber [Fri, 17 May 2019 02:56:11 +0000 (19:56 -0700)]
Fix binop span

5 years agoPrevent Error::type_id overrides
Steven Fackler [Fri, 17 May 2019 02:48:13 +0000 (19:48 -0700)]
Prevent Error::type_id overrides

type_id now takes an argument that can't be named outside of the
std::error module, which prevents any implementations from overriding
it. It's a pretty grody solution, and there's no way we can stabilize
the method with this API, but it avoids the soudness issue!

Closes #60784

5 years agoHandle more string addition cases with appropriate suggestions
Esteban Küber [Fri, 17 May 2019 02:29:02 +0000 (19:29 -0700)]
Handle more string addition cases with appropriate suggestions

5 years agodoc: correct the origin of RawEntryMut
Josh Stone [Fri, 17 May 2019 01:15:09 +0000 (18:15 -0700)]
doc: correct the origin of RawEntryMut

5 years agoAuto merge of #60898 - Centril:rollup-76o2g8a, r=Centril
bors [Fri, 17 May 2019 00:55:01 +0000 (00:55 +0000)]
Auto merge of #60898 - Centril:rollup-76o2g8a, r=Centril

Rollup of 6 pull requests

Successful merges:

 - #60685 (Switch to SPDX 2.1 license expression)
 - #60687 (Fix .natvis visualizers.)
 - #60805 (remove compiletest's dependency on `filetime`)
 - #60862 (Get ty from local_decls instead of using Place)
 - #60873 (Parse alternative incorrect uses of await and recover)
 - #60894 (Add entry-like methods to HashSet)

Failed merges:

r? @ghost

5 years agoRollup merge of #60894 - cuviper:hash_set_entry, r=cramertj,Centril
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:18 +0000 (02:54 +0200)]
Rollup merge of #60894 - cuviper:hash_set_entry, r=cramertj,Centril

Add entry-like methods to HashSet

* `HashSet::get_or_insert`
* `HashSet::get_or_insert_with`

These provide a simplification of the `Entry` API for `HashSet`, with
names chosen to match the similar methods on `Option`.

5 years agoRollup merge of #60873 - estebank:bad-await, r=Centril
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:17 +0000 (02:54 +0200)]
Rollup merge of #60873 - estebank:bad-await, r=Centril

Parse alternative incorrect uses of await and recover

Fix #60613.

r? @Centril

5 years agoRollup merge of #60862 - spastorino:get-ty-from-local_decls, r=oli-obk
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:16 +0000 (02:54 +0200)]
Rollup merge of #60862 - spastorino:get-ty-from-local_decls, r=oli-obk

Get ty from local_decls instead of using Place

r? @oli-obk This is from one of your review on Place 2.0

5 years agoRollup merge of #60805 - euclio:filetime-dep, r=Mark-Simulacrum
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:14 +0000 (02:54 +0200)]
Rollup merge of #60805 - euclio:filetime-dep, r=Mark-Simulacrum

remove compiletest's dependency on `filetime`

5 years agoRollup merge of #60687 - MaulingMonkey:pr-fix-natvis-files, r=alexcrichton
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:13 +0000 (02:54 +0200)]
Rollup merge of #60687 - MaulingMonkey:pr-fix-natvis-files, r=alexcrichton

Fix .natvis visualizers.

### Updated to handle these changes:
  - `core::ptr::*` lost their `__0` elements and are just plain pointers
  - `core::ptr::*` probably shouldn't dereference in `DisplayString` s
  - `VecDeque` probably *should* dereference it's buf pointer to display individual items.
  - `VecDeque` and `Vec` use `core::ptr::*` s
  - `VecDeque` and `LinkedList` moved modules again.

### Retested - still working fine, left alone:
  - `String`, `&str`, `Option`

### Side Chatter
  - Props to Alex for pointing out this was broken in the `#ides-and-editors` Discord channel
  - It'd be nice if there was a sane way to automate unit testing these visualizers.
    (I assume COM automation of Visual Studio would be a no go on the build servers, and probably really incredibly painful to write too!  Suggestions welcome...)

5 years agoRollup merge of #60685 - dtolnay:spdx, r=nikomatsakis
Mazdak Farrokhzad [Fri, 17 May 2019 00:54:11 +0000 (02:54 +0200)]
Rollup merge of #60685 - dtolnay:spdx, r=nikomatsakis

Switch to SPDX 2.1 license expression

[According to the Cargo Reference:](https://doc.rust-lang.org/cargo/reference/manifest.html)

> This is an SPDX 2.1 license expression for this package. Currently crates.io will validate the license provided against a whitelist of known license and exception identifiers from the SPDX license list 2.4. Parentheses are not currently supported.
>
> Multiple licenses can be separated with a \`/\`, although that usage is deprecated. Instead, use a license expression with AND and OR operators to get more explicit semantics.

The notation with slashes is deprecated in favor of explicit AND or OR.

As I understand it, Rust's license is MIT *OR* Apache-2.0 matching the meaning of *OR* defined by [SPDX Specification 2.1](https://spdx.org/spdx-specification-21-web-version):

> If presented with a choice between two or more licenses, use the disjunctive binary "OR" operator to construct a new license expression, where both the left and right operands are valid license expression values.

5 years agoComment why get_or_insert returns &T
Josh Stone [Thu, 16 May 2019 23:21:31 +0000 (16:21 -0700)]
Comment why get_or_insert returns &T

5 years agoAdd a hash_set_entry tracking issue
Josh Stone [Thu, 16 May 2019 22:37:01 +0000 (15:37 -0700)]
Add a hash_set_entry tracking issue

5 years agoreview comments
Esteban Küber [Thu, 16 May 2019 22:25:58 +0000 (15:25 -0700)]
review comments

5 years agoAdd entry-like methods to HashSet
Josh Stone [Thu, 16 May 2019 22:10:52 +0000 (15:10 -0700)]
Add entry-like methods to HashSet

* `HashSet::get_or_insert`
* `HashSet::get_or_insert_with`

These provide a simplification of the `Entry` API for `HashSet`, with
names chosen to match the similar methods on `Option`.

5 years agoAuto merge of #60888 - Manishearth:rollup-oihtoyq, r=Manishearth
bors [Thu, 16 May 2019 21:54:53 +0000 (21:54 +0000)]
Auto merge of #60888 - Manishearth:rollup-oihtoyq, r=Manishearth

Rollup of 5 pull requests

Successful merges:

 - #60207 (Outdent example, preserving nested fence)
 - #60278 (Document the `html_root_url` doc attribute value.)
 - #60597 (Do some simple constant propagation in the ConstProp pass)
 - #60837 (Update release notes for 1.35.0)
 - #60887 (Update clippy)

Failed merges:

r? @ghost

5 years agoAdd all keywords to keyword docs
Dylan MacKenzie [Tue, 14 May 2019 09:32:55 +0000 (02:32 -0700)]
Add all keywords to keyword docs

This commit gives each stable keyword a short entry in the "Keywords"
section in the docs for `std`. The newly added entries are a single
summary line and a note that the documentation is not yet complete.  I
changed some of the existing summary lines for consistency's sake. Each
line is either a verb phrase ("name the type of a trait object" for
`dyn`), or an object ("A value of type `bool` representing logical true"
for `true`). I tried to avoid using the keyword itself or the word
"keyword" in the summary.

Later PRs can flesh out each keyword with an example of each
context in which a keyword can appear and a link to the rust book.

Keywords which are not close to stable rust such as `box` (which is
getting unstabilized) or `try` are ignored in this PR.

5 years agoMove some parser recovery methods to diagnostics
Esteban Küber [Thu, 16 May 2019 21:31:07 +0000 (14:31 -0700)]
Move some parser recovery methods to diagnostics

5 years agoFix span for await macro call
Esteban Küber [Thu, 16 May 2019 21:30:39 +0000 (14:30 -0700)]
Fix span for await macro call

5 years agoreverted changed cfg test cases
Dario Gonzalez [Tue, 7 May 2019 19:34:46 +0000 (12:34 -0700)]
reverted changed cfg test cases

5 years agofixed issues relating to line numbers being shifted
Dario Gonzalez [Tue, 30 Apr 2019 04:47:15 +0000 (21:47 -0700)]
fixed issues relating to line numbers being shifted

5 years agoFixed tidy errors
Dario Gonzalez [Mon, 29 Apr 2019 23:37:57 +0000 (16:37 -0700)]
Fixed tidy errors

5 years agoAdded ignore-sgx for appropriate tests
Dario Gonzalez [Wed, 24 Apr 2019 16:26:33 +0000 (09:26 -0700)]
Added ignore-sgx for appropriate tests

5 years agoReview comments
Esteban Küber [Thu, 16 May 2019 20:33:26 +0000 (13:33 -0700)]
Review comments

- Change wording of suggestion
- Move recovery logic to `diagnostics.rs`
- Reduce ammount of code duplication

5 years agoreadd match await test case
Esteban Küber [Thu, 16 May 2019 20:20:06 +0000 (13:20 -0700)]
readd match await test case

5 years agoPoint at enclosing fn/closure when it's not async
Esteban Küber [Thu, 16 May 2019 20:17:40 +0000 (13:17 -0700)]
Point at enclosing fn/closure when it's not async

5 years agotidy fix
Esteban Küber [Thu, 16 May 2019 03:37:50 +0000 (20:37 -0700)]
tidy fix

5 years agoSimplify span usage for incorrect await
Esteban Küber [Thu, 16 May 2019 03:06:15 +0000 (20:06 -0700)]
Simplify span usage for incorrect await

5 years agoSplit parser logic to its own method
Esteban Küber [Thu, 16 May 2019 02:59:56 +0000 (19:59 -0700)]
Split parser logic to its own method

5 years agoParse alternative incorrect uses of await and recover
Esteban Küber [Thu, 16 May 2019 02:47:18 +0000 (19:47 -0700)]
Parse alternative incorrect uses of await and recover

5 years agoAllow claiming issues with triagebot
Jonas Schievink [Thu, 16 May 2019 20:22:18 +0000 (22:22 +0200)]
Allow claiming issues with triagebot

5 years agoRollup merge of #60887 - Manishearth:clippyup, r=Manishearth
Manish Goregaokar [Thu, 16 May 2019 19:31:49 +0000 (12:31 -0700)]
Rollup merge of #60887 - Manishearth:clippyup, r=Manishearth

Update clippy

r? @ghost

5 years agoRollup merge of #60837 - jonas-schievink:releases-1.35.0, r=pietroalbini
Manish Goregaokar [Thu, 16 May 2019 19:31:47 +0000 (12:31 -0700)]
Rollup merge of #60837 - jonas-schievink:releases-1.35.0, r=pietroalbini

Update release notes for 1.35.0

(Applied remaining nit, rebased onto master, and added CVE link to the 1.34.2 release notes, as discussed in the release team meeting)

r? @pietroalbini

5 years agoRollup merge of #60597 - wesleywiser:const_prop, r=oli-obk
Manish Goregaokar [Thu, 16 May 2019 19:31:46 +0000 (12:31 -0700)]
Rollup merge of #60597 - wesleywiser:const_prop, r=oli-obk

Do some simple constant propagation in the ConstProp pass

r? @oli-obk

I added a few test cases. Let me know if you think there should be more.

5 years agoRollup merge of #60278 - ehuss:doc-html_root_url, r=GuillaumeGomez
Manish Goregaokar [Thu, 16 May 2019 19:31:44 +0000 (12:31 -0700)]
Rollup merge of #60278 - ehuss:doc-html_root_url, r=GuillaumeGomez

Document the `html_root_url` doc attribute value.

I'm not sure if this was intentionally not documented, but I think it would be good to include. This was added in #9691.  `--extern-html-root-url` is unstable, but I don't think it hurts to mention it.

5 years agoRollup merge of #60207 - felixrabe:patch-1, r=steveklabnik
Manish Goregaokar [Thu, 16 May 2019 19:31:43 +0000 (12:31 -0700)]
Rollup merge of #60207 - felixrabe:patch-1, r=steveklabnik

Outdent example, preserving nested fence

5 years agoUpdate clippy
Manish Goregaokar [Thu, 16 May 2019 19:11:32 +0000 (12:11 -0700)]
Update clippy

5 years agoAuto merge of #60874 - ehuss:update-cargo, r=alexcrichton
bors [Thu, 16 May 2019 18:57:00 +0000 (18:57 +0000)]
Auto merge of #60874 - ehuss:update-cargo, r=alexcrichton

Update cargo

17 commits in 759b6161a328db1d4863139e90875308ecd25a75..c4fcfb725b4be00c72eb9cf30c7d8b095577c280
2019-05-06 20:47:49 +0000 to 2019-05-15 19:48:47 +0000
- tests: registry: revert readonly permission after running tests. (rust-lang/cargo#6947)
- Remove Candidate (rust-lang/cargo#6946)
- Fix for "Running cargo update without a Cargo.lock ignores arguments" rust-lang/cargo#6872 (rust-lang/cargo#6904)
- Fix a minor mistake in the changelog. (rust-lang/cargo#6944)
- Give a better error message when crates.io requests time out (rust-lang/cargo#6936)
- Re-enable compatibility with readonly CARGO_HOME (rust-lang/cargo#6940)
- Fix version of `ignore`. (rust-lang/cargo#6938)
- Stabilize offline mode. (rust-lang/cargo#6934)
- zsh: Add doc options to include non-public items documentation (rust-lang/cargo#6929)
- zsh: Suggest --lib option as binary template now the default (rust-lang/cargo#6926)
- Migrate package include/exclude to gitignore patterns. (rust-lang/cargo#6924)
- Implement the Cargo half of pipelined compilation (take 2) (rust-lang/cargo#6883)
- Always include `Cargo.toml` when packaging. (rust-lang/cargo#6925)
- Remove unnecessary calls to masquerade_as_nightly_cargo. (rust-lang/cargo#6923)
- download: fix "Downloaded 1 crates" message (crates -&gt; crate) (rust-lang/cargo#6920)
- Changed RUST_LOG usage to CARGO_LOG to avoid confusion. (rust-lang/cargo#6918)
- crate download: don't print that a crate was the largest download if it was the only download (rust-lang/cargo#6916)

5 years agoUpdate cargo
Eric Huss [Thu, 16 May 2019 05:27:39 +0000 (22:27 -0700)]
Update cargo

5 years agoAuto merge of #60877 - Centril:rollup-j0o5mo5, r=Centril
bors [Thu, 16 May 2019 09:58:30 +0000 (09:58 +0000)]
Auto merge of #60877 - Centril:rollup-j0o5mo5, r=Centril

Rollup of 6 pull requests

Successful merges:

 - #59825 (string: implement From<&String> for String)
 - #59923 (Fix convert module's documentation links)
 - #60691 (Include expression to wait for to the span of Await)
 - #60769 (Update rustc book CLI docs.)
 - #60816 (README.md: Mention MSVC 2017+, not 2013(!))
 - #60851 (Move `box` from the stable keyword to unstable keywords list)

Failed merges:

r? @ghost

5 years agoRollup merge of #60851 - Pulkit07:issue60849, r=Centril
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:35 +0000 (10:43 +0200)]
Rollup merge of #60851 - Pulkit07:issue60849, r=Centril

Move `box` from the stable keyword to unstable keywords list

Fixes #60849

5 years agoRollup merge of #60816 - scottmcm:vcpp-download-link, r=alexcrichton
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:34 +0000 (10:43 +0200)]
Rollup merge of #60816 - scottmcm:vcpp-download-link, r=alexcrichton

README.md: Mention MSVC 2017+, not 2013(!)

LLVM will soon require 2017+ (and our in-tree version just rejected the version of 2015 I was using), so update the mention and provide a link.

Ref: https://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library

5 years agoRollup merge of #60769 - ehuss:rustc-cli-docs, r=steveklabnik
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:33 +0000 (10:43 +0200)]
Rollup merge of #60769 - ehuss:rustc-cli-docs, r=steveklabnik

Update rustc book CLI docs.

This adds a little detail (and missing flags) to the rustc book. There is still a lot of information missing, but this seemed like a good step to expanding it.

5 years agoRollup merge of #60691 - topecongiro:await-macro-span, r=Centril
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:30 +0000 (10:43 +0200)]
Rollup merge of #60691 - topecongiro:await-macro-span, r=Centril

Include expression to wait for to the span of Await

Currently the span of `await!` only includes itself:

```rust
    await!(3);
//  ^^^^^
```

This PR changes it so that the span holds the whole `await!` expression:

```rust
    await!(3);
//  ^^^^^^^^^

5 years agoRollup merge of #59923 - czipperz:fix-convert-doc-links, r=steveklabnik
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:28 +0000 (10:43 +0200)]
Rollup merge of #59923 - czipperz:fix-convert-doc-links, r=steveklabnik

Fix convert module's documentation links

r? @steveklabnik

5 years agoRollup merge of #59825 - jsgf:from-ref-string, r=sfackler
Mazdak Farrokhzad [Thu, 16 May 2019 08:43:24 +0000 (10:43 +0200)]
Rollup merge of #59825 - jsgf:from-ref-string, r=sfackler

string: implement From<&String> for String

Allow Strings to be created from borrowed Strings. This is mostly
to make things like passing `&String` to an `impl Into<String>`
parameter frictionless.

Fixes #59827.

5 years agoAuto merge of #60811 - wesleywiser:bump_measureme, r=varkor
bors [Thu, 16 May 2019 07:04:03 +0000 (07:04 +0000)]
Auto merge of #60811 - wesleywiser:bump_measureme, r=varkor

Bump measureme dependency to 0.3

measureme@0.3 adds a version header to the binary file format which will
help reduce tool breakage in the future.

5 years agoAuto merge of #60763 - matklad:tt-parser, r=petrochenkov
bors [Thu, 16 May 2019 04:15:12 +0000 (04:15 +0000)]
Auto merge of #60763 - matklad:tt-parser, r=petrochenkov

Move token tree related lexer state to a separate struct

Just a types-based refactoring.

We only used a bunch of fields when tokenizing into a token tree, so let's move them out of the base lexer

5 years agoAuto merge of #60693 - saleemjaffer:refactor_fntype_stuff, r=eddyb
bors [Thu, 16 May 2019 01:26:13 +0000 (01:26 +0000)]
Auto merge of #60693 - saleemjaffer:refactor_fntype_stuff, r=eddyb

refactor some `FnType` stuff to `rustc::ty::layout`

Does work in the direction of #56166.

5 years agoUpdate books
Eric Huss [Wed, 15 May 2019 22:56:47 +0000 (15:56 -0700)]
Update books

5 years agoGet ty from local_decls instead of using Place
Santiago Pastorino [Wed, 15 May 2019 19:24:18 +0000 (21:24 +0200)]
Get ty from local_decls instead of using Place

5 years agoMove `box` from the stable keyword to unstable keywords list
Pulkit Goyal [Wed, 15 May 2019 13:22:39 +0000 (16:22 +0300)]
Move `box` from the stable keyword to unstable keywords list

Fixes #60849

5 years agoAuto merge of #60832 - petrochenkov:CLazy, r=Mark-Simulacrum
bors [Wed, 15 May 2019 12:10:13 +0000 (12:10 +0000)]
Auto merge of #60832 - petrochenkov:CLazy, r=Mark-Simulacrum

CMake: Do not print installation messages for up-to-date files

Closes https://github.com/rust-lang/rust/issues/60830

5 years agoAdd test to ensure const-prop fails gracefully
Wesley Wiser [Wed, 15 May 2019 10:06:33 +0000 (06:06 -0400)]
Add test to ensure const-prop fails gracefully

5 years agoRun const propagation at O2
Wesley Wiser [Wed, 8 May 2019 10:42:41 +0000 (06:42 -0400)]
Run const propagation at O2

5 years agoAdd some tests for constant propagation
Wesley Wiser [Sat, 4 May 2019 01:58:16 +0000 (21:58 -0400)]
Add some tests for constant propagation

The results aren't ideal but they represent the current state.

5 years agoDo some simple constant propagation in the ConstProp pass
Wesley Wiser [Mon, 29 Apr 2019 01:58:40 +0000 (21:58 -0400)]
Do some simple constant propagation in the ConstProp pass

5 years agoAuto merge of #60831 - alexcrichton:update-llvm-project, r=nikic
bors [Wed, 15 May 2019 07:23:21 +0000 (07:23 +0000)]
Auto merge of #60831 - alexcrichton:update-llvm-project, r=nikic

Update LLVM to fix assertion when compiling to wasm

More details can be found in #60540!

Closes #60540

5 years agoAuto merge of #60775 - hellow554:no_bitrig, r=joshtriplett
bors [Wed, 15 May 2019 04:34:14 +0000 (04:34 +0000)]
Auto merge of #60775 - hellow554:no_bitrig, r=joshtriplett

Remove bitrig support from rust

Resolves #60743

using `find` and `rg` I delete every occurence of "bitrig" in the sources, expect for the llvm submodule (is this correct?).

There's also this file https://github.com/rust-lang/rls/blob/5b8e99bb61958ca8abcb7c5eda70521726be1065/rls-analysis/test_data/rust-analysis/libstd-af9bacceee784405.json which contains a bitrig string in it. What to do with that?

5 years agorustbuild/LLVM: Do not print installation messages for up-to-date files
Vadim Petrochenkov [Tue, 14 May 2019 18:33:22 +0000 (21:33 +0300)]
rustbuild/LLVM: Do not print installation messages for up-to-date files

5 years agoAuto merge of #60834 - Centril:rollup-fikyi9i, r=Centril
bors [Tue, 14 May 2019 20:50:26 +0000 (20:50 +0000)]
Auto merge of #60834 - Centril:rollup-fikyi9i, r=Centril

Rollup of 9 pull requests

Successful merges:

 - #60130 (Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators)
 - #60443 (as_ptr returns a read-only pointer)
 - #60444 (forego caching for all participants in cycles, apart from root node)
 - #60719 (Allow subdirectories to be tested by x.py test)
 - #60780 (fix Miri)
 - #60788 (default to $ARCH-apple-macosx10.7.0 LLVM triple for darwin targets)
 - #60799 (Allow late-bound regions in existential types)
 - #60808 (Improve the "must use" lint for `Future`)
 - #60819 (submodules: update clippy from 3710ec59 to ad3269c4)

Failed merges:

r? @ghost

5 years agoAdd link to the 1.34.0 CVE
Jonas Schievink [Tue, 14 May 2019 20:32:50 +0000 (22:32 +0200)]
Add link to the 1.34.0 CVE

5 years agoUpdated RELEASES.md for 1.35.0
Aaron Power [Sat, 4 May 2019 14:42:06 +0000 (16:42 +0200)]
Updated RELEASES.md for 1.35.0

5 years agoRollup merge of #60819 - matthiaskrgr:submodule_upd, r=oli-obk
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:26 +0000 (22:00 +0200)]
Rollup merge of #60819 - matthiaskrgr:submodule_upd, r=oli-obk

submodules: update clippy from 3710ec59 to ad3269c4

Changes:
````
Rustfmt all the things
Clippy dogfood
Update for compiletest changes
Use symbols instead of strings
Rustup to rustc 1.36.0-nightly (1764b2972 2019-05-12)
Add regression test for identity_conversion FP
UI test cleanup: Extract many_single_char_names tests
Add tests for empty_loop lint
Add in_macro again
Rename in_macro to in_macro_or_desugar
````
r? @oli-obk

5 years agoRollup merge of #60808 - Schultzer:improve-must-use-linit-for-future, r=Centril
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:24 +0000 (22:00 +0200)]
Rollup merge of #60808 - Schultzer:improve-must-use-linit-for-future, r=Centril

Improve the "must use" lint for `Future`

Fixes #60797

5 years agoRollup merge of #60799 - matthewjasper:allow-bound-regions-in-existential-types,...
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:22 +0000 (22:00 +0200)]
Rollup merge of #60799 - matthewjasper:allow-bound-regions-in-existential-types, r=oli-obk

Allow late-bound regions in existential types

closes #60655
r? @oli-obk

5 years agoRollup merge of #60788 - froydnj:apple-target-modifications-followup, r=estebank
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:20 +0000 (22:00 +0200)]
Rollup merge of #60788 - froydnj:apple-target-modifications-followup, r=estebank

default to $ARCH-apple-macosx10.7.0 LLVM triple for darwin targets

Over in #60378, we made `rustc` switch LLVM target triples dynamically
based on the `MACOSX_DEPLOYMENT_TARGET` environment variable.  This
change was made to align with `clang`'s behavior, and therefore make
cross-language LTO feasible on OS X.  Otherwise, `rustc` would produce
LLVM bitcode files with a target triple of `x86_64-apple-darwin`,
`clang` would produce LLVM bitcode files with a target triple of
`x86_64-apple-macosx$VERSION`, and the linker would complain.

This change worked fine, except for one corner case: if you didn't have
`MACOSX_DEPLOYMENT_TARGET` set, and you wanted to do LTO on just Rust
code, you'd get warning messages similar to:

```
warning: Linking two modules of different target triples: ' is 'x86_64-apple-macosx10.7.0' whereas 'main.7rcbfp3g-cgu.4' is 'x86_64-apple-darwin'
```

This message occurs because libstd is compiled with
`MACOSX_DEPLOYMENT_TARGET` set to 10.7.  The LLVM bitcode distributed in
libstd's rlibs, then, is tagged with the target triple of
`x86_64-apple-macosx10.7.0`, while the bitcode `rustc` produces for
"user" code is tagged with the target triple of `x86_64-apple-darwin`.

It's not good to have LTO on just Rust code (probably much more common
than cross-language LTO) warn by default.  These warnings also break
Cargo's testsuite.

This change defaults to acting as though `MACOSX_DEPLOYMENT_TARGET` was
set to 10.7.  "user" code will then be given a target triple that is
equivalent to the target triple libstd bitcode is already using.  The
above warning will therefore go away.

`rustc` already assumes that compiling without
`MACOSX_DEPLOYMENT_TARGET` means that we're compiling for a target
compatible with OS X 10.7 (e.g. that things like TLS work properly).  So
this change is really just making things conform more closely to the
status quo.

(It's also worth noting that before and after this patch, compiling with
`MACOSX_DEPLOYMENT_TARGET` set to, say, 10.9, works just fine: target
triples with an "apple" version ignore OS versions when checking
compatibility, so bitcode with a `x86_64-apple-macosx10.7.0` triple works just
fine with bitcode with a `x86_64-apple-macosx10.9.0` triple.)

5 years agoRollup merge of #60780 - RalfJung:miri, r=oli-obk
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:19 +0000 (22:00 +0200)]
Rollup merge of #60780 - RalfJung:miri, r=oli-obk

fix Miri

This reverts https://github.com/rust-lang/rust/pull/60156, which turned out to be a dead end (see https://github.com/rust-lang/rust/pull/60469).

r? @oli-obk

5 years agoRollup merge of #60719 - varkor:xpy-test-folder, r=Mark-Simulacrum
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:16 +0000 (22:00 +0200)]
Rollup merge of #60719 - varkor:xpy-test-folder, r=Mark-Simulacrum

Allow subdirectories to be tested by x.py test

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

As far as I can tell, multiple `--test-args` flags are ignored (only the first is respected), so if you specify a subdirectory, you won't also be able to filter using `--test-args`. If you don't specify a subdirectory, `--test-args` will continue working as usual, so this is strictly an improvement on the current state of affairs.

5 years agoRollup merge of #60444 - nikomatsakis:issue-60010-cycle-error-investigation, r=pnkfelix
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:13 +0000 (22:00 +0200)]
Rollup merge of #60444 - nikomatsakis:issue-60010-cycle-error-investigation, r=pnkfelix

forego caching for all participants in cycles, apart from root node

This is a targeted fix for #60010, which uncovered a pretty bad failure of our caching strategy in the face of coinductive cycles. The problem is explained in the comment in the PR on the new field, `in_cycle`, but I'll reproduce it here:

> Starts out as false -- if, during evaluation, we encounter a
> cycle, then we will set this flag to true for all participants
> in the cycle (apart from the "head" node). These participants
> will then forego caching their results. This is not the most
> efficient solution, but it addresses #60010. The problem we
> are trying to prevent:
>
> - If you have `A: AutoTrait` requires `B: AutoTrait` and `C: NonAutoTrait`
> - `B: AutoTrait` requires `A: AutoTrait` (coinductive cycle, ok)
> - `C: NonAutoTrait` requires `A: AutoTrait` (non-coinductive cycle, not ok)
>
> you don't want to cache that `B: AutoTrait` or `A: AutoTrait`
> is `EvaluatedToOk`; this is because they were only considered
> ok on the premise that if `A: AutoTrait` held, but we indeed
> encountered a problem (later on) with `A: AutoTrait. So we
> currently set a flag on the stack node for `B: AutoTrait` (as
> well as the second instance of `A: AutoTrait`) to supress
> caching.
>
> This is a simple, targeted fix. The correct fix requires
> deeper changes, but would permit more caching: we could
> basically defer caching until we have fully evaluated the
> tree, and then cache the entire tree at once.

I'm not sure what the impact of this fix will be in terms of existing crates or performance: we were accepting incorrect code before, so there will perhaps be some regressions, and we are now caching less.

As the comment above notes, we could do a lot better than this fix, but that would involve more invasive rewrites. I thought it best to start with something simple.

r? @pnkfelix -- but let's do crater/perf run
cc @arielb1

5 years agoRollup merge of #60443 - RalfJung:as_ptr, r=SimonSapin
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:11 +0000 (22:00 +0200)]
Rollup merge of #60443 - RalfJung:as_ptr, r=SimonSapin

as_ptr returns a read-only pointer

Add comments to `as_ptr` methods to warn that these are read-only pointers, and writing to them is UB.

[It was pointed out](https://internals.rust-lang.org/t/as-ptr-vs-as-mut-ptr/9940) that `CStr` does not even have an `as_mut_ptr`. I originally was going to add one, but there is no method at all that would mutate a `CStr`. Was that a deliberate choice or should I add an `as_mut_ptr` (similar to [what I did for `str`](https://github.com/rust-lang/rust/pull/58200))?

5 years agoRollup merge of #60130 - khuey:efficient_last, r=sfackler
Mazdak Farrokhzad [Tue, 14 May 2019 20:00:09 +0000 (22:00 +0200)]
Rollup merge of #60130 - khuey:efficient_last, r=sfackler

Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators

Provided a `DoubleEndedIterator` has finite length, `Iterator::last` is equivalent to `DoubleEndedIterator::next_back`. But searching forwards through the iterator when it's unnecessary is obviously not good for performance. I ran into this on one of the collection iterators.

I tried adding appropriate overloads for a bunch of the iterator adapters like filter, map, etc, but I ran into a lot of type inference failures after doing so.

The other interesting case is what to do with `Repeat`. Do we consider it part of the contract that `Iterator::last` will loop forever on it? The docs do say that the iterator will be evaluated until it returns None. This is also relevant for the adapters, it's trivially easy to observe whether a `Map` adapter invoked its closure a zillion times or just once for the last element.

5 years agoUpdate LLVM to fix assertion when compiling to wasm
Alex Crichton [Tue, 14 May 2019 17:55:55 +0000 (10:55 -0700)]
Update LLVM to fix assertion when compiling to wasm

More details can be found in #60540!

Closes #60540

5 years agoAuto merge of #60787 - alexcrichton:error-type-id-destabilize-master, r=pietroalbini
bors [Tue, 14 May 2019 15:58:33 +0000 (15:58 +0000)]
Auto merge of #60787 - alexcrichton:error-type-id-destabilize-master, r=pietroalbini

Destabilize the `Error::type_id` function

This commit destabilizes the `Error::type_id` function in the standard library.
This does so by effectively reverting #58048, restoring the `#[unstable]`
attribute. The security mailing list has recently been notified of a
vulnerability relating to the stabilization of this function. First stabilized
in Rust 1.34.0, a stable function here allows users to implement a custom
return value for this function:

    struct MyType;

    impl Error for MyType {
fn type_id(&self) -> TypeId {
    // Enable safe casting to `String` by accident.
    TypeId::of::<String>()
}
    }

This, when combined with the `Error::downcast` family of functions, allows
safely casting a type to any other type, clearly a memory safety issue! A
formal announcement has been made to the [security mailing list](https://groups.google.com/forum/#!topic/rustlang-security-announcements/aZabeCMUv70) as well as [the blog](https://blog.rust-lang.org/2019/05/13/Security-advisory.html)

This commit simply destabilizes the `Error::type_id` which, although breaking
for users since Rust 1.34.0, is hoped to have little impact and has been deemed
sufficient to mitigate this issue for the stable channel. The long-term fate of
the `Error::type_id` API will be discussed at #60784.

5 years agoremoves `AbiMethods`
Saleem Jaffer [Tue, 14 May 2019 15:53:01 +0000 (21:23 +0530)]
removes `AbiMethods`

5 years agorefactor complete
Saleem Jaffer [Tue, 14 May 2019 09:50:29 +0000 (15:20 +0530)]
refactor complete

5 years agosubmodules: update clippy from 3710ec59 to ad3269c4
Matthias Krüger [Tue, 14 May 2019 09:36:31 +0000 (11:36 +0200)]
submodules: update clippy from 3710ec59 to ad3269c4

Changes:
````
Rustfmt all the things
Clippy dogfood
Update for compiletest changes
Use symbols instead of strings
Rustup to rustc 1.36.0-nightly (1764b2972 2019-05-12)
Add regression test for identity_conversion FP
UI test cleanup: Extract many_single_char_names tests
Add tests for empty_loop lint
Add in_macro again
Rename in_macro to in_macro_or_desugar
````

5 years agosome more refactor of FnType. Things build now
Saleem Jaffer [Tue, 14 May 2019 08:44:12 +0000 (14:14 +0530)]
some more refactor of FnType. Things build now