]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoTranslate CRLF -> LF in raw (byte) strings
Igor Matuszewski [Sat, 8 Jun 2019 22:33:21 +0000 (00:33 +0200)]
Translate CRLF -> LF in raw (byte) strings

5 years agoProhibit bare CRs in raw byte strings
Igor Matuszewski [Mon, 13 May 2019 18:21:44 +0000 (20:21 +0200)]
Prohibit bare CRs in raw byte strings

5 years agoValidate and transcribe raw strings via unescape module
Igor Matuszewski [Mon, 13 May 2019 17:52:55 +0000 (19:52 +0200)]
Validate and transcribe raw strings via unescape module

5 years agoRemove redundant, commented out code
Igor Matuszewski [Mon, 13 May 2019 10:07:43 +0000 (12:07 +0200)]
Remove redundant, commented out code

It was commented out as part of
https://github.com/rust-lang/rust/commit/8a8e497ae786ffc032c1e68fc23da0edcf6fa5e3.
Done probably by accident, since the code in question was moved to a
match arm, along with newly introduced logic to detect bare CRs in raw
strings.

5 years agoSeparate a `scan_raw_string` (similar `raw_byte` variant)
Igor Matuszewski [Mon, 13 May 2019 09:42:12 +0000 (11:42 +0200)]
Separate a `scan_raw_string` (similar `raw_byte` variant)

5 years agoClean up minor bits
Igor Matuszewski [Mon, 13 May 2019 09:41:24 +0000 (11:41 +0200)]
Clean up minor bits

5 years agoAuto merge of #61209 - matthewjasper:const-tuple-constructors, r=oli-obk
bors [Fri, 7 Jun 2019 09:41:06 +0000 (09:41 +0000)]
Auto merge of #61209 - matthewjasper:const-tuple-constructors, r=oli-obk

Make tuple constructors real const fns

Mir construction special cases `Ctor(...)` to be lowered as `Ctor { 0: ... }`, which means this doesn't come up much in practice, but it seems inconsistent not to allow this.

r? @oli-obk

5 years agoAuto merge of #61541 - petrochenkov:tsp, r=oli-obk
bors [Fri, 7 Jun 2019 06:52:09 +0000 (06:52 +0000)]
Auto merge of #61541 - petrochenkov:tsp, r=oli-obk

syntax: Keep token span as a part of `Token`

In the world with proc macros and edition hygiene `Token` without a span is not self-contained.
In practice this means that tokens and spans are always stored and passed somewhere along with each other.
This PR combines them into a single struct by doing the next renaming/replacement:

- `Token` -> `TokenKind`
- `TokenAndSpan` -> `Token`
- `(Token, Span)` -> `Token`

Some later commits (https://github.com/rust-lang/rust/commit/fb6e2fe8fd6caed247857758c6c3549fe2b59527 and https://github.com/rust-lang/rust/commit/1cdee86940db892cd17239c26add5364335e895a) remove duplicate spans in `token::Ident` and `token::Lifetime`.
Those spans were supposed to be identical to token spans, but could easily go out of sync, as was noticed in https://github.com/rust-lang/rust/pull/60965#discussion_r285398523.
The `(Token, Span)` -> `Token` change is a soft pre-requisite for this de-duplication since it allows to avoid some larger churn (passing spans to most of functions classifying identifiers).

5 years agoAuto merge of #61408 - varkor:fmin-fmax-llvm-intrinsics, r=alexcrichton
bors [Fri, 7 Jun 2019 01:42:15 +0000 (01:42 +0000)]
Auto merge of #61408 - varkor:fmin-fmax-llvm-intrinsics, r=alexcrichton

Use LLVM intrinsics for floating-point min/max

Resurrection of https://github.com/rust-lang/rust/pull/46926, now that the optimisation issues are fixed. I've confirmed locally that https://github.com/rust-lang/rust/pull/61384 solves the issues.

I'm not sure if we're allowed to move the `min`/`max` methods from libcore to libstd: I can't quite tell what the status is from https://github.com/rust-lang/rust/issues/50145. However, this is necessary to use the intrinsics.

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

r? @SimonSapin
cc @rkruppe @nikic

5 years agoAuto merge of #61601 - Centril:rollup-uegbsns, r=Centril
bors [Thu, 6 Jun 2019 20:46:15 +0000 (20:46 +0000)]
Auto merge of #61601 - Centril:rollup-uegbsns, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #61376 (Add Bound::cloned())
 - #61554 (Change visit api)
 - #61559 (Make visitors iterate)
 - #61585 (Update .mailmap with my name)
 - #61591 (Update .mailmap)

Failed merges:

r? @ghost

5 years agoRollup merge of #61591 - christianpoveda:patch-1, r=jonas-schievink
Mazdak Farrokhzad [Thu, 6 Jun 2019 20:39:14 +0000 (22:39 +0200)]
Rollup merge of #61591 - christianpoveda:patch-1, r=jonas-schievink

Update .mailmap

5 years agoRollup merge of #61585 - lnicola:mailmap, r=Mark-Simulacrum
Mazdak Farrokhzad [Thu, 6 Jun 2019 20:39:13 +0000 (22:39 +0200)]
Rollup merge of #61585 - lnicola:mailmap, r=Mark-Simulacrum

Update .mailmap with my name

5 years agoRollup merge of #61559 - spastorino:make-visitors-iterate, r=oli-obk
Mazdak Farrokhzad [Thu, 6 Jun 2019 20:39:12 +0000 (22:39 +0200)]
Rollup merge of #61559 - spastorino:make-visitors-iterate, r=oli-obk

Make visitors iterate

r? @oli-obk

The second commit is not completely equivalent, unsure if the code is wrong or not. Tests pass though, otherwise we would need to iterate in the opposite direction as it happened in other parts of the code.

5 years agoRollup merge of #61554 - spastorino:change_visit_api, r=oli-obk
Mazdak Farrokhzad [Thu, 6 Jun 2019 20:39:10 +0000 (22:39 +0200)]
Rollup merge of #61554 - spastorino:change_visit_api, r=oli-obk

Change visit api

r? @oli-obk

In the [first commit](https://github.com/rust-lang/rust/commit/37386d366a816bc2e63749c7b6045108a6167135) of this PR, I'm changing `visit_place` to be the function that traverses the `Place` and have only that responsibility. Then there are two other functions `visit_place_base` and `visit_projection` which are the ones in charge of visiting the base and the projection. Visitor implementors can implement any of those.

In the [second commit](https://github.com/rust-lang/rust/commit/e786f631b815d171051279e0d6cfe055c75bec2e) we can already see some things that confuses me, which I think this division will make more clear. The old code, first checked if the place was a base, did something with it and then called `super_place` [here](https://github.com/rust-lang/rust/commit/e786f631b815d171051279e0d6cfe055c75bec2e#diff-d583e4efe1a72516e274158e53223633L678). `super_place` checks again if it's a base [here](https://github.com/rust-lang/rust/blob/master/src/librustc/mir/visit.rs#L679-L684) and in case is a local, visits the local and stuff like that. That's not very obvious on the code, and if I'm not wrong it's not needed. In this PR or we have [this](https://github.com/rust-lang/rust/commit/e786f631b815d171051279e0d6cfe055c75bec2e#diff-d583e4efe1a72516e274158e53223633R673) as I did or we can just do `- => self.super_place_base(...)` and that will be obvious that I'm letting the default implementation process the base.

5 years agoRollup merge of #61376 - czipperz:bound-cloned, r=sfackler
Mazdak Farrokhzad [Thu, 6 Jun 2019 20:39:09 +0000 (22:39 +0200)]
Rollup merge of #61376 - czipperz:bound-cloned, r=sfackler

Add Bound::cloned()

Suggested by #61356

5 years agoAdd intrinsics for floating-point min and max
varkor [Thu, 6 Jun 2019 20:27:23 +0000 (21:27 +0100)]
Add intrinsics for floating-point min and max

5 years agoUpdate compiler_builtins
varkor [Thu, 6 Jun 2019 20:27:07 +0000 (21:27 +0100)]
Update compiler_builtins

5 years agoUpdate .mailmap
Christian Poveda [Thu, 6 Jun 2019 16:52:07 +0000 (11:52 -0500)]
Update .mailmap

5 years agoMake sure constructors functions are type checked correctly
Matthew Jasper [Sun, 26 May 2019 09:43:30 +0000 (10:43 +0100)]
Make sure constructors functions are type checked correctly

5 years agoMake constructors actually be const functions
Matthew Jasper [Sun, 26 May 2019 08:58:06 +0000 (09:58 +0100)]
Make constructors actually be const functions

5 years agoDon't run MIR passes on constructor shims
Matthew Jasper [Sun, 26 May 2019 08:55:50 +0000 (09:55 +0100)]
Don't run MIR passes on constructor shims

5 years agoUpdate .mailmap with my name
Laurențiu Nicola [Thu, 6 Jun 2019 13:37:23 +0000 (16:37 +0300)]
Update .mailmap with my name

5 years agoAuto merge of #61583 - Centril:rollup-ug2cbfd, r=Centril
bors [Thu, 6 Jun 2019 12:13:54 +0000 (12:13 +0000)]
Auto merge of #61583 - Centril:rollup-ug2cbfd, r=Centril

Rollup of 4 pull requests

Successful merges:

 - #61556 (librustc_errors: Rename AnnotateRs -> AnnotateSnippet)
 - #61557 (rustbuild: Include `rustfmt` in deduplicated dependencies)
 - #61571 (Escape HashMap with backticks in needs_drop docs)
 - #61582 (submodules: update clippy from 20da8f45 to 71be6f62)

Failed merges:

r? @ghost

5 years agoRollup merge of #61582 - matthiaskrgr:submodule_upd, r=oli-obk
Mazdak Farrokhzad [Thu, 6 Jun 2019 11:19:28 +0000 (13:19 +0200)]
Rollup merge of #61582 - matthiaskrgr:submodule_upd, r=oli-obk

submodules: update clippy from 20da8f45 to 71be6f62

Changes:
````
rustup https://github.com/rust-lang/rust/pull/57428/
Remove `to_string()`s from CompilerLintFunctions
Fix comment grammar
Fix .map(..).unwrap_or_else(..) bad suggestion
add suggestions for print/write with newline lint
````
Fixes https://github.com/rust-lang/rust/issues/61578
r? @oli-obk

5 years agoRollup merge of #61571 - czipperz:needs_drop-doc-escape-HashMap, r=Mark-Simulacrum
Mazdak Farrokhzad [Thu, 6 Jun 2019 11:19:26 +0000 (13:19 +0200)]
Rollup merge of #61571 - czipperz:needs_drop-doc-escape-HashMap, r=Mark-Simulacrum

Escape HashMap with backticks in needs_drop docs

5 years agoRollup merge of #61557 - alexcrichton:build-less, r=pietroalbini
Mazdak Farrokhzad [Thu, 6 Jun 2019 11:19:25 +0000 (13:19 +0200)]
Rollup merge of #61557 - alexcrichton:build-less, r=pietroalbini

rustbuild: Include `rustfmt` in deduplicated dependencies

Currently `rustfmt` is excluded from the "don't build dependencies
twice" check but it's currently building dependencies twice! Namely big
dependencies like `rustc-ap-syntax` are built once for rustfmt and once
for the RLS. This commit includes `rustfmt` in these checks and then
fixes the resulting feature mismatches for winapi.

5 years agoRollup merge of #61556 - phansch:emitter_cleanup, r=estebank
Mazdak Farrokhzad [Thu, 6 Jun 2019 11:19:23 +0000 (13:19 +0200)]
Rollup merge of #61556 - phansch:emitter_cleanup, r=estebank

librustc_errors: Rename AnnotateRs -> AnnotateSnippet

The proper name of the library is `annotate-snippet`, not `annotate-rs`,
this PR should get rid of any confusing `AnnotateRs` names.

1. Renames `annotate_rs_emitter.rs` to
   `annotate_snippet_emitter_writer.rs` so that the difference between the
   `Emitter` trait and the implementers is more clear.
2. Renames `AnnotateRsEmitterWriter` to `AnnotateSnippetEmitterWriter`
3. Renames `HumanReadableErrorType::AnnotateRs` to `HumanReadableErrorType::AnnotateSnippet`

5 years agoAddress review comments
Vadim Petrochenkov [Wed, 5 Jun 2019 19:04:52 +0000 (22:04 +0300)]
Address review comments

5 years agoSome code cleanup and tidy/test fixes
Vadim Petrochenkov [Wed, 5 Jun 2019 11:17:56 +0000 (14:17 +0300)]
Some code cleanup and tidy/test fixes

5 years agosyntax: Use `Token` in visitors and fix a mut visitor test
Vadim Petrochenkov [Wed, 5 Jun 2019 10:54:54 +0000 (13:54 +0300)]
syntax: Use `Token` in visitors and fix a mut visitor test

5 years agosyntax: Switch function parameter order in `TokenTree::token`
Vadim Petrochenkov [Wed, 5 Jun 2019 10:25:26 +0000 (13:25 +0300)]
syntax: Switch function parameter order in `TokenTree::token`

5 years agosyntax: Use `Token` in some more places
Vadim Petrochenkov [Wed, 5 Jun 2019 10:24:54 +0000 (13:24 +0300)]
syntax: Use `Token` in some more places

5 years agosyntax: Remove duplicate span from `token::Ident`
Vadim Petrochenkov [Wed, 5 Jun 2019 08:56:06 +0000 (11:56 +0300)]
syntax: Remove duplicate span from `token::Ident`

5 years agosyntax: Remove duplicate span from `token::Lifetime`
Vadim Petrochenkov [Wed, 5 Jun 2019 08:00:22 +0000 (11:00 +0300)]
syntax: Remove duplicate span from `token::Lifetime`

5 years agosyntax: Add some helper methods to `Token`
Vadim Petrochenkov [Wed, 5 Jun 2019 06:39:34 +0000 (09:39 +0300)]
syntax: Add some helper methods to `Token`

5 years agosyntax: Use `Token` in `Parser`
Vadim Petrochenkov [Tue, 4 Jun 2019 22:17:07 +0000 (01:17 +0300)]
syntax: Use `Token` in `Parser`

5 years agosyntax: Use `Token` in `StringReader` and `TokenTreesReader`
Vadim Petrochenkov [Tue, 4 Jun 2019 21:02:59 +0000 (00:02 +0300)]
syntax: Use `Token` in `StringReader` and `TokenTreesReader`

5 years agosyntax: Use `Token` in `TokenTree::Token`
Vadim Petrochenkov [Tue, 4 Jun 2019 17:42:43 +0000 (20:42 +0300)]
syntax: Use `Token` in `TokenTree::Token`

5 years agosyntax: Rename `TokenAndSpan` into `Token`
Vadim Petrochenkov [Tue, 4 Jun 2019 15:48:40 +0000 (18:48 +0300)]
syntax: Rename `TokenAndSpan` into `Token`

5 years agosyntax: Rename `Token` into `TokenKind`
Vadim Petrochenkov [Tue, 4 Jun 2019 14:55:23 +0000 (17:55 +0300)]
syntax: Rename `Token` into `TokenKind`

5 years agoAlways use token kinds through `token` module rather than `Token` type
Vadim Petrochenkov [Thu, 23 May 2019 23:04:56 +0000 (02:04 +0300)]
Always use token kinds through `token` module rather than `Token` type

5 years agosubmodules: update clippy from 20da8f45 to 71be6f62
Matthias Krüger [Thu, 6 Jun 2019 10:56:26 +0000 (12:56 +0200)]
submodules: update clippy from 20da8f45 to 71be6f62

Changes:
````
rustup https://github.com/rust-lang/rust/pull/57428/
Remove `to_string()`s from CompilerLintFunctions
Fix comment grammar
Fix .map(..).unwrap_or_else(..) bad suggestion
add suggestions for print/write with newline lint
````

5 years agoImplement only visit_place_base for monomorphize/collector
Santiago Pastorino [Wed, 5 Jun 2019 18:09:26 +0000 (20:09 +0200)]
Implement only visit_place_base for monomorphize/collector

5 years agoMake visit_place traverse place and have visit_place_base and visit_projection doing...
Santiago Pastorino [Wed, 5 Jun 2019 17:56:11 +0000 (19:56 +0200)]
Make visit_place traverse place and have visit_place_base and visit_projection doing the real work

5 years agoAuto merge of #61494 - Mark-Simulacrum:move-to-cfg-bootstrap, r=alexcrichton
bors [Thu, 6 Jun 2019 09:27:47 +0000 (09:27 +0000)]
Auto merge of #61494 - Mark-Simulacrum:move-to-cfg-bootstrap, r=alexcrichton

Utilize cfg(bootstrap) over cfg(stage0)

Also removes stage1, stage2 cfgs being passed to rustc to ensure that
stage1 and stage2 are only differentiated as a group (i.e., only through
not bootstrap).

Fixes #53582

r? @alexcrichton

5 years agoAuto merge of #61373 - tmandry:emit-storagedead-along-unwind, r=eddyb
bors [Thu, 6 Jun 2019 06:36:12 +0000 (06:36 +0000)]
Auto merge of #61373 - tmandry:emit-storagedead-along-unwind, r=eddyb

Emit StorageDead along unwind paths for generators

Completion of the work done in #60840. That PR made a change to implicitly consider a local `StorageDead` after Drop, but that was incorrect for DropAndReplace (see also #61060 which tried to fix this in a different way).

This finally enables the optimization implemented in #60187.

r? @eddyb
cc @Zoxc @cramertj @RalfJung

5 years agoRemove dereference
Chris Gregory [Thu, 6 Jun 2019 04:23:45 +0000 (21:23 -0700)]
Remove dereference

Co-Authored-By: Steven Fackler <sfackler@gmail.com>
5 years agoTake self by value (Self is Copy here)
Chris Gregory [Thu, 6 Jun 2019 04:11:02 +0000 (21:11 -0700)]
Take self by value (Self is Copy here)

5 years agoAuto merge of #57428 - alexreg:associated_type_bounds, r=nikomatsakis,Centril
bors [Thu, 6 Jun 2019 03:56:22 +0000 (03:56 +0000)]
Auto merge of #57428 - alexreg:associated_type_bounds, r=nikomatsakis,Centril

Implementation of RFC 2289 (associated_type_bounds)

This PR implements the [`asociated_type_bounds` feature](https://github.com/rust-lang/rfcs/blob/master/text/2289-associated-type-bounds.md).

Associated type bounds are implemented in:
   - function/method arguments and return types
   - structs, enums, unions
   - associated items in traits
   - type aliases
   - type parameter defaults
   - trait objects
   - let bindings

CC @nikomatsakis @centril

5 years agoMake LocalAnalizer visitor iterate instead of recurse
Santiago Pastorino [Wed, 5 Jun 2019 19:25:09 +0000 (21:25 +0200)]
Make LocalAnalizer visitor iterate instead of recurse

5 years agoMake UnsafetyChecker visitor iterate instead of recurse
Santiago Pastorino [Wed, 5 Jun 2019 19:01:17 +0000 (21:01 +0200)]
Make UnsafetyChecker visitor iterate instead of recurse

5 years agoReblessed tests with NLL compare mode on.
Alexander Regueiro [Thu, 6 Jun 2019 02:28:53 +0000 (03:28 +0100)]
Reblessed tests with NLL compare mode on.

5 years agoEscape needs_drop in the needs_drop documentation
Chris Gregory [Thu, 6 Jun 2019 01:22:31 +0000 (18:22 -0700)]
Escape needs_drop in the needs_drop documentation

5 years agoEscape HashMap with backticks in needs_drop docs
Chris Gregory [Thu, 6 Jun 2019 01:21:17 +0000 (18:21 -0700)]
Escape HashMap with backticks in needs_drop docs

5 years agoAuto merge of #59331 - varkor:TypeVariableOrigin-refactor, r=eddyb
bors [Thu, 6 Jun 2019 01:04:14 +0000 (01:04 +0000)]
Auto merge of #59331 - varkor:TypeVariableOrigin-refactor, r=eddyb

Refactor `TypeVariableOrigin`

Removes some unused variants and extracts the common `Span` field.

As suggested in https://github.com/rust-lang/rust/pull/59008#discussion_r265031209.

r? @eddyb

5 years agoUtilize cfg(bootstrap) over cfg(stage0)
Mark Rousskov [Mon, 3 Jun 2019 17:14:45 +0000 (11:14 -0600)]
Utilize cfg(bootstrap) over cfg(stage0)

Also removes stage1, stage2 cfgs being passed to rustc to ensure that
stage1 and stage2 are only differentiated as a group (i.e., only through
not bootstrap).

5 years agoTest StorageDead statements explicitly
Tyler Mandry [Sat, 1 Jun 2019 01:49:22 +0000 (18:49 -0700)]
Test StorageDead statements explicitly

5 years agoadd an example to `create_substs_for_ast_path`
Alexander Regueiro [Wed, 5 Jun 2019 20:08:36 +0000 (21:08 +0100)]
add an example to `create_substs_for_ast_path`

5 years agoverified that skip-binder is ok
Niko Matsakis [Wed, 5 Jun 2019 19:27:19 +0000 (15:27 -0400)]
verified that skip-binder is ok

5 years agoanother comment
Niko Matsakis [Wed, 5 Jun 2019 19:20:40 +0000 (15:20 -0400)]
another comment

5 years agomore comments
Niko Matsakis [Fri, 31 May 2019 21:30:44 +0000 (17:30 -0400)]
more comments

5 years agocomment `instantiate_poly_trait_ref` and its binder behavior
Niko Matsakis [Fri, 31 May 2019 21:15:15 +0000 (17:15 -0400)]
comment `instantiate_poly_trait_ref` and its binder behavior

5 years agomake `instantiate_poly_trait_ref_inner` private to this module
Niko Matsakis [Fri, 31 May 2019 21:14:36 +0000 (17:14 -0400)]
make `instantiate_poly_trait_ref_inner` private to this module

5 years agodocument the `Bounds` struct a bit
Alexander Regueiro [Wed, 5 Jun 2019 19:57:44 +0000 (20:57 +0100)]
document the `Bounds` struct a bit

5 years agoadded a few comments
Niko Matsakis [Wed, 8 May 2019 19:58:42 +0000 (15:58 -0400)]
added a few comments

5 years agoRemoved unnecessary nested-lifetime-bounds test.
Alexander Regueiro [Sun, 2 Jun 2019 18:31:55 +0000 (19:31 +0100)]
Removed unnecessary nested-lifetime-bounds test.

5 years agoReblessed tests.
Alexander Regueiro [Mon, 20 May 2019 00:08:52 +0000 (01:08 +0100)]
Reblessed tests.

5 years agoFixed rebase fallout.
Alexander Regueiro [Sun, 19 May 2019 23:22:44 +0000 (00:22 +0100)]
Fixed rebase fallout.

5 years agoAddressed points raised in review.
Niko Matsakis [Wed, 8 May 2019 19:57:06 +0000 (15:57 -0400)]
Addressed points raised in review.

5 years agoFixed up some comments.
Alexander Regueiro [Fri, 10 May 2019 02:46:39 +0000 (03:46 +0100)]
Fixed up some comments.

5 years agoAdded some comments, made `add_bounds` private.
Niko Matsakis [Wed, 8 May 2019 19:58:20 +0000 (15:58 -0400)]
Added some comments, made `add_bounds` private.

5 years agoAdded some comments to lowering code.
Niko Matsakis [Wed, 8 May 2019 19:56:39 +0000 (15:56 -0400)]
Added some comments to lowering code.

5 years agoAddressed points raised in review.
Alexander Regueiro [Sat, 4 May 2019 15:09:28 +0000 (16:09 +0100)]
Addressed points raised in review.

5 years agoAdded test suite.
Alexander Regueiro [Sat, 16 Mar 2019 00:03:51 +0000 (00:03 +0000)]
Added test suite.

5 years agoAdded feature gate.
Alexander Regueiro [Thu, 21 Mar 2019 18:40:00 +0000 (18:40 +0000)]
Added feature gate.

5 years agoUse both existential-type desugaring and where-clause (predicate) desugaring dependin...
Alexander Regueiro [Thu, 21 Mar 2019 17:55:09 +0000 (17:55 +0000)]
Use both existential-type desugaring and where-clause (predicate) desugaring depending on context.

5 years agoImplemented for traits (associated type definitions).
Alexander Regueiro [Sat, 16 Mar 2019 00:04:02 +0000 (00:04 +0000)]
Implemented for traits (associated type definitions).

5 years agoImplemented for function bounds, type bounds, and named existential types.
Alexander Regueiro [Thu, 28 Feb 2019 22:43:53 +0000 (22:43 +0000)]
Implemented for function bounds, type bounds, and named existential types.

5 years agoEnabled `Self` in type aliases.
Alexander Regueiro [Sun, 17 Mar 2019 15:26:01 +0000 (15:26 +0000)]
Enabled `Self` in type aliases.

5 years agoAggregation of drive-by cosmetic changes.
Alexander Regueiro [Thu, 28 Feb 2019 22:43:53 +0000 (22:43 +0000)]
Aggregation of drive-by cosmetic changes.

5 years agolibrustc_errors: Rename AnnotateRs -> AnnotateSnippet
Philipp Hansch [Wed, 5 Jun 2019 19:13:56 +0000 (21:13 +0200)]
librustc_errors: Rename AnnotateRs -> AnnotateSnippet

The proper name of the library is `annotate-snippet`, not `annotate-rs`,
this commit should get rid of any confusing `AnnotateRs` names.

1. Renames `annotate_rs_emitter.rs` to
   `annotate_snippet_emitter_writer.rs` so that the difference between the
   `Emitter` trait and the implementers is more clear.
2. Renames `AnnotateRsEmitterWriter` to `AnnotateSnippetEmitterWriter`
3. Renames `HumanReadableErrorType::AnnotateRs` to `HumanReadableErrorType::AnnotateSnippet`

5 years agorustbuild: Include `rustfmt` in deduplicated dependencies
Alex Crichton [Wed, 5 Jun 2019 19:38:05 +0000 (12:38 -0700)]
rustbuild: Include `rustfmt` in deduplicated dependencies

Currently `rustfmt` is excluded from the "don't build dependencies
twice" check but it's currently building dependencies twice! Namely big
dependencies like `rustc-ap-syntax` are built once for rustfmt and once
for the RLS. This commit includes `rustfmt` in these checks and then
fixes the resulting feature mismatches for winapi.

5 years agoAuto merge of #61548 - Centril:rollup-5t6cvbk, r=Centril
bors [Wed, 5 Jun 2019 18:29:39 +0000 (18:29 +0000)]
Auto merge of #61548 - Centril:rollup-5t6cvbk, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #61503 (Fix cfg(test) build for x86_64-fortanix-unknown-sgx)
 - #61534 (Edit docs of ExitStatus)
 - #61536 (Don't allow using const fn arguments as "args_required_const")
 - #61538 (Don't use GNU noexec stack note)
 - #61546 (azure: Fix some minor issues which have broken our configuration )

Failed merges:

r? @ghost

5 years agoFix after rebase
varkor [Wed, 5 Jun 2019 16:19:01 +0000 (17:19 +0100)]
Fix after rebase

5 years agoRefactor `ConstVariableOrigin` into `ConstVariableOrigin` and `ConstVariableOriginKind`
varkor [Fri, 31 May 2019 21:52:35 +0000 (22:52 +0100)]
Refactor `ConstVariableOrigin` into `ConstVariableOrigin` and `ConstVariableOriginKind`

5 years agoRefactor `TypeVariableOrigin` into `TypeVariableOrigin` and `TypeVariableOriginKind`
varkor [Thu, 21 Mar 2019 00:00:24 +0000 (00:00 +0000)]
Refactor `TypeVariableOrigin` into `TypeVariableOrigin` and `TypeVariableOriginKind`

5 years agoRemove unused `TypeVariableOrigin` variants
varkor [Thu, 21 Mar 2019 00:00:06 +0000 (00:00 +0000)]
Remove unused `TypeVariableOrigin` variants

5 years agoRollup merge of #61546 - alexcrichton:fix-azure, r=pietroalbini
Mazdak Farrokhzad [Wed, 5 Jun 2019 15:43:34 +0000 (17:43 +0200)]
Rollup merge of #61546 - alexcrichton:fix-azure, r=pietroalbini

azure: Fix some minor issues which have broken our configuration

* Ensure that when we enable IPv6 for Docker on Linux that the various directories before writing a config file
* Delete a previously installed rustup if any since it seems to interfere with Cargo's test suite.

5 years agoRollup merge of #61538 - coypoop:patch-1, r=alexcrichton
Mazdak Farrokhzad [Wed, 5 Jun 2019 15:43:33 +0000 (17:43 +0200)]
Rollup merge of #61538 - coypoop:patch-1, r=alexcrichton

Don't use GNU noexec stack note

NetBSD ignores this note and marks the stack no-exec unconditionally

5 years agoRollup merge of #61536 - oli-obk:args_required_const_in_const_fn, r=eddyb
Mazdak Farrokhzad [Wed, 5 Jun 2019 15:43:31 +0000 (17:43 +0200)]
Rollup merge of #61536 - oli-obk:args_required_const_in_const_fn, r=eddyb

Don't allow using const fn arguments as "args_required_const"

r? @eddyb

5 years agoRollup merge of #61534 - ReinierMaas:patch-1, r=Centril
Mazdak Farrokhzad [Wed, 5 Jun 2019 15:43:30 +0000 (17:43 +0200)]
Rollup merge of #61534 - ReinierMaas:patch-1, r=Centril

Edit docs of ExitStatus

The documentation of [`ExitStatus`] are extended to be at the same depth as [`Output`].

5 years agoRollup merge of #61503 - jethrogb:jb/fix-sgx-test, r=alexcrichton
Mazdak Farrokhzad [Wed, 5 Jun 2019 15:43:28 +0000 (17:43 +0200)]
Rollup merge of #61503 - jethrogb:jb/fix-sgx-test, r=alexcrichton

Fix cfg(test) build for x86_64-fortanix-unknown-sgx

5 years agoAuto merge of #61498 - TankhouseAle:const-fn-type-name, r=oli-obk
bors [Wed, 5 Jun 2019 15:40:16 +0000 (15:40 +0000)]
Auto merge of #61498 - TankhouseAle:const-fn-type-name, r=oli-obk

Add "type_name" support in emulate_intrinsic()

I did some dumb Git things and deleted my original fork repo semi-accidentally (but probably for the best as I'd messed up the history.)

This is the same issue as #61399, which was obviously auto-closed, to be clear.

5 years agoazure: Uninstall previous rustc from builders if any
Alex Crichton [Wed, 5 Jun 2019 14:36:19 +0000 (07:36 -0700)]
azure: Uninstall previous rustc from builders if any

Looks like Azure has updated images recently to install Rust by default,
but that can interfere with our own compiler (for example Cargo's test
suite we think) so be sure to uninstall it before proceeding.

5 years agoazure: Make sure docker directory exists
Alex Crichton [Tue, 4 Jun 2019 14:30:33 +0000 (07:30 -0700)]
azure: Make sure docker directory exists

Looks like the Azure image changed recently so let's account for that!

5 years agoAuto merge of #61484 - nnethercote:avoid-more-hygiene-lookups, r=petrochenkov
bors [Wed, 5 Jun 2019 12:46:15 +0000 (12:46 +0000)]
Auto merge of #61484 - nnethercote:avoid-more-hygiene-lookups, r=petrochenkov

Avoid more hygiene lookups

Mostly by combining multiple `HygieneData::with` calls into a single call on hot paths.

r? @petrochenkov

5 years agoExplain the existience of the regression test
Oliver Scherer [Wed, 5 Jun 2019 11:25:17 +0000 (13:25 +0200)]
Explain the existience of the regression test

5 years agoDon't use GNU noexec stack note
coypoop [Wed, 5 Jun 2019 09:19:34 +0000 (12:19 +0300)]
Don't use GNU noexec stack note

NetBSD ignores this note and marks the stack no-exec unconditionally

5 years agoAuto merge of #61502 - alexcrichton:update-backtrace, r=estebank
bors [Wed, 5 Jun 2019 08:20:20 +0000 (08:20 +0000)]
Auto merge of #61502 - alexcrichton:update-backtrace, r=estebank

std: Update dependency on `backtrace`

Discovered in #61416 an accidental regression in libstd's backtrace
behavior is that it previously attempted to consult libbacktrace and
would then fall back to `dladdr` if libbacktrace didn't report anything.
The `backtrace` crate, however, did not do this, so that's now been
fixed!

Changes: https://github.com/rust-lang/backtrace-rs/compare/0.3.25...0.3.29

Closes #61416

5 years agoTidy: trailing whitespace
Reinier Maas [Wed, 5 Jun 2019 07:58:39 +0000 (09:58 +0200)]
Tidy: trailing whitespace

Removed trailing whitespace from documentation of ExitStatus.