]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRollup merge of #58157 - h-michael:cargo-lock, r=alexcrichton
Guillaume Gomez [Sun, 10 Feb 2019 20:45:11 +0000 (21:45 +0100)]
Rollup merge of #58157 - h-michael:cargo-lock, r=alexcrichton

Add Cargo.lock automatically adding message

If I execute `cargo +nightly fix`, this change always occurs; cc #58099
r? @Centril

5 years agoRollup merge of #57926 - icefoxen:test-doc-pr, r=frewsxcv
Guillaume Gomez [Sun, 10 Feb 2019 20:45:09 +0000 (21:45 +0100)]
Rollup merge of #57926 - icefoxen:test-doc-pr, r=frewsxcv

Tiny expansion to docs for `core::convert`.

This is not really significant, accept or reject as you wish.  I just want to make sure I understand how the PR process works and that I'm doing it right before doing a bigger one for #33417.

5 years agoRollup merge of #57740 - JakubOnderka:ipv4addr-to_ne_bytes, r=scottmcm
Guillaume Gomez [Sun, 10 Feb 2019 20:45:08 +0000 (21:45 +0100)]
Rollup merge of #57740 - JakubOnderka:ipv4addr-to_ne_bytes, r=scottmcm

Use `to_ne_bytes` for converting IPv4Addr to octets

It is easier and it should be also faster, because [`to_ne_bytes`](https://doc.rust-lang.org/std/primitive.u32.html#method.to_ne_bytes) just calls `mem::transmute`.

5 years agoRollup merge of #57259 - king6cong:master, r=alexcrichton
Guillaume Gomez [Sun, 10 Feb 2019 20:45:07 +0000 (21:45 +0100)]
Rollup merge of #57259 - king6cong:master, r=alexcrichton

Update reference of rlibc crate to compiler-builtins crate

None

5 years agoAuto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxc
bors [Sun, 10 Feb 2019 14:30:37 +0000 (14:30 +0000)]
Auto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxc

Partially HirId-ify rustc

Another step towards https://github.com/rust-lang/rust/pull/57578.

5 years agoAuto merge of #58085 - wesleywiser:profiler_2, r=wesleywiser
bors [Sun, 10 Feb 2019 11:18:50 +0000 (11:18 +0000)]
Auto merge of #58085 - wesleywiser:profiler_2, r=wesleywiser

Implement more detailed self profiling

Timing data and cache hits/misses are now recorded at the query level.
This allows us to show detailed per query information such as total time
for each query.

To see detailed query information in the summary pass the `-Z verbose`
flag. For example:

```
rustc -Z self-profile -Z verbose hello_world.rs
```

results in something like:

```md
Self profiling results:

| Phase                                     | Time (ms)      | Time (%) | Queries        | Hits (%)
| ----------------------------------------- | -------------- | -------- | -------------- | --------
| Other                                     |            177 |    54.97 |           8094 |    45.47
| - {time spent not running queries}        |            113 |    35.09 |              0 |     0.00
| - const_eval                              |             16 |     4.97 |             26 |    11.54
| - type_of                                 |              9 |     2.80 |            627 |    27.75
| - const_eval_raw                          |              8 |     2.48 |             22 |     0.00
| - adt_def                                 |              7 |     2.17 |            381 |    11.55
| - visible_parent_map                      |              7 |     2.17 |             99 |    98.99
| - item_attrs                              |              6 |     1.86 |            698 |    50.14
| - item_children                           |              5 |     1.55 |           2815 |     0.00
| - adt_dtorck_constraint                   |              4 |     1.24 |              2 |     0.00
| - adt_destructor                          |              2 |     0.62 |             15 |    86.67
| TypeChecking                              |             53 |    16.46 |           2834 |    79.89
| - trait_impls_of                          |              9 |     2.80 |             65 |    86.15
| - evaluate_obligation                     |              7 |     2.17 |             80 |     2.50
| - const_is_rvalue_promotable_to_static    |              6 |     1.86 |              1 |     0.00
| - is_copy_raw                             |              6 |     1.86 |             29 |    58.62
| - rvalue_promotable_map                   |              6 |     1.86 |              2 |    50.00
| - {time spent not running queries}        |              6 |     1.86 |              0 |     0.00
| - typeck_item_bodies                      |              5 |     1.55 |              1 |     0.00
| - typeck_tables_of                        |              5 |     1.55 |             19 |    94.74
| - dropck_outlives                         |              2 |     0.62 |              1 |     0.00
| - layout_raw                              |              1 |     0.31 |            668 |    87.87
| Linking                                   |             48 |    14.91 |             43 |    46.51
| - {time spent not running queries}        |             48 |    14.91 |              0 |     0.00
| Codegen                                   |             29 |     9.01 |            420 |    61.90
| - {time spent not running queries}        |             16 |     4.97 |              0 |     0.00
| - collect_and_partition_mono_items        |             11 |     3.42 |             13 |    92.31
| - mir_const                               |              1 |     0.31 |              1 |     0.00
| - mir_validated                           |              1 |     0.31 |              3 |    66.67
| Expansion                                 |             14 |     4.35 |              0 |     0.00
| - {time spent not running queries}        |             14 |     4.35 |              0 |     0.00
| BorrowChecking                            |              1 |     0.31 |             12 |    41.67
| - borrowck                                |              1 |     0.31 |              2 |    50.00
| Parsing                                   |              0 |     0.00 |              0 |     0.00

Optimization level: No
Incremental: off
```

<details>
<summary>Rendered</summary>

Self profiling results:

| Phase                                     | Time (ms)      | Time (%) | Queries        | Hits (%)
| ----------------------------------------- | -------------- | -------- | -------------- | --------
| **Other**                                     |           **177** |   **54.97** |   **8094** |  **45.47**
| - {time spent not running queries}        |            113 |    35.09 |              0 |     0.00
| - const_eval                              |             16 |     4.97 |             26 |    11.54
| - type_of                                 |              9 |     2.80 |            627 |    27.75
| - const_eval_raw                          |              8 |     2.48 |             22 |     0.00
| - adt_def                                 |              7 |     2.17 |            381 |    11.55
| - visible_parent_map                      |              7 |     2.17 |             99 |    98.99
| - item_attrs                              |              6 |     1.86 |            698 |    50.14
| - item_children                           |              5 |     1.55 |           2815 |     0.00
| - adt_dtorck_constraint                   |              4 |     1.24 |              2 |     0.00
| - adt_destructor                          |              2 |     0.62 |             15 |    86.67
| TypeChecking                              |             53 |    16.46 |           2834 |    79.89
| - trait_impls_of                          |              9 |     2.80 |             65 |    86.15
| - evaluate_obligation                     |              7 |     2.17 |             80 |     2.50
| - const_is_rvalue_promotable_to_static    |              6 |     1.86 |              1 |     0.00
| - is_copy_raw                             |              6 |     1.86 |             29 |    58.62
| - rvalue_promotable_map                   |              6 |     1.86 |              2 |    50.00
| - {time spent not running queries}        |              6 |     1.86 |              0 |     0.00
| - typeck_item_bodies                      |              5 |     1.55 |              1 |     0.00
| - typeck_tables_of                        |              5 |     1.55 |             19 |    94.74
| - dropck_outlives                         |              2 |     0.62 |              1 |     0.00
| - layout_raw                              |              1 |     0.31 |            668 |    87.87
| Linking                                   |             48 |    14.91 |             43 |    46.51
| - {time spent not running queries}        |             48 |    14.91 |              0 |     0.00
| Codegen                                   |             29 |     9.01 |            420 |    61.90
| - {time spent not running queries}        |             16 |     4.97 |              0 |     0.00
| - collect_and_partition_mono_items        |             11 |     3.42 |             13 |    92.31
| - mir_const                               |              1 |     0.31 |              1 |     0.00
| - mir_validated                           |              1 |     0.31 |              3 |    66.67
| Expansion                                 |             14 |     4.35 |              0 |     0.00
| - {time spent not running queries}        |             14 |     4.35 |              0 |     0.00
| BorrowChecking                            |              1 |     0.31 |             12 |    41.67
| - borrowck                                |              1 |     0.31 |              2 |    50.00
| Parsing                                   |              0 |     0.00 |              0 |     0.00

Optimization level: No
Incremental: off

</details>
cc @nikomatsakis @michaelwoerister @Zoxc

Fixes #54141

5 years agoAuto merge of #58103 - RalfJung:mir-shim-dump, r=eddyb
bors [Sun, 10 Feb 2019 08:52:10 +0000 (08:52 +0000)]
Auto merge of #58103 - RalfJung:mir-shim-dump, r=eddyb

Make -Zdump-mir dump shims

Fixes https://github.com/rust-lang/rust/issues/53532 by (a) making the MIR shim generation use the MIR pass infrastructure, and (b) fixing said infrastructure to handle the fallout.

Cc @eddyb @oli-obk

5 years agoAuto merge of #58339 - Mark-Simulacrum:embedded-book, r=Mark-Simulacrum
bors [Sun, 10 Feb 2019 04:34:12 +0000 (04:34 +0000)]
Auto merge of #58339 - Mark-Simulacrum:embedded-book, r=Mark-Simulacrum

Add EmbeddedBook to test list in bootstrap

r? @alexcrichton

5 years agoAdd EmbeddedBook to test list in bootstrap
Mark Rousskov [Sun, 10 Feb 2019 02:42:23 +0000 (19:42 -0700)]
Add EmbeddedBook to test list in bootstrap

5 years agoAuto merge of #57770 - Zoxc:no-hash-query, r=michaelwoerister
bors [Sun, 10 Feb 2019 01:33:17 +0000 (01:33 +0000)]
Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoerister

Add a query type which is always marked as red if it runs

This is useful for queries which produce results which are very likely to change if their inputs do.

I also expect this to be useful for end to end queries because 1) we don't need `HashStable` impls and 2) we avoid the overhead of hashing the result of large results like the AST or the HIR map.

r? @michaelwoerister

5 years agoAuto merge of #58065 - alexreg:refactor-smart_resolve_path_fragment, r=petrochenkov
bors [Sat, 9 Feb 2019 23:02:15 +0000 (23:02 +0000)]
Auto merge of #58065 - alexreg:refactor-smart_resolve_path_fragment, r=petrochenkov

Factor out error reporting from `smart_resolve_path_fragment` fn

This function was ridiculously monolithic before. We now have three rather-less-monolithic-and-horrifying functions.

r? @centril

5 years agoAuto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obk
bors [Sat, 9 Feb 2019 20:15:57 +0000 (20:15 +0000)]
Auto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obk

Deduplicate mismatched delimiter errors

Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently.

Second attempt at #54029, follow up to #53949. Fix #31528.

5 years agoAuto merge of #57885 - arielb1:xform-probe, r=nikomatsakis
bors [Sat, 9 Feb 2019 15:11:43 +0000 (15:11 +0000)]
Auto merge of #57885 - arielb1:xform-probe, r=nikomatsakis

Avoid committing to autoderef in object method probing

This fixes the "leak" introduced in #57835 (see test for details, also apparently #54252 had no tests for the "leaks" that were fixed in it, so go ahead and add one).

Maybe beta-nominating because regression, but I'm against landing things on beta we don't have to.

r? @nikomatsakis

5 years agoAuto merge of #58207 - nnethercote:intern_lazy_const, r=oli-obk
bors [Sat, 9 Feb 2019 12:38:51 +0000 (12:38 +0000)]
Auto merge of #58207 - nnethercote:intern_lazy_const, r=oli-obk

Make `intern_lazy_const` actually intern its argument.

Currently it just unconditionally allocates it in the arena.

For a "Clean Check" build of the the `packed-simd` benchmark, this
change reduces both the `max-rss` and `faults` counts by 59%; it
slightly (~3%) increases the instruction counts but the `wall-time` is
unchanged.

For the same builds of a few other benchmarks, `max-rss` and `faults`
drop by 1--5%, but instruction counts and `wall-time` changes are in the
noise.

Fixes #57432, fixes #57829.

5 years agofix rebase fallout
Ralf Jung [Sat, 9 Feb 2019 11:19:04 +0000 (12:19 +0100)]
fix rebase fallout

5 years agofix printing closures
Ralf Jung [Tue, 5 Feb 2019 22:40:29 +0000 (23:40 +0100)]
fix printing closures

5 years agofix node classification
Ralf Jung [Tue, 5 Feb 2019 20:49:53 +0000 (21:49 +0100)]
fix node classification

5 years agofix --emit=mir: StructCtors are functions
Ralf Jung [Sun, 3 Feb 2019 13:09:56 +0000 (14:09 +0100)]
fix --emit=mir: StructCtors are functions

5 years agodisambiguate filenames of multiple drop shims being dumped
Ralf Jung [Sun, 3 Feb 2019 12:31:50 +0000 (13:31 +0100)]
disambiguate filenames of multiple drop shims being dumped

5 years agopass full InstanceDef to run_passes
Ralf Jung [Sun, 3 Feb 2019 10:51:07 +0000 (11:51 +0100)]
pass full InstanceDef to run_passes

5 years agofix rebase fallout: AnonConsts are Consts, and Methods are functions
Ralf Jung [Sun, 3 Feb 2019 09:06:57 +0000 (10:06 +0100)]
fix rebase fallout: AnonConsts are Consts, and Methods are functions

5 years agofix dumping MIR from another crate
Ralf Jung [Sat, 2 Feb 2019 15:59:20 +0000 (16:59 +0100)]
fix dumping MIR from another crate

5 years agouse pass infrastructure for mir shims, so that they can get dumped
Ralf Jung [Thu, 22 Nov 2018 16:17:45 +0000 (17:17 +0100)]
use pass infrastructure for mir shims, so that they can get dumped

5 years agoAuto merge of #57617 - mark-i-m:multiple-matcher-bindings, r=petrochenkov
bors [Sat, 9 Feb 2019 09:48:41 +0000 (09:48 +0000)]
Auto merge of #57617 - mark-i-m:multiple-matcher-bindings, r=petrochenkov

Error on duplicate matcher bindings

fix  #57593

This should not be merged without a crater run and maybe an FCP. Discussion is ongoing at  #57593.

TODO:
- [x] write tests
- [x] crater run
- [x] ~maybe need edition gating?~ not for 1 regression /centril

r? @petrochenkov

5 years agoAuto merge of #57184 - varkor:deny-warnings-lib, r=Mark-Simulacrum
bors [Sat, 9 Feb 2019 03:54:31 +0000 (03:54 +0000)]
Auto merge of #57184 - varkor:deny-warnings-lib, r=Mark-Simulacrum

Deny warnings in libcore and libstd

This probably fixes https://github.com/rust-lang/rust/issues/57178 (though there may still be some crates that need warnings denied). At least after this change, rustc currently produces no warnings during compilation.

r? @oli-obk

5 years agoAuto merge of #58316 - Centril:rollup, r=Centril
bors [Sat, 9 Feb 2019 01:04:13 +0000 (01:04 +0000)]
Auto merge of #58316 - Centril:rollup, r=Centril

Rollup of 18 pull requests

Successful merges:

 - #58091 (Transition compiletest to Rust 2018)
 - #58115 (Transition rustdoc to 2018 edition)
 - #58120 (Transition build_helper to 2018 edition)
 - #58222 (librustc_allocator => 2018)
 - #58233 (librustc_save_analysis => 2018)
 - #58245 (librustc_lint => 2018)
 - #58247 (librustc_passes => 2018)
 - #58251 (Transition librustc_traits to 2018 edition)
 - #58255 (librustc_metadata => 2018)
 - #58256 (librustc_cratesio_shim => 2018)
 - #58257 (librustc_target => 2018)
 - #58259 (librustc_codegen_utils => 2018)
 - #58260 (librustc_borrowck => 2018)
 - #58261 (librustc_incremental => 2018)
 - #58265 (librustc_mir => 2018)
 - #58275 (libcore, liballoc: disable tests in Miri)
 - #58285 (error_index_generator => 2018)
 - #58312 (librustc_data_structures => 2018)

Failed merges:

r? @ghost

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

librustc_data_structures => 2018

Transitions `librustc_data_structures` to Rust 2018; cc #58099

r? @Centril

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 agolibrustc_data_structures => 2018
Taiki Endo [Fri, 8 Feb 2019 16:36:22 +0000 (01:36 +0900)]
librustc_data_structures => 2018

5 years agoDeny warnings in std stage 0
varkor [Fri, 8 Feb 2019 15:44:50 +0000 (16:44 +0100)]
Deny warnings in std stage 0

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 agoFix nll test output
Esteban Küber [Fri, 8 Feb 2019 09:16:56 +0000 (01:16 -0800)]
Fix nll test output

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 agoAllow a dirty MirBuilt for make_extern and make_method_extern
John Kåre Alsaker [Fri, 8 Feb 2019 03:30:27 +0000 (04:30 +0100)]
Allow a dirty MirBuilt for make_extern and make_method_extern

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 agoUpdate tests
John Kåre Alsaker [Sat, 26 Jan 2019 15:52:34 +0000 (16:52 +0100)]
Update tests

5 years agoRemove no_hash from optimized_mir
John Kåre Alsaker [Tue, 22 Jan 2019 14:24:00 +0000 (15:24 +0100)]
Remove no_hash from optimized_mir

5 years agoMove no_hash from mir_built to optimized_mir
John Kåre Alsaker [Tue, 22 Jan 2019 07:59:17 +0000 (08:59 +0100)]
Move no_hash from mir_built to optimized_mir

5 years agoRemove no_hash from typeck_tables_of
John Kåre Alsaker [Mon, 21 Jan 2019 02:39:25 +0000 (03:39 +0100)]
Remove no_hash from typeck_tables_of

5 years agoRemove no_hash from optimized_mir
John Kåre Alsaker [Sun, 20 Jan 2019 15:43:57 +0000 (16:43 +0100)]
Remove no_hash from optimized_mir

5 years agoAdd a query type which is always marked as red if it runs
John Kåre Alsaker [Sun, 20 Jan 2019 04:44:02 +0000 (05:44 +0100)]
Add a query type which is always marked as red if it runs

5 years agoWIP
Alexander Regueiro [Thu, 7 Feb 2019 21:25:15 +0000 (22:25 +0100)]
WIP

5 years agoMinor cosmetic changes.
Alexander Regueiro [Mon, 4 Feb 2019 10:24:09 +0000 (11:24 +0100)]
Minor cosmetic changes.

5 years agoAddressed review points.
Alexander Regueiro [Mon, 4 Feb 2019 10:25:29 +0000 (11:25 +0100)]
Addressed review points.

5 years agoFactored out context-dependent help for error reporting.
Alexander Regueiro [Sat, 2 Feb 2019 02:18:32 +0000 (02:18 +0000)]
Factored out context-dependent help for error reporting.

5 years agoFactored out error reporting from `smart_resolve_path_fragment` fn.
Alexander Regueiro [Sat, 2 Feb 2019 01:08:15 +0000 (01:08 +0000)]
Factored out error reporting from `smart_resolve_path_fragment` fn.

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

5 years agoupdate test
Mark Mansi [Fri, 18 Jan 2019 03:30:06 +0000 (21:30 -0600)]
update test

5 years agoMake it an incompatibility lint for now
Mark Mansi [Fri, 18 Jan 2019 03:19:56 +0000 (21:19 -0600)]
Make it an incompatibility lint for now

5 years agoadd a test
mark [Tue, 15 Jan 2019 22:55:23 +0000 (16:55 -0600)]
add a test

5 years agofix existing tests
mark [Tue, 15 Jan 2019 18:25:41 +0000 (12:25 -0600)]
fix existing tests

5 years agoerror on duplicate matcher bindings
mark [Tue, 15 Jan 2019 01:14:02 +0000 (19:14 -0600)]
error on duplicate matcher bindings

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 fixme
Esteban Küber [Thu, 7 Feb 2019 14:20:23 +0000 (06:20 -0800)]
Add fixme

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