]> git.lizzy.rs Git - rust.git/log
rust.git
23 months agoRemove Clean trait implementation for hir::Path
Guillaume Gomez [Sun, 31 Jul 2022 12:17:23 +0000 (14:17 +0200)]
Remove Clean trait implementation for hir::Path

23 months agoAuto merge of #99529 - Milo123459:stage-1-test, r=jyn514
bors [Sun, 31 Jul 2022 08:03:26 +0000 (08:03 +0000)]
Auto merge of #99529 - Milo123459:stage-1-test, r=jyn514

Run `x test --stage 1` in CI

Fixes #99135

r? `@jyn514`

23 months agoAuto merge of #99959 - cuviper:niche-size, r=eddyb
bors [Sat, 30 Jul 2022 23:47:51 +0000 (23:47 +0000)]
Auto merge of #99959 - cuviper:niche-size, r=eddyb

Fix the size of niche enums with ZST alignment

For enums with an aligned ZST variant, like `[T; 0]`, the niche layout
was not computing a sufficient size to be consistent with alignment. Now
we pad that size up to the alignment, and also make sure to only use the
niche variant's ABI when the size and alignment still match.

Fixes #99836
r? `@eddyb`

23 months agodont run stage1 tests in pr
Milo [Sat, 30 Jul 2022 22:10:26 +0000 (22:10 +0000)]
dont run stage1 tests in pr

23 months agoadd to full test-suite
Milo [Sat, 30 Jul 2022 21:56:53 +0000 (21:56 +0000)]
add to full test-suite

23 months agoAuto merge of #99964 - matthiaskrgr:rollup-jr836e2, r=matthiaskrgr
bors [Sat, 30 Jul 2022 21:01:42 +0000 (21:01 +0000)]
Auto merge of #99964 - matthiaskrgr:rollup-jr836e2, r=matthiaskrgr

Rollup of 8 pull requests

Successful merges:

 - #99650 (Support `x --keep-stage 0 check`)
 - #99873 (rustdoc: align invalid-html-tags lint with commonmark spec)
 - #99889 (Remove `parent_pat` from `TopInfo`)
 - #99890 (Do not allow bad projection term to leak into the type checker)
 - #99937 (Reset directory iteration in remove_dir_all)
 - #99950 (Remove more Clean trait implementations)
 - #99956 (Also gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE)
 - #99962 (Discover channel for LLVM download)

Failed merges:

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

23 months agoRollup merge of #99962 - Mark-Simulacrum:detect-ci-artifact-channel, r=jyn514
Matthias Krüger [Sat, 30 Jul 2022 20:51:03 +0000 (22:51 +0200)]
Rollup merge of #99962 - Mark-Simulacrum:detect-ci-artifact-channel, r=jyn514

Discover channel for LLVM download

r? `@jyn514`
cc `@RalfJung`

Reported on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/No.20prebuilt.20LLVM.20for.20the.20beta.20branch.3F

23 months agoRollup merge of #99956 - est31:fix_llvm_wrapper_warning, r=cuviper
Matthias Krüger [Sat, 30 Jul 2022 20:51:02 +0000 (22:51 +0200)]
Rollup merge of #99956 - est31:fix_llvm_wrapper_warning, r=cuviper

Also gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE

Fixes a warning:

```
warning: llvm-wrapper/RustWrapper.cpp:159:11: warning: enumeration values 'AllocatedPointer' and 'AllocAlign' not handled in switch [-Wswitch]
warning:   switch (Kind) {
warning:           ^
```

Which was fall out from 130a1df71ea73ab9d66d3cb8fc9cdb43155d514b.

Fixes #99955

23 months agoRollup merge of #99950 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPC
Matthias Krüger [Sat, 30 Jul 2022 20:51:01 +0000 (22:51 +0200)]
Rollup merge of #99950 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPC

Remove more Clean trait implementations

This time it even allowed to remove a function.

Follow-up of https://github.com/rust-lang/rust/pull/99638.

r? `@notriddle`

23 months agoRollup merge of #99937 - ChrisDenton:fix-remove-dir-all-win-7, r=joshtriplett
Matthias Krüger [Sat, 30 Jul 2022 20:51:00 +0000 (22:51 +0200)]
Rollup merge of #99937 - ChrisDenton:fix-remove-dir-all-win-7, r=joshtriplett

Reset directory iteration in remove_dir_all

Fixes #99934

23 months agoRollup merge of #99890 - compiler-errors:issue-99828, r=lcnr
Matthias Krüger [Sat, 30 Jul 2022 20:50:59 +0000 (22:50 +0200)]
Rollup merge of #99890 - compiler-errors:issue-99828, r=lcnr

Do not allow bad projection term to leak into the type checker

Fixes #99828

23 months agoRollup merge of #99889 - compiler-errors:cleanup-ti, r=cjgillot
Matthias Krüger [Sat, 30 Jul 2022 20:50:58 +0000 (22:50 +0200)]
Rollup merge of #99889 - compiler-errors:cleanup-ti, r=cjgillot

Remove `parent_pat` from `TopInfo`

We can get the parent pat from the hir map.

23 months agoRollup merge of #99873 - notriddle:notriddle/invalid-html-tags-webcomponents, r=Guill...
Matthias Krüger [Sat, 30 Jul 2022 20:50:57 +0000 (22:50 +0200)]
Rollup merge of #99873 - notriddle:notriddle/invalid-html-tags-webcomponents, r=GuillaumeGomezp

rustdoc: align invalid-html-tags lint with commonmark spec

23 months agoRollup merge of #99650 - jyn514:keep-stage-check, r=Mark-Simulacrum
Matthias Krüger [Sat, 30 Jul 2022 20:50:56 +0000 (22:50 +0200)]
Rollup merge of #99650 - jyn514:keep-stage-check, r=Mark-Simulacrum

Support `x --keep-stage 0 check`

Stage 1 check has been supported since https://github.com/rust-lang/rust/pull/81064.
 https://github.com/rust-lang/rust/pull/81064 changed the error message for this, but I don't think there's any reason we should prevent using it.
I tested locally and `keep-stage` works fine.

r? `@Mark-Simulacrum`

23 months agoDiscover channel for artifact download
Mark Rousskov [Sat, 30 Jul 2022 19:44:37 +0000 (15:44 -0400)]
Discover channel for artifact download

When we're downloading based on a CI commit, that can still be -beta- or even
-stable-, so we should lookup the channel it was built with.

23 months agoTest another enum niche with multiple ZST alignments
Josh Stone [Sat, 30 Jul 2022 18:54:15 +0000 (11:54 -0700)]
Test another enum niche with multiple ZST alignments

23 months agoFix the size of niche enums with ZST alignment
Josh Stone [Sat, 30 Jul 2022 17:45:48 +0000 (10:45 -0700)]
Fix the size of niche enums with ZST alignment

For enums with an aligned ZST variant, like `[T; 0]`, the niche layout
was not computing a sufficient size to be consistent with alignment. Now
we pad that size up to the alignment, and also make sure to only use the
niche variant's ABI when the size and alignment still match.

23 months agoAuto merge of #99948 - Dylan-DPC:rollup-ed5136t, r=Dylan-DPC
bors [Sat, 30 Jul 2022 17:30:50 +0000 (17:30 +0000)]
Auto merge of #99948 - Dylan-DPC:rollup-ed5136t, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #99311 (change maybe_body_owned_by to take local def id)
 - #99862 (Improve type mismatch w/ function signatures)
 - #99895 (don't call type ascription "cast")
 - #99900 (remove some manual hash stable impls)
 - #99903 (Add diagnostic when using public instead of pub)

Failed merges:

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

23 months agoAlso gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE
est31 [Sat, 30 Jul 2022 16:53:51 +0000 (18:53 +0200)]
Also gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE

Fixes a warning:

warning: llvm-wrapper/RustWrapper.cpp:159:11: warning: enumeration values 'AllocatedPointer' and 'AllocAlign' not handled in switch [-Wswitch]
warning:   switch (Kind) {
warning:           ^

Which was fall out from 130a1df71ea73ab9d66d3cb8fc9cdb43155d514b.

23 months agoUpdate src/librustdoc/passes/html_tags.rs
Michael Howell [Sat, 30 Jul 2022 16:02:05 +0000 (09:02 -0700)]
Update src/librustdoc/passes/html_tags.rs

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
23 months agoRemove Clean trait implementation for hir::VariantData
Guillaume Gomez [Sat, 30 Jul 2022 15:48:06 +0000 (17:48 +0200)]
Remove Clean trait implementation for hir::VariantData

23 months agoRemove Clean trait implementation for ty::VariantDef
Guillaume Gomez [Sat, 30 Jul 2022 15:34:29 +0000 (17:34 +0200)]
Remove Clean trait implementation for ty::VariantDef

23 months agoRollup merge of #99903 - gimbles:pub, r=davidtwco
Dylan DPC [Sat, 30 Jul 2022 15:09:50 +0000 (20:39 +0530)]
Rollup merge of #99903 - gimbles:pub, r=davidtwco

Add diagnostic when using public instead of pub

Forwarding from https://github.com/rust-lang/rust/pull/99706

I accidentally broke something(??) in git and the commits in that PR are absolutely not what I did in that branch

Anyways, this is the PR for this now. Adding tests again in a minute.

cc `@davidtwco`

23 months agoRollup merge of #99900 - lcnr:hash-stable-fun, r=cjgillot
Dylan DPC [Sat, 30 Jul 2022 15:09:49 +0000 (20:39 +0530)]
Rollup merge of #99900 - lcnr:hash-stable-fun, r=cjgillot

remove some manual hash stable impls

23 months agoRollup merge of #99895 - compiler-errors:type-ascription-aint-cast, r=davidtwco
Dylan DPC [Sat, 30 Jul 2022 15:09:48 +0000 (20:39 +0530)]
Rollup merge of #99895 - compiler-errors:type-ascription-aint-cast, r=davidtwco

don't call type ascription "cast"

Noticed in #99885

23 months agoRollup merge of #99862 - WaffleLapkin:type_mismatch_fix, r=compiler-errors
Dylan DPC [Sat, 30 Jul 2022 15:09:47 +0000 (20:39 +0530)]
Rollup merge of #99862 - WaffleLapkin:type_mismatch_fix, r=compiler-errors

Improve type mismatch w/ function signatures

This PR makes use of `note: expected/found` (instead of labeling types in labels) in type mismatch with function signatures. Pros: it's easier to compare the signatures, cons: the error is a little more verbose now.

This is especially nice when
- The signatures differ in a small subset of parameters (same parameters are elided)
- The difference is in details, for example `isize` vs `usize` (there is a better chance that the types align)

Also this PR fixes the inconsistency in variable names in the edited code (`expected` and `found`).

A zulip thread from which this pr started: [[link]](https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/Type.20error.20regression.3F.2E.2E.2E/near/289756602).

An example diagnostic:

<table>
<tr>
<th>this pr</th>
<th>nightly</th>
</tr>
<tr>
<td>

```text
error[E0631]: type mismatch in function arguments
  --> ./t.rs:4:12
   |
4  |     expect(&f);
   |     ------ ^^ expected due to this
   |     |
   |     required by a bound introduced by this call
...
10 | fn f(_: isize, _: u8, _: Vec<u32>) {}
   | ---------------------------------- found signature defined here
   |
   = note: expected function signature `fn(usize, _, Vec<u64>) -> _`
              found function signature `fn(isize, _, Vec<u32>) -> _`
note: required because of the requirements on the impl of `Trait` for `fn(isize, u8, Vec<u32>) {f}`
  --> ./t.rs:8:9
   |
8  | impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {}
   |         ^^^^^     ^
   = note: required for the cast from `fn(isize, u8, Vec<u32>) {f}` to the object type `dyn Trait`
```

</td>
<td>

```text
error[E0631]: type mismatch in function arguments
  --> ./t.rs:4:12
   |
4  |     expect(&f);
   |     ------ ^^ expected signature of `fn(usize, u8, Vec<u64>) -> _`
   |     |
   |     required by a bound introduced by this call
...
10 | fn f(_: isize, _: u8, _: Vec<u32>) {}
   | ---------------------------------- found signature of `fn(isize, u8, Vec<u32>) -> _`
   |
note: required because of the requirements on the impl of `Trait` for `fn(isize, u8, Vec<u32>) {f}`
  --> ./t.rs:8:9
   |
8  | impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {}
   |         ^^^^^     ^
   = note: required for the cast to the object type `dyn Trait`
```

</td>
</tr>
</table>

<details><summary>code</summary>
<p>

```rust
fn main() {
    fn expect(_: &dyn Trait) {}

    expect(&f);
}

trait Trait {}
impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {}

fn f(_: isize, _: u8, _: Vec<u32>) {}
```

</p>
</details>

r? `@compiler-errors`

23 months agoRollup merge of #99311 - kckeiks:clean-up-body-owner-methods, r=cjgillot
Dylan DPC [Sat, 30 Jul 2022 15:09:46 +0000 (20:39 +0530)]
Rollup merge of #99311 - kckeiks:clean-up-body-owner-methods, r=cjgillot

change maybe_body_owned_by to take local def id

Issue https://github.com/rust-lang/rust/issues/96341
r? `@cjgillot`

23 months agoAuto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov
bors [Sat, 30 Jul 2022 14:50:05 +0000 (14:50 +0000)]
Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov

Remove `TreeAndSpacing`.

A `TokenStream` contains a `Lrc<Vec<(TokenTree, Spacing)>>`. But this is
not quite right. `Spacing` makes sense for `TokenTree::Token`, but does
not make sense for `TokenTree::Delimited`, because a
`TokenTree::Delimited` cannot be joined with another `TokenTree`.

This commit fixes this problem, by adding `Spacing` to `TokenTree::Token`,
changing `TokenStream` to contain a `Lrc<Vec<TokenTree>>`, and removing the
`TreeAndSpacing` typedef.

The commit removes these two impls:
- `impl From<TokenTree> for TokenStream`
- `impl From<TokenTree> for TreeAndSpacing`

These were useful, but also resulted in code with many `.into()` calls
that was hard to read, particularly for anyone not highly familiar with
the relevant types. This commit makes some other changes to compensate:
- `TokenTree::token()` becomes `TokenTree::token_{alone,joint}()`.
- `TokenStream::token_{alone,joint}()` are added.
- `TokenStream::delimited` is added.

This results in things like this:
```rust
TokenTree::token(token::Semi, stmt.span).into()
```
changing to this:
```rust
TokenStream::token_alone(token::Semi, stmt.span)
```
This makes the type of the result, and its spacing, clearer.

These changes also simplifies `Cursor` and `CursorRef`, because they no longer
need to distinguish between `next` and `next_with_spacing`.

r? `@petrochenkov`

23 months agoAuto merge of #99868 - yaahc:rustc-perf-bump, r=Mark-Simulacrum
bors [Sat, 30 Jul 2022 12:21:14 +0000 (12:21 +0000)]
Auto merge of #99868 - yaahc:rustc-perf-bump, r=Mark-Simulacrum

bump rustc-perf commit

split off from https://github.com/rust-lang/rust/pull/99431

needed to access bugfix from https://github.com/rust-lang/rustc-perf/pull/1366

23 months agoAuto merge of #99796 - compiler-errors:issue-53475, r=oli-obk
bors [Sat, 30 Jul 2022 09:35:22 +0000 (09:35 +0000)]
Auto merge of #99796 - compiler-errors:issue-53475, r=oli-obk

use `check_region_obligations_and_report_errors` to avoid ICEs

If we don't call `process_registered_region_obligations` before `resolve_regions_and_report_errors` then we'll ICE if we have any region obligations, and `check_region_obligations_and_report_errors` just does both of these for us in a nice convenient function.

Fixes #53475

r? types

23 months agoAuto merge of #99768 - klensy:bump-deps-07-22, r=Mark-Simulacrum
bors [Sat, 30 Jul 2022 06:54:38 +0000 (06:54 +0000)]
Auto merge of #99768 - klensy:bump-deps-07-22, r=Mark-Simulacrum

update few deps

Updates few crates:

* openssl-src v111.18.0+1.1.1n -> v111.22.0+1.1.1q: fixes few CVE's (https://www.openssl.org/news/vulnerabilities-1.1.1.html: https://cve.org/CVERecord?id=CVE-2022-1292 https://cve.org/CVERecord?id=CVE-2022-2068 https://cve.org/CVERecord?id=CVE-2022-2097)

* openssl-probe v0.1.2 -> v0.1.5 updates ancient (2017) crate (https://github.com/alexcrichton/openssl-probe/compare/0.1.2...0.1.5). Adds support to search cert for additional platforms.

* indoc v1.0.3 -> v1.0.6 (https://github.com/dtolnay/indoc/compare/1.0.3...1.0.6) Nothing special changed, removes unindent v0.1.7

* bstr v0.2.13 -> v0.2.17 (https://github.com/BurntSushi/bstr/compare/0.2.13...0.2.17) Few speedups (https://github.com/BurntSushi/bstr/commit/8e659921312830b91d2a48aafa36fb1a49cba5bc, https://github.com/BurntSushi/bstr/commit/5fcef919adf1b84a960c87126decb0f3ef8c2e61) and bugfix (https://github.com/BurntSushi/bstr/commit/b2111b6bbf2c9a819fb1338aa81bd099874106a1)

* crc32fast v1.2.0 -> v1.3.2 (https://github.com/srijs/rust-crc32fast/compare/v1.2.0...v1.3.2) Speedup debug (https://github.com/srijs/rust-crc32fast/commit/e61ce6a39bbe9da495198a4037292ec299e8970f)

* diff v0.1.12 -> v0.1.13 (https://github.com/utkarshkukreti/diff.rs/compare/0.1.12...0.1.13) Few optimizations (https://github.com/utkarshkukreti/diff.rs/pull/16, https://github.com/utkarshkukreti/diff.rs/commit/0f0aa580f197af7dab9ab905568f70a2387e23bc)

* ignore v0.4.17 -> v0.4.18 (it's hard to get usable diff, but most notable perf change is https://github.com/BurntSushi/ripgrep/commit/a28e664abd0d8912e4a2d85039fe282b9d37b994)

* globset v0.4.5 -> v0.4.9

* regex v1.5.5 -> v1.5.6 few bugfixes (https://github.com/rust-lang/regex/blob/1.5.6/CHANGELOG.md#156-2022-05-20). There exist 1.6.0 version, but it's too fresh.

23 months agoReset directory iteration in remove_dir_all
Chris Denton [Sat, 30 Jul 2022 04:28:38 +0000 (05:28 +0100)]
Reset directory iteration in remove_dir_all

23 months agoAuto merge of #99123 - mystor:crossbeam_bridge, r=eddyb
bors [Sat, 30 Jul 2022 04:05:28 +0000 (04:05 +0000)]
Auto merge of #99123 - mystor:crossbeam_bridge, r=eddyb

proc_macro: use crossbeam channels for the proc_macro cross-thread bridge

This is done by having the crossbeam dependency inserted into the `proc_macro` server code from the server side, to avoid adding a dependency to `proc_macro`.

In addition, this introduces a -Z command-line option which will switch rustc to run proc-macros using this cross-thread executor. With the changes to the bridge in #98186, #98187, #98188 and #98189, the performance of the executor should be much closer to same-thread execution.

In local testing, the crossbeam executor was substantially more performant than either of the two existing `CrossThread` strategies, so they have been removed to keep things simple.

r? `@eddyb`

23 months agoAuto merge of #99925 - JohnTitor:rollup-4bt9ou3, r=JohnTitor
bors [Sat, 30 Jul 2022 00:26:22 +0000 (00:26 +0000)]
Auto merge of #99925 - JohnTitor:rollup-4bt9ou3, r=JohnTitor

Rollup of 8 pull requests

Successful merges:

 - #99227 (Fix thumbv4t-none-eabi frame pointer setting)
 - #99518 (Let-else: break out scopes when a let-else pattern fails to match)
 - #99671 (Suggest dereferencing index when trying to use a reference of usize as index)
 - #99831 (Add Fuchsia platform support documentation)
 - #99881 (fix ICE when computing codegen_fn_attrs on closure with non-fn parent)
 - #99888 (Streamline lint checking)
 - #99891 (Adjust an expr span to account for macros)
 - #99904 (Cleanup html whitespace)

Failed merges:

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

23 months agoDon't give a hard error for `x check --keep-stage 0`
Joshua Nelson [Sat, 23 Jul 2022 19:47:05 +0000 (14:47 -0500)]
Don't give a hard error for `x check --keep-stage 0`

Stage 1 check has been supported since https://github.com/rust-lang/rust/pull/81064.
 #81064 changed the error message for this, but I don't think there's any reason we should prevent using it.
I tested locally and `keep-stage` works fine. Don't give a hard error when trying to use it.

23 months agoRollup merge of #99904 - GuillaumeGomez:cleanup-html-whitespace, r=notriddle
Yuki Okushi [Fri, 29 Jul 2022 22:39:56 +0000 (07:39 +0900)]
Rollup merge of #99904 - GuillaumeGomez:cleanup-html-whitespace, r=notriddle

Cleanup html whitespace

I realized while looking at the raw HTML that we generated some unwanted white space characters. This PR cleans up the one coming directly from rustdoc. I'll check from `pulldown-cmark` for the remaining ones.

Some numbers now: the difference is small, it goes from `63009` to `62859`. But multiplied by the number of files, it becomes quite interesting overall.

r? `@notriddle`

23 months agoRollup merge of #99891 - compiler-errors:suggest-slicing-carefully, r=oli-obk
Yuki Okushi [Fri, 29 Jul 2022 22:39:55 +0000 (07:39 +0900)]
Rollup merge of #99891 - compiler-errors:suggest-slicing-carefully, r=oli-obk

Adjust an expr span to account for macros

Fix this erroneous suggestion:

```
error[E0529]: expected an array or slice, found `Vec<{integer}>`
 --> /home/gh-compiler-errors/test.rs:2:9
  |
2 |     let [..] = vec![1, 2, 3];
  |         ^^^^ pattern cannot match with input type `Vec<{integer}>`
  |
help: consider slicing here
 --> /home/gh-compiler-errors/rust2/library/alloc/src/macros.rs:50:36
  |
50~         $crate::__rust_force_expr!(<[_]>::into_vec(
51+             #[rustc_box]
52+             $crate::boxed::Box::new([$($x),+])
53~         )[..])
```

23 months agoRollup merge of #99888 - nnethercote:streamline-visitors, r=cjgillot
Yuki Okushi [Fri, 29 Jul 2022 22:39:54 +0000 (07:39 +0900)]
Rollup merge of #99888 - nnethercote:streamline-visitors, r=cjgillot

Streamline lint checking

The early (AST) and late (HIR) lint checkers have a number of functions that aren't used by rustc or clippy. Might as well remove them -- it's not like there's a canonical API here, as shown by the ad hoc use of `check_foo`/`check_foo_post` combinations.

r? `@cjgillot`

23 months agoRollup merge of #99881 - compiler-errors:issue-99876, r=tmiasko
Yuki Okushi [Fri, 29 Jul 2022 22:39:53 +0000 (07:39 +0900)]
Rollup merge of #99881 - compiler-errors:issue-99876, r=tmiasko

fix ICE when computing codegen_fn_attrs on closure with non-fn parent

Other call sites check `has_codegen_attrs` first, so let's do that too.

Fixes #99876

23 months agoRollup merge of #99831 - djkoloski:add_fuchsia_target_documentation, r=tmandry
Yuki Okushi [Fri, 29 Jul 2022 22:39:52 +0000 (07:39 +0900)]
Rollup merge of #99831 - djkoloski:add_fuchsia_target_documentation, r=tmandry

Add Fuchsia platform support documentation

This documentation contains instructions for building and running binaries on Fuchsia using its provided SDK.

23 months agoRollup merge of #99671 - TaKO8Ki:suggest-dereferencing-index, r=compiler-errors
Yuki Okushi [Fri, 29 Jul 2022 22:39:50 +0000 (07:39 +0900)]
Rollup merge of #99671 - TaKO8Ki:suggest-dereferencing-index, r=compiler-errors

Suggest dereferencing index when trying to use a reference of usize as index

fixes #96678

23 months agoRollup merge of #99518 - dingxiangfei2009:let-else-additional-tests, r=oli-obk
Yuki Okushi [Fri, 29 Jul 2022 22:39:49 +0000 (07:39 +0900)]
Rollup merge of #99518 - dingxiangfei2009:let-else-additional-tests, r=oli-obk

Let-else: break out scopes when a let-else pattern fails to match

This PR will commit to a new behavior so that values from initializer expressions are dropped earlier when a let-else pattern fails to match.

Fix #98672.
Close #93951.
cc `@camsteffen` `@est31`

23 months agoRollup merge of #99227 - Lokathor:fix-thumbv4t-none-eabi-frame-pointer, r=davidtwco
Yuki Okushi [Fri, 29 Jul 2022 22:39:48 +0000 (07:39 +0900)]
Rollup merge of #99227 - Lokathor:fix-thumbv4t-none-eabi-frame-pointer, r=davidtwco

Fix thumbv4t-none-eabi frame pointer setting

The `thumb_base` profile has changed since I last remember seeing it, and now it sets the frame pointer to "always keep", which is not desired for this target. Hooking a debugger to the running program is not really done, it's preferable to have the register available for actual program use, so the default "may omit" is now set.

I thought that the target was already using "may omit" when I checked on it last month, because I forgot that the target was previously based on `thumb_base` rather than `Default::default()`. I only noticed the issue just now when creating the `armv4t-none-eabi` target (https://github.com/rust-lang/rust/pull/99226), though this PR is not in any way conditional on that one.

23 months agoAvoid ICE when fetching LocalDefId
Miguel Guarniz [Wed, 20 Jul 2022 02:51:52 +0000 (22:51 -0400)]
Avoid ICE when fetching LocalDefId

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
23 months agoChange enclosing_body_owner to return LocalDefId
Miguel Guarniz [Tue, 19 Jul 2022 21:47:49 +0000 (17:47 -0400)]
Change enclosing_body_owner to return LocalDefId

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
23 months agoRename local_did to def_id
Miguel Guarniz [Tue, 19 Jul 2022 21:06:52 +0000 (17:06 -0400)]
Rename local_did to def_id

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
23 months agoChange maybe_body_owned_by to take local def id
Miguel Guarniz [Sat, 16 Jul 2022 03:13:04 +0000 (23:13 -0400)]
Change maybe_body_owned_by to take local def id

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
23 months agoAuto merge of #99730 - lcnr:bound-vars-anon, r=jackh726
bors [Fri, 29 Jul 2022 21:38:36 +0000 (21:38 +0000)]
Auto merge of #99730 - lcnr:bound-vars-anon, r=jackh726

anonymize all bound vars, not just regions

fixes #98702

r? types

23 months agoproc_macro: use crossbeam channels for the proc_macro cross-thread bridge
Nika Layzell [Sat, 18 Jun 2022 18:15:03 +0000 (14:15 -0400)]
proc_macro: use crossbeam channels for the proc_macro cross-thread bridge

This is done by having the crossbeam dependency inserted into the
proc_macro server code from the server side, to avoid adding a
dependency to proc_macro.

In addition, this introduces a -Z command-line option which will switch
rustc to run proc-macros using this cross-thread executor. With the
changes to the bridge in #98186, #98187, #98188 and #98189, the
performance of the executor should be much closer to same-thread
execution.

In local testing, the crossbeam executor was substantially more
performant than either of the two existing CrossThread strategies, so
they have been removed to keep things simple.

23 months agoAuto merge of #99577 - est31:remove_box_librustdoc, r=jsha
bors [Fri, 29 Jul 2022 18:44:53 +0000 (18:44 +0000)]
Auto merge of #99577 - est31:remove_box_librustdoc, r=jsha

Remove remaining uses of box syntax from librustdoc

Remove the remaining uses of box syntax from librustdoc. Followup of #99066 where these changes were split out because they were responsible for a small but noticeable regression. This PR avoids the regression by boxing some large variants of `ItemKind` to reduce the enum's size by half from 224 bytes to 112 bytes (on x86-64). This should also help with reducing memory usage.

23 months agoStatically ensure the size of ItemKind
est31 [Thu, 21 Jul 2022 21:54:16 +0000 (23:54 +0200)]
Statically ensure the size of ItemKind

23 months agoBox FunctionItem, TyMethodItem, MethodItem, ForeignFunctionItem
est31 [Thu, 21 Jul 2022 22:11:21 +0000 (00:11 +0200)]
Box FunctionItem, TyMethodItem, MethodItem, ForeignFunctionItem

This reduces ItemKind size from 160 bytes to 112 bytes

23 months agoBox TypedefItem, ImplItem, AssocTypeItem variants of ItemKind
est31 [Thu, 21 Jul 2022 21:14:12 +0000 (23:14 +0200)]
Box TypedefItem, ImplItem, AssocTypeItem variants of ItemKind

This reduces ItemKind size from 224 bytes to 160 bytes.

23 months agoRemove box_syntax feature gate from librustdoc
est31 [Sun, 10 Jul 2022 22:29:15 +0000 (00:29 +0200)]
Remove box_syntax feature gate from librustdoc

23 months agoRemove box syntax from doctest.rs
est31 [Thu, 21 Jul 2022 21:00:28 +0000 (23:00 +0200)]
Remove box syntax from doctest.rs

23 months agoRemove box syntax from Box<rustdoc::clean::types::ItemKind> construction
est31 [Sun, 10 Jul 2022 22:08:55 +0000 (00:08 +0200)]
Remove box syntax from Box<rustdoc::clean::types::ItemKind> construction

The type has 240 bytes according to compiler internal rustdoc.

23 months agoAuto merge of #99467 - BelovDV:add_option_link_arg, r=petrochenkov
bors [Fri, 29 Jul 2022 15:36:52 +0000 (15:36 +0000)]
Auto merge of #99467 - BelovDV:add_option_link_arg, r=petrochenkov

flag '-l link-arg=___ was added

#99427

23 months agoAdd diagnostic when using public instead of pub
Gimgim [Fri, 29 Jul 2022 13:51:30 +0000 (19:21 +0530)]
Add diagnostic when using public instead of pub

23 months agoAuto merge of #99715 - tmiasko:coverage-run-make, r=Mark-Simulacrum
bors [Fri, 29 Jul 2022 12:45:47 +0000 (12:45 +0000)]
Auto merge of #99715 - tmiasko:coverage-run-make, r=Mark-Simulacrum

Move coverage tests from run-make-fulldeps to run-make

23 months agoRemove unwanted extra white space characters from HTML
Guillaume Gomez [Fri, 29 Jul 2022 12:32:48 +0000 (14:32 +0200)]
Remove unwanted extra white space characters from HTML

23 months agoremove some manual hash stable impls
lcnr [Fri, 29 Jul 2022 10:48:28 +0000 (12:48 +0200)]
remove some manual hash stable impls

23 months agoAuto merge of #99892 - JohnTitor:rollup-qi4fem8, r=JohnTitor
bors [Fri, 29 Jul 2022 09:57:44 +0000 (09:57 +0000)]
Auto merge of #99892 - JohnTitor:rollup-qi4fem8, r=JohnTitor

Rollup of 8 pull requests

Successful merges:

 - #99686 (add suggestion when there is a impl of external trait on pointer with wrong coherence rules)
 - #99760 (doc/rustc: describe the uefi target platforms)
 - #99766 (Htmldocck: Substitute the doc channel when blessing)
 - #99781 (Use String::from_utf8_lossy in CStr demo)
 - #99803 (Update mentions to `rustc_metadata::rmeta::Lazy`)
 - #99845 (Remove `$` prefix for bash scripts in doc)
 - #99850 (rustdoc: Remove more Clean trait implementations)
 - #99872 (Clone the `src/llvm-project` submodule if profiling is enabled)

Failed merges:

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

23 months agoAuto merge of #99667 - ouz-a:some_branch, r=oli-obk
bors [Fri, 29 Jul 2022 07:11:50 +0000 (07:11 +0000)]
Auto merge of #99667 - ouz-a:some_branch, r=oli-obk

Optimize `UnDerefer`

Addresses the performance [issues](https://github.com/rust-lang/rust/pull/98145#issuecomment-1183548597) faced here.

r? `@oli-obk`

23 months agodont call type ascription 'cast'
Michael Goulet [Fri, 29 Jul 2022 07:01:58 +0000 (07:01 +0000)]
dont call type ascription 'cast'

23 months agooptimize bound vars replacement :3
lcnr [Thu, 28 Jul 2022 14:55:15 +0000 (16:55 +0200)]
optimize bound vars replacement :3

23 months agoRollup merge of #99872 - Nilstrieb:bootstrap-llvm, r=jyn514
Yuki Okushi [Fri, 29 Jul 2022 06:40:04 +0000 (15:40 +0900)]
Rollup merge of #99872 - Nilstrieb:bootstrap-llvm, r=jyn514

Clone the `src/llvm-project` submodule if profiling is enabled

To compile rustc with profiling information, `compiler-rt` from LLVM is required. Building it requires the `src/llvm-project` submodule to be initialized and updated.

Fixes #99869

23 months agoRollup merge of #99850 - GuillaumeGomez:clean-more-items, r=notriddle
Yuki Okushi [Fri, 29 Jul 2022 06:40:03 +0000 (15:40 +0900)]
Rollup merge of #99850 - GuillaumeGomez:clean-more-items, r=notriddle

rustdoc: Remove more Clean trait implementations

Follow-up of https://github.com/rust-lang/rust/pull/99638.

r? `@notriddle`

23 months agoRollup merge of #99845 - xtexChooser:patch-1, r=GuillaumeGomez
Yuki Okushi [Fri, 29 Jul 2022 06:40:02 +0000 (15:40 +0900)]
Rollup merge of #99845 - xtexChooser:patch-1, r=GuillaumeGomez

Remove `$` prefix for bash scripts in doc

23 months agoRollup merge of #99803 - JohnTitor:update-lazy-docs, r=compiler-errors
Yuki Okushi [Fri, 29 Jul 2022 06:40:01 +0000 (15:40 +0900)]
Rollup merge of #99803 - JohnTitor:update-lazy-docs, r=compiler-errors

Update mentions to `rustc_metadata::rmeta::Lazy`

While working on https://github.com/rust-lang/rustc-dev-guide/pull/1411, I noticed there are still some mentions of `Lazy`. This updates them to `LazyValue`, `LazyArray`, or `LazyTable`.

r? ````@compiler-errors````

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
23 months agoRollup merge of #99781 - workingjubilee:demo-string-from-cstr, r=thomcc
Yuki Okushi [Fri, 29 Jul 2022 06:40:00 +0000 (15:40 +0900)]
Rollup merge of #99781 - workingjubilee:demo-string-from-cstr, r=thomcc

Use String::from_utf8_lossy in CStr demo

Fixes rust-lang/rust#99755.

23 months agoRollup merge of #99766 - fmease:htmldocck-subst-channel-when-blessing, r=Mark-Simulacrum
Yuki Okushi [Fri, 29 Jul 2022 06:39:59 +0000 (15:39 +0900)]
Rollup merge of #99766 - fmease:htmldocck-subst-channel-when-blessing, r=Mark-Simulacrum

Htmldocck: Substitute the doc channel when blessing

Since #84942, the snippet `{{channel}}` gets substituted with the concrete “doc channel” (e.g. `https://doc.rust-lang.org/nightly`) when snapshot files are checked against the actual rustdoc output.

However, when you `--bless` rustdoc tests, htmldocck just dumps the concrete channel into the snapshot file and
you have to manually do a find-and-replace after blessing to uphold what #84942 set out to fix.

I admit it's a bit fragile to blindly replace URLs like this but I guess it's not too bad in practice.
Feel free to close this PR if you don't think that this is a good idea.

`@rustbot` label T-rustdoc A-testsuite

23 months agoRollup merge of #99760 - dvdhrm:rw/uefiplat, r=ehuss
Yuki Okushi [Fri, 29 Jul 2022 06:39:58 +0000 (15:39 +0900)]
Rollup merge of #99760 - dvdhrm:rw/uefiplat, r=ehuss

doc/rustc: describe the uefi target platforms

Add a `platform-support` entry to the rustc-docs for the different `*-unknown-uefi` targets. This describes in detail how this platform works, a few basic examples, and how to compile for the platform.

Red Hat is sponsoring my work on this platform, so I am putting myself down as target maintainer. Co-maintainers are more than welcome to join me in the effort. Communication is going on off-list to coordinate the different efforts.

Note that the ultimate goal is to move the UEFI targets to Tier-2 so bootloaders can be more easily supported in commercial products. This documentation is the first step towards that goal, but should be a viable documentation even for the current Tier-3 status of the targets.

I also want to point out that there is an ongoing GSoC-effort to port the rust standard library to UEFI (by Ayush Singh). While this work is not necessarily required to get to Tier-2, we definitely should coordinate the efforts and update the documentation as soon as any such ports are merged.

Note that the targets are already used by multiple commercial and non commercial production systems, including, but not limited to:

 * Tianocore-EDK2 (Official UEFI SDK by Intel) comes with rust support
   in its staging repository (not part of any release, yet).
   (https://github.com/tianocore/edk2-staging/tree)
 * Intel's research program "Project Mu" uses the rust UEFI targets to
   show possible future replacements for Tianocore-EDK2.
 * The Rust OS "Redox" uses the UEFI targets for its bootloader.
   (https://www.redox-os.org/)
 * The hugely popular in-depth documentation of OS development in Rust
   by Philipp Oppermann uses the UEFI targets.
   (https://os.phil-opp.com/)

23 months agoRollup merge of #99686 - vincenzopalazzo:macros/impl_on_ptr, r=compiler-errors
Yuki Okushi [Fri, 29 Jul 2022 06:39:57 +0000 (15:39 +0900)]
Rollup merge of #99686 - vincenzopalazzo:macros/impl_on_ptr, r=compiler-errors

add suggestion when there is a impl of external trait on pointer with wrong coherence rules

Closes https://github.com/rust-lang/rust/issues/99572

This will try to improve the node in the error message by suggesting a general solution because the solution, in this case, is application depended.

I'm not super happy regarding the code quality, but I'm happy to have feedback on it.

`@rustbot` r? `@compiler-errors`

23 months agoDocument check_region_obligations_and_report_errors, simplify a call to resolve_regions
Michael Goulet [Fri, 29 Jul 2022 06:17:17 +0000 (06:17 +0000)]
Document check_region_obligations_and_report_errors, simplify a call to resolve_regions

23 months agoAdjust an expr span to account for macros
Michael Goulet [Fri, 29 Jul 2022 06:02:11 +0000 (06:02 +0000)]
Adjust an expr span to account for macros

23 months agoRemove `TreeAndSpacing`.
Nicholas Nethercote [Thu, 28 Jul 2022 00:31:04 +0000 (10:31 +1000)]
Remove `TreeAndSpacing`.

A `TokenStream` contains a `Lrc<Vec<(TokenTree, Spacing)>>`. But this is
not quite right. `Spacing` makes sense for `TokenTree::Token`, but does
not make sense for `TokenTree::Delimited`, because a
`TokenTree::Delimited` cannot be joined with another `TokenTree`.

This commit fixes this problem, by adding `Spacing` to `TokenTree::Token`,
changing `TokenStream` to contain a `Lrc<Vec<TokenTree>>`, and removing the
`TreeAndSpacing` typedef.

The commit removes these two impls:
- `impl From<TokenTree> for TokenStream`
- `impl From<TokenTree> for TreeAndSpacing`

These were useful, but also resulted in code with many `.into()` calls
that was hard to read, particularly for anyone not highly familiar with
the relevant types. This commit makes some other changes to compensate:
- `TokenTree::token()` becomes `TokenTree::token_{alone,joint}()`.
- `TokenStream::token_{alone,joint}()` are added.
- `TokenStream::delimited` is added.

This results in things like this:
```rust
TokenTree::token(token::Semi, stmt.span).into()
```
changing to this:
```rust
TokenStream::token_alone(token::Semi, stmt.span)
```
This makes the type of the result, and its spacing, clearer.

These changes also simplifies `Cursor` and `CursorRef`, because they no longer
need to distinguish between `next` and `next_with_spacing`.

23 months agoDo not allow bad projection term to leak into the type checker
Michael Goulet [Fri, 29 Jul 2022 05:48:40 +0000 (05:48 +0000)]
Do not allow bad projection term to leak into the type checker

23 months agoRemove parent_pat from TopInfo
Michael Goulet [Fri, 29 Jul 2022 05:44:05 +0000 (05:44 +0000)]
Remove parent_pat from TopInfo

23 months agoRemove some late `check_*` functions.
Nicholas Nethercote [Fri, 29 Jul 2022 01:28:51 +0000 (11:28 +1000)]
Remove some late `check_*` functions.

They're not used by rustc or clippy.

23 months agoRemove `visit_name` from the AST visitor.
Nicholas Nethercote [Fri, 29 Jul 2022 03:43:28 +0000 (13:43 +1000)]
Remove `visit_name` from the AST visitor.

Because the default is empty and it's never overridden. This means
`walk_ident` can also be removed, because it does nothing.

23 months agoRemove some early `check_*` functions.
Nicholas Nethercote [Fri, 29 Jul 2022 00:25:49 +0000 (10:25 +1000)]
Remove some early `check_*` functions.

They're not used by rustc or clippy.

23 months agocheck if T is slice
Takayuki Maeda [Fri, 29 Jul 2022 05:12:37 +0000 (14:12 +0900)]
check if T is slice

fix msg

23 months agoimplement `point_at_index_if_possible`
Takayuki Maeda [Fri, 29 Jul 2022 05:12:17 +0000 (14:12 +0900)]
implement `point_at_index_if_possible`

23 months agoAuto merge of #99660 - PrestonFrom:issue_99265, r=compiler-errors
bors [Fri, 29 Jul 2022 04:23:08 +0000 (04:23 +0000)]
Auto merge of #99660 - PrestonFrom:issue_99265, r=compiler-errors

Generate correct suggestion with named arguments used positionally

Address issue #99265 by checking each positionally used argument
to see if the argument is named and adding a lint to use the name
instead. This way, when named arguments are used positionally in a
different order than their argument order, the suggested lint is
correct.

For example:
```
println!("{b} {}", a=1, b=2);
```
This will now generate the suggestion:
```
println!("{b} {a}", a=1, b=2);
```

Additionally, this check now also correctly replaces or inserts
only where the positional argument is (or would be if implicit).
Also, width and precision are replaced with their argument names
when they exists.

Since the issues were so closely related, this fix for issue #99265
also fixes issue #99266.

Fixes #99265
Fixes #99266

23 months agoAuto merge of #99512 - nikic:llvm-15-fixes, r=cuviper
bors [Fri, 29 Jul 2022 01:35:15 +0000 (01:35 +0000)]
Auto merge of #99512 - nikic:llvm-15-fixes, r=cuviper

LLVM 15 compatibility fixes

These are LLVM 15 compatibility fixes split out from #99464. There are three changes here:

 * Emit elementtype attribtue for ldrex/strex intrinsics. This is requires as part of the opaque pointers migration.
 * Make more tests compatible with opaque pointers. These are either new or aren't run on x86.
 * Remove a test for `#[rustc_allocator]`. Since #99574 there are more requirement on the function signature. I dropped the test entirely, since we already test the effect of the attribute elsewhere.
 * The main change: When a worker thread emits an error, wait for other threads to finish before unwinding the main thread and exiting. Otherwise workers may end up using globals for which destructors have already been run. This was probably never quite correct, but became an active problem with LLVM 15, because it started using global dtors in critical places, as part of ManagedStatic removal.

Fixes #99432 (and probably also #95679).

r? `@cuviper`

23 months agofix ICE when computing codegen_fn_attrs on closure with non-fn parent
Michael Goulet [Fri, 29 Jul 2022 00:40:07 +0000 (00:40 +0000)]
fix ICE when computing codegen_fn_attrs on closure with non-fn parent

23 months agoAuto merge of #99865 - flip1995:clippyup, r=Manishearth
bors [Thu, 28 Jul 2022 22:02:12 +0000 (22:02 +0000)]
Auto merge of #99865 - flip1995:clippyup, r=Manishearth

Update Clippy

r? `@Manishearth`

23 months agoAdd Fuchsia platform support documentation
David Koloski [Wed, 20 Jul 2022 19:42:17 +0000 (15:42 -0400)]
Add Fuchsia platform support documentation

23 months agorustdoc: align invalid-html-tags lint with commonmark spec
Michael Howell [Thu, 28 Jul 2022 20:12:32 +0000 (13:12 -0700)]
rustdoc: align invalid-html-tags lint with commonmark spec

23 months agoClone the `src/llvm-project` submodule if profiling is enabled
Nilstrieb [Thu, 28 Jul 2022 19:40:33 +0000 (21:40 +0200)]
Clone the `src/llvm-project` submodule if profiling is enabled

To compile rustc with profiling information, `compiler-rt` from
LLVM is required. Building it requires the `src/llvm-project` submodule
to be initialized and updated.

23 months agoAuto merge of #99863 - Dylan-DPC:rollup-lq9w047, r=Dylan-DPC
bors [Thu, 28 Jul 2022 19:12:21 +0000 (19:12 +0000)]
Auto merge of #99863 - Dylan-DPC:rollup-lq9w047, r=Dylan-DPC

Rollup of 6 pull requests

Successful merges:

 - #99628 (add more docs regarding ideographic numbers)
 - #99689 (Revert `write!` and `writeln!` to late drop temporaries)
 - #99807 (Fix PermissionDenied UI tests on WSL)
 - #99817 (rustdoc: remove Clean trait impls for more items)
 - #99851 (Fix small typo in Cargo.toml comment)
 - #99856 (fix: remove fake no_dead_strip for osx)

Failed merges:

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

23 months agobump rustc-perf commit
Jane Losare-Lusby [Mon, 25 Jul 2022 20:01:05 +0000 (20:01 +0000)]
bump rustc-perf commit

23 months agoUpdate Cargo.lock
Philipp Krones [Thu, 28 Jul 2022 17:08:41 +0000 (19:08 +0200)]
Update Cargo.lock

23 months agoMerge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
Philipp Krones [Thu, 28 Jul 2022 17:08:22 +0000 (19:08 +0200)]
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup

23 months agoonce again tidy was unhappy
Lokathor [Thu, 28 Jul 2022 16:58:42 +0000 (10:58 -0600)]
once again tidy was unhappy

23 months agoAuto merge of #9257 - flip1995:rustup, r=flip1995
bors [Thu, 28 Jul 2022 16:56:38 +0000 (16:56 +0000)]
Auto merge of #9257 - flip1995:rustup, r=flip1995

Rustup

r? `@ghost`

changelog: none

23 months agoBump nightly version -> 2022-07-28
Philipp Krones [Thu, 28 Jul 2022 16:56:16 +0000 (18:56 +0200)]
Bump nightly version -> 2022-07-28

23 months agoMerge remote-tracking branch 'upstream/master' into rustup
Philipp Krones [Thu, 28 Jul 2022 16:47:48 +0000 (18:47 +0200)]
Merge remote-tracking branch 'upstream/master' into rustup

23 months agoRollup merge of #99856 - csmoe:osx-no-dead-strip, r=bjorn3
Dylan DPC [Thu, 28 Jul 2022 16:44:51 +0000 (22:14 +0530)]
Rollup merge of #99856 - csmoe:osx-no-dead-strip, r=bjorn3

fix: remove fake no_dead_strip for osx

Closes https://github.com/rust-lang/rust/issues/99788

Link arg `-no_dead_strip` doesn't exist on OSX at all.
The `no_gc_sections` function was never called before export-executable-symols implementation, and `export-executable-symbols` still works, so we just remove it.
r? `@bjorn3`

23 months agoRollup merge of #99851 - yotamofek:patch-1, r=Mark-Simulacrum
Dylan DPC [Thu, 28 Jul 2022 16:44:50 +0000 (22:14 +0530)]
Rollup merge of #99851 - yotamofek:patch-1, r=Mark-Simulacrum

Fix small typo in Cargo.toml comment