]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRollup merge of #58285 - taiki-e:error_index_generator-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:16:05 +0000 (00:16 +0100)]
Rollup merge of #58285 - taiki-e:error_index_generator-2018, r=Centril

error_index_generator => 2018

Transitions `error_index_generator` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58275 - RalfJung:miri-test-libcore, r=Mark-Simulacrum
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:16:04 +0000 (00:16 +0100)]
Rollup merge of #58275 - RalfJung:miri-test-libcore, r=Mark-Simulacrum

libcore, liballoc: disable tests in Miri

I am going to run the libcore and liballoc unit test suites in Miri.  Not all tests pass.  This PR disables a whole bunch of tests when running in Miri, to get us to a baseline from which I can investigate failures.

Cc @SimonSapin @alexcrichton

5 years agoRollup merge of #58265 - taiki-e:librustc_mir-2018, r=matthewjasper
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:16:03 +0000 (00:16 +0100)]
Rollup merge of #58265 - taiki-e:librustc_mir-2018, r=matthewjasper

librustc_mir => 2018

Transitions `librustc_mir` to Rust 2018; cc #58099

TODO: ~~elided_lifetimes_in_paths~~

r? @Centril

5 years agoRollup merge of #58261 - taiki-e:librustc_incremental-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:16:02 +0000 (00:16 +0100)]
Rollup merge of #58261 - taiki-e:librustc_incremental-2018, r=Centril

librustc_incremental => 2018

Transitions `librustc_incremental` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58260 - taiki-e:librustc_borrowck-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:16:01 +0000 (00:16 +0100)]
Rollup merge of #58260 - taiki-e:librustc_borrowck-2018, r=Centril

librustc_borrowck => 2018

Transitions `librustc_borrowck` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58259 - taiki-e:librustc_codegen_utils-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:59 +0000 (00:15 +0100)]
Rollup merge of #58259 - taiki-e:librustc_codegen_utils-2018, r=Centril

librustc_codegen_utils => 2018

Transitions `librustc_codegen_utils` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58257 - taiki-e:librustc_target-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:58 +0000 (00:15 +0100)]
Rollup merge of #58257 - taiki-e:librustc_target-2018, r=Centril

librustc_target => 2018

Transitions `librustc_target` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58256 - taiki-e:librustc_cratesio_shim-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:57 +0000 (00:15 +0100)]
Rollup merge of #58256 - taiki-e:librustc_cratesio_shim-2018, r=Centril

librustc_cratesio_shim => 2018

Transitions `librustc_cratesio_shim` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58255 - taiki-e:librustc_metadata-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:55 +0000 (00:15 +0100)]
Rollup merge of #58255 - taiki-e:librustc_metadata-2018, r=Centril

librustc_metadata => 2018

Transitions `librustc_metadata` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58251 - h-michael:librustc_traits-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:54 +0000 (00:15 +0100)]
Rollup merge of #58251 - h-michael:librustc_traits-2018, r=Centril

Transition librustc_traits to 2018 edition

Transitions librustc_traits to Rust 2018; cc #58099
r? @Centril

5 years agoRollup merge of #58247 - taiki-e:librustc_passes-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:53 +0000 (00:15 +0100)]
Rollup merge of #58247 - taiki-e:librustc_passes-2018, r=Centril

librustc_passes => 2018

Transitions `librustc_passes` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58245 - taiki-e:librustc_lint-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:52 +0000 (00:15 +0100)]
Rollup merge of #58245 - taiki-e:librustc_lint-2018, r=Centril

librustc_lint => 2018

Transitions `librustc_lint` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58233 - taiki-e:librustc_save_analysis-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:50 +0000 (00:15 +0100)]
Rollup merge of #58233 - taiki-e:librustc_save_analysis-2018, r=Centril

librustc_save_analysis => 2018

Transitions `librustc_save_analysis` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58222 - taiki-e:librustc_allocator-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:49 +0000 (00:15 +0100)]
Rollup merge of #58222 - taiki-e:librustc_allocator-2018, r=Centril

librustc_allocator => 2018

Transitions `librustc_allocator` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58120 - h-michael:build_helper-theme-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:48 +0000 (00:15 +0100)]
Rollup merge of #58120 - h-michael:build_helper-theme-2018, r=Centril

Transition build_helper to 2018 edition

Transitions build_helper to Rust 2018; cc #58099
r? @Centril

5 years agoRollup merge of #58115 - h-michael:rustdoc-2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:46 +0000 (00:15 +0100)]
Rollup merge of #58115 - h-michael:rustdoc-2018, r=Centril

Transition rustdoc to 2018 edition

Transitions rustdoc to Rust 2018; cc #58099

5 years agoRollup merge of #58091 - phansch:compiletest2018, r=Centril
Mazdak Farrokhzad [Fri, 8 Feb 2019 23:15:44 +0000 (00:15 +0100)]
Rollup merge of #58091 - phansch:compiletest2018, r=Centril

Transition compiletest to Rust 2018

This transitions `src/tools/compiletest` to Rust 2018.

cc #58099

5 years agoAuto merge of #58161 - davidtwco:issue-57960, r=arielb1
bors [Fri, 8 Feb 2019 17:13:56 +0000 (17:13 +0000)]
Auto merge of #58161 - davidtwco:issue-57960, r=arielb1

Lower constant patterns with ascribed types.

Fixes #57960.

This PR fixes a bug introduced by #55937 which started checking user
type annotations for associated type patterns. Where lowering a
associated constant expression would previously return a
`PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType`
with a `PatternKind::Constant` inside, this PR unwraps that to
access the constant pattern inside and behaves as before.

r? @pnkfelix

5 years agoAuto merge of #58294 - hrls:master, r=GuillaumeGomez
bors [Fri, 8 Feb 2019 14:16:14 +0000 (14:16 +0000)]
Auto merge of #58294 - hrls:master, r=GuillaumeGomez

fix rustdoc JS

#58290

5 years agolibrustc_incremental => 2018
Taiki Endo [Fri, 8 Feb 2019 12:16:35 +0000 (21:16 +0900)]
librustc_incremental => 2018

5 years agolibrustc_borrowck => 2018
Taiki Endo [Fri, 8 Feb 2019 12:11:10 +0000 (21:11 +0900)]
librustc_borrowck => 2018

5 years agolibrustc_codegen_utils => 2018
Taiki Endo [Fri, 8 Feb 2019 12:06:07 +0000 (21:06 +0900)]
librustc_codegen_utils => 2018

5 years agolibrustc_target => 2018
Taiki Endo [Fri, 8 Feb 2019 12:00:07 +0000 (21:00 +0900)]
librustc_target => 2018

5 years agolibrustc_cratesio_shim => 2018
Taiki Endo [Fri, 8 Feb 2019 11:55:12 +0000 (20:55 +0900)]
librustc_cratesio_shim => 2018

5 years agolibrustc_metadata => 2018
Taiki Endo [Fri, 8 Feb 2019 11:50:17 +0000 (20:50 +0900)]
librustc_metadata => 2018

5 years agolibrustc_passes => 2018
Taiki Endo [Fri, 8 Feb 2019 11:40:49 +0000 (20:40 +0900)]
librustc_passes => 2018

5 years agolibrustc_lint => 2018
Taiki Endo [Fri, 8 Feb 2019 11:35:41 +0000 (20:35 +0900)]
librustc_lint => 2018

5 years agoRemove #[macro_use] extern crate bitflags
Taiki Endo [Fri, 8 Feb 2019 11:13:12 +0000 (20:13 +0900)]
Remove #[macro_use] extern crate bitflags

5 years agoUse real try blocks
Taiki Endo [Fri, 8 Feb 2019 11:08:08 +0000 (20:08 +0900)]
Use real try blocks

5 years agoRevert removed #![feature(nll)]
Taiki Endo [Fri, 8 Feb 2019 10:56:52 +0000 (19:56 +0900)]
Revert removed #![feature(nll)]

5 years agoAuto merge of #58213 - Mark-Simulacrum:fix-checktools, r=alexcrichton
bors [Fri, 8 Feb 2019 10:17:01 +0000 (10:17 +0000)]
Auto merge of #58213 - Mark-Simulacrum:fix-checktools, r=alexcrichton

Add embedded book to test such that checktools works

r? @alexcrichton

FWIW this doesn't attempt to make sure we don't break check tools again -- we intentionally make the bash script not exit when x.py fails so we'd need some special case handling so for now I'm just fixing the bug itself, not its cause.

5 years agofix rustdoc JS
hrls [Fri, 8 Feb 2019 09:47:20 +0000 (12:47 +0300)]
fix rustdoc JS

5 years agoerror_index_generator => 2018
Taiki Endo [Fri, 8 Feb 2019 07:44:15 +0000 (16:44 +0900)]
error_index_generator => 2018

5 years agoAuto merge of #58191 - varkor:const-generics-ast, r=petrochenkov
bors [Fri, 8 Feb 2019 05:50:16 +0000 (05:50 +0000)]
Auto merge of #58191 - varkor:const-generics-ast, r=petrochenkov

Add const generics to the AST

This is mostly split out from https://github.com/rust-lang/rust/pull/53645 in an effort to make progress merging const generics piecewise instead of in one go.

cc @yodaldevoid, @petrochenkov

r? @eddyb

5 years agolibrustc_mir => 2018
Taiki Endo [Thu, 7 Feb 2019 21:28:15 +0000 (06:28 +0900)]
librustc_mir => 2018

5 years agodisable tests in Miri
Ralf Jung [Thu, 7 Feb 2019 17:23:44 +0000 (18:23 +0100)]
disable tests in Miri

5 years agoResolve incorrect diagnostic for using a non-const value in a constant
varkor [Thu, 7 Feb 2019 15:03:12 +0000 (16:03 +0100)]
Resolve incorrect diagnostic for using a non-const value in a constant

5 years agoAuto merge of #58266 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Thu, 7 Feb 2019 14:47:57 +0000 (14:47 +0000)]
Auto merge of #58266 - GuillaumeGomez:rollup, r=GuillaumeGomez

Rollup of 11 pull requests

Successful merges:

 - #57504 (Re-enable history api on file:// protocol)
 - #57848 (Generate a documentation page for core::mem::transmute.)
 - #57884 (Update minifier version)
 - #57954 (rustdoc: remove blank unstable spans)
 - #58028 (Fix image link in the settings menu)
 - #58033 (rustdoc: wrap stability tags in colored spans)
 - #58086 ([rustdoc] Improve file list display)
 - #58143 (Sort elements in the sidebar)
 - #58146 (Prevent automatic collapse of methods impl blocks)
 - #58150 (Don't apply impl block collapse rules to trait impls)
 - #58185 (Remove images' url to make it work even without internet connection)

Failed merges:

r? @ghost

5 years agoAdd a test forbidding the use of const parameters in inner items
varkor [Thu, 7 Feb 2019 14:00:14 +0000 (15:00 +0100)]
Add a test forbidding the use of const parameters in inner items

5 years agoMake name resolution handle consts in GenericParamsFromOuterFunction properly
varkor [Thu, 7 Feb 2019 13:59:59 +0000 (14:59 +0100)]
Make name resolution handle consts in GenericParamsFromOuterFunction properly

5 years agoParse negative literals in const generic arguments
varkor [Thu, 7 Feb 2019 13:58:47 +0000 (14:58 +0100)]
Parse negative literals in const generic arguments

5 years agoAdd warning for a parameter list with an attribute but no parameters
varkor [Thu, 7 Feb 2019 13:58:31 +0000 (14:58 +0100)]
Add warning for a parameter list with an attribute but no parameters

5 years agoAdd test for generic parameter list solely containing an attribute
varkor [Thu, 7 Feb 2019 09:58:08 +0000 (10:58 +0100)]
Add test for generic parameter list solely containing an attribute

5 years agoFix update to 2018 edition
varkor [Thu, 7 Feb 2019 09:27:56 +0000 (10:27 +0100)]
Fix update to 2018 edition

5 years agoAdjust generic const param resolution
varkor [Thu, 7 Feb 2019 09:10:51 +0000 (10:10 +0100)]
Adjust generic const param resolution

5 years agoAdjust parser generic parameter errors
varkor [Thu, 7 Feb 2019 09:10:11 +0000 (10:10 +0100)]
Adjust parser generic parameter errors

5 years agoFix E0670 doc error
varkor [Tue, 5 Feb 2019 20:40:18 +0000 (21:40 +0100)]
Fix E0670 doc error

5 years agoFix ast_validation printing of const generics
varkor [Tue, 5 Feb 2019 18:00:07 +0000 (19:00 +0100)]
Fix ast_validation printing of const generics

5 years agoFix const generic parameter save analysis
varkor [Tue, 5 Feb 2019 17:59:53 +0000 (18:59 +0100)]
Fix const generic parameter save analysis

5 years agoAdd test for const parameter before other generic parameters
varkor [Tue, 5 Feb 2019 16:55:25 +0000 (17:55 +0100)]
Add test for const parameter before other generic parameters

5 years agoAdd test for const parameter depending on type parameter
varkor [Tue, 5 Feb 2019 16:55:12 +0000 (17:55 +0100)]
Add test for const parameter depending on type parameter

5 years agoAdd test forbidding const parameters in const fn
varkor [Tue, 5 Feb 2019 16:54:23 +0000 (17:54 +0100)]
Add test forbidding const parameters in const fn

5 years agoUpdate tests
varkor [Tue, 5 Feb 2019 16:00:19 +0000 (17:00 +0100)]
Update tests

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd const generics feature gate test
varkor [Tue, 5 Feb 2019 15:58:53 +0000 (16:58 +0100)]
Add const generics feature gate test

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoSupport const generics in save analysis
varkor [Tue, 5 Feb 2019 15:53:26 +0000 (16:53 +0100)]
Support const generics in save analysis

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd error for const parameters depending on type parameters
varkor [Tue, 5 Feb 2019 15:52:31 +0000 (16:52 +0100)]
Add error for const parameters depending on type parameters

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoValidate generic parameter and argument order in ast_validation
varkor [Tue, 5 Feb 2019 15:52:17 +0000 (16:52 +0100)]
Validate generic parameter and argument order in ast_validation

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd lowering errors for const generics
varkor [Tue, 5 Feb 2019 15:52:02 +0000 (16:52 +0100)]
Add lowering errors for const generics

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd const params to Def
varkor [Tue, 5 Feb 2019 15:51:49 +0000 (16:51 +0100)]
Add const params to Def

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd resolution errors for const generics
varkor [Tue, 5 Feb 2019 15:50:55 +0000 (16:50 +0100)]
Add resolution errors for const generics

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd pretty-printing for const generics
varkor [Tue, 5 Feb 2019 15:50:16 +0000 (16:50 +0100)]
Add pretty-printing for const generics

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoSupport const generics in derive
varkor [Tue, 5 Feb 2019 15:50:00 +0000 (16:50 +0100)]
Support const generics in derive

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoParse const generics
varkor [Tue, 5 Feb 2019 15:49:38 +0000 (16:49 +0100)]
Parse const generics

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd const_generics feature flag
varkor [Tue, 5 Feb 2019 15:49:10 +0000 (16:49 +0100)]
Add const_generics feature flag

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoAdd Const kind to AST
varkor [Tue, 5 Feb 2019 15:48:45 +0000 (16:48 +0100)]
Add Const kind to AST

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
5 years agoRollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapin
Guillaume Gomez [Thu, 7 Feb 2019 13:28:41 +0000 (14:28 +0100)]
Rollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapin

Remove images' url to make it work even without internet connection

Needed for local std docs mainly.

cc @SimonSapin

r? @QuietMisdreavus

5 years agoRollup merge of #58150 - GuillaumeGomez:dont-apply-impl-collapse-rules-to-trait-impls...
Guillaume Gomez [Thu, 7 Feb 2019 13:28:40 +0000 (14:28 +0100)]
Rollup merge of #58150 - GuillaumeGomez:dont-apply-impl-collapse-rules-to-trait-impls, r=Manishearth

Don't apply impl block collapse rules to trait impls

Fixes #58147.

r? @QuietMisdreavus

5 years agoRollup merge of #58146 - GuillaumeGomez:dont-collapse-everything, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:38 +0000 (14:28 +0100)]
Rollup merge of #58146 - GuillaumeGomez:dont-collapse-everything, r=QuietMisdreavus

Prevent automatic collapse of methods impl blocks

Fixes #57582.

r? @QuietMisdreavus

5 years agoRollup merge of #58143 - GuillaumeGomez:sort-elements-in-sidebar, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:37 +0000 (14:28 +0100)]
Rollup merge of #58143 - GuillaumeGomez:sort-elements-in-sidebar, r=QuietMisdreavus

Sort elements in the sidebar

Fixes #57448.

Not sorting fields or variants though.

r? @QuietMisdreavus

5 years agoRollup merge of #58086 - GuillaumeGomez:rustdoc-file-list-improvement, r=Manishearth
Guillaume Gomez [Thu, 7 Feb 2019 13:28:36 +0000 (14:28 +0100)]
Rollup merge of #58086 - GuillaumeGomez:rustdoc-file-list-improvement, r=Manishearth

[rustdoc] Improve file list display

Improve a bit the arrows to show a folder's file and the arrow to show/hide the left panel.

r? @QuietMisdreavus

5 years agoRollup merge of #58033 - euclio:rustdoc-tags, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:34 +0000 (14:28 +0100)]
Rollup merge of #58033 - euclio:rustdoc-tags, r=QuietMisdreavus

rustdoc: wrap stability tags in colored spans

A cosmetic change to make the stability tags stand out a bit against the docs. Opening for discussion.

Before:

![screen shot 2019-01-31 at 3 29 36 pm](https://user-images.githubusercontent.com/1372438/52083406-54730d80-256d-11e9-8e61-b8caff569434.png)
![screen shot 2019-01-31 at 3 31 32 pm](https://user-images.githubusercontent.com/1372438/52083408-54730d80-256d-11e9-97b7-43e808448f65.png)

After:
![screen shot 2019-01-31 at 3 29 18 pm](https://user-images.githubusercontent.com/1372438/52083405-54730d80-256d-11e9-9983-19d9519b2ed8.png)
![screen shot 2019-01-31 at 3 29 46 pm](https://user-images.githubusercontent.com/1372438/52083407-54730d80-256d-11e9-8c32-11a1ad7d3f34.png)

r? @QuietMisdreavus

5 years agoRollup merge of #58028 - GuillaumeGomez:fix-settings-image-link, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:33 +0000 (14:28 +0100)]
Rollup merge of #58028 - GuillaumeGomez:fix-settings-image-link, r=QuietMisdreavus

Fix image link in the settings menu

Fixes #57892.

r? @QuietMisdreavus

5 years agoRollup merge of #57954 - euclio:rustdoc-stability, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:32 +0000 (14:28 +0100)]
Rollup merge of #57954 - euclio:rustdoc-stability, r=QuietMisdreavus

rustdoc: remove blank unstable spans

Rustdoc generates blank unstable spans for unstable struct fields: ![screen shot 2019-01-28 at 1 05 04 pm](https://user-images.githubusercontent.com/1372438/51856295-5e8ed500-22fd-11e9-8074-025eddb4ef65.png)

This PR removes them:
![screen shot 2019-01-28 at 1 07 22 pm](https://user-images.githubusercontent.com/1372438/51856424-aada1500-22fd-11e9-86f0-34e2aa78b8b1.png)

r? @QuietMisdreavus

5 years agoRollup merge of #57884 - GuillaumeGomez:update-minifier-array, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:30 +0000 (14:28 +0100)]
Rollup merge of #57884 - GuillaumeGomez:update-minifier-array, r=QuietMisdreavus

Update minifier version

Should fix #57754 (at least it's a bit faster on my computer).

The whole point of this update is to create a huge array instead of creating a lot of variables.

r? @QuietMisdreavus

5 years agoRollup merge of #57848 - jrvanwhy:transmute-export-doc, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:29 +0000 (14:28 +0100)]
Rollup merge of #57848 - jrvanwhy:transmute-export-doc, r=QuietMisdreavus

Generate a documentation page for core::mem::transmute.

In `#[no_std]` environments, `std::mem::transmute` is unavailable. Searching for "core transmute" online only pulls up `core::intrinsics::transmute`, which is behind the (unstable) `core_intrinsics` feature flag. Users wishing to use transmute in `#[no_std]` environments typically should use `core::mem::transmute` instead, as it is stable. This documentation makes `core::mem::transmute` discoverable.

5 years agoRollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavus
Guillaume Gomez [Thu, 7 Feb 2019 13:28:27 +0000 (14:28 +0100)]
Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavus

Re-enable history api on file:// protocol

Fixes #57135.

I tested locally on chrome (since it was the browser having issues with history management on `file://` protocol) and it worked fine so I guess we can re-enable it.

r? @QuietMisdreavus

5 years agoDon't apply impl block collapse rules to trait impls
Guillaume Gomez [Mon, 4 Feb 2019 14:50:46 +0000 (15:50 +0100)]
Don't apply impl block collapse rules to trait impls

5 years agoRemove images' url to make it work even without internet connection
Guillaume Gomez [Tue, 5 Feb 2019 13:37:15 +0000 (14:37 +0100)]
Remove images' url to make it work even without internet connection

5 years agoAuto merge of #58010 - Zoxc:parallel-passes, r=michaelwoerister
bors [Thu, 7 Feb 2019 09:49:08 +0000 (09:49 +0000)]
Auto merge of #58010 - Zoxc:parallel-passes, r=michaelwoerister

Move privacy checking later in the pipeline and make some passes run in parallel

r? @michaelwoerister

5 years agoAuto merge of #58254 - kennytm:rollup, r=kennytm
bors [Thu, 7 Feb 2019 07:11:22 +0000 (07:11 +0000)]
Auto merge of #58254 - kennytm:rollup, r=kennytm

Rollup of 23 pull requests

Successful merges:

 - #58118 (Transition libtest to 2018 edition)
 - #58119 (libproc_macro => 2018)
 - #58123 (Avoid some bounds checks in binary_heap::{PeekMut,Hole})
 - #58124 (libsyntax_pos => 2018)
 - #58133 (libsyntax_ext => 2018)
 - #58136 (Improve error message and docs for non-UTF-8 bytes in stdio on Windows)
 - #58156 (update submodule: rust-installer from 27dec6c to ccdc47b)
 - #58192 (Do not ICE in codegen when using a extern_type static)
 - #58193 (Move librustc to 2018)
 - #58210 (Make an assert debug-only in `find_constraint_paths_between_regions`.)
 - #58217 (librustc_tsan => 2018)
 - #58218 (librustc_msan => 2018)
 - #58219 (librustc_asan => 2018)
 - #58220 (libprofiler_builtins => 2018)
 - #58223 (librustc_lsan => 2018)
 - #58225 (librustc_fs_util => 2018)
 - #58228 (librustc_plugin => 2018)
 - #58236 (librustc_resolve => 2018)
 - #58237 (Fix broken grammar in iter::from_fn() docs)
 - #58239 (librustc_apfloat => 2018)
 - #58240 (librustc_errors => 2018)
 - #58241 (librustc_llvm => 2018)
 - #58242 (Document the one TyKind that isn't documented)

Failed merges:

 - #58185 (Remove images' url to make it work even without internet connection)

r? @ghost

5 years agoRollup merge of #58242 - notriddle:patch-3, r=zackmdavis
kennytm [Thu, 7 Feb 2019 05:58:02 +0000 (13:58 +0800)]
Rollup merge of #58242 - notriddle:patch-3, r=zackmdavis

Document the one TyKind that isn't documented

This is especially confusing since the name `Foreign` and the name `extern type` are so different. I deduced that they're the same by consulting git-blame.

5 years agoRollup merge of #58241 - taiki-e:librustc_llvm-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:58:01 +0000 (13:58 +0800)]
Rollup merge of #58241 - taiki-e:librustc_llvm-2018, r=Centril

librustc_llvm => 2018

Transitions `librustc_llvm` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58240 - taiki-e:librustc_errors-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:58:00 +0000 (13:58 +0800)]
Rollup merge of #58240 - taiki-e:librustc_errors-2018, r=Centril

librustc_errors => 2018

Transitions `librustc_errors` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58239 - taiki-e:librustc_apfloat-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:59 +0000 (13:57 +0800)]
Rollup merge of #58239 - taiki-e:librustc_apfloat-2018, r=Centril

librustc_apfloat => 2018

Transitions `librustc_apfloat` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58237 - sdroege:docs-its-its, r=SimonSapin
kennytm [Thu, 7 Feb 2019 05:57:57 +0000 (13:57 +0800)]
Rollup merge of #58237 - sdroege:docs-its-its, r=SimonSapin

Fix broken grammar in iter::from_fn() docs

Was introduced by https://github.com/rust-lang/rust/pull/58062

CC @SimonSapin

5 years agoRollup merge of #58236 - taiki-e:librustc_resolve-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:56 +0000 (13:57 +0800)]
Rollup merge of #58236 - taiki-e:librustc_resolve-2018, r=Centril

librustc_resolve => 2018

Transitions `librustc_resolve` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58228 - taiki-e:librustc_plugin-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:55 +0000 (13:57 +0800)]
Rollup merge of #58228 - taiki-e:librustc_plugin-2018, r=Centril

librustc_plugin => 2018

Transitions `librustc_plugin` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58225 - taiki-e:librustc_fs_util-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:54 +0000 (13:57 +0800)]
Rollup merge of #58225 - taiki-e:librustc_fs_util-2018, r=Centril

librustc_fs_util => 2018

Transitions `librustc_fs_util` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58223 - taiki-e:librustc_lsan-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:53 +0000 (13:57 +0800)]
Rollup merge of #58223 - taiki-e:librustc_lsan-2018, r=Centril

librustc_lsan => 2018

Transitions `librustc_lsan` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58220 - taiki-e:libprofiler_builtins-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:52 +0000 (13:57 +0800)]
Rollup merge of #58220 - taiki-e:libprofiler_builtins-2018, r=Centril

libprofiler_builtins => 2018

Transitions `libprofiler_builtins` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58219 - taiki-e:librustc_asan-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:50 +0000 (13:57 +0800)]
Rollup merge of #58219 - taiki-e:librustc_asan-2018, r=Centril

librustc_asan => 2018

Transitions `librustc_asan` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58218 - taiki-e:librustc_msan-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:49 +0000 (13:57 +0800)]
Rollup merge of #58218 - taiki-e:librustc_msan-2018, r=Centril

librustc_msan => 2018

Transitions `librustc_msan` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58217 - taiki-e:librustc_tsan-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:48 +0000 (13:57 +0800)]
Rollup merge of #58217 - taiki-e:librustc_tsan-2018, r=Centril

librustc_tsan => 2018

Transitions `librustc_tsan` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58210 - nnethercote:find_outlives-debug_assert, r=matthewjasper
kennytm [Thu, 7 Feb 2019 05:57:47 +0000 (13:57 +0800)]
Rollup merge of #58210 - nnethercote:find_outlives-debug_assert, r=matthewjasper

Make an assert debug-only in `find_constraint_paths_between_regions`.

This reduces instruction counts for NLL builds of `wg-grammar` by over
20%.

r? @nikomatsakis

5 years agoRollup merge of #58193 - mark-i-m:rustc-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:45 +0000 (13:57 +0800)]
Rollup merge of #58193 - mark-i-m:rustc-2018, r=Centril

Move librustc to 2018

r? @Centril

Part of #58099

It would be great to get this reviewed quickly to avoid merge conflicts...

5 years agoRollup merge of #58192 - dlrobertson:fix_57876, r=oli-obk
kennytm [Thu, 7 Feb 2019 05:57:44 +0000 (13:57 +0800)]
Rollup merge of #58192 - dlrobertson:fix_57876, r=oli-obk

Do not ICE in codegen when using a extern_type static

The layout of a extern_type static is unsized, but may pass the
Well-Formed check in typeck (See #55257).  As a result, we
cannot assume that a static is sized when generating the `Place`
for an r-value.

Fixes: #57876
r? @oli-obk

5 years agoRollup merge of #58156 - h-michael:update-rust-installer, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:43 +0000 (13:57 +0800)]
Rollup merge of #58156 - h-michael:update-rust-installer, r=Centril

update submodule: rust-installer from 27dec6c to ccdc47b

Update rust-installer cc: #58099
https://github.com/rust-lang/rust-installer/compare/27dec6c...ccdc47b

r? @Centril

5 years agoRollup merge of #58136 - abonander:doc-win-stdio-unicode, r=dtolnay
kennytm [Thu, 7 Feb 2019 05:57:41 +0000 (13:57 +0800)]
Rollup merge of #58136 - abonander:doc-win-stdio-unicode, r=dtolnay

Improve error message and docs for non-UTF-8 bytes in stdio on Windows

This should make debugging problems like abonander/multipart#106 significantly more straightforward in the future.

cc #23344, @retep998 @alexcrichton

Not sure who do r? so I'll let rust-highfive pick one.

5 years agoRollup merge of #58133 - taiki-e:libsyntax_ext-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:40 +0000 (13:57 +0800)]
Rollup merge of #58133 - taiki-e:libsyntax_ext-2018, r=Centril

libsyntax_ext => 2018

Transitions `libsyntax_ext` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58124 - taiki-e:libsyntax_pos-2018, r=Centril
kennytm [Thu, 7 Feb 2019 05:57:39 +0000 (13:57 +0800)]
Rollup merge of #58124 - taiki-e:libsyntax_pos-2018, r=Centril

libsyntax_pos => 2018

Transitions `libsyntax_pos` to Rust 2018; cc #58099

r? @Centril