]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAdd examples to int macros
Steve Klabnik [Mon, 4 May 2020 13:26:39 +0000 (08:26 -0500)]
Add examples to int macros

4 years agof64 examples
Steve Klabnik [Mon, 4 May 2020 13:14:38 +0000 (08:14 -0500)]
f64 examples

4 years agocorrect -> intended
Steve Klabnik [Mon, 4 May 2020 13:07:20 +0000 (08:07 -0500)]
correct -> intended

4 years agoadd some whitespace
Steve Klabnik [Sun, 3 May 2020 14:02:58 +0000 (09:02 -0500)]
add some whitespace

4 years agoAdd examples for std::f32 constants.
Steve Klabnik [Sun, 3 May 2020 14:01:14 +0000 (09:01 -0500)]
Add examples for std::f32 constants.

And also point people to use the associated constants of f32 instead.

4 years agoAuto merge of #71828 - Dylan-DPC:rollup-qf5h2w5, r=Dylan-DPC
bors [Sun, 3 May 2020 08:53:03 +0000 (08:53 +0000)]
Auto merge of #71828 - Dylan-DPC:rollup-qf5h2w5, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #71165 (`slice::fill`: use `T` instead of generic arg)
 - #71314 (Implement RFC 2523, `#[cfg(version(..))]`)
 - #71542 (Implement `confusable_idents` lint.)
 - #71806 (typo)
 - #71813 (Decode qualifs for associated const defaults)

Failed merges:

r? @ghost

4 years agoRollup merge of #71813 - ecstatic-morse:issue-71734, r=tmandry
Dylan DPC [Sun, 3 May 2020 08:48:08 +0000 (14:18 +0530)]
Rollup merge of #71813 - ecstatic-morse:issue-71734, r=tmandry

Decode qualifs for associated const defaults

Fixes #71734.

We encode qualifs for associated constants, but never expected to decode the qualifs for defaulted associated consts. Fix this, and test that associated const defaults have the correct qualifs cross-crate.

r? @tmandry

4 years agoRollup merge of #71806 - lcnr:patch-3, r=jonas-schievink
Dylan DPC [Sun, 3 May 2020 08:48:04 +0000 (14:18 +0530)]
Rollup merge of #71806 - lcnr:patch-3, r=jonas-schievink

typo

4 years agoRollup merge of #71542 - crlf0710:confusable_idents, r=petrochenkov
Dylan DPC [Sun, 3 May 2020 08:48:02 +0000 (14:18 +0530)]
Rollup merge of #71542 - crlf0710:confusable_idents, r=petrochenkov

Implement `confusable_idents` lint.

This collects all identifier symbols into `ParseSession` and examines them within the non-ascii-idents lint.

The skeleton generation part needs to be added to `unicode-security` crate. Will update this PR when the crate is updated.

r? @petrochenkov

EDIT: also included the `concat_idents` part.

4 years agoRollup merge of #71314 - mibac138:cfg-version, r=petrochenkov
Dylan DPC [Sun, 3 May 2020 08:48:00 +0000 (14:18 +0530)]
Rollup merge of #71314 - mibac138:cfg-version, r=petrochenkov

Implement RFC 2523, `#[cfg(version(..))]`

Hi! This is my first contribution to rust, I hope I didn't miss anything. I tried to implement this feature so that `#[cfg(version(1.44.0))]` works but the parser was printing an error that I wasn't sure how to fix so I just opted for implementing `#[cfg(version("1.44.0"))]` (note the quotes).

Tracking issue: #64796

4 years agoRollup merge of #71165 - lcnr:patch-2, r=Amanieu
Dylan DPC [Sun, 3 May 2020 08:47:53 +0000 (14:17 +0530)]
Rollup merge of #71165 - lcnr:patch-2, r=Amanieu

`slice::fill`: use `T` instead of generic arg

implements https://github.com/rust-lang/rust/issues/70758#issuecomment-613994427

As the discussion in #70758 has shifted, I now use `T` instead of `&T`.

4 years agoAuto merge of #71815 - Mark-Simulacrum:no-llvm-rebuild, r=jonas-schievink
bors [Sun, 3 May 2020 02:58:00 +0000 (02:58 +0000)]
Auto merge of #71815 - Mark-Simulacrum:no-llvm-rebuild, r=jonas-schievink

Don't bust caches on x.py check/build switches

Fixes #71152

4 years agoAdd build script to rustc_attr because of cfg(version)
mibac138 [Sat, 2 May 2020 16:33:42 +0000 (18:33 +0200)]
Add build script to rustc_attr because of cfg(version)

4 years agoAdd more tests for cfg(version)
mibac138 [Tue, 28 Apr 2020 14:07:50 +0000 (16:07 +0200)]
Add more tests for cfg(version)

4 years agoChange cfg(version) error message wording
mibac138 [Tue, 28 Apr 2020 14:07:11 +0000 (16:07 +0200)]
Change cfg(version) error message wording

4 years agoImplement RFC 2523, `#[cfg(version(..))]`
mibac138 [Sun, 19 Apr 2020 08:47:55 +0000 (10:47 +0200)]
Implement RFC 2523, `#[cfg(version(..))]`

4 years agoAuto merge of #71807 - Dylan-DPC:rollup-jvb8sd9, r=Dylan-DPC
bors [Sat, 2 May 2020 23:35:09 +0000 (23:35 +0000)]
Auto merge of #71807 - Dylan-DPC:rollup-jvb8sd9, r=Dylan-DPC

Rollup of 7 pull requests

Successful merges:

 - #69274 (Implement RFC 2396: `#[target_feature]` 1.1)
 - #71767 (doc: make Stack and StackElement a little pretty)
 - #71772 (Mark query function as must_use.)
 - #71777 (cleanup: `config::CrateType` -> `CrateType`)
 - #71784 (Remove recommendation for unmaintained dirs crate)
 - #71785 (Update comment regarding SO_REUSEADDR on Windows)
 - #71787 (fix rustdoc warnings)

Failed merges:

r? @ghost

4 years agoDon't skip building LLVM if already built
Mark Rousskov [Sat, 2 May 2020 22:39:33 +0000 (18:39 -0400)]
Don't skip building LLVM if already built

4 years agoExtract stamp testing for LLVM
Mark Rousskov [Sat, 2 May 2020 22:25:45 +0000 (18:25 -0400)]
Extract stamp testing for LLVM

The extracted function can be used by the rest of bootstrap to detect if we've
already built an up-to-date LLVM (and so it's safe for us to either request it
or pretend it exists).

4 years agoDecode qualifs from defaulted trait associated consts
Dylan MacKenzie [Sat, 2 May 2020 21:17:04 +0000 (14:17 -0700)]
Decode qualifs from defaulted trait associated consts

4 years agoTest associated const default qualifs cross-crate
Dylan MacKenzie [Sat, 2 May 2020 21:39:12 +0000 (14:39 -0700)]
Test associated const default qualifs cross-crate

This also tests for the ICE in #71734

4 years agoAuto merge of #69274 - LeSeulArtichaut:target-feature-11, r=hanna-kruppe
bors [Sat, 2 May 2020 20:24:50 +0000 (20:24 +0000)]
Auto merge of #69274 - LeSeulArtichaut:target-feature-11, r=hanna-kruppe

Implement RFC 2396: `#[target_feature]` 1.1

Tracking issue: #69098

r? @nikomatsakis
cc @gnzlbg @joshtriplett

4 years agoAdd a fast code path to optimize `confusable_idents` lint for ASCII code base.
Charles Lew [Fri, 1 May 2020 04:34:04 +0000 (12:34 +0800)]
Add a fast code path to optimize `confusable_idents` lint for ASCII code base.

4 years agoImplement `confusable_idents` lint.
Charles Lew [Sat, 25 Apr 2020 01:38:31 +0000 (09:38 +0800)]
Implement `confusable_idents` lint.

4 years agoslice::fill: take T by value.
Bastian Kauschke [Thu, 16 Apr 2020 15:49:41 +0000 (17:49 +0200)]
slice::fill: take T by value.

4 years agoRollup merge of #71787 - tshepang:rustdoc-warnings, r=varkor
Dylan DPC [Sat, 2 May 2020 16:27:52 +0000 (18:27 +0200)]
Rollup merge of #71787 - tshepang:rustdoc-warnings, r=varkor

fix rustdoc warnings

4 years agoRollup merge of #71785 - reitermarkus:cfg-attribute, r=Mark-Simulacrum
Dylan DPC [Sat, 2 May 2020 16:27:48 +0000 (18:27 +0200)]
Rollup merge of #71785 - reitermarkus:cfg-attribute, r=Mark-Simulacrum

Update comment regarding SO_REUSEADDR on Windows

4 years agoRollup merge of #71784 - Xaeroxe:patch-1, r=jonas-schievink
Dylan DPC [Sat, 2 May 2020 16:27:43 +0000 (18:27 +0200)]
Rollup merge of #71784 - Xaeroxe:patch-1, r=jonas-schievink

Remove recommendation for unmaintained dirs crate

See #71684 for reasoning here

4 years agoRollup merge of #71777 - petrochenkov:crtype, r=Mark-Simulacrum
Dylan DPC [Sat, 2 May 2020 16:27:39 +0000 (18:27 +0200)]
Rollup merge of #71777 - petrochenkov:crtype, r=Mark-Simulacrum

cleanup: `config::CrateType` -> `CrateType`

4 years agoRollup merge of #71772 - cjgillot:ensure, r=petrochenkov
Dylan DPC [Sat, 2 May 2020 16:27:35 +0000 (18:27 +0200)]
Rollup merge of #71772 - cjgillot:ensure, r=petrochenkov

Mark query function as must_use.

And use the `ensure()` version when the result is not needed.

4 years agoRollup merge of #71767 - tshepang:stack-stuff, r=jonas-schievink
Dylan DPC [Sat, 2 May 2020 16:27:31 +0000 (18:27 +0200)]
Rollup merge of #71767 - tshepang:stack-stuff, r=jonas-schievink

doc: make Stack and StackElement a little pretty

Also, fix rustdoc warnings.

4 years agoRollup merge of #69274 - LeSeulArtichaut:target-feature-11, r=hanna-kruppe
Dylan DPC [Sat, 2 May 2020 16:27:27 +0000 (18:27 +0200)]
Rollup merge of #69274 - LeSeulArtichaut:target-feature-11, r=hanna-kruppe

Implement RFC 2396: `#[target_feature]` 1.1

Tracking issue: #69098

r? @nikomatsakis
cc @gnzlbg @joshtriplett

4 years agoAuto merge of #71794 - RalfJung:miri, r=RalfJung
bors [Sat, 2 May 2020 16:24:51 +0000 (16:24 +0000)]
Auto merge of #71794 - RalfJung:miri, r=RalfJung

update Miri

This contains the concurrency support by @vakaras :)

Fixes https://github.com/rust-lang/rust/issues/71729
r? @ghost
Cc @rust-lang/miri

4 years agotypo
Bastian Kauschke [Sat, 2 May 2020 16:16:36 +0000 (18:16 +0200)]
typo

4 years agoReplace `cfg` macro with attribute.
Markus Reiter [Sat, 2 May 2020 05:05:22 +0000 (07:05 +0200)]
Replace `cfg` macro with attribute.

4 years agoAuto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrum
bors [Sat, 2 May 2020 13:19:30 +0000 (13:19 +0000)]
Auto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrum

Make clippy a git subtree instead of a git submodule

r? @eddyb

cc #70651

documentation at https://github.com/rust-lang/rust/pull/70654

4 years agoAuto merge of #71795 - RalfJung:rollup-yqxfi5a, r=RalfJung
bors [Sat, 2 May 2020 10:13:57 +0000 (10:13 +0000)]
Auto merge of #71795 - RalfJung:rollup-yqxfi5a, r=RalfJung

Rollup of 6 pull requests

Successful merges:

 - #71712 (Miri: port error backtraces to std::backtrace)
 - #71736 (bootstrap: also apply unused-attributes hack without deny_warnings)
 - #71738 (remove AllocId generalization of Pointer)
 - #71739 (remove obsolete comment)
 - #71781 (Uncomment test code for failure to use `Box::pin`)
 - #71782 (Use a non-existent test path instead of clobbering /dev/null)

Failed merges:

r? @ghost

4 years agoRollup merge of #71782 - cuviper:leave-dev-null-alone, r=Mark-Simulacrum
Ralf Jung [Sat, 2 May 2020 10:08:15 +0000 (12:08 +0200)]
Rollup merge of #71782 - cuviper:leave-dev-null-alone, r=Mark-Simulacrum

Use a non-existent test path instead of clobbering /dev/null

Fixes #71502.
r? @Mark-Simulacrum

4 years agoRollup merge of #71781 - estebank:box-pin-test, r=tmandry
Ralf Jung [Sat, 2 May 2020 10:08:13 +0000 (12:08 +0200)]
Rollup merge of #71781 - estebank:box-pin-test, r=tmandry

Uncomment test code for failure to use `Box::pin`

Close #69083.

4 years agoRollup merge of #71739 - tshepang:master, r=Dylan-DPC
Ralf Jung [Sat, 2 May 2020 10:08:12 +0000 (12:08 +0200)]
Rollup merge of #71739 - tshepang:master, r=Dylan-DPC

remove obsolete comment

Referenced was removed in 9f492fefef8d9a75f6dc27c834561fe977ca70c5

4 years agoRollup merge of #71738 - RalfJung:pointer-no-alloc-id, r=oli-obk
Ralf Jung [Sat, 2 May 2020 10:08:10 +0000 (12:08 +0200)]
Rollup merge of #71738 - RalfJung:pointer-no-alloc-id, r=oli-obk

remove AllocId generalization of Pointer

This was only needed for the "snapshot" machinery, which is gone.

r? @oli-obk

4 years agoRollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-Simulacrum
Ralf Jung [Sat, 2 May 2020 10:08:09 +0000 (12:08 +0200)]
Rollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-Simulacrum

bootstrap: also apply unused-attributes hack without deny_warnings

This is a follow-up to https://github.com/rust-lang/rust/pull/70881 that also silences these warnings when deny_warnings is off. They otherwise spam my screen during development and make it hard to see actual warnings.

Cc  @eddyb r? @Mark-Simulacrum

4 years agoRollup merge of #71712 - RalfJung:error-backtrace, r=oli-obk
Ralf Jung [Sat, 2 May 2020 10:08:03 +0000 (12:08 +0200)]
Rollup merge of #71712 - RalfJung:error-backtrace, r=oli-obk

Miri: port error backtraces to std::backtrace

No need to pull in an external dependency if libstd already includes this feature (using the same dependency internally, but... still).

r? @oli-obk

4 years agoupdate Miri
Ralf Jung [Sat, 2 May 2020 10:04:13 +0000 (12:04 +0200)]
update Miri

4 years agocleanup: `config::CrateType` -> `CrateType`
Vadim Petrochenkov [Fri, 1 May 2020 22:30:23 +0000 (01:30 +0300)]
cleanup: `config::CrateType` -> `CrateType`

4 years agofix rustdoc warnings
Tshepang Lekhonkhobe [Fri, 1 May 2020 20:28:15 +0000 (22:28 +0200)]
fix rustdoc warnings

4 years agoAdd 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
Oliver Scherer [Sat, 2 May 2020 07:49:00 +0000 (09:49 +0200)]
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'

git-subtree-dir: src/tools/clippy
git-subtree-mainline: 06c44816c1532e5ff08ad072f581fc068eb60e2e
git-subtree-split: d2708873ef711ec8ab45df1e984ecf24a96cd369

4 years agoDelete the clippy submodule
Oliver Scherer [Wed, 1 Apr 2020 10:27:30 +0000 (12:27 +0200)]
Delete the clippy submodule

4 years agoAlso build clippy with `./x.py check`
Oliver Scherer [Wed, 1 Apr 2020 13:57:48 +0000 (15:57 +0200)]
Also build clippy with `./x.py check`

4 years agoGate on clippy on CI
Oliver Scherer [Wed, 1 Apr 2020 11:18:06 +0000 (13:18 +0200)]
Gate on clippy on CI

4 years agoUpdate src/libserialize/json.rs
Tshepang Lekhonkhobe [Sat, 2 May 2020 06:51:54 +0000 (08:51 +0200)]
Update src/libserialize/json.rs

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
4 years agoAuto merge of #70170 - eddyb:wf-early-exit, r=nikomatsakis
bors [Sat, 2 May 2020 06:51:08 +0000 (06:51 +0000)]
Auto merge of #70170 - eddyb:wf-early-exit, r=nikomatsakis

wf: handle "livelock" checking before reaching `WfPredicates::compute`.

For `wf::obligations`'s "livelock" handling, this PR shouldn't cause any behavioral changes, as the check moved to it should be equivalent to the old one in `WfPredicates::compute`.

However, it fixes #70168 by making *other* users of `WfPredicates::compute` (that is, `wf::predicate_obligations` and `compute`'s own upvar handling) correct for `ty::Infer`, in that they now get a `WellFormed(ty::Infer(_))` obligation instead of silently ignoring the type.

r? @nikomatsakis

4 years agoAuto merge of #71716 - alexcrichton:bitcode-follow-up, r=nnethercote
bors [Sat, 2 May 2020 03:39:04 +0000 (03:39 +0000)]
Auto merge of #71716 - alexcrichton:bitcode-follow-up, r=nnethercote

Rename `bitcode-in-rlib` option to `embed-bitcode`

This commit finishes work first pioneered in #70458 and started in #71528.
The `-C bitcode-in-rlib` option, which has not yet reached stable, is
renamed to `-C embed-bitcode` since that more accurately reflects what
it does now anyway. Various tests and such are updated along the way as
well.

This'll also need to be backported to the beta channel to ensure we
don't accidentally stabilize `-Cbitcode-in-rlib` as well.

4 years agoRemove recommendation for unmaintained crate
Jacob Kiesel [Sat, 2 May 2020 02:51:20 +0000 (20:51 -0600)]
Remove recommendation for unmaintained crate

4 years agoAuto merge of #71776 - Dylan-DPC:rollup-k1iuuow, r=Dylan-DPC
bors [Sat, 2 May 2020 00:21:39 +0000 (00:21 +0000)]
Auto merge of #71776 - Dylan-DPC:rollup-k1iuuow, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #71018 (handle ConstValue::ByRef in relate)
 - #71758 (Remove leftover chalk types)
 - #71760 (Document unsafety for `*const T` and `*mut T`)
 - #71761 (doc: reference does not exist, probably a typo)
 - #71762 (doc: this resulted in a link pointing to a non-existent target)

Failed merges:

 - #71726 (Suggest deref when coercing `ty::Ref` to `ty::RawPtr` with arbitrary mutability)

r? @ghost

4 years agoUncomment test code for failure to use `Box::pin`
Esteban Küber [Fri, 1 May 2020 23:53:20 +0000 (16:53 -0700)]
Uncomment test code for failure to use `Box::pin`

Close #69083.

4 years agoUse a non-existent test path instead of clobbering /dev/null
Josh Stone [Fri, 1 May 2020 23:50:10 +0000 (16:50 -0700)]
Use a non-existent test path instead of clobbering /dev/null

4 years agoRollup merge of #71762 - tshepang:typo, r=jonas-schievink
Dylan DPC [Fri, 1 May 2020 21:16:40 +0000 (23:16 +0200)]
Rollup merge of #71762 - tshepang:typo, r=jonas-schievink

doc: this resulted in a link pointing to a non-existent target

4 years agoRollup merge of #71761 - tshepang:missing-target, r=jonas-schievink
Dylan DPC [Fri, 1 May 2020 21:16:38 +0000 (23:16 +0200)]
Rollup merge of #71761 - tshepang:missing-target, r=jonas-schievink

doc: reference does not exist, probably a typo

4 years agoRollup merge of #71760 - LeSeulArtichaut:document-unsafety, r=Mark-Simulacrum
Dylan DPC [Fri, 1 May 2020 21:16:36 +0000 (23:16 +0200)]
Rollup merge of #71760 - LeSeulArtichaut:document-unsafety, r=Mark-Simulacrum

Document unsafety for `*const T` and `*mut T`

Helps with #66219
r? @Mark-Simulacrum

4 years agoRollup merge of #71758 - jackh726:chalk-remove, r=jackh726
Dylan DPC [Fri, 1 May 2020 21:16:35 +0000 (23:16 +0200)]
Rollup merge of #71758 - jackh726:chalk-remove, r=jackh726

Remove leftover chalk types

Split out from #69406

Since the other PR is having memory problems with `parallel-compiler = true`, figured I should split this out. Surprisingly, this actually changes some errors, and I'm not quite sure why.

r? @nikomatsakis

4 years agoRollup merge of #71018 - lcnr:custom-const-param, r=eddyb
Dylan DPC [Fri, 1 May 2020 21:16:32 +0000 (23:16 +0200)]
Rollup merge of #71018 - lcnr:custom-const-param, r=eddyb

handle ConstValue::ByRef in relate

fixes #68615

r? @eddyb

4 years agoAuto merge of #69808 - cjgillot:vtbl, r=pnkfelix
bors [Fri, 1 May 2020 21:08:23 +0000 (21:08 +0000)]
Auto merge of #69808 - cjgillot:vtbl, r=pnkfelix

Avoid duplicating code for each query

There are at the moment roughly 170 queries in librustc.
The way `ty::query` is structured, a lot of code is duplicated for each query.
I suspect this to be responsible for a part of librustc'c compile time.

The first part of this PR reduces the amount of code generic on the query,
replacing it by code generic on the key-value types. I can split it out if needed.

In a second part, the non-inlined methods in the `QueryAccessors` and `QueryDescription` traits
are made into a virtual dispatch table. This allows to reduce even more the number of generated
functions.

This allows to save 1.5s on check build, and 10% on the size of the librustc.rlib.
(Attributed roughly half and half).
My computer is not good enough to measure properly compiling time.
I have no idea of the effect on performance. A perf run may be required.

cc #65031

4 years agodoc: make Stack and StackElement a little pretty
Tshepang Lekhonkhobe [Fri, 1 May 2020 19:40:10 +0000 (21:40 +0200)]
doc: make Stack and StackElement a little pretty

Also, fix rustdoc warnings.

4 years agoRemove leftover chalk types
Jack Huey [Fri, 1 May 2020 16:36:18 +0000 (12:36 -0400)]
Remove leftover chalk types

4 years agodoc: this resulted in a link pointing to a non-existent target
Tshepang Lekhonkhobe [Fri, 1 May 2020 18:37:34 +0000 (20:37 +0200)]
doc: this resulted in a link pointing to a non-existent target

4 years agodoc: reference does not exist, probably a typo
Tshepang Lekhonkhobe [Fri, 1 May 2020 18:25:50 +0000 (20:25 +0200)]
doc: reference does not exist, probably a typo

4 years agoAuto merge of #71759 - Dylan-DPC:rollup-5hncork, r=Dylan-DPC
bors [Fri, 1 May 2020 18:00:52 +0000 (18:00 +0000)]
Auto merge of #71759 - Dylan-DPC:rollup-5hncork, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #71744 (remove obsolete comment)
 - #71747 (Remove deadcode in eval_mir_constant_to_operand)
 - #71749 (fix Miri error message padding)
 - #71752 (make Stability doc a more readable (and fix rustdoc warning))
 - #71755 (fix doc reference)

Failed merges:

r? @ghost

4 years agoDocument unsafety for `*const T` and `*mut T`
LeSeulArtichaut [Fri, 1 May 2020 17:49:56 +0000 (19:49 +0200)]
Document unsafety for `*const T` and `*mut T`

4 years agoRollup merge of #71755 - tshepang:fix-comment, r=jonas-schievink
Dylan DPC [Fri, 1 May 2020 17:49:18 +0000 (19:49 +0200)]
Rollup merge of #71755 - tshepang:fix-comment, r=jonas-schievink

fix doc reference

Should of been in e0ce9f8c0a97e5949c9cadd220279d6969289daa,
but that had a typo.

4 years agoRollup merge of #71752 - tshepang:more-readable, r=jonas-schievink
Dylan DPC [Fri, 1 May 2020 17:49:16 +0000 (19:49 +0200)]
Rollup merge of #71752 - tshepang:more-readable, r=jonas-schievink

make Stability doc a more readable (and fix rustdoc warning)

4 years agoRollup merge of #71749 - RalfJung:miri-error-print, r=oli-obk
Dylan DPC [Fri, 1 May 2020 17:49:14 +0000 (19:49 +0200)]
Rollup merge of #71749 - RalfJung:miri-error-print, r=oli-obk

fix Miri error message padding

I screwed up in the previous PR, and accidentally padded with spaces instead of 0s...

r? @oli-obk

4 years agoRollup merge of #71747 - spastorino:safety-scheme-around-consts-cleanup, r=oli-obk
Dylan DPC [Fri, 1 May 2020 17:49:13 +0000 (19:49 +0200)]
Rollup merge of #71747 - spastorino:safety-scheme-around-consts-cleanup, r=oli-obk

Remove deadcode in eval_mir_constant_to_operand

r? @oli-obk @RalfJung

4 years agoRollup merge of #71744 - tshepang:obsolete-comment, r=Dylan-DPC
Dylan DPC [Fri, 1 May 2020 17:49:11 +0000 (19:49 +0200)]
Rollup merge of #71744 - tshepang:obsolete-comment, r=Dylan-DPC

remove obsolete comment

Referenced was removed in 8770d0f34a9bee2691517ab95803a277c453dfda

4 years agoAuto merge of #5548 - matthiaskrgr:traget_os, r=flip1995
bors [Fri, 1 May 2020 16:33:14 +0000 (16:33 +0000)]
Auto merge of #5548 - matthiaskrgr:traget_os, r=flip1995

mismatched_target_os: link to respective section in rust reference

changelog: none

4 years agoRename `bitcode-in-rlib` option to `embed-bitcode`
Alex Crichton [Thu, 30 Apr 2020 17:53:16 +0000 (10:53 -0700)]
Rename `bitcode-in-rlib` option to `embed-bitcode`

This commit finishes work first pioneered in #70458 and started in #71528.
The `-C bitcode-in-rlib` option, which has not yet reached stable, is
renamed to `-C embed-bitcode` since that more accurately reflects what
it does now anyway. Various tests and such are updated along the way as
well.

This'll also need to be backported to the beta channel to ensure we
don't accidentally stabilize `-Cbitcode-in-rlib` as well.

4 years agofix doc reference
Tshepang Lekhonkhobe [Fri, 1 May 2020 15:53:52 +0000 (17:53 +0200)]
fix doc reference

Should of been in e0ce9f8c0a97e5949c9cadd220279d6969289daa,
but that had a typo.

4 years agoMark query function as must_use.
Camille GILLOT [Fri, 1 May 2020 09:32:20 +0000 (11:32 +0200)]
Mark query function as must_use.

4 years agoAdd new tests and bless old tests
LeSeulArtichaut [Fri, 1 May 2020 13:32:28 +0000 (15:32 +0200)]
Add new tests and bless old tests

4 years agomake Stability docs a bit more readable, and fix some rustdoc warnings
Tshepang Lekhonkhobe [Fri, 1 May 2020 14:35:25 +0000 (16:35 +0200)]
make Stability docs a bit more readable, and fix some rustdoc warnings

4 years agoPrevent functions with `#[target_feature]` to be coerced to safe function pointers
LeSeulArtichaut [Fri, 1 May 2020 13:17:20 +0000 (15:17 +0200)]
Prevent functions with `#[target_feature]` to be coerced to safe function pointers

4 years agoPrevent calls to functions with `#[target_feature]` in safe contexts
LeSeulArtichaut [Fri, 1 May 2020 13:16:17 +0000 (15:16 +0200)]
Prevent calls to functions with `#[target_feature]` in safe contexts

4 years agoRestrict access.
Camille GILLOT [Mon, 30 Mar 2020 15:27:14 +0000 (17:27 +0200)]
Restrict access.

4 years agoInline a few things.
Camille GILLOT [Sun, 29 Mar 2020 09:44:40 +0000 (11:44 +0200)]
Inline a few things.

4 years agoMonomorphise the interface.
Camille GILLOT [Sat, 28 Mar 2020 13:09:53 +0000 (14:09 +0100)]
Monomorphise the interface.

4 years agoMove the DepNode construction to librustc_query_system.
Camille GILLOT [Sat, 28 Mar 2020 12:51:37 +0000 (13:51 +0100)]
Move the DepNode construction to librustc_query_system.

4 years agoMonomorphise try_execute_query.
Camille GILLOT [Sat, 28 Mar 2020 12:12:20 +0000 (13:12 +0100)]
Monomorphise try_execute_query.

4 years agofix Miri error message padding
Ralf Jung [Fri, 1 May 2020 12:39:41 +0000 (14:39 +0200)]
fix Miri error message padding

4 years agoMonomorphise try_start.
Camille GILLOT [Sat, 7 Mar 2020 16:32:07 +0000 (17:32 +0100)]
Monomorphise try_start.

4 years agoMonomorphise try_execute_anon_query.
Camille GILLOT [Fri, 6 Mar 2020 21:56:05 +0000 (22:56 +0100)]
Monomorphise try_execute_anon_query.

4 years agoRemove deadcode in eval_mir_constant_to_operand
Santiago Pastorino [Fri, 1 May 2020 12:30:46 +0000 (09:30 -0300)]
Remove deadcode in eval_mir_constant_to_operand

4 years agoMonomorphise load_from_disk_and_cache_in_memory.
Camille GILLOT [Fri, 6 Mar 2020 21:43:08 +0000 (22:43 +0100)]
Monomorphise load_from_disk_and_cache_in_memory.

4 years agoMonomorphise force_query_with_job.
Camille GILLOT [Fri, 6 Mar 2020 21:15:46 +0000 (22:15 +0100)]
Monomorphise force_query_with_job.

4 years agoAuto merge of #71742 - matthiaskrgr:submodule_upd, r=Dylan-DPC
bors [Fri, 1 May 2020 12:18:41 +0000 (12:18 +0000)]
Auto merge of #71742 - matthiaskrgr:submodule_upd, r=Dylan-DPC

submodules: update cargo from 90931d9b3 to 258c89644

Changes:
````
Remove unnecessary loop in `maybe_spurious`
Fix error with git repo discovery and symlinks.
Allow failure when setting file mtime.
Support multiple `--target` flags on the CLI
build-std: Don't treat std like a "local" package.
Allow `cargo package --list` even for things that don't package.
````

I'd like to get https://github.com/rust-lang/cargo/pull/8186 into nightly asap. :)

r? @ehuss

4 years agoAllow `#[target_feature]` on safe functions
LeSeulArtichaut [Fri, 1 May 2020 12:17:02 +0000 (14:17 +0200)]
Allow `#[target_feature]` on safe functions

4 years agoremove obsolete comments
Tshepang Lekhonkhobe [Fri, 1 May 2020 11:32:08 +0000 (13:32 +0200)]
remove obsolete comments

Referenced was removed in 8770d0f34a9bee2691517ab95803a277c453dfda

4 years agosubmodules: update cargo from 90931d9b3 to 258c89644
Matthias Krüger [Fri, 1 May 2020 11:04:03 +0000 (13:04 +0200)]
submodules: update cargo from 90931d9b3 to 258c89644

Changes:
````
Remove unnecessary loop in `maybe_spurious`
Fix error with git repo discovery and symlinks.
Allow failure when setting file mtime.
Support multiple `--target` flags on the CLI
build-std: Don't treat std like a "local" package.
Allow `cargo package --list` even for things that don't package.
````

4 years agofmt
Ralf Jung [Fri, 1 May 2020 10:08:16 +0000 (12:08 +0200)]
fmt

4 years agoremove obsolete comment
Tshepang Lekhonkhobe [Fri, 1 May 2020 09:45:05 +0000 (11:45 +0200)]
remove obsolete comment

Referenced was removed in 9f492fefef8d9a75f6dc27c834561fe977ca70c5

4 years agoremove AllocId generalization of Pointer
Ralf Jung [Fri, 1 May 2020 09:33:21 +0000 (11:33 +0200)]
remove AllocId generalization of Pointer