]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAuto merge of #64455 - GuillaumeGomez:long-error-explanation-E0531, r=Centril
bors [Sat, 28 Sep 2019 12:06:44 +0000 (12:06 +0000)]
Auto merge of #64455 - GuillaumeGomez:long-error-explanation-E0531, r=Centril

Add Long error explanation for E0531

Part of #61137.

4 years agoAuto merge of #64864 - Centril:rollup-pxz6tw3, r=Centril
bors [Sat, 28 Sep 2019 03:38:48 +0000 (03:38 +0000)]
Auto merge of #64864 - Centril:rollup-pxz6tw3, r=Centril

Rollup of 14 pull requests

Successful merges:

 - #64703 (Docs: slice elements are equidistant)
 - #64745 (Include message on tests that should panic but do not)
 - #64781 (Remove stray references to the old global tcx)
 - #64794 (Remove unused DepTrackingMap)
 - #64802 (Account for tail expressions when pointing at return type)
 - #64809 (hir: Disallow `target_feature` on constants)
 - #64815 (Fix div_duration() marked as stable by mistake)
 - #64818 (update rtpSpawn's parameters type(It's prototype has been updated in libc))
 - #64830 (Thou shallt not `.abort_if_errors()`)
 - #64836 (Stabilize map_get_key_value feature)
 - #64845 (pin.rs: fix links to primitives in documentation)
 - #64847 (Upgrade env_logger to 0.7)
 - #64851 (Add mailmap entry for Dustin Bensing by request)
 - #64859 (check_match: improve diagnostics for `let A = 2;` with `const A: i32 = 3`)

Failed merges:

r? @ghost

4 years agoRollup merge of #64859 - Centril:const-def-here-new-var, r=estebank
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:38:00 +0000 (05:38 +0200)]
Rollup merge of #64859 - Centril:const-def-here-new-var, r=estebank

check_match: improve diagnostics for `let A = 2;` with `const A: i32 = 3`

For example:

```
error[E0005]: refutable pattern in local binding: `std::i32::MIN..=1i32` and `3i32..=std::i32::MAX` not covered
  --> $DIR/const-pat-non-exaustive-let-new-var.rs:2:9
   |
LL |     let A = 3;
   |         ^
   |         |
   |         interpreted as a constant pattern, not a new variable
   |         help: introduce a variable instead: `a_var`
...
LL |     const A: i32 = 2;
   |     ----------------- constant defined here
```

r? @estebank
cc @matthiaskrgr @rpjohnst

4 years agoRollup merge of #64851 - Mark-Simulacrum:mailmap-update, r=varkor
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:58 +0000 (05:37 +0200)]
Rollup merge of #64851 - Mark-Simulacrum:mailmap-update, r=varkor

Add mailmap entry for Dustin Bensing by request

This should deduplicate entries from @pythoneer between the stdarch submodule and this repo itself on thanks.rust-lang.org.

4 years agoRollup merge of #64847 - mati865:env_logger, r=alexcrichton
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:57 +0000 (05:37 +0200)]
Rollup merge of #64847 - mati865:env_logger, r=alexcrichton

Upgrade env_logger to 0.7

`./x.py test` passed locally.

4 years agoRollup merge of #64845 - rusty-snake:patch-1, r=jonas-schievink
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:56 +0000 (05:37 +0200)]
Rollup merge of #64845 - rusty-snake:patch-1, r=jonas-schievink

pin.rs: fix links to primitives in documentation

4 years agoRollup merge of #64836 - lzutao:stabilize-map_get_key_value, r=SimonSapin
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:54 +0000 (05:37 +0200)]
Rollup merge of #64836 - lzutao:stabilize-map_get_key_value, r=SimonSapin

Stabilize map_get_key_value feature

FCP done in https://github.com/rust-lang/rust/issues/49347#issuecomment-521728031
r? @SimonSapin
Closes #49347

4 years agoRollup merge of #64830 - Centril:thou-shallt-not-abort, r=estebank
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:52 +0000 (05:37 +0200)]
Rollup merge of #64830 - Centril:thou-shallt-not-abort, r=estebank

Thou shallt not `.abort_if_errors()`

r? @estebank

4 years agoRollup merge of #64818 - Wind-River:master, r=alexcrichton
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:51 +0000 (05:37 +0200)]
Rollup merge of #64818 - Wind-River:master, r=alexcrichton

update rtpSpawn's parameters type(It's prototype has been updated in libc)

r? @alexcrichton

4 years agoRollup merge of #64815 - JMS55:patch-1, r=jonas-schievink
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:49 +0000 (05:37 +0200)]
Rollup merge of #64815 - JMS55:patch-1, r=jonas-schievink

Fix div_duration() marked as stable by mistake

4 years agoRollup merge of #64809 - davidtwco:issue-64768-target-feature-const, r=varkor
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:47 +0000 (05:37 +0200)]
Rollup merge of #64809 - davidtwco:issue-64768-target-feature-const, r=varkor

hir: Disallow `target_feature` on constants

Fixes #64768.

This PR fixes an ICE when `#[target_feature]` is applied to constants by disallowing this with the same error as when `#[target_feature]` is applied to other places it shouldn't be.

I couldn't see anything in the [RFC](https://github.com/rust-lang/rfcs/blob/master/text/2045-target-feature.md) that suggested that `#[target_feature]` should be applicable to constants or any tests that suggested it should, though I might have missed something - if this is desirable in future, it remains possible to remove this error (but for the time being, I think this error is better than an ICE).

I also added some extra cases to the test for other places where `#[target_feature]` should not be permitted.

cc @gnzlbg

4 years agoRollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:46 +0000 (05:37 +0200)]
Rollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper

Account for tail expressions when pointing at return type

When there's a type mismatch we make an effort to check if it was
caused by a function's return type. This logic now makes sure to
only point at the return type if the error happens in a tail
expression.

Turn `walk_parent_nodes` method into an iterator.

CC #39968, CC #40799.

4 years agoRollup merge of #64794 - Mark-Simulacrum:rm-dep-track-map, r=estebank
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:44 +0000 (05:37 +0200)]
Rollup merge of #64794 - Mark-Simulacrum:rm-dep-track-map, r=estebank

Remove unused DepTrackingMap

Deletes some related code (MemoizationMap trait, etc.)

I believe this became unused with red/green incremental introduction, but am uncertain.

4 years agoRollup merge of #64781 - Mark-Simulacrum:no-global-tcx, r=eddyb
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:43 +0000 (05:37 +0200)]
Rollup merge of #64781 - Mark-Simulacrum:no-global-tcx, r=eddyb

Remove stray references to the old global tcx

4 years agoRollup merge of #64745 - kennethbgoodin:should-panic-msg, r=varkor
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:42 +0000 (05:37 +0200)]
Rollup merge of #64745 - kennethbgoodin:should-panic-msg, r=varkor

Include message on tests that should panic but do not

As per issue #60790 includes a message for tests marked `#[should_panic]` that do not panic as expected.

Fixes #60790.

4 years agoRollup merge of #64703 - llogiq:slices-elems-are-equidistant, r=rkruppe
Mazdak Farrokhzad [Sat, 28 Sep 2019 03:37:40 +0000 (05:37 +0200)]
Rollup merge of #64703 - llogiq:slices-elems-are-equidistant, r=rkruppe

Docs: slice elements are equidistant

Recently, someone asked why `[char]` and `str` are not interchangeable, and I explained that in a slice, the elements must be laid out equidistantly, whereas the chars in a `str` are stored compactly regardless their size. However I couldn't find this documented anywhere, so here's a small addition of this fact.

4 years agoImprove diagnostic for `let A = 0;`
Mazdak Farrokhzad [Sat, 28 Sep 2019 00:30:48 +0000 (02:30 +0200)]
Improve diagnostic for `let A = 0;`
where `A` is a constant, not a new variable.

4 years agoAuto merge of #64790 - Centril:rip-ast-borrowck, r=matthewjasper
bors [Fri, 27 Sep 2019 21:17:09 +0000 (21:17 +0000)]
Auto merge of #64790 - Centril:rip-ast-borrowck, r=matthewjasper

Rest In Peace, AST borrowck (2012-2019)

After having served us for 7 years, the AST borrow-checker is no more.

This PR starts from the commit `rm -rf librustc_ast_borrowck`, building on https://github.com/rust-lang/rust/pull/64221, and is probably best read commit by commit.

Migrate mode is not removed yet as it may be useful for NLL => polonius and it is also used for the `mutable_borrow_reservation_conflict` issue (https://github.com/rust-lang/rust/issues/59159).

r? @matthewjasper

------------------------

![ast-borrowck-rip](https://user-images.githubusercontent.com/855702/65646791-91a87600-dffc-11e9-9814-deed6b821c80.png)

4 years ago--bless --compare-mode=nll
Mazdak Farrokhzad [Fri, 27 Sep 2019 18:14:47 +0000 (20:14 +0200)]
--bless --compare-mode=nll

4 years ago-Z unpretty message: include expanded,hygiene
Mazdak Farrokhzad [Fri, 27 Sep 2019 07:02:18 +0000 (09:02 +0200)]
-Z unpretty message: include expanded,hygiene

4 years agoInline the remaining hir::Arm::top_pats_hack
Mazdak Farrokhzad [Thu, 26 Sep 2019 00:51:30 +0000 (02:51 +0200)]
Inline the remaining hir::Arm::top_pats_hack

4 years agoRemove AccessKind::Move.
Mazdak Farrokhzad [Thu, 26 Sep 2019 00:32:50 +0000 (02:32 +0200)]
Remove AccessKind::Move.

4 years agocleanup dead ast-borrowck / migrate-mode code.
Mazdak Farrokhzad [Wed, 25 Sep 2019 23:22:16 +0000 (01:22 +0200)]
cleanup dead ast-borrowck / migrate-mode code.

4 years agocleanup check_match wrt. SignalledError.
Mazdak Farrokhzad [Wed, 25 Sep 2019 22:36:41 +0000 (00:36 +0200)]
cleanup check_match wrt. SignalledError.

4 years agoRemove unpretty=flowgraph.
Mazdak Farrokhzad [Wed, 25 Sep 2019 21:18:47 +0000 (23:18 +0200)]
Remove unpretty=flowgraph.

4 years agodon't borrowck::check_crate(tcx) anymore.
Mazdak Farrokhzad [Wed, 25 Sep 2019 21:17:58 +0000 (23:17 +0200)]
don't borrowck::check_crate(tcx) anymore.

4 years agoRemove librustc_ast_borrowck from driver & interface.
Mazdak Farrokhzad [Wed, 25 Sep 2019 21:17:01 +0000 (23:17 +0200)]
Remove librustc_ast_borrowck from driver & interface.

4 years agorm -rf librustc_ast_borrowck
Mazdak Farrokhzad [Wed, 25 Sep 2019 20:41:08 +0000 (22:41 +0200)]
rm -rf librustc_ast_borrowck

4 years agoDocs: slice elements are equidistant
Andre Bogus [Mon, 23 Sep 2019 07:28:31 +0000 (09:28 +0200)]
Docs: slice elements are equidistant

4 years agoRemove shrink_to_tcx_lifetime
Mark Rousskov [Wed, 25 Sep 2019 20:40:24 +0000 (16:40 -0400)]
Remove shrink_to_tcx_lifetime

There's no longer two distinct gcx and tcx lifetimes which made this
necessary (or, at least, the code compiles -- it's possible we got
better at normalizing, but that seems unlikely).

4 years agoRemove stray uses of gcx name
Mark Rousskov [Wed, 25 Sep 2019 20:35:19 +0000 (16:35 -0400)]
Remove stray uses of gcx name

4 years agoRemove lift_to_global
Mark Rousskov [Wed, 25 Sep 2019 19:40:21 +0000 (15:40 -0400)]
Remove lift_to_global

4 years agoRemove global_tcx from TyCtxt
Mark Rousskov [Wed, 25 Sep 2019 19:36:14 +0000 (15:36 -0400)]
Remove global_tcx from TyCtxt

The non-global context was removed; there's only one context now. This
is a noop method that only serves to confuse readers -- remove it.

4 years agoAdd mailmap entry for Dustin Bensing by request
Mark Rousskov [Fri, 27 Sep 2019 17:29:22 +0000 (13:29 -0400)]
Add mailmap entry for Dustin Bensing by request

4 years agoAuto merge of #64849 - matthiaskrgr:submodule_upd, r=Manishearth
bors [Fri, 27 Sep 2019 17:28:00 +0000 (17:28 +0000)]
Auto merge of #64849 - matthiaskrgr:submodule_upd, r=Manishearth

submodules: update clippy from 68ff8b19 to edd90473

Changes:
````
Remove clippy::author attribute from trailing_zeroes test
Move author issue test to author subdir
Fix author lint
Rustup to rust-lang/rust#64813
Refactor `booleans`
Detect assignment ops in integer_arithmetic
````

Fixes #64843

r? @oli-obk  @Manishearth

4 years agosubmodules: update clippy from 68ff8b19 to edd90473
Matthias Krüger [Fri, 27 Sep 2019 17:08:47 +0000 (19:08 +0200)]
submodules: update clippy from 68ff8b19 to edd90473

Changes:
````
Remove clippy::author attribute from trailing_zeroes test
Move author issue test to author subdir
Fix author lint
Rustup to rust-lang/rust#64813
Refactor `booleans`
Detect assignment ops in integer_arithmetic
````

4 years agofix rebase
Esteban Küber [Fri, 27 Sep 2019 16:47:37 +0000 (09:47 -0700)]
fix rebase

4 years agoreview comments
Esteban Küber [Thu, 26 Sep 2019 21:38:01 +0000 (14:38 -0700)]
review comments

4 years agoAccount for tail expressions when pointing at return type
Esteban Küber [Thu, 26 Sep 2019 06:01:01 +0000 (23:01 -0700)]
Account for tail expressions when pointing at return type

When there's a type mismatch we make an effort to check if it was
caused by a function's return type. This logic now makes sure to
only point at the return type if the error happens in a tail
expression.

4 years agoTurn `walk_parent_nodes` method into an iterator
Esteban Küber [Thu, 26 Sep 2019 00:05:30 +0000 (17:05 -0700)]
Turn `walk_parent_nodes` method into an iterator

4 years agopin.rs: fix links to primitives in documentation
rusty-snake [Fri, 27 Sep 2019 14:33:08 +0000 (14:33 +0000)]
pin.rs: fix links to primitives in documentation

4 years agoAuto merge of #63937 - Nashenas88:rustdoc_57180, r=GuillaumeGomez
bors [Fri, 27 Sep 2019 13:51:25 +0000 (13:51 +0000)]
Auto merge of #63937 - Nashenas88:rustdoc_57180, r=GuillaumeGomez

 Fix ICE in rustdoc when merging generic and where bounds of an Fn with an output

Fixes #57180

4 years agoStabilize map_get_key_value feature
Lzu Tao [Fri, 27 Sep 2019 11:21:57 +0000 (11:21 +0000)]
Stabilize map_get_key_value feature

4 years agoAuto merge of #64813 - varkor:node-to-kind, r=Centril
bors [Fri, 27 Sep 2019 10:05:38 +0000 (10:05 +0000)]
Auto merge of #64813 - varkor:node-to-kind, r=Centril

Rename `*.node` to `*.kind`, and `hair::Pattern*` to `hair::Pat*`

In both `ast::Expr` and `hir::Expr`:

- Rename `Expr.node` to `Expr.kind`.
- Rename `Pat.node` to `Pat.kind`.
- Rename `ImplItem.node` to `ImplItem.kind`.
- Rename `Lit.node` to `Lit.kind`.
- Rename `TraitItem.node` to `TraitItem.kind`.
- Rename `Ty.node` to `Ty.kind`.
- Rename `Stmt.node` to `Stmt.kind`.
- Rename `Item.node` to `Item.kind`.
- Rename `ForeignItem.node` to `ForeignItem.kind`.
- Rename `MetaItem.node` to `MetaItem.kind`.

Also:
- Rename `hair::FieldPattern` to `hair::FieldPat`.
- Rename `hair::PatternKind` to `hair::PatKind`.
- Rename `hair::PatternRange` to `hair::PatRange`.
- Rename `PatternContext` to `PatCtxt`.
- Rename `PatternTypeProjection` to `PatTyProj`.
- Rename `hair::Pattern` to `hair::Pat`.

These two sets of changes are grouped together to aid with merging. The only changes are renamings.

r? @petrochenkov

4 years agolowering: don't .abort_if_errors()
Mazdak Farrokhzad [Fri, 27 Sep 2019 04:09:32 +0000 (06:09 +0200)]
lowering: don't .abort_if_errors()

4 years agoFix librustcdoc test
varkor [Fri, 27 Sep 2019 00:37:14 +0000 (01:37 +0100)]
Fix librustcdoc test

4 years agoAuto merge of #64819 - Manishearth:clippyup, r=Manishearth
bors [Fri, 27 Sep 2019 00:15:40 +0000 (00:15 +0000)]
Auto merge of #64819 - Manishearth:clippyup, r=Manishearth

Update clippy

r? @ghost

4 years agoInclude message on tests that should panic
Kenny Goodin [Tue, 24 Sep 2019 18:20:52 +0000 (14:20 -0400)]
Include message on tests that should panic

4 years agoFix ui-fulldeps tests
varkor [Thu, 26 Sep 2019 22:17:53 +0000 (23:17 +0100)]
Fix ui-fulldeps tests

4 years agoFix AST JSON output test
varkor [Thu, 26 Sep 2019 20:39:56 +0000 (21:39 +0100)]
Fix AST JSON output test

4 years agoAuto merge of #64816 - Centril:rollup-gbeqot4, r=Centril
bors [Thu, 26 Sep 2019 20:29:40 +0000 (20:29 +0000)]
Auto merge of #64816 - Centril:rollup-gbeqot4, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #64221 ( Rust 2015: No longer downgrade NLL errors)
 - #64772 (Remove tx_to_llvm_workers from TyCtxt)
 - #64783 (Fix issue #64732)
 - #64787 (Fix ExitStatus on Fuchsia)
 - #64812 (Add test for E0543)

Failed merges:

r? @ghost

4 years agoUpdate clippy
Manish Goregaokar [Thu, 26 Sep 2019 18:57:12 +0000 (11:57 -0700)]
Update clippy

4 years agoRename `hair::Pattern` to `hair::Pat`
varkor [Thu, 26 Sep 2019 17:51:59 +0000 (18:51 +0100)]
Rename `hair::Pattern` to `hair::Pat`

4 years agoRename `PatternTypeProjection` to `PatTyProj`
varkor [Thu, 26 Sep 2019 17:45:50 +0000 (18:45 +0100)]
Rename `PatternTypeProjection` to `PatTyProj`

4 years agoRename `PatternContext` to `PatCtxt`
varkor [Thu, 26 Sep 2019 17:45:10 +0000 (18:45 +0100)]
Rename `PatternContext` to `PatCtxt`

4 years agoRename `hair::PatternRange` to `hair::PatRange`
varkor [Thu, 26 Sep 2019 17:43:36 +0000 (18:43 +0100)]
Rename `hair::PatternRange` to `hair::PatRange`

4 years agoRename `hair::PatternKind` to `hair::PatKind`
varkor [Thu, 26 Sep 2019 17:42:24 +0000 (18:42 +0100)]
Rename `hair::PatternKind` to `hair::PatKind`

4 years agoRename `hair::FieldPattern` to `hair::FieldPat`
varkor [Thu, 26 Sep 2019 17:29:53 +0000 (18:29 +0100)]
Rename `hair::FieldPattern` to `hair::FieldPat`

4 years agoRename `MetaItem.node` to `MetaItem.kind`
varkor [Thu, 26 Sep 2019 17:04:05 +0000 (18:04 +0100)]
Rename `MetaItem.node` to `MetaItem.kind`

4 years agoRename `ForeignItem.node` to `ForeignItem.kind`
varkor [Thu, 26 Sep 2019 16:58:14 +0000 (17:58 +0100)]
Rename `ForeignItem.node` to `ForeignItem.kind`

4 years agoRename `Item.node` to `Item.kind`
varkor [Thu, 26 Sep 2019 16:51:36 +0000 (17:51 +0100)]
Rename `Item.node` to `Item.kind`

4 years agoRename `Stmt.node` to `Stmt.kind`
varkor [Thu, 26 Sep 2019 16:34:50 +0000 (17:34 +0100)]
Rename `Stmt.node` to `Stmt.kind`

4 years agoRename `Ty.node` to `Ty.kind`
varkor [Thu, 26 Sep 2019 16:25:31 +0000 (17:25 +0100)]
Rename `Ty.node` to `Ty.kind`

4 years agoRename `TraitItem.node` to `TraitItem.kind`
varkor [Thu, 26 Sep 2019 16:07:54 +0000 (17:07 +0100)]
Rename `TraitItem.node` to `TraitItem.kind`

4 years agoRename `Lit.node` to `Lit.kind`
varkor [Thu, 26 Sep 2019 15:56:53 +0000 (16:56 +0100)]
Rename `Lit.node` to `Lit.kind`

4 years agoRename `ImplItem.node` to `ImplItem.kind`
varkor [Thu, 26 Sep 2019 15:38:13 +0000 (16:38 +0100)]
Rename `ImplItem.node` to `ImplItem.kind`

4 years agoRename `Pat.node` to `Pat.kind`
varkor [Thu, 26 Sep 2019 15:18:31 +0000 (16:18 +0100)]
Rename `Pat.node` to `Pat.kind`

4 years agoRename `Expr.node` to `Expr.kind`
varkor [Thu, 26 Sep 2019 13:39:48 +0000 (14:39 +0100)]
Rename `Expr.node` to `Expr.kind`

For both `ast::Expr` and `hir::Expr`.

4 years agohir: stop checking codegen fn attrs for constants
David Wood [Thu, 26 Sep 2019 16:03:29 +0000 (17:03 +0100)]
hir: stop checking codegen fn attrs for constants

See linked comment[1] for context.

1: https://github.com/rust-lang/rust/pull/64809#discussion_r328662933

Signed-off-by: David Wood <david@davidtw.co>
4 years agoMerge pull request #30 from Wind-River/update
n-salim [Thu, 26 Sep 2019 15:57:17 +0000 (08:57 -0700)]
Merge pull request #30 from Wind-River/update

update rtpSpawn's parameters type(It's prototype has been updated in …

4 years agohir: Disallow `target_feature` on constants
David Wood [Thu, 26 Sep 2019 10:00:53 +0000 (11:00 +0100)]
hir: Disallow `target_feature` on constants

This commit fixes an ICE when `target_feature` is applied to constants.

Signed-off-by: David Wood <david@davidtw.co>
4 years agoRollup merge of #64812 - GuillaumeGomez:add-test-for-e0543, r=Centril
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:55:18 +0000 (17:55 +0200)]
Rollup merge of #64812 - GuillaumeGomez:add-test-for-e0543, r=Centril

Add test for E0543

4 years agoRollup merge of #64787 - tmandry:fuchsia-exitstatus, r=cramertj
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:55:16 +0000 (17:55 +0200)]
Rollup merge of #64787 - tmandry:fuchsia-exitstatus, r=cramertj

Fix ExitStatus on Fuchsia

Fuchsia exit codes don't follow the convention of libc::WEXITSTATUS et
al, and they are 64 bits instead of 32 bits. This gives Fuchsia its own
representation of ExitStatus.

Additionally, the zircon syscall structs were out of date, causing us to
see bogus exit codes.

r? @cramertj @alexcrichton

4 years agoRollup merge of #64783 - onehr:onehrxn, r=varkor
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:55:15 +0000 (17:55 +0200)]
Rollup merge of #64783 - onehr:onehrxn, r=varkor

Fix issue #64732

Based on issue #64732, when creating a byte literal with single quotes,
the suggestion message would indicate that you meant to write a `str` literal,
but we actually meant to write a byte string literal.

So I changed the unescape_error_reporting.rs to decide whether to print out
"if you meant to write a `str` literal, use double quotes",
or "if you meant to write a byte string literal, use double quotes".

Fixes #64732.

4 years agoRollup merge of #64772 - Mark-Simulacrum:no-tyctxt-tx, r=eddyb
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:55:13 +0000 (17:55 +0200)]
Rollup merge of #64772 - Mark-Simulacrum:no-tyctxt-tx, r=eddyb

Remove tx_to_llvm_workers from TyCtxt

This can be kept within the codegen backend crates entirely -- there's no reason for us to create it outside and attempt to hold it in the (global) context.

Changes here aren't really too easily reviewable I suspect -- not sure if they can be cleaned up by splitting into more commits though, it's just hard to reason about `Box<Any>` in general. If there are thoughts though I'd be happy to hear them.

The primary goal of this PR is to get rid of the field on `rustc_interface::Queries`.

4 years agoRollup merge of #64221 - Centril:nll-no-migrate-2015, r=matthewjasper
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:55:12 +0000 (17:55 +0200)]
Rollup merge of #64221 - Centril:nll-no-migrate-2015, r=matthewjasper

 Rust 2015: No longer downgrade NLL errors

As per decision on a language team meeting as described in https://github.com/rust-lang/rust/pull/63565#issuecomment-528563744, in Rust 2015, we refuse to downgrade NLL errors, that AST borrowck accepts, into warnings and keep them as hard errors.

The remaining work to throw out AST borrowck and adjust some tests still remains after this PR.

Fixes https://github.com/rust-lang/rust/issues/38899
Fixes https://github.com/rust-lang/rust/issues/53432
Fixes https://github.com/rust-lang/rust/issues/45157
Fixes https://github.com/rust-lang/rust/issues/31567
Fixes https://github.com/rust-lang/rust/issues/27868
Fixes https://github.com/rust-lang/rust/issues/47366

r? @matthewjasper

4 years agoFix div_duration() marked as stable by mistake
JMS55 [Thu, 26 Sep 2019 15:19:59 +0000 (11:19 -0400)]
Fix div_duration() marked as stable by mistake

4 years agoissue-#45696: remove ignore-compare-mode-nll
Mazdak Farrokhzad [Thu, 26 Sep 2019 15:19:03 +0000 (17:19 +0200)]
issue-#45696: remove ignore-compare-mode-nll

4 years agoAuto merge of #64515 - varkor:kindedterm, r=oli-obk
bors [Thu, 26 Sep 2019 12:34:54 +0000 (12:34 +0000)]
Auto merge of #64515 - varkor:kindedterm, r=oli-obk

Rename `subst::Kind` to `subst::GenericArg`

And `subst::UnpackedKind` to `subst::GenericArgKind`. Individual variable names (e.g. `kind`) are not renamed, which would be an infeasible mission.

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

r? @eddyb

4 years agoAdd test for E0543
Guillaume Gomez [Thu, 26 Sep 2019 11:24:41 +0000 (13:24 +0200)]
Add test for E0543

4 years agoUpgrade env_logger to 0.7
Mateusz Mikuła [Thu, 26 Sep 2019 11:19:14 +0000 (13:19 +0200)]
Upgrade env_logger to 0.7

4 years agoRename some `_sty` variables to `_kind`
varkor [Thu, 26 Sep 2019 11:10:43 +0000 (12:10 +0100)]
Rename some `_sty` variables to `_kind`

4 years agoRename `subst::Kind` to `subst::GenericArg`
varkor [Wed, 25 Sep 2019 15:39:44 +0000 (16:39 +0100)]
Rename `subst::Kind` to `subst::GenericArg`

4 years agoAuto merge of #62661 - arielb1:never-reserve, r=nikomatsakis
bors [Thu, 26 Sep 2019 08:42:34 +0000 (08:42 +0000)]
Auto merge of #62661 - arielb1:never-reserve, r=nikomatsakis

reserve `impl<T> From<!> for T`

this is necessary for never-type stabilization.

cc #57012 #35121

I think we wanted a crater run for this @nikomatsakis?

r? @nikomatsakis

4 years agocargotest: bump iron
Mazdak Farrokhzad [Thu, 26 Sep 2019 05:50:39 +0000 (07:50 +0200)]
cargotest: bump iron

4 years agocargotest: bump webrender
Mazdak Farrokhzad [Thu, 26 Sep 2019 04:44:50 +0000 (06:44 +0200)]
cargotest: bump webrender

4 years agoissue-#45696-scribble...: remove outdated comment.
Mazdak Farrokhzad [Wed, 25 Sep 2019 20:09:09 +0000 (22:09 +0200)]
issue-#45696-scribble...: remove outdated comment.

4 years agorm "src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.migrate.stderr"
Mazdak Farrokhzad [Wed, 25 Sep 2019 20:08:10 +0000 (22:08 +0200)]
rm "src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.migrate.stderr"

4 years agoremove feature(nll) in more cases.
Mazdak Farrokhzad [Fri, 6 Sep 2019 14:23:00 +0000 (16:23 +0200)]
remove feature(nll) in more cases.

4 years agoremove feature(nll) from #27868 test.
Mazdak Farrokhzad [Fri, 6 Sep 2019 14:04:26 +0000 (16:04 +0200)]
remove feature(nll) from #27868 test.

4 years agoremove feature(nll) from #31567 test.
Mazdak Farrokhzad [Fri, 6 Sep 2019 14:02:04 +0000 (16:02 +0200)]
remove feature(nll) from #31567 test.

4 years agoremove feature(nll) from #45157 test.
Mazdak Farrokhzad [Fri, 6 Sep 2019 13:58:39 +0000 (15:58 +0200)]
remove feature(nll) from #45157 test.

4 years agoadd test for #53432.
Mazdak Farrokhzad [Fri, 6 Sep 2019 13:52:48 +0000 (15:52 +0200)]
add test for #53432.

4 years agoAdjust & --bless tests due to no longer downgrading NLL errors on 2015.
Mazdak Farrokhzad [Fri, 6 Sep 2019 13:47:50 +0000 (15:47 +0200)]
Adjust & --bless tests due to no longer downgrading NLL errors on 2015.

4 years agorustc_mir: remove dead code for downgrading errors.
Mazdak Farrokhzad [Fri, 6 Sep 2019 09:54:50 +0000 (11:54 +0200)]
rustc_mir: remove dead code for downgrading errors.

4 years agoRefuse downgrading NLL errors on Rust 2015.
Mazdak Farrokhzad [Fri, 6 Sep 2019 09:41:57 +0000 (11:41 +0200)]
Refuse downgrading NLL errors on Rust 2015.

4 years agoAuto merge of #64513 - varkor:sty-begone, r=eddyb
bors [Thu, 26 Sep 2019 04:29:18 +0000 (04:29 +0000)]
Auto merge of #64513 - varkor:sty-begone, r=eddyb

Rename `TyS.sty` to `TyS.kind`

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

r? @eddyb

4 years agoAdd test case for issue #64732
Haoran Wang [Thu, 26 Sep 2019 00:18:25 +0000 (20:18 -0400)]
Add test case for issue #64732

4 years agoupdate rtpSpawn's parameters type(It's prototype has been updated in libc)
Baoshan Pang [Thu, 26 Sep 2019 03:10:29 +0000 (20:10 -0700)]
update rtpSpawn's parameters type(It's prototype has been updated in libc)

4 years agoRemove unused DepTrackingMap
Mark Rousskov [Thu, 26 Sep 2019 01:02:50 +0000 (21:02 -0400)]
Remove unused DepTrackingMap