]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoDo not render ascii colors to buffers
Oliver Scherer [Tue, 9 Apr 2019 18:43:54 +0000 (20:43 +0200)]
Do not render ascii colors to buffers

5 years agoUpdate ui tests to latest master
Oliver Scherer [Tue, 2 Apr 2019 18:10:25 +0000 (20:10 +0200)]
Update ui tests to latest master

5 years agoDo not render coloful json in rustdoc
Oliver Scherer [Tue, 2 Apr 2019 12:48:43 +0000 (14:48 +0200)]
Do not render coloful json in rustdoc

5 years agoRename `colorful-json` to `json-rendered` and make it a selection instead of a bool
Oliver Scherer [Mon, 25 Mar 2019 10:16:58 +0000 (11:16 +0100)]
Rename `colorful-json` to `json-rendered` and make it a selection instead of a bool

5 years agoUpdate more unit test to new API
Oliver Scherer [Wed, 13 Mar 2019 13:06:25 +0000 (14:06 +0100)]
Update more unit test to new API

5 years agoFix forgotten capitalization
Oliver Scherer [Wed, 13 Mar 2019 09:19:33 +0000 (10:19 +0100)]
Fix forgotten capitalization

5 years agoAdjust tests to new enum variant fields
Oliver Scherer [Tue, 12 Mar 2019 19:44:10 +0000 (20:44 +0100)]
Adjust tests to new enum variant fields

5 years agoDon't dump diagnostics json if not absolutely necessary
Oliver Scherer [Tue, 12 Mar 2019 19:38:31 +0000 (20:38 +0100)]
Don't dump diagnostics json if not absolutely necessary

5 years agoRemove workaround code for a closed issue
Oliver Scherer [Tue, 12 Mar 2019 19:13:19 +0000 (20:13 +0100)]
Remove workaround code for a closed issue

5 years agoUpdate rustdoc
Oliver Scherer [Tue, 12 Mar 2019 13:47:45 +0000 (14:47 +0100)]
Update rustdoc

5 years agoEmit ansi color codes in the `rendered` field of json diagnostics
Oliver Scherer [Tue, 12 Mar 2019 12:06:43 +0000 (13:06 +0100)]
Emit ansi color codes in the `rendered` field of json diagnostics

5 years agoAuto merge of #59606 - Centril:rollup, r=Centril
bors [Mon, 1 Apr 2019 18:37:28 +0000 (18:37 +0000)]
Auto merge of #59606 - Centril:rollup, r=Centril

Rollup of 7 pull requests

Successful merges:

 - #58507 (Add a -Z time option which prints only passes which runs once)
 - #58919 (Suggest using anonymous lifetime in `impl Trait` return)
 - #59041 (fixes rust-lang#56766)
 - #59586 (Fixed URL in cargotest::TEST_REPOS)
 - #59595 (Update rustc-guide submodule)
 - #59601 (Fix small typo)
 - #59603 (stabilize ptr::hash)

Failed merges:

r? @ghost

5 years agoRollup merge of #59603 - matklad:ptrhash, r=Centril
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:59 +0000 (17:29 +0200)]
Rollup merge of #59603 - matklad:ptrhash, r=Centril

stabilize ptr::hash

closes #56286

5 years agoRollup merge of #59601 - kenta7777:typo-fix, r=Centril
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:58 +0000 (17:29 +0200)]
Rollup merge of #59601 - kenta7777:typo-fix, r=Centril

Fix small typo

This PR fixes a small typo in `eq()` comments.

5 years agoRollup merge of #59595 - mark-i-m:update-rustc-guide, r=steveklabnik
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:56 +0000 (17:29 +0200)]
Rollup merge of #59595 - mark-i-m:update-rustc-guide, r=steveklabnik

Update rustc-guide submodule

Just keeping up with the head...

r? @steveklabnik

5 years agoRollup merge of #59586 - XAMPPRocky:redirect, r=alexcrichton
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:55 +0000 (17:29 +0200)]
Rollup merge of #59586 - XAMPPRocky:redirect, r=alexcrichton

Fixed URL in cargotest::TEST_REPOS

5 years agoRollup merge of #59041 - saleemjaffer:trait_doc_comment_better_error_msg, r=pnkfelix
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:53 +0000 (17:29 +0200)]
Rollup merge of #59041 - saleemjaffer:trait_doc_comment_better_error_msg, r=pnkfelix

fixes rust-lang#56766

fixes #56766

5 years agoRollup merge of #58919 - estebank:impl-trait-return-lifetime, r=pnkfelix
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:51 +0000 (17:29 +0200)]
Rollup merge of #58919 - estebank:impl-trait-return-lifetime, r=pnkfelix

Suggest using anonymous lifetime in `impl Trait` return

Fix #48467.

r? @nikomatsakis

5 years agoRollup merge of #58507 - Zoxc:time-extended, r=michaelwoerister
Mazdak Farrokhzad [Mon, 1 Apr 2019 15:29:48 +0000 (17:29 +0200)]
Rollup merge of #58507 - Zoxc:time-extended, r=michaelwoerister

Add a -Z time option which prints only passes which runs once

This ensures `-Z time-passes` fits on my screen =P

r? @michaelwoerister

5 years agoAuto merge of #59593 - pietroalbini:appveyor-version, r=alexcrichton
bors [Mon, 1 Apr 2019 15:24:15 +0000 (15:24 +0000)]
Auto merge of #59593 - pietroalbini:appveyor-version, r=alexcrichton

Print the appveyor agent version at the start of the build

[AppVeyor support asked for this.](https://help.appveyor.com/discussions/problems/19657-successful-builds-failing-with-code-259#comment_47132359)

r? @alexcrichton

5 years agostabilize ptr::hash
Aleksey Kladov [Mon, 1 Apr 2019 13:36:07 +0000 (16:36 +0300)]
stabilize ptr::hash

closes #56286

5 years agotypo fix
kenta7777 [Mon, 1 Apr 2019 10:51:12 +0000 (19:51 +0900)]
typo fix

5 years agoupdate rustc-guide submodule
mark [Mon, 1 Apr 2019 00:36:00 +0000 (19:36 -0500)]
update rustc-guide submodule

5 years agoAuto merge of #59507 - nnethercote:indent-with-SPACES, r=petrochenkov
bors [Sun, 31 Mar 2019 23:50:46 +0000 (23:50 +0000)]
Auto merge of #59507 - nnethercote:indent-with-SPACES, r=petrochenkov

Optimize indentation in the pretty printer.

Currently the pretty-printer calls `write!` for every space of
indentation. On some workloads the indentation level can exceed 100, and
a faster implementation reduces instruction counts by up to 7% on a few
workloads.

5 years agoci: print the appveyor agent version at the start of the build
Pietro Albini [Sun, 31 Mar 2019 21:56:09 +0000 (23:56 +0200)]
ci: print the appveyor agent version at the start of the build

5 years agoOptimize indentation in the pretty printer.
Nicholas Nethercote [Thu, 28 Mar 2019 21:32:13 +0000 (08:32 +1100)]
Optimize indentation in the pretty printer.

Currently the pretty-printer calls `write!` for every space of
indentation. On some workloads the indentation level can exceed 100, and
a faster implementation reduces instruction counts by up to 7% on a few
workloads.

5 years agoAuto merge of #59577 - dlrobertson:fix_58881, r=nagisa
bors [Sun, 31 Mar 2019 20:28:00 +0000 (20:28 +0000)]
Auto merge of #59577 - dlrobertson:fix_58881, r=nagisa

Fix LLVM IR generated for C-variadic arguments

It is possible to create malformed LLVM IR given variadic arguments that
are aggregate types. This occurs due to improper tracking of the current
argument in the functions list of arguments.

Fixes: #58881
5 years agoFix LLVM IR generated for C-variadic arguments
Dan Robertson [Wed, 27 Mar 2019 13:00:37 +0000 (13:00 +0000)]
Fix LLVM IR generated for C-variadic arguments

It is possible to create malformed LLVM IR given variadic arguments that
are aggregate types. This occurs due to improper tracking of the current
argument in the functions list of arguments.

5 years agoAuto merge of #59590 - Centril:rollup, r=Centril
bors [Sun, 31 Mar 2019 17:21:14 +0000 (17:21 +0000)]
Auto merge of #59590 - Centril:rollup, r=Centril

Rollup of 7 pull requests

Successful merges:

 - #58805 (Lint for redundant imports)
 - #59506 (Use platform dependent mcount function)
 - #59519 (rustc_target: factor out common fields of non-Single Variants.)
 - #59580 (Allow closure to unsafe fn coercion)
 - #59581 (Stabilize refcell_replace_swap feature)
 - #59583 (match match match match match)
 - #59587 (Remove #[doc(hidden)] from Error::type_id)

Failed merges:

r? @ghost

5 years agoRollup merge of #59587 - XAMPPRocky:master, r=Centril
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:56 +0000 (19:19 +0200)]
Rollup merge of #59587 - XAMPPRocky:master, r=Centril

Remove #[doc(hidden)] from Error::type_id

Nominating this for beta so that `Error::type_id` has documentation in time for release.

cc @rust-lang/release @rust-lang/docs

5 years agoRollup merge of #59583 - oberien:patch-1, r=Centril
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:54 +0000 (19:19 +0200)]
Rollup merge of #59583 - oberien:patch-1, r=Centril

match match match match match

5 years agoRollup merge of #59581 - jmcomets:stabilize-refcell_replace_swap, r=Centril
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:53 +0000 (19:19 +0200)]
Rollup merge of #59581 - jmcomets:stabilize-refcell_replace_swap, r=Centril

Stabilize refcell_replace_swap feature

Please be kind, this is my first time contributing. :smile:

I noticed #43570 only needs stabilizing (and I need it for a side project I'm working on), so I followed the [guide](https://rust-lang.github.io/rustc-guide/stabilization_guide.html#stabilization-pr) to move things forward.

I'm happy to amend things if needed, let me know!

5 years agoRollup merge of #59580 - taiki-e:coerce-closure, r=oli-obk
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:51 +0000 (19:19 +0200)]
Rollup merge of #59580 - taiki-e:coerce-closure, r=oli-obk

Allow closure to unsafe fn coercion

Closes #57883

5 years agoRollup merge of #59519 - eddyb:layout-variants-refactor, r=oli-obk
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:50 +0000 (19:19 +0200)]
Rollup merge of #59519 - eddyb:layout-variants-refactor, r=oli-obk

rustc_target: factor out common fields of non-Single Variants.

@tmandry and I were discussing ways to generalize the current variants/discriminant layout to allow more fields in the "`enum`" (or another multi-variant types, such as potentially generator state, in the future), shared by all variants, than just the tag/niche discriminant.

This refactor should make it easier to extend multi-variant layouts, as nothing is duplicating anymore between "tagged enums" and "niche-filling enums".

r? @oli-obk

5 years agoRollup merge of #59506 - JohnTitor:improve-mcount, r=nagisa
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:48 +0000 (19:19 +0200)]
Rollup merge of #59506 - JohnTitor:improve-mcount, r=nagisa

Use platform dependent mcount function

close #59097

This pull-request is based on #57244 and [here](https://github.com/llvm-mirror/clang/search?q=MCountName&unscoped_MCountName).

r? @nagisa

5 years agoRollup merge of #58805 - fabric-and-ink:redundant_import, r=petrochenkov
Mazdak Farrokhzad [Sun, 31 Mar 2019 17:19:47 +0000 (19:19 +0200)]
Rollup merge of #58805 - fabric-and-ink:redundant_import, r=petrochenkov

Lint for redundant imports

Add lint for redundant imports. The changes are suggested by @petrochenkov.

Closes #10178.

5 years agoSuggest using anonymous lifetime in `impl Trait` return without hacks
Esteban Küber [Sun, 31 Mar 2019 16:07:56 +0000 (09:07 -0700)]
Suggest using anonymous lifetime in `impl Trait` return without hacks

Fallback to `static_impl_trait` for nice error message by peeking at the
return type and the lifetime type. Point at the return type instead of
the return expr/stmt in NLL mode.

5 years agoAllow closure to unsafe fn coercion
Taiki Endo [Sun, 31 Mar 2019 15:00:43 +0000 (00:00 +0900)]
Allow closure to unsafe fn coercion

5 years agoFixed URL in cargotest::TEST_REPOS
Aaron Power [Sun, 31 Mar 2019 14:56:30 +0000 (16:56 +0200)]
Fixed URL in cargotest::TEST_REPOS

5 years agoRemove #[doc(hidden)] from Error::type_id
Aaron Power [Sun, 31 Mar 2019 14:54:05 +0000 (16:54 +0200)]
Remove #[doc(hidden)] from Error::type_id

5 years agoUse `u{1}` instead of `01`
Yuki OKUSHI [Sun, 31 Mar 2019 14:17:49 +0000 (23:17 +0900)]
Use `u{1}` instead of `01`

5 years agoAuto merge of #59584 - Centril:rollup, r=Centril
bors [Sun, 31 Mar 2019 14:11:11 +0000 (14:11 +0000)]
Auto merge of #59584 - Centril:rollup, r=Centril

Rollup of 4 pull requests

Successful merges:

 - #58828 (libstd: deny(elided_lifetimes_in_paths))
 - #59234 (Mention `no merge policy` in the CONTRIBUTING guide)
 - #59572 (Include bounds in generic re-ordering diagnostic)
 - #59574 (Distinguish message for external macros depending on error level)

Failed merges:

r? @ghost

5 years agoRollup merge of #59574 - JohnTitor:distinguish-error-vs-warning, r=Centril
Mazdak Farrokhzad [Sun, 31 Mar 2019 14:10:38 +0000 (16:10 +0200)]
Rollup merge of #59574 - JohnTitor:distinguish-error-vs-warning, r=Centril

Distinguish message for external macros depending on error level

fixes #57716

(I picked you because assigned to this issue.)
r? @estebank

5 years agoRollup merge of #59572 - davidtwco:issue-59508, r=varkor
Mazdak Farrokhzad [Sun, 31 Mar 2019 14:10:37 +0000 (16:10 +0200)]
Rollup merge of #59572 - davidtwco:issue-59508, r=varkor

Include bounds in generic re-ordering diagnostic

Fixes #59508.

r? @estebank
cc @varkor

5 years agoRollup merge of #59234 - stepnivlk:add-no_merge_policy, r=oli-obk
Mazdak Farrokhzad [Sun, 31 Mar 2019 14:10:36 +0000 (16:10 +0200)]
Rollup merge of #59234 - stepnivlk:add-no_merge_policy, r=oli-obk

Mention `no merge policy` in the CONTRIBUTING guide

Issue: https://github.com/rust-lang/rust/issues/59233

5 years agoRollup merge of #58828 - Centril:deny-elided_lifetimes_in_paths-libstd, r=oli-obk
Mazdak Farrokhzad [Sun, 31 Mar 2019 14:10:34 +0000 (16:10 +0200)]
Rollup merge of #58828 - Centril:deny-elided_lifetimes_in_paths-libstd, r=oli-obk

libstd: deny(elided_lifetimes_in_paths)

r? @oli-obk

5 years agomatch match match match match
Jaro Fietz [Sun, 31 Mar 2019 13:20:10 +0000 (15:20 +0200)]
match match match match match

5 years agorefcell_replace_swap: remove feature gate & obsolete documentation item
Jean-Marie Comets [Sun, 31 Mar 2019 12:50:06 +0000 (14:50 +0200)]
refcell_replace_swap: remove feature gate & obsolete documentation item

5 years agolibstd: deny(elided_lifetimes_in_paths), fixes in redox
Mazdak Farrokhzad [Sun, 31 Mar 2019 12:33:50 +0000 (14:33 +0200)]
libstd: deny(elided_lifetimes_in_paths), fixes in redox

5 years agoRemove redundant import
Fabian Drinck [Sun, 31 Mar 2019 12:11:46 +0000 (14:11 +0200)]
Remove redundant import

5 years agolibstd: deny(elided_lifetimes_in_paths), fixes in sgx
Mazdak Farrokhzad [Sun, 31 Mar 2019 10:56:42 +0000 (12:56 +0200)]
libstd: deny(elided_lifetimes_in_paths), fixes in sgx

5 years agolibstd: deny(elided_lifetimes_in_paths), fixes in wasi
Mazdak Farrokhzad [Sat, 30 Mar 2019 14:22:19 +0000 (15:22 +0100)]
libstd: deny(elided_lifetimes_in_paths), fixes in wasi

5 years agolibstd: deny(elided_lifetimes_in_paths), fixes in cloudabi
Mazdak Farrokhzad [Sat, 30 Mar 2019 09:30:57 +0000 (10:30 +0100)]
libstd: deny(elided_lifetimes_in_paths), fixes in cloudabi

5 years agolibstd: deny(elided_lifetimes_in_paths)
Mazdak Farrokhzad [Fri, 1 Mar 2019 08:34:11 +0000 (09:34 +0100)]
libstd: deny(elided_lifetimes_in_paths)

5 years agoAdd back missing import
Fabian Drinck [Sun, 31 Mar 2019 10:02:27 +0000 (12:02 +0200)]
Add back missing import

5 years agoStabilize refcell_replace_swap feature, closes #43570
Jean-Marie Comets [Sun, 31 Mar 2019 08:54:00 +0000 (10:54 +0200)]
Stabilize refcell_replace_swap feature, closes #43570

5 years agoAuto merge of #59566 - cuviper:llvm-rebuild-sha, r=Mark-Simulacrum
bors [Sun, 31 Mar 2019 01:22:07 +0000 (01:22 +0000)]
Auto merge of #59566 - cuviper:llvm-rebuild-sha, r=Mark-Simulacrum

Use the existing LLVM GitInfo for checking rebuilds

Fixes #59565

5 years agoOnly mention const generics if enabled.
David Wood [Sat, 30 Mar 2019 19:57:04 +0000 (20:57 +0100)]
Only mention const generics if enabled.

This commit updates the generic parameter re-ordering diagnostic to only
mention const generics if the feature is enabled.

5 years agoInclude bounds in generic reordering diagnostic.
David Wood [Sat, 30 Mar 2019 19:30:36 +0000 (20:30 +0100)]
Include bounds in generic reordering diagnostic.

This commit extends the existing generic re-ordering diagnostic to
include any bounds on the generic parameter, thus producing correct
suggestions.

5 years agoDistinguish depending on error level
Yuki OKUSHI [Sat, 30 Mar 2019 21:30:45 +0000 (06:30 +0900)]
Distinguish depending on error level

Remove unnecessary comment

5 years agoAuto merge of #59575 - Centril:rollup, r=Centril
bors [Sat, 30 Mar 2019 22:15:05 +0000 (22:15 +0000)]
Auto merge of #59575 - Centril:rollup, r=Centril

Rollup of 3 pull requests

Successful merges:

 - #59405 (doc: use correct body font URLs)
 - #59562 (Changed reference style in dbg macro docs.)
 - #59569 (Add book.toml with title to unstable-book doc)

Failed merges:

r? @ghost

5 years agoRollup merge of #59569 - gruberb:add-title-for-unstable-book, r=frewsxcv
Mazdak Farrokhzad [Sat, 30 Mar 2019 22:14:43 +0000 (23:14 +0100)]
Rollup merge of #59569 - gruberb:add-title-for-unstable-book, r=frewsxcv

Add book.toml with title to unstable-book doc

Adding a title to the unstable book based on https://github.com/rust-lang/rust/issues/59554

5 years agoRollup merge of #59562 - DevQps:dbg-macro-docs, r=Centril
Mazdak Farrokhzad [Sat, 30 Mar 2019 22:14:42 +0000 (23:14 +0100)]
Rollup merge of #59562 - DevQps:dbg-macro-docs, r=Centril

Changed reference style in dbg macro docs.

# Description

A continuation of Pull Request #59528 :
- Fixed method of referencing and adjusted the references as suggested by @lzutao

5 years agoRollup merge of #59405 - benesch:docs-font, r=GuillaumeGomez
Mazdak Farrokhzad [Sat, 30 Mar 2019 22:14:40 +0000 (23:14 +0100)]
Rollup merge of #59405 - benesch:docs-font, r=GuillaumeGomez

doc: use correct body font URLs

The CSS for the docs homepage (docs.rust-lang.org) was using the wrong
URL for the body font, resulting in the fallback serif font being used,
instead of the desired Source Serif Pro fonts.

(It's worth noting that the CSS for rustdoc's API generation got these URLs right.)

5 years agoFix test
Yuki OKUSHI [Sat, 30 Mar 2019 22:13:59 +0000 (07:13 +0900)]
Fix test

5 years agoRestore test
Fabian Drinck [Mon, 18 Mar 2019 16:51:00 +0000 (17:51 +0100)]
Restore test

5 years agoHandle glob import in redundancy check
Fabian Drinck [Mon, 18 Mar 2019 16:50:49 +0000 (17:50 +0100)]
Handle glob import in redundancy check

5 years agoChange message to present tense
Fabian Drinck [Sun, 17 Mar 2019 20:07:57 +0000 (21:07 +0100)]
Change message to present tense

5 years agoFix doc tests
Fabian Drinck [Sun, 17 Mar 2019 16:40:25 +0000 (17:40 +0100)]
Fix doc tests

5 years agoFix more tests
Fabian Drinck [Sun, 17 Mar 2019 12:30:42 +0000 (13:30 +0100)]
Fix more tests

5 years agoAdd glob import to redundancy test
Fabian Drinck [Sun, 17 Mar 2019 10:55:32 +0000 (11:55 +0100)]
Add glob import to redundancy test

5 years agoFix tests
Fabian Drinck [Sun, 17 Mar 2019 10:38:38 +0000 (11:38 +0100)]
Fix tests

5 years agoReplace REDUNDANT_IMPORT with UNUSED_IMPORTS
Fabian Drinck [Sun, 17 Mar 2019 08:49:31 +0000 (09:49 +0100)]
Replace REDUNDANT_IMPORT with UNUSED_IMPORTS

5 years agoEdit ui tests
Fabian Drinck [Sat, 16 Mar 2019 18:21:03 +0000 (19:21 +0100)]
Edit ui tests

5 years agoRemove redundant import
Fabian Drinck [Sat, 16 Mar 2019 18:19:40 +0000 (19:19 +0100)]
Remove redundant import

5 years agoDistinguish between imported and defined items
Fabian Drinck [Sat, 16 Mar 2019 18:06:22 +0000 (19:06 +0100)]
Distinguish between imported and defined items

5 years agoBless tests
Fabian Drinck [Sat, 16 Mar 2019 17:08:51 +0000 (18:08 +0100)]
Bless tests

5 years agoImprove warning
Fabian Drinck [Sat, 16 Mar 2019 16:38:12 +0000 (17:38 +0100)]
Improve warning

5 years agoEdit comments
Fabian Drinck [Sat, 16 Mar 2019 15:49:13 +0000 (16:49 +0100)]
Edit comments

5 years agoRemove redundant imports
Fabian Drinck [Sun, 10 Mar 2019 11:52:30 +0000 (12:52 +0100)]
Remove redundant imports

5 years agoAdd lint for redundant imports
Fabian Drinck [Fri, 22 Feb 2019 14:07:18 +0000 (15:07 +0100)]
Add lint for redundant imports

Co-authored-by: Stephan Schauerte <stephan.schauerte@gmail.com>
5 years agoAdd book.toml with title to unstable-book doc
Bastian Gruber [Sat, 30 Mar 2019 18:46:43 +0000 (19:46 +0100)]
Add book.toml with title to unstable-book doc

5 years agoDon't ignore git for LLVM info
Josh Stone [Sat, 30 Mar 2019 18:14:02 +0000 (11:14 -0700)]
Don't ignore git for LLVM info

5 years agoUse a single llvm_info variable
Josh Stone [Sat, 30 Mar 2019 18:11:32 +0000 (11:11 -0700)]
Use a single llvm_info variable

5 years agoAuto merge of #59516 - ehuss:update-cargo, r=alexcrichton
bors [Sat, 30 Mar 2019 17:22:21 +0000 (17:22 +0000)]
Auto merge of #59516 - ehuss:update-cargo, r=alexcrichton

Update cargo

Update cargo

22 commits in 0e35bd8af0ec72d3225c4819b330b94628f0e9d0..63231f438a2b5b84ccf319a5de22343ee0316323
2019-03-13 06:52:51 +0000 to 2019-03-27 12:26:45 +0000
- Code cleanup (rust-lang/cargo#6787)
- Add cargo:rustc-link-arg to pass custom linker arguments (rust-lang/cargo#6298)
- Testsuite: remove some unnecessary is_nightly checks. (rust-lang/cargo#6786)
- cargo metadata: Don't show `null` deps. (rust-lang/cargo#6534)
- Some fingerprint cleanup. (rust-lang/cargo#6785)
- Fix fingerprint for canceled build script. (rust-lang/cargo#6782)
- Canonicalize default target if it ends with `.json` (rust-lang/cargo#6778)
- Fix setting `panic=unwind` compiling lib a extra time. (rust-lang/cargo#6781)
- Always nicely show errors from crates.io if possible (rust-lang/cargo#6771)
- Testsuite: Make `cwd()` relative to project root. (rust-lang/cargo#6768)
- Allow `cargo fix` if gitignore matches root working dir. (rust-lang/cargo#6767)
- Remove redundant imports (rust-lang/cargo#6763)
- Handle backcompat hazard with `toml` crate (rust-lang/cargo#6761)
- Fix spurious error in dirty_both_lib_and_test. (rust-lang/cargo#6756)
- Update toml requirement from 0.4.2 to 0.5.0 (rust-lang/cargo#6760)
- Reuse std::env::consts::EXE_SUFFIX (rust-lang/cargo#6758)
- Proptest 0.9.1 (rust-lang/cargo#6753)
- Don't need extern crate in 2018 (rust-lang/cargo#6752)
- Release a jobserver token while locking a file (rust-lang/cargo#6748)
- Minor doc fix for publish command synopsis (rust-lang/cargo#6749)
- Stricter package change detection. (rust-lang/cargo#6740)
- Fix resolving yanked crates when using a local registry. (rust-lang/cargo#6742)

5 years agoUse the existing LLVM GitInfo for checking rebuilds
Josh Stone [Sat, 30 Mar 2019 16:45:26 +0000 (09:45 -0700)]
Use the existing LLVM GitInfo for checking rebuilds

5 years agoUpdate cargo
Eric Huss [Fri, 29 Mar 2019 03:13:13 +0000 (20:13 -0700)]
Update cargo

5 years agoAuto merge of #59561 - Centril:rollup, r=Centril
bors [Sat, 30 Mar 2019 14:12:12 +0000 (14:12 +0000)]
Auto merge of #59561 - Centril:rollup, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #59343 (rustc(codegen): uncache `def_symbol_name` prefix from `symbol_name`.)
 - #59380 (Fix invalid DWARF for enums when using ThinLTO)
 - #59463 (skip dyn keyword lint under macros)
 - #59539 (Fix infinite recursion)
 - #59544 (manifest: only include miri on the nightly channel)

Failed merges:

r? @ghost

5 years agoAdded a missing !.
Christian [Sat, 30 Mar 2019 13:35:51 +0000 (14:35 +0100)]
Added a missing !.

5 years agoAdded an example that shows how the remainder function on floating point values is...
Christian [Sat, 30 Mar 2019 13:26:54 +0000 (14:26 +0100)]
Added an example that shows how the remainder function on floating point values is computed internally.

5 years agoRollup merge of #59544 - cuviper:miri-nightly, r=Centril
Mazdak Farrokhzad [Sat, 30 Mar 2019 13:14:58 +0000 (14:14 +0100)]
Rollup merge of #59544 - cuviper:miri-nightly, r=Centril

manifest: only include miri on the nightly channel

miri needs to build std with xargo, which doesn't allow stable/beta:
<https://github.com/japaric/xargo/pull/204#issuecomment-374888868>

Therefore, at this time there's no point in making miri available on any
but the nightly channel.  If we get a stable way to build `std`, like
[RFC 2663], then we can re-evaluate whether to start including miri,
perhaps still as `miri-preview`.

[RFC 2663]: https://github.com/rust-lang/rfcs/pull/2663

5 years agoRollup merge of #59539 - GuillaumeGomez:rustdoc-infinite-recursion, r=eddyb
Mazdak Farrokhzad [Sat, 30 Mar 2019 13:14:56 +0000 (14:14 +0100)]
Rollup merge of #59539 - GuillaumeGomez:rustdoc-infinite-recursion, r=eddyb

Fix infinite recursion

Temporary fix for #59502.

r? @eddyb

5 years agoRollup merge of #59463 - pnkfelix:issue-56327-skip-dyn-keyword-lint-under-macros...
Mazdak Farrokhzad [Sat, 30 Mar 2019 13:14:55 +0000 (14:14 +0100)]
Rollup merge of #59463 - pnkfelix:issue-56327-skip-dyn-keyword-lint-under-macros, r=matthewjasper

skip dyn keyword lint under macros

This PR is following my own intuition that `rustfix` should never inject bugs into working code (even if that comes at the expense of it failing to fix things that will become bugs).

Fix #56327

5 years agoRollup merge of #59380 - philipc:thinlto-variant, r=michaelwoerister
Mazdak Farrokhzad [Sat, 30 Mar 2019 13:14:53 +0000 (14:14 +0100)]
Rollup merge of #59380 - philipc:thinlto-variant, r=michaelwoerister

Fix invalid DWARF for enums when using ThinLTO

We were setting the same identifier for both the DW_TAG_structure_type
and the DW_TAG_variant_part. This becomes a problem when using ThinLTO
becauses it uses the identifier as a key for a map of types that is used
to delete duplicates based on the ODR, so one of them is deleted as a
duplicate, resulting in invalid DWARF.

The DW_TAG_variant_part isn't a standalone type, so it doesn't need
an identifier. Fix by omitting its identifier.

ODR uniquing is [enabled here](https://github.com/rust-lang/rust/blob/f21dee2c6179276321a88a63300dce74ff707e92/src/rustllvm/PassWrapper.cpp#L1101).

5 years agoRollup merge of #59343 - eddyb:rm-def-symbol-name, r=michaelwoerister
Mazdak Farrokhzad [Sat, 30 Mar 2019 13:14:52 +0000 (14:14 +0100)]
Rollup merge of #59343 - eddyb:rm-def-symbol-name, r=michaelwoerister

rustc(codegen): uncache `def_symbol_name` prefix from `symbol_name`.

The `def_symbol_name` query was an optimization to avoid recomputing the common part of a symbol name, as only the hash needs to be added to it for each symbol.

However, #57967 will add a new mangling scheme, which doesn't readily support this kind of reuse - while it's plausible, it requires a lot more effort, since you'd have to "symbolically evaluate" mangling, and keep it in a form where the backreference positions can be computed correctly in the final step.

So I want to see how much time we're actually saving with this `def_symbol_name` optimization, nowadays.

cc @michaelwoerister

5 years agoUse CString
Yuki OKUSHI [Sat, 30 Mar 2019 12:37:02 +0000 (21:37 +0900)]
Use CString

5 years agoFix infinite recursion
Guillaume Gomez [Fri, 29 Mar 2019 22:57:03 +0000 (23:57 +0100)]
Fix infinite recursion

5 years agoUse target_mcount
Yuki OKUSHI [Sat, 30 Mar 2019 09:50:34 +0000 (18:50 +0900)]
Use target_mcount

5 years agoAdd target_mcount option
Yuki OKUSHI [Sat, 30 Mar 2019 09:50:19 +0000 (18:50 +0900)]
Add target_mcount option

5 years agoAuto merge of #59550 - Centril:rollup, r=Centril
bors [Sat, 30 Mar 2019 08:32:13 +0000 (08:32 +0000)]
Auto merge of #59550 - Centril:rollup, r=Centril

Rollup of 10 pull requests

Successful merges:

 - #59376 (RFC 2008: Enum Variants)
 - #59453 (Recover from parse error in tuple syntax)
 - #59455 (Account for short-hand field syntax when suggesting borrow)
 - #59499 (Fix broken download link in the armhf-gnu image)
 - #59512 (implement `AsRawFd` for stdio locks)
 - #59525 (Whitelist some rustc attrs)
 - #59528 (Improve the dbg! macro docs )
 - #59532 (In doc examples, don't ignore read/write results)
 - #59534 (rustdoc: collapse blanket impls in the same way as normal impls)
 - #59537 (Fix OnceWith docstring.)

Failed merges:

r? @ghost