]> git.lizzy.rs Git - rust.git/log
rust.git
21 months agoRollup merge of #102082 - andrewpollack:uid-ignore, r=tmandry
Matthias Krüger [Sat, 24 Sep 2022 05:38:54 +0000 (07:38 +0200)]
Rollup merge of #102082 - andrewpollack:uid-ignore, r=tmandry

Adding ignore fuchsia non-applicable commands

Adding ignore fuchsia non-applicable commands

cc `@djkoloski`

r? `@tmandry`

21 months agoRollup merge of #102081 - andrewpollack:add-execvp-calls-ignore, r=tmandry
Matthias Krüger [Sat, 24 Sep 2022 05:38:54 +0000 (07:38 +0200)]
Rollup merge of #102081 - andrewpollack:add-execvp-calls-ignore, r=tmandry

Adding ignore fuchsia tests for execvp (pre_exec)

Adding ignore fuchsia tests for pre_exec, which calls execvp

cc. `@djkoloski`

r? `@tmandry`

21 months agoRollup merge of #102044 - ChrisDenton:BCrypt-system-rand, r=thomcc
Matthias Krüger [Sat, 24 Sep 2022 05:38:53 +0000 (07:38 +0200)]
Rollup merge of #102044 - ChrisDenton:BCrypt-system-rand, r=thomcc

Remove `RtlGenRandom` (take two)

First try to use the system preferred RNG but if that fails (e.g. due to a broken system configuration) then fallback to manually opening an algorithm handle.

21 months agoRollup merge of #101780 - chriswailes:android-platform, r=joshtriplett
Matthias Krüger [Sat, 24 Sep 2022 05:38:52 +0000 (07:38 +0200)]
Rollup merge of #101780 - chriswailes:android-platform, r=joshtriplett

Add a platform support document for Android

r? ``@joshtriplett``

21 months agoAuto merge of #102068 - cjgillot:erased-lifetime-print, r=eholk
bors [Sat, 24 Sep 2022 01:23:17 +0000 (01:23 +0000)]
Auto merge of #102068 - cjgillot:erased-lifetime-print, r=eholk

Always print '_, even for erased lifetimes.

Explicit lifetime arguments are now the recommended syntax in rust 2018 and rust 2021.  This PR applies this discipline to rustc itself.

21 months agoRespond to document review feedback
Chris Wailes [Fri, 23 Sep 2022 23:14:17 +0000 (16:14 -0700)]
Respond to document review feedback

21 months agoBless miri.
Camille GILLOT [Fri, 23 Sep 2022 22:10:28 +0000 (00:10 +0200)]
Bless miri.

21 months agoAuto merge of #102192 - matthiaskrgr:rollup-0ctjzco, r=matthiaskrgr
bors [Fri, 23 Sep 2022 16:44:06 +0000 (16:44 +0000)]
Auto merge of #102192 - matthiaskrgr:rollup-0ctjzco, r=matthiaskrgr

Rollup of 7 pull requests

Successful merges:

 - #102094 (Add missing documentation for `bool::from_str`)
 - #102115 (Add examples to `bool::then` and `bool::then_some`)
 - #102134 (Detect panic strategy using `rustc --print cfg`)
 - #102137 (Don't convert valtree to constvalue during normalization)
 - #102148 (add regression test for miri issue 2433)
 - #102158 (rustdoc: clean up CSS/DOM for deprecation warnings)
 - #102177 (Fix a typo in `std`'s root docs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

21 months agoBless clippy.
Camille GILLOT [Thu, 22 Sep 2022 17:39:38 +0000 (19:39 +0200)]
Bless clippy.

21 months agoBless 32bit ui.
Camille GILLOT [Wed, 21 Sep 2022 18:14:18 +0000 (20:14 +0200)]
Bless 32bit ui.

21 months agoBless pretty tests.
Camille GILLOT [Wed, 21 Sep 2022 17:09:43 +0000 (19:09 +0200)]
Bless pretty tests.

21 months agoBless cgu test.
Camille GILLOT [Tue, 20 Sep 2022 21:19:43 +0000 (23:19 +0200)]
Bless cgu test.

21 months agoAlways print '_, even for erased lifetimes.
Camille GILLOT [Sun, 11 Sep 2022 12:37:55 +0000 (14:37 +0200)]
Always print '_, even for erased lifetimes.

21 months agoRollup merge of #102177 - inquisitivecrystal:std-doc-typo, r=Dylan-DPC
Matthias Krüger [Fri, 23 Sep 2022 13:40:23 +0000 (15:40 +0200)]
Rollup merge of #102177 - inquisitivecrystal:std-doc-typo, r=Dylan-DPC

Fix a typo in `std`'s root docs

Remarkably, this typo has been present for *seven years.* I was so surprised that I reread the text five times and then asked people on the rust Zulip to double-check. :)

21 months agoRollup merge of #102158 - notriddle:notriddle/stab-p, r=GuillaumeGomez
Matthias Krüger [Fri, 23 Sep 2022 13:40:23 +0000 (15:40 +0200)]
Rollup merge of #102158 - notriddle:notriddle/stab-p, r=GuillaumeGomez

rustdoc: clean up CSS/DOM for deprecation warnings

Preview: https://notriddle.com/notriddle-rustdoc-test/stab-p/std/macro.try.html

21 months agoRollup merge of #102148 - RalfJung:miri-test, r=oli-obk
Matthias Krüger [Fri, 23 Sep 2022 13:40:22 +0000 (15:40 +0200)]
Rollup merge of #102148 - RalfJung:miri-test, r=oli-obk

add regression test for miri issue 2433

Adding this here because the test needs to be run with debug assertions enabled to be sure so I had to run it in the rustc workspace.

Cc https://github.com/rust-lang/miri/issues/2433
r? ``@oli-obk``

21 months agoRollup merge of #102137 - b-naber:lazy-const-val-conversion, r=lcnr
Matthias Krüger [Fri, 23 Sep 2022 13:40:22 +0000 (15:40 +0200)]
Rollup merge of #102137 - b-naber:lazy-const-val-conversion, r=lcnr

Don't convert valtree to constvalue during normalization

r? ``@lcnr``

21 months agoRollup merge of #102134 - flba-eb:master, r=bjorn3
Matthias Krüger [Fri, 23 Sep 2022 13:40:21 +0000 (15:40 +0200)]
Rollup merge of #102134 - flba-eb:master, r=bjorn3

Detect panic strategy using `rustc --print cfg`

Instead of relying on a command line parameter, detect if a target is able to unwind or not.
Ignore tests that require unwinding on targets that don't support it.

I did not find any place where the removed parameter has been used, but it feels a bit risky as
I'm new to this test framework.

r? bjorn3

21 months agoRollup merge of #102115 - Alfriadox:master, r=thomcc
Matthias Krüger [Fri, 23 Sep 2022 13:40:20 +0000 (15:40 +0200)]
Rollup merge of #102115 - Alfriadox:master, r=thomcc

Add examples to `bool::then` and `bool::then_some`

Added examples to `bool::then` and `bool::then_some` to show the distinction between the eager evaluation of `bool::then_some` and the lazy evaluation of `bool::then`.

21 months agoRollup merge of #102094 - GuillaumeGomez:bool-from-str-missing-docs, r=scottmcm
Matthias Krüger [Fri, 23 Sep 2022 13:40:20 +0000 (15:40 +0200)]
Rollup merge of #102094 - GuillaumeGomez:bool-from-str-missing-docs, r=scottmcm

Add missing documentation for `bool::from_str`

Fixes #101870.

21 months agoAuto merge of #102056 - b-naber:unevaluated, r=lcnr
bors [Fri, 23 Sep 2022 13:39:11 +0000 (13:39 +0000)]
Auto merge of #102056 - b-naber:unevaluated, r=lcnr

Introduce mir::Unevaluated

Previously the distinction between unevaluated constants in the type-system and in mir was not explicit and a little confusing. Probably better to introduce its own type for that.

r? `@lcnr`

21 months agorename Unevaluated to UnevaluatedConst
b-naber [Thu, 22 Sep 2022 10:34:23 +0000 (12:34 +0200)]
rename Unevaluated to UnevaluatedConst

21 months agofix test
b-naber [Fri, 23 Sep 2022 12:25:30 +0000 (14:25 +0200)]
fix test

21 months agoAuto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr
bors [Fri, 23 Sep 2022 09:33:23 +0000 (09:33 +0000)]
Auto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr

Rollup of 8 pull requests

Successful merges:

 - #100734 (Split out async_fn_in_trait into a separate feature)
 - #101664 (Note if mismatched types have a similar name)
 - #101815 (Migrated the rustc_passes annotation without effect diagnostic infrastructure)
 - #102042 (Distribute rust-docs-json via rustup.)
 - #102066 (rustdoc: remove unnecessary `max-width` on headers)
 - #102095 (Deduplicate two functions that would soon have been three)
 - #102104 (Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests)
 - #102112 (Allow full relro on powerpc64-unknown-linux-gnu)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

21 months agoFix a typo in `std`'s root docs
inquisitivecrystal [Fri, 23 Sep 2022 08:40:57 +0000 (01:40 -0700)]
Fix a typo in `std`'s root docs

21 months agoRepair stderr test result to added line
Florian Bartels [Fri, 23 Sep 2022 08:10:07 +0000 (10:10 +0200)]
Repair stderr test result to added line

21 months agoignore test cases when checking emscripten
Florian Bartels [Fri, 23 Sep 2022 07:41:12 +0000 (09:41 +0200)]
ignore test cases when checking emscripten

21 months agoAuto merge of #102150 - matthiaskrgr:rollup-6xmd8f3, r=matthiaskrgr
bors [Fri, 23 Sep 2022 06:52:39 +0000 (06:52 +0000)]
Auto merge of #102150 - matthiaskrgr:rollup-6xmd8f3, r=matthiaskrgr

Rollup of 10 pull requests

Successful merges:

 - #102113 (OpTy: fix a method taking self rather than &self)
 - #102118 (rustdoc: clean up line numbers on code examples)
 - #102123 (Add note to clippy::non_expressive_names doc)
 - #102125 (rustdoc: remove no-op CSS `.content .item-info { position: relative }`)
 - #102127 (Use appropriate variable names)
 - #102128 (Const unification is already infallible, remove the error handling logic)
 - #102133 (Use valtrees for comparison)
 - #102135 (Improve some AllTypes fields name)
 - #102144 (Extend const_convert with const {FormResidual, Try} for ControlFlow.)
 - #102147 (rustdoc: remove no-op CSS `.location:empty { border: none }`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

21 months agoAdapt test results
Florian Bartels [Thu, 22 Sep 2022 13:18:17 +0000 (15:18 +0200)]
Adapt test results

21 months agoRestore ignore tag
Florian Bartels [Thu, 22 Sep 2022 12:25:10 +0000 (14:25 +0200)]
Restore ignore tag

This test case actually requires std::process.

21 months agoDetect panic strategy using `rustc --print cfg`
Florian Bartels [Thu, 22 Sep 2022 10:40:37 +0000 (12:40 +0200)]
Detect panic strategy using `rustc --print cfg`

Instead of relying on a command line parameter, detect if a target
is able to unwind or not.
Ignore tests that require unwinding on targets that don't support it.

21 months agoAuto merge of #100488 - khyperia:invalid-calling-convention-help-message, r=nagisa...
bors [Fri, 23 Sep 2022 04:22:14 +0000 (04:22 +0000)]
Auto merge of #100488 - khyperia:invalid-calling-convention-help-message, r=nagisa,jyn514

Improve the help message for an invalid calling convention

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

I mostly followed the suggestions of `@nagisa` in that issue, ~~however, I wasn't sure how to check stability for the suggestion of "Do not suggest CCs that cannot be used due to them being unstable and feature not being enabled", so I did not implement that point.~~

I haven't contributed to rustc much, please feel free to point out suggestions! For example, the `.map(|s| Symbol::intern(s)).collect::<Vec<_>>()` seems pretty gross performance-wise, but maybe that's OK in error reporting code.

21 months agoRollup merge of #102112 - cuviper:powerpc64-full-relro, r=eholk
Matthias Krüger [Fri, 23 Sep 2022 02:29:20 +0000 (04:29 +0200)]
Rollup merge of #102112 - cuviper:powerpc64-full-relro, r=eholk

Allow full relro on powerpc64-unknown-linux-gnu

This was previously limited to partial relro, citing issues on RHEL6,
but that's no longer a supported platform since #95026. We have long
been enabling full relro in RHEL7's own Rust builds for ppc64, without
trouble, so it should be fine to drop this workaround.

21 months agoRollup merge of #102104 - Aaron1011:no-test-backtrace, r=Mark-Simulacrum
Matthias Krüger [Fri, 23 Sep 2022 02:29:19 +0000 (04:29 +0200)]
Rollup merge of #102104 - Aaron1011:no-test-backtrace, r=Mark-Simulacrum

Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests

This allows the tests to pass even if the user has RUST_BACKTRACE set when running 'x.py'

21 months agoRollup merge of #102095 - oli-obk:simplify, r=TaKO8Ki
Matthias Krüger [Fri, 23 Sep 2022 02:29:19 +0000 (04:29 +0200)]
Rollup merge of #102095 - oli-obk:simplify, r=TaKO8Ki

Deduplicate two functions that would soon have been three

https://github.com/rust-lang/rust/pull/101900 would have added another copy of this for effects

21 months agoRollup merge of #102066 - notriddle:notriddle/headers-max-width, r=GuillaumeGomez
Matthias Krüger [Fri, 23 Sep 2022 02:29:18 +0000 (04:29 +0200)]
Rollup merge of #102066 - notriddle:notriddle/headers-max-width, r=GuillaumeGomez

rustdoc: remove unnecessary `max-width` on headers

This code was added in 003b2bc1c65251ec2fc80b78ed91c43fb35402ec to prevent these headers from overlapping `.out-of-band` side items. That stopped being a problem when 3f92ff34b5a2fe8dd1a32aa27d437519e63782f0 switched rustdoc over to using `float`, rather than `position: absolute`, to implement this.

21 months agoRollup merge of #102042 - LukeMathWalker:add-rust-json-docs-to-rustup, r=Mark-Simulacrum
Matthias Krüger [Fri, 23 Sep 2022 02:29:17 +0000 (04:29 +0200)]
Rollup merge of #102042 - LukeMathWalker:add-rust-json-docs-to-rustup, r=Mark-Simulacrum

Distribute rust-docs-json via rustup.

I am not 100% sure on how to treat `rust-json-docs` in `target_host_combination`. I went along with a similar strategy to the one used for `rust-docs`, but looking for guidance there.

21 months agoRollup merge of #101815 - diegooliveira:master, r=davidtwco
Matthias Krüger [Fri, 23 Sep 2022 02:29:16 +0000 (04:29 +0200)]
Rollup merge of #101815 - diegooliveira:master, r=davidtwco

Migrated the rustc_passes annotation without effect diagnostic infrastructure

Small change to move the validation for annotations to the new diagnostic infrastructure.

21 months agoRollup merge of #101664 - mejrs:similarity, r=fee1-dead
Matthias Krüger [Fri, 23 Sep 2022 02:29:16 +0000 (04:29 +0200)]
Rollup merge of #101664 - mejrs:similarity, r=fee1-dead

Note if mismatched types have a similar name

If users get a type error between similarly named types, it will point out that these are actually different types, and where they were defined.

21 months agoRollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errors
Matthias Krüger [Fri, 23 Sep 2022 02:29:15 +0000 (04:29 +0200)]
Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errors

Split out async_fn_in_trait into a separate feature

PR #101224 added support for async fn in trait desuraging behind the `return_position_impl_trait_in_trait` feature.

Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.

21 months agoAuto merge of #101708 - compiler-errors:issue-101696, r=jackh726
bors [Fri, 23 Sep 2022 01:21:25 +0000 (01:21 +0000)]
Auto merge of #101708 - compiler-errors:issue-101696, r=jackh726

Normalize closure signature after construction

Astconv can't normalize inputs or outputs with escaping bound vars ([see this](https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_typeck/check/fn_ctxt/mod.rs.html#294)), so normalize them after we've wrapped them in a binder.

Fixes #101696

21 months agorustdoc: fix unit tests
Michael Howell [Thu, 22 Sep 2022 22:41:32 +0000 (15:41 -0700)]
rustdoc: fix unit tests

21 months agorustdoc: clean up CSS/DOM for deprecation warnings
Michael Howell [Thu, 22 Sep 2022 21:54:38 +0000 (14:54 -0700)]
rustdoc: clean up CSS/DOM for deprecation warnings

21 months agoImprove the help message for an invalid calling convention
khyperia [Thu, 8 Sep 2022 13:37:15 +0000 (15:37 +0200)]
Improve the help message for an invalid calling convention

21 months agoRollup merge of #102147 - notriddle:notriddle/location-border-none, r=GuillaumeGomez
Matthias Krüger [Thu, 22 Sep 2022 19:34:56 +0000 (21:34 +0200)]
Rollup merge of #102147 - notriddle:notriddle/location-border-none, r=GuillaumeGomez

rustdoc: remove no-op CSS `.location:empty { border: none }`

This rule was added in 2bb2a2975f25e8ba7a372898e7e112f1cec5db01 to remove a border placed around the location when it's empty. That rule was removed in 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c, so this rule does nothing.

21 months agoRollup merge of #102144 - chriss0612:const_convert_control_flow, r=scottmcm
Matthias Krüger [Thu, 22 Sep 2022 19:34:55 +0000 (21:34 +0200)]
Rollup merge of #102144 - chriss0612:const_convert_control_flow, r=scottmcm

Extend const_convert with const {FormResidual, Try} for ControlFlow.

Very small change so I just used the existing `const_convert` feature flag.  #88674
Newly const API:
```
impl<B, C> const ops::Try for ControlFlow<B, C>;
impl<B, C> const ops::FromResidual for ControlFlow<B, C>;
```

`@usbalbin` I hope it is ok that I added to your feature.

21 months agoRollup merge of #102135 - GuillaumeGomez:rename-alltypes-fields, r=notriddle
Matthias Krüger [Thu, 22 Sep 2022 19:34:55 +0000 (21:34 +0200)]
Rollup merge of #102135 - GuillaumeGomez:rename-alltypes-fields, r=notriddle

Improve some AllTypes fields name

r? `@notriddle`

21 months agoRollup merge of #102133 - b-naber:use-valtrees-in-fast-reject, r=lcnr
Matthias Krüger [Thu, 22 Sep 2022 19:34:54 +0000 (21:34 +0200)]
Rollup merge of #102133 - b-naber:use-valtrees-in-fast-reject, r=lcnr

Use valtrees for comparison

r? `@lcnr`

21 months agoRollup merge of #102128 - oli-obk:const_unification, r=lcnr
Matthias Krüger [Thu, 22 Sep 2022 19:34:53 +0000 (21:34 +0200)]
Rollup merge of #102128 - oli-obk:const_unification, r=lcnr

Const unification is already infallible, remove the error handling logic

r? `@lcnr`

is this expected to be used in the future? Right now it is dead code.

21 months agoRollup merge of #102127 - TaKO8Ki:use-appropriate-variable-names, r=lcnr
Matthias Krüger [Thu, 22 Sep 2022 19:34:52 +0000 (21:34 +0200)]
Rollup merge of #102127 - TaKO8Ki:use-appropriate-variable-names, r=lcnr

Use appropriate variable names

21 months agoRollup merge of #102125 - notriddle:notriddle/content-item-info, r=GuillaumeGomez
Matthias Krüger [Thu, 22 Sep 2022 19:34:52 +0000 (21:34 +0200)]
Rollup merge of #102125 - notriddle:notriddle/content-item-info, r=GuillaumeGomez

rustdoc: remove no-op CSS `.content .item-info { position: relative }`

This rule was added to help position the marker line in 110e7270ab7b0700ce714b8b1c7e509195dea2c4, which was a `position: absolute` pseudo-element that relied on its parent to put it in the right spot. (it was changed from a line to an arrow in 1ffb9cf8d75e6f8b9aa27a25c7bc56c7bb3a1c43, then a different arrow in ae3a53ff58cec7aca1dfd17479fca44b7f91491f).

The arrow was removed in 73d0f7c7b68784f1db0a1f53855c20d118a7e8b0, so the `relative` position is no longer necessary.

21 months agoRollup merge of #102123 - schteve:clippy-note, r=Manishearth
Matthias Krüger [Thu, 22 Sep 2022 19:34:51 +0000 (21:34 +0200)]
Rollup merge of #102123 - schteve:clippy-note, r=Manishearth

Add note to clippy::non_expressive_names doc

Addresses confusion in rust-lang/rust-clippy#9514 by updating the lint docs.

21 months agoRollup merge of #102118 - notriddle:notriddle/line-numbers, r=GuillaumeGomez
Matthias Krüger [Thu, 22 Sep 2022 19:34:50 +0000 (21:34 +0200)]
Rollup merge of #102118 - notriddle:notriddle/line-numbers, r=GuillaumeGomez

rustdoc: clean up line numbers on code examples

* First commit switches from `display: inline-flex; width: 100%` to `display: flex`.

  `display: inline-flex` was used as part of https://github.com/rust-lang/rust/commit/e961d397cab900c55f8d8c104648852e2b63664e, the original commit that added these line numbers. Does anyone know why it was done this way?

* Second commit makes it so that toggling this checkbox will update the page in real time, just like changing themes does.

Preview: https://notriddle.com/notriddle-rustdoc-test/line-numbers/std/vec/struct.Vec.html

21 months agoRollup merge of #102113 - RalfJung:opty-assert-mem, r=oli-obk
Matthias Krüger [Thu, 22 Sep 2022 19:34:49 +0000 (21:34 +0200)]
Rollup merge of #102113 - RalfJung:opty-assert-mem, r=oli-obk

OpTy: fix a method taking self rather than &self

r? `@oli-obk`

21 months agomake Miri build in stage 0
Ralf Jung [Thu, 22 Sep 2022 19:01:23 +0000 (21:01 +0200)]
make Miri build in stage 0

21 months agoadd regression test for miri issue 2433
Ralf Jung [Thu, 22 Sep 2022 19:01:13 +0000 (21:01 +0200)]
add regression test for miri issue 2433

21 months agorustdoc: remove no-op CSS `.location:empty { border: none }`
Michael Howell [Thu, 22 Sep 2022 18:09:29 +0000 (11:09 -0700)]
rustdoc: remove no-op CSS `.location:empty { border: none }`

This rule was added in 2bb2a2975f25e8ba7a372898e7e112f1cec5db01 to remove a
border placed around the location when it's empty. That rule was removed in
6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c, so this rule does nothing.

21 months agoAuto merge of #98840 - cjgillot:span-inline-ctxt, r=wesleywiser
bors [Thu, 22 Sep 2022 17:59:27 +0000 (17:59 +0000)]
Auto merge of #98840 - cjgillot:span-inline-ctxt, r=wesleywiser

Inline SyntaxContext in both encoded span representation.

The current interned representation for spans does not use the `ctxt_or_zero: u16` field.  This PR proposes to use this field to store the `SyntaxContext` of the interned span instead.  When `ctxt_or_zero` and the interned span's `ctxt` don't match, the inlined one takes precedence.

This allows to implement `Span::ctxt` and `Span::with_ctxt` with much less probability to access the interner.  Those functions are used a lot for hygiene, so this may be worth it.

21 months agoConstify {FormResidual, Try} for ControlFlow
onestacked [Thu, 22 Sep 2022 16:21:34 +0000 (18:21 +0200)]
Constify {FormResidual, Try} for ControlFlow

21 months agoAuto merge of #102139 - Dylan-DPC:rollup-ljlipt8, r=Dylan-DPC
bors [Thu, 22 Sep 2022 15:18:35 +0000 (15:18 +0000)]
Auto merge of #102139 - Dylan-DPC:rollup-ljlipt8, r=Dylan-DPC

Rollup of 8 pull requests

Successful merges:

 - #101598 (Update rustc's information on Android's sanitizers)
 - #102036 (Remove use of `io::ErrorKind::Other` in std)
 - #102037 (Make cycle errors recoverable)
 - #102069 (Skip `Equate` relation in `handle_opaque_type`)
 - #102076 (rustc_transmute: fix big-endian discriminants)
 - #102107 (Add missing space between notable trait tooltip and where clause)
 - #102119 (Fix a typo “pararmeter” in error message)
 - #102131 (Added which number is computed in compute_float.)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

21 months agoRollup merge of #102131 - orlp:patch-1, r=thomcc
Dylan DPC [Thu, 22 Sep 2022 12:55:57 +0000 (18:25 +0530)]
Rollup merge of #102131 - orlp:patch-1, r=thomcc

Added which number is computed in compute_float.

The original comment was very elaborate but ultimately did not mention at all what is being computed using parameters `w, q`, only referencing an external article for the algorithm.

21 months agoRollup merge of #102119 - steffahn:fix-pararmeter, r=dtolnay
Dylan DPC [Thu, 22 Sep 2022 12:55:56 +0000 (18:25 +0530)]
Rollup merge of #102119 - steffahn:fix-pararmeter, r=dtolnay

Fix a typo “pararmeter” in error message

Issue reported on IRLO: https://internals.rust-lang.org/t/fixing-a-typo/17427

21 months agoRollup merge of #102107 - Urgau:rustdoc-missing-space-before-where-clause, r=Guillaum...
Dylan DPC [Thu, 22 Sep 2022 12:55:55 +0000 (18:25 +0530)]
Rollup merge of #102107 - Urgau:rustdoc-missing-space-before-where-clause, r=GuillaumeGomez

Add missing space between notable trait tooltip and where clause

This PR add a missing space between the notable trait tooltip and the where clause.

The issue can be seeing on the [BufRead](https://doc.rust-lang.org/nightly/std/io/trait.BufRead.html) page.

Added a simple snapshot regression test in `src/test/rustdoc/where.rs`.

Before:
![image](https://user-images.githubusercontent.com/3616612/191566999-2f80e138-29c9-4f66-8bed-07781cbd9783.png)

After:
![image](https://user-images.githubusercontent.com/3616612/191567025-0ed3f7d4-7cec-4788-901f-5980fc241daa.png)

r? `@GuillaumeGomez`

21 months agoRollup merge of #102076 - cuviper:transmute-discr-endian, r=jackh726
Dylan DPC [Thu, 22 Sep 2022 12:55:54 +0000 (18:25 +0530)]
Rollup merge of #102076 - cuviper:transmute-discr-endian, r=jackh726

rustc_transmute: fix big-endian discriminants

I noticed that some new tests were failing in Fedora on s390x only, which usually means there's a problem with big-endian, and sure enough there's a FIXME(``@jswrenn)`` for that in `rustc_transmute`. This patch implements the appropriate consideration for target endianness, rather than using native (host) endian.

21 months agoRollup merge of #102069 - compiler-errors:no-eq-in-register-opaque, r=oli-obk
Dylan DPC [Thu, 22 Sep 2022 12:55:54 +0000 (18:25 +0530)]
Rollup merge of #102069 - compiler-errors:no-eq-in-register-opaque, r=oli-obk

Skip `Equate` relation in `handle_opaque_type`

r? ``@oli-obk``

21 months agoRollup merge of #102037 - jyn514:normalize-docs, r=lcnr
Dylan DPC [Thu, 22 Sep 2022 12:55:53 +0000 (18:25 +0530)]
Rollup merge of #102037 - jyn514:normalize-docs, r=lcnr

Make cycle errors recoverable

In particular, this allows rustdoc to recover from cycle errors when normalizing associated types for documentation.

In the past, ```@jackh726``` has said we need to be careful about overflow errors: https://github.com/rust-lang/rust/pull/91430#issuecomment-983997013

> Off the top of my head, we definitely should be careful about treating overflow errors the same as
"not implemented for some reason" errors. Otherwise, you could end up with behavior that is
different depending on recursion depth. But, that might be context-dependent.

But cycle errors should be safe to unconditionally report; they don't depend on the recursion depth, they will always be an error whenever they're encountered.

Helps with https://github.com/rust-lang/rust/issues/81091.

r? ```@lcnr``` cc ```@matthewjasper```

21 months agoRollup merge of #102036 - Patiga:remove-io-errorkind-other-use-in-std, r=Mark-Simulacrum
Dylan DPC [Thu, 22 Sep 2022 12:55:52 +0000 (18:25 +0530)]
Rollup merge of #102036 - Patiga:remove-io-errorkind-other-use-in-std, r=Mark-Simulacrum

Remove use of `io::ErrorKind::Other` in std

The documentation states that this `ErrorKind` is not used by the standard library. Instead, `io::ErrorKind::Uncategorized` should be used.

The two instances are in the unstable API [linux_pidfd](https://github.com/rust-lang/rust/issues/82971).

21 months agoRollup merge of #101598 - chriswailes:sanitizers, r=nagisa,eholk
Dylan DPC [Thu, 22 Sep 2022 12:55:51 +0000 (18:25 +0530)]
Rollup merge of #101598 - chriswailes:sanitizers, r=nagisa,eholk

Update rustc's information on Android's sanitizers

This patch updates sanitizer support definitions for Android inside the compiler.  It also adjusts the logic to make sure no pre-built sanitizer runtime libraries are emitted as these are instead provided dynamically on Android targets.

21 months agoAuto merge of #100980 - compiler-errors:normalize-opaque-w-bound-vars, r=lcnr
bors [Thu, 22 Sep 2022 12:47:31 +0000 (12:47 +0000)]
Auto merge of #100980 - compiler-errors:normalize-opaque-w-bound-vars, r=lcnr

Normalize opaques w/ bound vars

First, we reenable normalization of opaque types with escaping late bound regions to fix rust-lang/miri#2433. This essentially reverts #89285.

Second, we mitigate the perf regression found in #88862 by simplifying the way that we relate (sub and eq) GeneratorWitness types.

This relies on the fact that we construct these GeneratorWitness types somewhat particularly (with all free regions found in the witness types replaced with late bound regions) -- but those bound regions really should be treated as existential regions, not universal ones. Those two facts leads me to believe that we do not need to use the full `higher_ranked_sub` machinery to relate two generator witnesses. I'm pretty confident that this is correct, but I'm glad to discuss this further.

21 months agodon't convert valtree to constvalue during normalization
b-naber [Thu, 22 Sep 2022 12:22:51 +0000 (14:22 +0200)]
don't convert valtree to constvalue during normalization

21 months agoDistribute rust-json-docs via rustup.
Luca Palmieri [Tue, 20 Sep 2022 09:36:36 +0000 (11:36 +0200)]
Distribute rust-json-docs via rustup.

21 months agouse valtrees for comparison
b-naber [Thu, 22 Sep 2022 10:49:04 +0000 (12:49 +0200)]
use valtrees for comparison

21 months agoImprove some AllTypes fields name
Guillaume Gomez [Thu, 22 Sep 2022 11:08:44 +0000 (13:08 +0200)]
Improve some AllTypes fields name

21 months agoaddress review
b-naber [Wed, 21 Sep 2022 16:55:32 +0000 (18:55 +0200)]
address review

21 months agobless tests
b-naber [Tue, 20 Sep 2022 15:39:05 +0000 (17:39 +0200)]
bless tests

21 months agointroduce mir::Unevaluated
b-naber [Mon, 19 Sep 2022 17:46:53 +0000 (19:46 +0200)]
introduce mir::Unevaluated

21 months agoAuto merge of #102028 - oli-obk:miri_subtree, r=oli-obk
bors [Thu, 22 Sep 2022 09:45:04 +0000 (09:45 +0000)]
Auto merge of #102028 - oli-obk:miri_subtree, r=oli-obk

Make miri a subtree instead of a submodule

r? `@RalfJung`

fixes #101867
fixes https://github.com/rust-lang/rust/issues/100134

21 months agoAdded which number is computed in compute_float.
Orson Peters [Thu, 22 Sep 2022 09:34:42 +0000 (11:34 +0200)]
Added which number is computed in compute_float.

21 months agoConst unification is already infallible, remove the error handling logic
Oli Scherer [Thu, 22 Sep 2022 08:20:13 +0000 (08:20 +0000)]
Const unification is already infallible, remove the error handling logic

21 months agoAllow miri docs to keep failing for now
Oli Scherer [Thu, 22 Sep 2022 07:17:26 +0000 (07:17 +0000)]
Allow miri docs to keep failing for now

21 months agouse appropriate variable names
Takayuki Maeda [Thu, 22 Sep 2022 07:11:51 +0000 (16:11 +0900)]
use appropriate variable names

21 months agoAuto merge of #101999 - the8472:source-lines-partition-point, r=davidtwco
bors [Thu, 22 Sep 2022 07:03:42 +0000 (07:03 +0000)]
Auto merge of #101999 - the8472:source-lines-partition-point, r=davidtwco

use partition_point instead of binary_search when looking up source lines

In local benchmarks this results in 0.4% fewer cycles in a critical sequential section when compiling libcore.

21 months agoAdd missing assertion
Venus Xeon-Blonde [Thu, 22 Sep 2022 06:12:06 +0000 (02:12 -0400)]
Add missing assertion

21 months agorustdoc: remove no-op CSS `.content .item-info { position: relative }`
Michael Howell [Thu, 22 Sep 2022 03:47:33 +0000 (20:47 -0700)]
rustdoc: remove no-op CSS `.content .item-info { position: relative }`

This rule was added to help position the marker line in
110e7270ab7b0700ce714b8b1c7e509195dea2c4, which was a `position: absolute`
pseudo-element that relied on its parent to put it in the right spot.

The arrow was removed in 73d0f7c7b68784f1db0a1f53855c20d118a7e8b0, so the
`relative` position is no longer necessary.

21 months agoAuto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=oli-obk
bors [Thu, 22 Sep 2022 04:22:24 +0000 (04:22 +0000)]
Auto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=oli-obk

Require `#[const_trait]` on `Trait` for `impl const Trait`

r? `@oli-obk`

21 months agoRemove trailing whitespace
Venus Xeon-Blonde [Thu, 22 Sep 2022 03:23:14 +0000 (23:23 -0400)]
Remove trailing whitespace

Trailing whitespace seemed to be causing the CI checks to error out.

21 months agoSplit out async_fn_in_trait into a separate feature
Dan Johnson [Thu, 18 Aug 2022 23:27:16 +0000 (16:27 -0700)]
Split out async_fn_in_trait into a separate feature

PR #101224 added support for async fn in trait desuraging behind the
return_position_impl_trait_in_trait feature.

Split this out so that it's behind its own feature gate, since async fn
in trait doesn't need to follow the same stabilization schedule.

21 months agoNormalize generator interior type before erasing
Michael Goulet [Mon, 29 Aug 2022 20:09:45 +0000 (20:09 +0000)]
Normalize generator interior type before erasing

21 months agoComment, and bail early if bound vars list differs
Michael Goulet [Mon, 29 Aug 2022 18:23:45 +0000 (18:23 +0000)]
Comment, and bail early if bound vars list differs

21 months agoOptimize subtyping and equation of GeneratorWitness
Michael Goulet [Mon, 29 Aug 2022 07:00:11 +0000 (07:00 +0000)]
Optimize subtyping and equation of GeneratorWitness

21 months agoNormalize opaques with escaping bound vars
Michael Goulet [Thu, 25 Aug 2022 02:08:38 +0000 (02:08 +0000)]
Normalize opaques with escaping bound vars

21 months agoAuto merge of #102121 - JohnTitor:rollup-3fb1wrt, r=JohnTitor
bors [Thu, 22 Sep 2022 01:41:03 +0000 (01:41 +0000)]
Auto merge of #102121 - JohnTitor:rollup-3fb1wrt, r=JohnTitor

Rollup of 12 pull requests

Successful merges:

 - #101952 (Avoid panicking on missing fallback)
 - #102030 (Don't crate-locally reexport walk functions in tidy)
 - #102032 (Adding ignore fuchsia tests for signal interpretation cases)
 - #102033 (Adding needs-unwind to nicer-assert-messages compiler ui tests)
 - #102054 (Unify "all items" page's sidebar with other pages)
 - #102071 (Adding needs-unwind for tests testing memory size of Futures/Closures)
 - #102073 (Adding ignore fuchsia tests for execvp)
 - #102075 (rustdoc: remove no-op CSS `.content > .methods > .method`)
 - #102079 (Update books)
 - #102084 (Adding needs-unwind for test using panic::catch_unwind)
 - #102100 (Prevent usage of .stab elements to create scrollable areas in doc blocks)
 - #102102 (Add doc aliases on Sized trait)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

21 months agorustdoc: update test case for headers without max-width
Michael Howell [Thu, 22 Sep 2022 00:29:47 +0000 (17:29 -0700)]
rustdoc: update test case for headers without max-width

21 months agorustdoc: remove unnecessary `max-width` on headers
Michael Howell [Tue, 20 Sep 2022 19:07:35 +0000 (12:07 -0700)]
rustdoc: remove unnecessary `max-width` on headers

This code was added in 003b2bc1c65251ec2fc80b78ed91c43fb35402ec to prevent
these headers from overlapping `.out-of-band` side items. That stopped
being a problem when 3f92ff34b5a2fe8dd1a32aa27d437519e63782f0 switched
rustdoc over to using `float`, rather than `position: absolute`, to
implement this.

21 months agoRollup merge of #102102 - GuillaumeGomez:doc-aliases-sized-trait, r=thomcc
Yuki Okushi [Thu, 22 Sep 2022 00:03:57 +0000 (09:03 +0900)]
Rollup merge of #102102 - GuillaumeGomez:doc-aliases-sized-trait, r=thomcc

Add doc aliases on Sized trait

Fixes #101267.

It adds both `?` and `?Sized` doc aliases for the `Sized` trait.

Some screenshots of the result:

![Screenshot from 2022-09-21 16-19-55](https://user-images.githubusercontent.com/3050060/191529854-65a79b75-6c20-4fd4-88c2-56d617d1acff.png)
![Screenshot from 2022-09-21 16-20-04](https://user-images.githubusercontent.com/3050060/191529857-2d11b477-5c5d-4080-9382-0b07950fd7f6.png)

21 months agoRollup merge of #102100 - GuillaumeGomez:stab-in-docblocks, r=notriddle
Yuki Okushi [Thu, 22 Sep 2022 00:03:56 +0000 (09:03 +0900)]
Rollup merge of #102100 - GuillaumeGomez:stab-in-docblocks, r=notriddle

Prevent usage of .stab elements to create scrollable areas in doc blocks

Fixes #101874.

You can test it online [here](https://rustdoc.crud.net/imperio/stab-in-doblocks/foo/index.html).

r? `@notriddle`

21 months agoRollup merge of #102084 - andrewpollack:add-issue-panic-unwind, r=bjorn3
Yuki Okushi [Thu, 22 Sep 2022 00:03:56 +0000 (09:03 +0900)]
Rollup merge of #102084 - andrewpollack:add-issue-panic-unwind, r=bjorn3

Adding needs-unwind for test using panic::catch_unwind

Adding needs-unwind for test using panic::catch_unwind

cc. `@djkoloski`

r? `@tmandry`

21 months agoRollup merge of #102079 - ehuss:update-books, r=ehuss
Yuki Okushi [Thu, 22 Sep 2022 00:03:55 +0000 (09:03 +0900)]
Rollup merge of #102079 - ehuss:update-books, r=ehuss

Update books

## nomicon

1 commits in d880e6ac2acf133dce640da24b9fb692844f02d4..f53bfa056929217870a5d2df1366d2e7ba35096d
2022-08-24 12:42:34 -0700 to 2022-09-05 07:19:02 -0700
- Small typo (rust-lang/nomicon#379)

## reference

9 commits in f62e93c28323ed9637d0a205a0c256498674a509..a7cdac33ca7356ad49d5c2b5e2c5010889b33eee
2022-08-28 10:01:28 -0700 to 2022-09-19 17:39:58 -0700
- Clarify wording for references. (rust-lang/reference#1223)
- Update Unicode reference to match rustc implementation (rust-lang/reference#1271)
- Add documentation for raw-dylib and link_ordinal (rust-lang/reference#1244)
- Specify guarantees for repr(rust) structs (rust-lang/reference#1152)
- Classify AsyncBlockExpression as ExpressionWithoutBlock (rust-lang/reference#1268)
- Update closure-expr.md (rust-lang/reference#1269)
- Clarify that 0 is a valid multiple of a type's alignment (rust-lang/reference#1260)
- Remove `ne` from derive example (rust-lang/reference#1264)
- Clarify reference on async blocks (rust-lang/reference#1262)

## book

6 commits in 0a5421ceb238357b3634fb75234eba4d1dad643c..f1e5ad844d0c61738006cdef26227beeb136948e
2022-08-28 19:51:04 -0400 to 2022-09-19 09:48:21 -0400
- Fix punctuation in ch05-02
- Ownership move chapter link fix
- Wrong listing number
- Reword text around box
- `Box&lt;T&gt;` instead of "box"
- Update Clippy output in Appendix D

## rust-by-example

2 commits in 03301f8ae55fa6f20f7ea152a517598e6db2cdb7..767a6bd9727a596d7cfdbaeee475e65b2670ea3a
2022-08-14 08:51:44 -0300 to 2022-09-14 09:17:18 -0300
- struct_visibility.md:  Remove unneeded '#[allow(dead_code)]' (rust-lang/rust-by-example#1609)
- Fix assorted typos (rust-lang/rust-by-example#1601)

## rustc-dev-guide

15 commits in 04892c1a6fc145602ac7367945fda9d4ee83c9fb..f587d6e7cddeaa3cf0a33ec1e368df1a408fa0aa
2022-08-29 20:07:51 +0200 to 2022-09-20 07:43:59 +0900
- Update stability guide to use CURRENT_RUSTC_VERSION (rust-lang/rustc-dev-guide#1468)
- Add a note about building `rust-analyzer-proc-macro-srv` (rust-lang/rustc-dev-guide#1467)
- Link from "implementing to new features" to mcp.md (rust-lang/rustc-dev-guide#1465)
- remove stray **
- Explain the new valtree system for type level constants. (rust-lang/rustc-dev-guide#1097)
- fix typos and formatting
- Say "bootstrap" instead of "rustbuild"; the latter is not explained anywhere and is not much more clear.
- Rewrite the section on passing flags to subcommands
- Remove the diagram of all outputs generated by x.py
- "symbol names" =&gt; ABI
- Add symbol-addition to the how-to for new features (rust-lang/rustc-dev-guide#1457)
- Fix typo (rust-lang/rustc-dev-guide#1459)
- Document multipart_suggestion derive on SessionSubdiagnostic
- Add reference for updating Windows PATH and fix typo
- Update for removal of RLS (rust-lang/rustc-dev-guide#1450)

## embedded-book

1 commits in befe6840874311635c417cf731377f07234ee373..4ce51cb7441a6f02b5bf9b07b2eb755c21ab7954
2022-07-25 07:51:14 +0000 to 2022-09-15 08:53:09 +0000
- Create CITATION.bib (as per rust-embedded/book#327)  (rust-embedded/book#329)

21 months agoRollup merge of #102075 - notriddle:notriddle/content-methods-method, r=GuillaumeGomez
Yuki Okushi [Thu, 22 Sep 2022 00:03:55 +0000 (09:03 +0900)]
Rollup merge of #102075 - notriddle:notriddle/content-methods-method, r=GuillaumeGomez

rustdoc: remove no-op CSS `.content > .methods > .method`

# `font-size: 1rem`

This rule was added in 22dad4b0440b184568956c10f2cbedabf763065a, back when the `method` class was attached to headers instead of DIVs that wrap headers.

Old method rendering:

https://github.com/rust-lang/rust/blob/a96247bcac385671757034bd928c13097fd2ce76/src/librustdoc/html/render.rs#L2062

Current method rendering:

https://github.com/rust-lang/rust/blob/432abd86f231c908f6df3cdd779e83f35084be90/src/librustdoc/html/render/print_item.rs#L721

# `position: relative`

This rule was added in 88fe6dfa31a1bee49090dc72c537c5cd7bd632f4 to assist in position the hide/show togges on methods. This is no longer needed, because these toggles are no longer implemented as absolutely positioned links nested inside headers.

21 months agoRollup merge of #102073 - andrewpollack:add-execvp-call-ignore, r=tmandry
Yuki Okushi [Thu, 22 Sep 2022 00:03:54 +0000 (09:03 +0900)]
Rollup merge of #102073 - andrewpollack:add-execvp-call-ignore, r=tmandry

Adding ignore fuchsia tests for execvp

Adding ignore fuchsia tests for execvp

cc. ``@djkoloski``

r? ``@tmandry``