]> git.lizzy.rs Git - rust.git/log
rust.git
23 months agospan: add `span_extend_to_line` helper
David Wood [Wed, 13 Jul 2022 14:02:23 +0000 (15:02 +0100)]
span: add `span_extend_to_line` helper

Adds a simple helper function to the `SourceMap` for extending a `Span`
to encompass the entire line it is on - useful for suggestions where
removing a line is the suggested action.

Signed-off-by: David Wood <david.wood@huawei.com>
23 months agomiddle: add `implies_by` to `#[unstable]`
David Wood [Wed, 13 Jul 2022 12:10:37 +0000 (13:10 +0100)]
middle: add `implies_by` to `#[unstable]`

If part of a feature is stabilized and a new feature is added for the
remaining parts, then the `implied_by` attribute can be used to indicate
which now-stable feature previously contained a item. If the now-stable
feature is still active (if the user has only just updated rustc, for
example) then there will not be an stability error for uses of the item
from the implied feature.

Signed-off-by: David Wood <david.wood@huawei.com>
23 months agoattr: fix expected meta-item for `#[stable]`
David Wood [Wed, 13 Jul 2022 09:36:12 +0000 (10:36 +0100)]
attr: fix expected meta-item for `#[stable]`

When an unexpected meta item is provided to `#[stable]`, the diagnostic
lists "since" and "note" as expected meta-items, however the surrounding
code actually expects "feature" and "since".

Signed-off-by: David Wood <david.wood@huawei.com>
23 months agoattr/passes: comment -> doc comment
David Wood [Wed, 13 Jul 2022 09:09:37 +0000 (10:09 +0100)]
attr/passes: comment -> doc comment

Change some regular comments into documentation comments.

Signed-off-by: David Wood <david.wood@huawei.com>
23 months agoAuto merge of #98843 - Urgau:check-cfg-stage0, r=Mark-Simulacrum
bors [Wed, 20 Jul 2022 04:23:09 +0000 (04:23 +0000)]
Auto merge of #98843 - Urgau:check-cfg-stage0, r=Mark-Simulacrum

Enable check-cfg in stage0

Now that the bootstrap cargo supports `rustc-check-cfg` we can now enable it with `-Zcheck-cfg=output` and use it in `rustc_llvm` to unblock `--check-cfg` support in stage0.

r? `@Mark-Simulacrum`

23 months agoAuto merge of #99484 - ehuss:update-cargo, r=ehuss
bors [Wed, 20 Jul 2022 00:08:55 +0000 (00:08 +0000)]
Auto merge of #99484 - ehuss:update-cargo, r=ehuss

Update cargo

9 commits in 8827baaa781b37872134c1ba692a6f0aeb37890e..d8d30a75376f78bb0fabe3d28ee9d87aa8035309
2022-07-14 02:56:51 +0000 to 2022-07-19 13:59:17 +0000
- docs: fixing minor error in the default timing report filename (rust-lang/cargo#10879)
- Stabilize `--crate-type` flag for `cargo rustc` (rust-lang/cargo#10838)
- Stabilize `-Zmultitarget` (rust-lang/cargo#10766)
- Clean up leftover in unstable documentation (rust-lang/cargo#10874)
- Normalize path for `cargo vendor` output (rust-lang/cargo#10668)
- add a reason to `masquerade_as_nightly_cargo` so it is searchable (rust-lang/cargo#10868)
- Allow '.' in workspace.default-members in non-virtual workspaces. (rust-lang/cargo#10784)
- remove`.masquerade_as_nightly_cargo()` from various tests the no longer need it (rust-lang/cargo#10867)
- remove `.masquerade_as_nightly_cargo()` from build_script_extra_link_arg.rs (rust-lang/cargo#10866)

23 months agoUpdate cargo
Eric Huss [Wed, 20 Jul 2022 00:01:12 +0000 (17:01 -0700)]
Update cargo

23 months agoAuto merge of #98180 - notriddle:notriddle/rustdoc-fn, r=petrochenkov,GuillaumeGomez
bors [Tue, 19 Jul 2022 19:36:57 +0000 (19:36 +0000)]
Auto merge of #98180 - notriddle:notriddle/rustdoc-fn, r=petrochenkov,GuillaumeGomez

Improve the function pointer docs

This is #97842 but for function pointers instead of tuples. The concept is basically the same.

* Reduce duplicate impls; show `fn (T₁, T₂, …, Tₙ)` and include a sentence saying that there exists up to twelve of them.
* Show `Copy` and `Clone`.
* Show auto traits like `Send` and `Sync`, and blanket impls like `Any`.

https://notriddle.com/notriddle-rustdoc-test/std/primitive.fn.html

23 months agoAuto merge of #99309 - RalfJung:no-large-copies, r=oli-obk
bors [Tue, 19 Jul 2022 16:33:45 +0000 (16:33 +0000)]
Auto merge of #99309 - RalfJung:no-large-copies, r=oli-obk

interpret: make some large types not Copy

Also remove some unused trait impls (mostly HashStable).

This didn't find any unnecessary copies that I managed to avoid, but it might still be better to require explicit clone for these types? Not sure.

r? `@oli-obk`

23 months agoUse `T` for all the function primitive docs lists
Michael Howell [Thu, 16 Jun 2022 21:44:09 +0000 (14:44 -0700)]
Use `T` for all the function primitive docs lists

23 months agoImprove the function pointer docs
Michael Howell [Thu, 16 Jun 2022 21:14:38 +0000 (14:14 -0700)]
Improve the function pointer docs

* Reduce duplicate impls; show only the `fn (T)` and include a sentence
  saying that there exists up to twelve of them.
* Show `Copy` and `Clone`.
* Show auto traits like `Send` and `Sync`, and blanket impls like `Any`.

23 months agoAuto merge of #99462 - matthiaskrgr:rollup-ihhwaru, r=matthiaskrgr
bors [Tue, 19 Jul 2022 13:49:56 +0000 (13:49 +0000)]
Auto merge of #99462 - matthiaskrgr:rollup-ihhwaru, r=matthiaskrgr

Rollup of 9 pull requests

Successful merges:

 - #98028 (Add E0790 as more specific variant of E0283)
 - #99384 (use body's param-env when checking if type needs drop)
 - #99401 (Avoid `Symbol` to `&str` conversions)
 - #99419 (Stabilize `core::task::ready!`)
 - #99435 (Revert "Stabilize $$ in Rust 1.63.0")
 - #99438 (Improve suggestions for `NonZeroT` <- `T` coercion error)
 - #99441 (Update mdbook)
 - #99453 (:arrow_up: rust-analyzer)
 - #99457 (use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`)

Failed merges:

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

23 months agoRollup merge of #99457 - SparrowLii:para_iter, r=fee1-dead
Matthias Krüger [Tue, 19 Jul 2022 11:30:52 +0000 (13:30 +0200)]
Rollup merge of #99457 - SparrowLii:para_iter, r=fee1-dead

use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`

Using `par_iter` in non-parallel mode will cause the entire process to abort when any iteration panics.  So we can use `par_for_each_in` instead to make the error message consistent with parallel mode. This means that the compiler will output more error messages in some cases. This fixes the following ui tests when set `parallel-compiler = true`:
```
    [ui] src/test\ui\privacy\privacy2.rs
    [ui] src/test\ui\privacy\privacy3.rs
    [ui] src/test\ui\type_length_limit.rs
```

This refers to #68171

Updates #75760

23 months agoRollup merge of #99453 - lnicola:rust-analyzer-2022-07-19, r=lnicola
Matthias Krüger [Tue, 19 Jul 2022 11:30:51 +0000 (13:30 +0200)]
Rollup merge of #99453 - lnicola:rust-analyzer-2022-07-19, r=lnicola

:arrow_up: rust-analyzer

r? `@ghost`

23 months agoRollup merge of #99441 - ehuss:update-mdbook, r=Mark-Simulacrum
Matthias Krüger [Tue, 19 Jul 2022 11:30:50 +0000 (13:30 +0200)]
Rollup merge of #99441 - ehuss:update-mdbook, r=Mark-Simulacrum

Update mdbook

Updates mdbook from 0.4.18 to 0.4.20.
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0420

This mainly includes some minor formatting and display changes.

23 months agoRollup merge of #99438 - WaffleLapkin:dont_wrap_in_non_zero, r=compiler-errors
Matthias Krüger [Tue, 19 Jul 2022 11:30:49 +0000 (13:30 +0200)]
Rollup merge of #99438 - WaffleLapkin:dont_wrap_in_non_zero, r=compiler-errors

Improve suggestions for `NonZeroT` <- `T` coercion error

Currently, when encountering a type mismatch error with `NonZeroT` and `T` (for example `NonZeroU8` and `u8`) we errorneusly suggest wrapping expression in `NonZeroT`:
```text
error[E0308]: mismatched types
 --> ./t.rs:7:35
  |
7 |     let _: std::num::NonZeroU64 = 1;
  |            --------------------   ^ expected struct `NonZeroU64`, found integer
  |            |
  |            expected due to this
  |
help: try wrapping the expression in `std::num::NonZeroU64`
  |
7 |     let _: std::num::NonZeroU64 = std::num::NonZeroU64(1);
  |                                   +++++++++++++++++++++ +
```

I've removed this suggestion and added suggestions to call `new` (for `Option<NonZeroT>` <- `T` case) or `new` and `unwrap` (for `NonZeroT` <- `T` case):

```text
error[E0308]: mismatched types
 --> ./t.rs:7:35
  |
7 |     let _: std::num::NonZeroU64 = 1;
  |            --------------------   ^ expected struct `NonZeroU64`, found integer
  |            |
  |            expected due to this
  |
help: Consider calling `NonZeroU64::new`
  |
7 |     let _: std::num::NonZeroU64 = NonZeroU64::new(1).unwrap();
  |                                   ++++++++++++++++ ++++++++++

error[E0308]: mismatched types
 --> ./t.rs:8:43
  |
8 |     let _: Option<std::num::NonZeroU64> = 1;
  |            ----------------------------   ^ expected enum `Option`, found integer
  |            |
  |            expected due to this
  |
  = note: expected enum `Option<NonZeroU64>`
             found type `{integer}`
help: Consider calling `NonZeroU64::new`
  |
8 |     let _: Option<std::num::NonZeroU64> = NonZeroU64::new(1);
  |                                           ++++++++++++++++ +
```

r? `@compiler-errors`

23 months agoRollup merge of #99435 - CAD97:revert-dollar-dollar-crate, r=Mark-Simulacrum
Matthias Krüger [Tue, 19 Jul 2022 11:30:48 +0000 (13:30 +0200)]
Rollup merge of #99435 - CAD97:revert-dollar-dollar-crate, r=Mark-Simulacrum

Revert "Stabilize $$ in Rust 1.63.0"

This mechanically reverts commit 9edaa76adce4de737db54194eb13d6c298827b37, the one commit from #95860.

https://github.com/rust-lang/rust/issues/99035; the behavior of `$$crate` is potentially unexpected and not ready to be stabilized. https://github.com/rust-lang/rust/pull/99193 attempts to forbid `$$crate` without also destabilizing `$$` more generally.

`@rustbot` modify labels +T-compiler +T-lang +P-medium +beta-nominated +relnotes

(applying the labels I think are accurate from the issue and alternative partial revert)

cc `@Mark-Simulacrum`

23 months agoRollup merge of #99419 - yoshuawuyts:stabilize-task-ready, r=Mark-Simulacrum
Matthias Krüger [Tue, 19 Jul 2022 11:30:47 +0000 (13:30 +0200)]
Rollup merge of #99419 - yoshuawuyts:stabilize-task-ready, r=Mark-Simulacrum

Stabilize `core::task::ready!`

This stabilizes `core::task::ready!` for Rust 1.64. The FCP for stabilization was just completed here https://github.com/rust-lang/rust/issues/70922#issuecomment-1186231855. Thanks!

Closes #70922

cc/ ``@rust-lang/libs-api``

23 months agoRollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote
Matthias Krüger [Tue, 19 Jul 2022 11:30:46 +0000 (13:30 +0200)]
Rollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote

Avoid `Symbol` to `&str` conversions

`Symbol::as_str` is a slowish operation, so this patch removes some usages of it.

23 months agoRollup merge of #99384 - compiler-errors:issue-99375, r=oli-obk
Matthias Krüger [Tue, 19 Jul 2022 11:30:45 +0000 (13:30 +0200)]
Rollup merge of #99384 - compiler-errors:issue-99375, r=oli-obk

use body's param-env when checking if type needs drop

The type comes from the body, so we should be using the body's param-env, as opposed to the ADT's param env, because we know less in the latter compared to the former.

Fixes #99375

23 months agoRollup merge of #98028 - aticu:master, r=estebank
Matthias Krüger [Tue, 19 Jul 2022 11:30:44 +0000 (13:30 +0200)]
Rollup merge of #98028 - aticu:master, r=estebank

Add E0790 as more specific variant of E0283

Fixes #81701

I think this should be good to go, there are only two things where I am somewhat unsure:
- Is there a better way to get the fully-qualified path for the suggestion? I tried `self.tcx.def_path_str`, but that didn't seem to always give a correct path for the context.
- Should all this be extracted into it's own method or is it fine where it is?

r? `@estebank`

23 months agoAuto merge of #98912 - nrc:provider-it, r=yaahc
bors [Tue, 19 Jul 2022 11:28:20 +0000 (11:28 +0000)]
Auto merge of #98912 - nrc:provider-it, r=yaahc

core::any: replace some generic types with impl Trait

This gives a cleaner API since the caller only specifies the concrete type they usually want to.

r? `@yaahc`

23 months agouse `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`
SparrowLii [Tue, 19 Jul 2022 09:00:51 +0000 (17:00 +0800)]
use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`

23 months agoAuto merge of #99451 - Dylan-DPC:rollup-ceghu18, r=Dylan-DPC
bors [Tue, 19 Jul 2022 08:32:32 +0000 (08:32 +0000)]
Auto merge of #99451 - Dylan-DPC:rollup-ceghu18, r=Dylan-DPC

Rollup of 8 pull requests

Successful merges:

 - #97183 (wf-check generators)
 - #98320 (Mention first and last macro in backtrace)
 - #99335 (Use split_once in FromStr docs)
 - #99347 (Use `LocalDefId` in `OpaqueTypeKey`)
 - #99392 (Fix debuginfo tests.)
 - #99404 (Use span_bug for unexpected field projection type)
 - #99410 (Update invalid atomic ordering lint)
 - #99434 (Fix `Skip::next` for non-fused inner iterators)

Failed merges:

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

23 months agoDon't use main; improve example
aticu [Mon, 13 Jun 2022 07:32:54 +0000 (09:32 +0200)]
Don't use main; improve example

23 months agoAdd E0790 as more specific variant of E0283
aticu [Sun, 12 Jun 2022 15:46:57 +0000 (17:46 +0200)]
Add E0790 as more specific variant of E0283

23 months ago:arrow_up: rust-analyzer
Laurențiu Nicola [Tue, 19 Jul 2022 07:16:45 +0000 (10:16 +0300)]
:arrow_up: rust-analyzer

23 months agoRollup merge of #99434 - timvermeulen:skip_next_non_fused, r=scottmcm
Dylan DPC [Tue, 19 Jul 2022 06:08:58 +0000 (11:38 +0530)]
Rollup merge of #99434 - timvermeulen:skip_next_non_fused, r=scottmcm

Fix `Skip::next` for non-fused inner iterators

`iter.skip(n).next()` will currently call `nth` and `next` in succession on `iter`, without checking whether `nth` exhausts the iterator. Using `?` to propagate a `None` value returned by `nth` avoids this.

23 months agoRollup merge of #99410 - tmiasko:atomic-lint, r=fee1-dead
Dylan DPC [Tue, 19 Jul 2022 06:08:57 +0000 (11:38 +0530)]
Rollup merge of #99410 - tmiasko:atomic-lint, r=fee1-dead

Update invalid atomic ordering lint

The restriction that success ordering must be at least as strong as its
failure ordering in compare-exchange operations was lifted in #98383.

23 months agoRollup merge of #99404 - jmqd:master, r=compiler-errors
Dylan DPC [Tue, 19 Jul 2022 06:08:56 +0000 (11:38 +0530)]
Rollup merge of #99404 - jmqd:master, r=compiler-errors

Use span_bug for unexpected field projection type

Improves the compiler error backtrace information, as shown in #99363,
by using `span_bug` instead of `bug`.

New output:

```
build/aarch64-apple-darwin/stage1/bin/rustc /tmp/test.rs --edition=2021
error: internal compiler error: compiler/rustc_middle/src/ty/closure.rs:185:25: Unexpected type Opaque(DefId(0:5 ~ test[db0f]::main::T::{opaque#0}), []) for `Field` projection
  --> /tmp/test.rs:11:27
   |
11 |         let Foo((a, b)) = foo;
   |                           ^^^

thread 'rustc' panicked at 'Box<dyn Any>', /Users/jmq/src/forked/rust/compiler/rustc_errors/src/lib.rs:1331:9
stack backtrace:
```

(Remainder of output truncated.)

23 months agoRollup merge of #99392 - nnethercote:fix-debuginfo-tests, r=pnkfelix
Dylan DPC [Tue, 19 Jul 2022 06:08:55 +0000 (11:38 +0530)]
Rollup merge of #99392 - nnethercote:fix-debuginfo-tests, r=pnkfelix

Fix debuginfo tests.

This is needed for my Ubuntu 22.04 box due to a slight change in gdb
output. The fix is similar to the fix in #95063.

23 months agoRollup merge of #99347 - compiler-errors:opaque-type-key-local-def-id, r=oli-obk
Dylan DPC [Tue, 19 Jul 2022 06:08:54 +0000 (11:38 +0530)]
Rollup merge of #99347 - compiler-errors:opaque-type-key-local-def-id, r=oli-obk

Use `LocalDefId` in `OpaqueTypeKey`

Addresses a `// FIXME(oli-obk): make this a LocalDefId`

r? ``@oli-obk``

23 months agoRollup merge of #99335 - Dav1dde:fromstr-docs, r=JohnTitor
Dylan DPC [Tue, 19 Jul 2022 06:08:53 +0000 (11:38 +0530)]
Rollup merge of #99335 - Dav1dde:fromstr-docs, r=JohnTitor

Use split_once in FromStr docs

Current implementation:

```rust
    fn from_str(s: &str) -> Result<Self, Self::Err> {
        let coords: Vec<&str> = s.trim_matches(|p| p == '(' || p == ')' )
                                 .split(',')
                                 .collect();

        let x_fromstr = coords[0].parse::<i32>()?;
        let y_fromstr = coords[1].parse::<i32>()?;

        Ok(Point { x: x_fromstr, y: y_fromstr })
    }
```

Creating the vector is not necessary, `split_once` does the job better.

Alternatively we could also remove `trim_matches` with `strip_prefix` and `strip_suffix`:

```rust
        let (x, y) = s
            .strip_prefix('(')
            .and_then(|s| s.strip_suffix(')'))
            .and_then(|s| s.split_once(','))
            .unwrap();
```

The question is how much 'correctness' is too much and distracts from the example. In a real implementation you would also not unwrap (or originally access the vector without bounds checks), but implementing a custom Error and adding a `From<ParseIntError>` and implementing the `Error` trait adds a lot of code to the example which is not relevant to the `FromStr` trait.

23 months agoRollup merge of #98320 - compiler-errors:macro-backtrace, r=estebank
Dylan DPC [Tue, 19 Jul 2022 06:08:52 +0000 (11:38 +0530)]
Rollup merge of #98320 - compiler-errors:macro-backtrace, r=estebank

Mention first and last macro in backtrace

Slight improvement to diagnostic mentioning what macro an error originates from. Not sure if it's worthwhile.

23 months agoRollup merge of #97183 - oli-obk:tait_ice_async, r=jackh726
Dylan DPC [Tue, 19 Jul 2022 06:08:51 +0000 (11:38 +0530)]
Rollup merge of #97183 - oli-obk:tait_ice_async, r=jackh726

wf-check generators

fixes #90409

We should not rely on generators being well formed by construction now that they can get used via type alias impl trait (and thus users can choose generic arguments that are invalid). This can cause surprising behaviour if (definitely unsound) transmutes are used, and it's generally saner to just check for well formedness.

23 months agoAuto merge of #98189 - mystor:fast_ident_literal, r=eddyb
bors [Tue, 19 Jul 2022 05:46:45 +0000 (05:46 +0000)]
Auto merge of #98189 - mystor:fast_ident_literal, r=eddyb

proc_macro/bridge: stop using a remote object handle for proc_macro Ident and Literal

This is the fourth part of https://github.com/rust-lang/rust/pull/86822, split off as requested in https://github.com/rust-lang/rust/pull/86822#pullrequestreview-1008655452. This patch transforms the `Ident` and `Group` types into structs serialized over IPC rather than handles.

Symbol values are interned on both the client and server when deserializing, to avoid unnecessary string copies and keep the size of `TokenTree` down. To do the interning efficiently on the client, the proc-macro crate is given a vendored version of the fxhash hasher, as `SipHash` appeared to cause performance issues. This was done rather than depending on `rustc_hash` as it is unfortunately difficult to depend on crates from within `proc_macro` due to it being built at the same time as `std`.

In addition, a custom arena allocator and symbol store was also added, inspired by those in `rustc_arena` and `rustc_span`. To prevent symbol re-use across multiple invocations of a macro on the same thread, a new range of `Symbol` names are used for each invocation of the macro, and symbols from previous invocations are cleaned-up.

In order to keep `Ident` creation efficient, a special ASCII-only case was added to perform ident validation without using RPC for simple identifiers. Full identifier validation couldn't be easily added, as it would require depending on the `rustc_lexer` and `unicode-normalization` crates from within `proc_macro`. Unicode identifiers are validated and normalized using RPC.

See the individual commit messages for more details on trade-offs and design decisions behind these patches.

23 months agoMention first and last macro in backtrace
Michael Goulet [Tue, 21 Jun 2022 02:25:52 +0000 (19:25 -0700)]
Mention first and last macro in backtrace

23 months agoAuto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank
bors [Tue, 19 Jul 2022 03:02:30 +0000 (03:02 +0000)]
Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank

[Experiment] Box `diagnostic_metadata` field

closes #97954

r? `@estebank`

23 months agoUse LocalDefId in OpaqueTypeKey
Michael Goulet [Sat, 16 Jul 2022 20:53:08 +0000 (20:53 +0000)]
Use LocalDefId in OpaqueTypeKey

23 months agoAuto merge of #99442 - Kobzol:revert-99062-lld-icf, r=Mark-Simulacrum
bors [Mon, 18 Jul 2022 23:20:08 +0000 (23:20 +0000)]
Auto merge of #99442 - Kobzol:revert-99062-lld-icf, r=Mark-Simulacrum

Revert "Use ICF (identical code folding) for building rustc"

Reverts rust-lang/rust#99062

Fixes: https://github.com/rust-lang/rust/issues/99440
23 months agoAdd a note about privacy to wrapping suggestion
Maybe Waffle [Mon, 18 Jul 2022 22:33:36 +0000 (02:33 +0400)]
Add a note about privacy to wrapping suggestion

23 months agoApply suggestions from the review
Maybe Waffle [Mon, 18 Jul 2022 22:15:56 +0000 (02:15 +0400)]
Apply suggestions from the review

- Use `expr.hir_id.owner` instead of `self.tcx.parent_module(expr.hir_id)`
- Use `.type_at()` instead of `.first()` + `.expect_ty()`
- Use single `.find()` with `&&` condition

Co-authored-by: Michael Goulet <michael@errs.io>
23 months agoRevert "Use ICF (identical code folding) for building rustc"
Jakub Beránek [Mon, 18 Jul 2022 21:50:00 +0000 (23:50 +0200)]
Revert "Use ICF (identical code folding) for building rustc"

23 months agoUpdate mdbook
Eric Huss [Mon, 18 Jul 2022 21:41:10 +0000 (14:41 -0700)]
Update mdbook

23 months agocheck accessibility before suggesting wrapping expressions
Maybe Waffle [Mon, 18 Jul 2022 21:16:25 +0000 (01:16 +0400)]
check accessibility before suggesting wrapping expressions

23 months agoAuto merge of #99422 - Dylan-DPC:rollup-htjofm6, r=Dylan-DPC
bors [Mon, 18 Jul 2022 20:39:24 +0000 (20:39 +0000)]
Auto merge of #99422 - Dylan-DPC:rollup-htjofm6, r=Dylan-DPC

Rollup of 7 pull requests

Successful merges:

 - #98839 (Add assertion that `transmute_copy`'s U is not larger than T)
 - #98998 (Remove branch target prologues from `#[naked] fn`)
 - #99198 (add missing null ptr check in alloc example)
 - #99344 (rustdoc: avoid inlining items with duplicate `(type, name)`)
 - #99351 (Use `typeck_results` to get accurate qpath res for arg mismatch error)
 - #99378 (interpret/visitor: add missing early return)
 - #99394 (Add regression test for #95230)

Failed merges:

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

23 months agoSuggest a fix for `NonZero*` <- `*` coercion error
Maybe Waffle [Mon, 18 Jul 2022 20:11:21 +0000 (00:11 +0400)]
Suggest a fix for `NonZero*` <- `*` coercion error

23 months agoAdd note to test about `Unfuse`
Tim Vermeulen [Mon, 18 Jul 2022 19:53:35 +0000 (21:53 +0200)]
Add note to test about `Unfuse`

23 months agoRevert "Stabilize $$ in Rust 1.63.0"
Christopher Durham [Mon, 18 Jul 2022 19:22:01 +0000 (15:22 -0400)]
Revert "Stabilize $$ in Rust 1.63.0"

This reverts commit 9edaa76adce4de737db54194eb13d6c298827b37.

23 months agoFix `Skip::next` for non-fused inner iterators
Tim Vermeulen [Mon, 18 Jul 2022 19:10:47 +0000 (21:10 +0200)]
Fix `Skip::next` for non-fused inner iterators

23 months agointerpret: make some large types not Copy
Ralf Jung [Sat, 16 Jul 2022 02:58:20 +0000 (22:58 -0400)]
interpret: make some large types not Copy

23 months agoDo not suggest "wrapping the expression in `std::num::NonZeroU64`"
Maybe Waffle [Mon, 18 Jul 2022 17:55:47 +0000 (21:55 +0400)]
Do not suggest "wrapping the expression in `std::num::NonZeroU64`"

23 months agointerpret: remove some unused trait impls
Ralf Jung [Sat, 16 Jul 2022 00:57:14 +0000 (20:57 -0400)]
interpret: remove some unused trait impls

23 months agoAuto merge of #99406 - flip1995:clippyup, r=Manishearth
bors [Mon, 18 Jul 2022 17:48:00 +0000 (17:48 +0000)]
Auto merge of #99406 - flip1995:clippyup, r=Manishearth

Update Clippy

23 months agoCheck generators for well formedness
Oli Scherer [Fri, 27 May 2022 20:09:06 +0000 (20:09 +0000)]
Check generators for well formedness

23 months agoproc_macro: Move subspan to be a method on Span in the bridge
Nika Layzell [Sat, 9 Jul 2022 15:34:06 +0000 (11:34 -0400)]
proc_macro: Move subspan to be a method on Span in the bridge

This method is still only used for Literal::subspan, however the
implementation only depends on the Span component, so it is simpler and
more efficient for now to pass down only the information that is needed.
In the future, if more information about the Literal is required in the
implementation (e.g. to validate that spans line up as expected with
source text), that extra information can be added back with extra
arguments.

23 months agoproc_macro: stop using a remote object handle for Literal
Nika Layzell [Sun, 3 Jul 2022 05:04:31 +0000 (01:04 -0400)]
proc_macro: stop using a remote object handle for Literal

This builds on the symbol infrastructure built for `Ident` to replicate
the `LitKind` and `Lit` structures in rustc within the `proc_macro`
client, allowing literals to be fully created and interacted with from
the client thread. Only parsing and subspan operations still require
sync RPC.

23 months agoproc_macro: stop using a remote object handle for Ident
Nika Layzell [Fri, 1 Jul 2022 01:05:46 +0000 (21:05 -0400)]
proc_macro: stop using a remote object handle for Ident

Doing this for all unicode identifiers would require a dependency on
`unicode-normalization` and `rustc_lexer`, which is currently not
possible for `proc_macro` due to it being built concurrently with `std`
and `core`. Instead, ASCII identifiers are validated locally, and an RPC
message is used to validate unicode identifiers when needed.

String values are interned on the both the server and client when
deserializing, to avoid unnecessary copies and keep Ident cheap to copy and
move. This appears to be important for performance.

The client-side interner is based roughly on the one from rustc_span, and uses
an arena inspired by rustc_arena.

RPC messages passing symbols always include the full value. This could
potentially be optimized in the future if it is revealed to be a
performance bottleneck.

Despite now having a relevant implementaion of Display for Ident, ToString is
still specialized, as it is a hot-path for this object.

The symbol infrastructure will also be used for literals in the next
part.

23 months agoproc_macro: Specialize Punct::to_string
Nika Layzell [Sun, 3 Jul 2022 04:54:17 +0000 (00:54 -0400)]
proc_macro: Specialize Punct::to_string

This was removed in a previous part, however it should be specialized for
to_string performance and consistency.

23 months agoproc_macro: use fxhash within the proc_macro crate
Nika Layzell [Sun, 3 Jul 2022 04:53:20 +0000 (00:53 -0400)]
proc_macro: use fxhash within the proc_macro crate

Unfortunately, as it is difficult to depend on crates from within proc_macro,
this is done by vendoring a copy of the hasher as a module rather than
depending on the rustc_hash crate.

This probably doesn't have a substantial impact up-front, however will be more
relevant once symbols are interned within the proc_macro client.

23 months agoRollup merge of #99394 - JohnTitor:issue-95230, r=compiler-errors
Dylan DPC [Mon, 18 Jul 2022 15:44:49 +0000 (21:14 +0530)]
Rollup merge of #99394 - JohnTitor:issue-95230, r=compiler-errors

Add regression test for #95230

Closes #95230
r? ```@compiler-errors```

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
23 months agoRollup merge of #99378 - RalfJung:box-early-return, r=oli-obk
Dylan DPC [Mon, 18 Jul 2022 15:44:48 +0000 (21:14 +0530)]
Rollup merge of #99378 - RalfJung:box-early-return, r=oli-obk

interpret/visitor: add missing early return

I forgot to add this when adding the special `Box` handling branch.

r? ```@oli-obk```

23 months agoRollup merge of #99351 - compiler-errors:arg-mismatch-blame, r=davidtwco
Dylan DPC [Mon, 18 Jul 2022 15:44:47 +0000 (21:14 +0530)]
Rollup merge of #99351 - compiler-errors:arg-mismatch-blame, r=davidtwco

Use `typeck_results` to get accurate qpath res for arg mismatch error

Improves error message from "function"  to actually what we're calling (e.g. enum variant constrcutor) in a few cases :smile_cat:

23 months agoRollup merge of #99344 - notriddle:notriddle/multiple-macro-rules-w-same-name, r...
Dylan DPC [Mon, 18 Jul 2022 15:44:46 +0000 (21:14 +0530)]
Rollup merge of #99344 - notriddle:notriddle/multiple-macro-rules-w-same-name, r=GuillaumeGomez

rustdoc: avoid inlining items with duplicate `(type, name)`

Fixes #99221

23 months agoRollup merge of #99198 - RalfJung:alloc-null-ptr, r=JohnTitor
Dylan DPC [Mon, 18 Jul 2022 15:44:45 +0000 (21:14 +0530)]
Rollup merge of #99198 - RalfJung:alloc-null-ptr, r=JohnTitor

add missing null ptr check in alloc example

`alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.

23 months agoRollup merge of #98998 - workingjubilee:naked-means-no-clothes-enforcement-technology...
Dylan DPC [Mon, 18 Jul 2022 15:44:43 +0000 (21:14 +0530)]
Rollup merge of #98998 - workingjubilee:naked-means-no-clothes-enforcement-technology, r=Amanieu

Remove branch target prologues from `#[naked] fn`

This patch hacks around rust-lang/rust#98768 for now via injecting appropriate attributes into the LLVMIR we emit for naked functions. I intend to pursue this upstream so that these attributes can be removed in general, but it's slow going wading through C++ for me.

23 months agoRollup merge of #98839 - 5225225:assert_transmute_copy_size, r=thomcc
Dylan DPC [Mon, 18 Jul 2022 15:44:42 +0000 (21:14 +0530)]
Rollup merge of #98839 - 5225225:assert_transmute_copy_size, r=thomcc

Add assertion that `transmute_copy`'s U is not larger than T

This is called out as a safety requirement in the docs, but because knowing this can be done at compile time and constant folded (just like the `align_of` branch is removed), we can just panic here.

I've looked at the asm (using `cargo-asm`) of a function that both is correct and incorrect, and the panic is completely removed, or is unconditional, without needing build-std.

I don't expect this to cause much breakage in the wild. I scanned through https://miri.saethlin.dev/ub for issues that would look like this (error: Undefined Behavior: memory access failed: alloc1768 has size 1, so pointer to 8 bytes starting at offset 0 is out-of-bounds), but couldn't find any.

That doesn't rule out it happening in crates tested that fail earlier for some other reason, though, but it indicates that doing this is rare, if it happens at all. A crater run for this would need to be build and test, since this is a runtime thing.

Also added a few more transmute_copy tests.

23 months agostabilize `core::task::ready!`
Yoshua Wuyts [Mon, 18 Jul 2022 14:04:52 +0000 (16:04 +0200)]
stabilize `core::task::ready!`

23 months agoAuto merge of #99232 - lcnr:no-bound-vars-check, r=jackh726
bors [Mon, 18 Jul 2022 13:59:05 +0000 (13:59 +0000)]
Auto merge of #99232 - lcnr:no-bound-vars-check, r=jackh726

`replace_bound_vars` fast path: check predicates, don't check consts

split out from #98900

`ty::Const` doesn't have precomputed type flags, so
computing `has_vars_bound_at_or_above` for constants
requires us to visit the const and its contained types
and constants. A noop fold should be pretty much equally as
fast so removing it prevents us from walking the constant twice
in case it contains bound vars.

r? `@jackh726`

23 months agoAuto merge of #99223 - saethlin:panicless-split-mut, r=Mark-Simulacrum
bors [Mon, 18 Jul 2022 10:16:58 +0000 (10:16 +0000)]
Auto merge of #99223 - saethlin:panicless-split-mut, r=Mark-Simulacrum

Rearrange slice::split_mut to remove bounds check

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

Turns out that all we need to do here is reorder the bounds checks to convince LLVM that all the bounds checks can be removed. It seems like LLVM just fails to propagate the original length information past the first bounds check and into the second one. With this implementation it doesn't need to, each check can be proven inbounds based on the one immediately previous.

I've gradually convinced myself that this implementation is unambiguously better based on the above logic, but maybe this is still deserving of a codegen test?

Also the mentioned borrowck limitation no longer seems to exist.

23 months agoUpdate invalid atomic ordering lint
Tomasz Miąsko [Mon, 18 Jul 2022 00:00:00 +0000 (00:00 +0000)]
Update invalid atomic ordering lint

The restriction that success ordering must be at least as strong as its
failure ordering in compare-exchange operations was lifted in #98383.

23 months agoMerge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
Philipp Krones [Mon, 18 Jul 2022 07:39:37 +0000 (09:39 +0200)]
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup

23 months agoUse span_bug for unexpected field projection type
Jordan McQueen [Mon, 18 Jul 2022 07:24:08 +0000 (16:24 +0900)]
Use span_bug for unexpected field projection type

Improves the compiler error backtrace information, as shown in #99363,
by using `span_bug` instead of `bug`.

New output:

```
build/aarch64-apple-darwin/stage1/bin/rustc /tmp/test.rs --edition=2021
error: internal compiler error: compiler/rustc_middle/src/ty/closure.rs:185:25: Unexpected type Opaque(DefId(0:5 ~ test[db0f]::main::T::{opaque#0}), []) for `Field` projection
  --> /tmp/test.rs:11:27
   |
11 |         let Foo((a, b)) = foo;
   |                           ^^^

thread 'rustc' panicked at 'Box<dyn Any>', /Users/jmq/src/forked/rust/compiler/rustc_errors/src/lib.rs:1331:9
stack backtrace:
```

(Remainder of output truncated.)

23 months agoUse split_once in FromStr docs
David Herberth [Sat, 16 Jul 2022 15:40:43 +0000 (17:40 +0200)]
Use split_once in FromStr docs

23 months agoAuto merge of #99181 - lcnr:arenaGTrc, r=wesleywiser
bors [Mon, 18 Jul 2022 05:50:54 +0000 (05:50 +0000)]
Auto merge of #99181 - lcnr:arenaGTrc, r=wesleywiser

`arena > Rc` for query results

The `Rc`s have to live for the whole duration as their count cannot go below 1 while stored as part of the query results.

By storing them in an arena we should save a bit of memory because we don't have as many independent allocations and also don't have to clone the `Rc` anymore.

23 months agoavoid `Symbol` to `&str` conversions
Takayuki Maeda [Mon, 18 Jul 2022 05:25:34 +0000 (14:25 +0900)]
avoid `Symbol` to `&str` conversions

23 months agoAuto merge of #99137 - jackh726:wf-no-infcx, r=estebank
bors [Mon, 18 Jul 2022 03:07:26 +0000 (03:07 +0000)]
Auto merge of #99137 - jackh726:wf-no-infcx, r=estebank

Don't pass InferCtxt to WfPredicates

Simple cleanup. Infer vars will get passed up as obligations and shallowed resolved later. This actually improves one test output.

23 months agoAdd regression test for #95230
Yuki Okushi [Mon, 18 Jul 2022 01:15:09 +0000 (10:15 +0900)]
Add regression test for #95230

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
23 months agoFix debuginfo tests.
Nicholas Nethercote [Mon, 18 Jul 2022 00:33:26 +0000 (10:33 +1000)]
Fix debuginfo tests.

This is needed for my Ubuntu 22.04 box due to a slight change in gdb
output. The fix is similar to the fix in #95063.

23 months agoAuto merge of #99391 - JohnTitor:rollup-tdigzzo, r=JohnTitor
bors [Mon, 18 Jul 2022 00:26:44 +0000 (00:26 +0000)]
Auto merge of #99391 - JohnTitor:rollup-tdigzzo, r=JohnTitor

Rollup of 6 pull requests

Successful merges:

 - #98383 (Remove restrictions on compare-exchange memory ordering.)
 - #99350 (Be more precise when suggesting removal of parens on unit ctor)
 - #99356 (Do not constraint TAITs when checking impl/trait item compatibility)
 - #99360 (Do not ICE when we have `-Zunpretty=expanded` with invalid ABI)
 - #99373 (Fix source code sidebar tree auto-expand)
 - #99374 (Fix doc for `rchunks_exact`)

Failed merges:

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

23 months agoRollup merge of #99374 - TethysSvensson:patch-1, r=Dylan-DPC
Yuki Okushi [Sun, 17 Jul 2022 23:40:02 +0000 (08:40 +0900)]
Rollup merge of #99374 - TethysSvensson:patch-1, r=Dylan-DPC

Fix doc for `rchunks_exact`

`rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.

23 months agoRollup merge of #99373 - GuillaumeGomez:source-code-sidebar-tree-auto-expand, r=notriddle
Yuki Okushi [Sun, 17 Jul 2022 23:40:01 +0000 (08:40 +0900)]
Rollup merge of #99373 - GuillaumeGomez:source-code-sidebar-tree-auto-expand, r=notriddle

Fix source code sidebar tree auto-expand

Here is the bug:

![Screenshot from 2022-07-17 13-32-00](https://user-images.githubusercontent.com/3050060/179397712-bfb1c279-0ed2-4cb5-aef5-05741921bcc3.png)

It was happening because as soon as we found the file (from the URL), every item following it was then opened, even if it wasn't supposed to.

The GUI test ensures that it doesn't happen by adding two nested levels and ensuring only this path is "open".

r? ``@notriddle``

23 months agoRollup merge of #99360 - compiler-errors:issue-99331, r=fee1-dead
Yuki Okushi [Sun, 17 Jul 2022 23:40:00 +0000 (08:40 +0900)]
Rollup merge of #99360 - compiler-errors:issue-99331, r=fee1-dead

Do not ICE when we have `-Zunpretty=expanded` with invalid ABI

Fixes #99331

23 months agoRollup merge of #99356 - compiler-errors:tait-in-assoc-ty-supertraits, r=oli-obk
Yuki Okushi [Sun, 17 Jul 2022 23:39:59 +0000 (08:39 +0900)]
Rollup merge of #99356 - compiler-errors:tait-in-assoc-ty-supertraits, r=oli-obk

Do not constraint TAITs when checking impl/trait item compatibility

Check out the UI test for the example.

Open to other approaches to fix this issue -- ideally we _would_ be able to collect this opaque type constraint in a way to use it in `find_opaque_ty_constraints`, so we can report a better mismatch error in the incompatible case, and just allow it in the compatible case. But that seems like a bigger refactor, so I wouldn't want to start it unless someone else thought it was a good idea.

cc #99348
r? ``@oli-obk``

23 months agoRollup merge of #99350 - compiler-errors:issue-99240, r=fee1-dead
Yuki Okushi [Sun, 17 Jul 2022 23:39:58 +0000 (08:39 +0900)]
Rollup merge of #99350 - compiler-errors:issue-99240, r=fee1-dead

Be more precise when suggesting removal of parens on unit ctor

* Fixes #99240 by only suggesting to remove parens on path exprs, not arbitrary expressions with enum type
* Generalizes by suggesting removal of parens on unit struct, too, because why not?

23 months agoRollup merge of #98383 - m-ou-se:remove-memory-order-restrictions, r=joshtriplett
Yuki Okushi [Sun, 17 Jul 2022 23:39:57 +0000 (08:39 +0900)]
Rollup merge of #98383 - m-ou-se:remove-memory-order-restrictions, r=joshtriplett

Remove restrictions on compare-exchange memory ordering.

We currently don't allow the failure memory ordering of compare-exchange operations to be stronger than the success ordering, as was the case in C++11 when its memory model was copied to Rust. However, this restriction was lifted in C++17 as part of [p0418r2](https://wg21.link/p0418r2). It's time  we lift the restriction too.

| Success | Failure | Before | After |
|---------|---------|--------|-------|
| Relaxed | Relaxed | :heavy_check_mark: | :heavy_check_mark: |
| Relaxed | Acquire | :x:                | :heavy_check_mark: |
| Relaxed | SeqCst  | :x:                | :heavy_check_mark: |
| Acquire | Relaxed | :heavy_check_mark: | :heavy_check_mark: |
| Acquire | Acquire | :heavy_check_mark: | :heavy_check_mark: |
| Acquire | SeqCst  | :x:                | :heavy_check_mark: |
| Release | Relaxed | :heavy_check_mark: | :heavy_check_mark: |
| Release | Acquire | :x:                | :heavy_check_mark: |
| Release | SeqCst  | :x:                | :heavy_check_mark: |
| AcqRel  | Relaxed | :heavy_check_mark: | :heavy_check_mark: |
| AcqRel  | Acquire | :heavy_check_mark: | :heavy_check_mark: |
| AcqRel  | SeqCst  | :x:                | :heavy_check_mark: |
| SeqCst  | Relaxed | :heavy_check_mark: | :heavy_check_mark: |
| SeqCst  | Acquire | :heavy_check_mark: | :heavy_check_mark: |
| SeqCst  | SeqCst  | :heavy_check_mark: | :heavy_check_mark: |
| \*      | Release | :x:                | :x:                |
| \*      | AcqRel  | :x:                | :x:                |

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

23 months agorustdoc: extend `#[doc(tuple_variadic)]` to fn pointers
Michael Howell [Thu, 16 Jun 2022 16:50:57 +0000 (09:50 -0700)]
rustdoc: extend `#[doc(tuple_variadic)]` to fn pointers

The attribute is also renamed `fake_variadic`.

23 months agoAuto merge of #9196 - alex-semenyuk:invalid_regex, r=Jarcho
bors [Sun, 17 Jul 2022 23:08:04 +0000 (23:08 +0000)]
Auto merge of #9196 - alex-semenyuk:invalid_regex, r=Jarcho

Fix example for `clippy::invalid_regex`

Close #9194
changelog: previous example doesn't trigger lint

23 months agoAuto merge of #99062 - Kobzol:lld-icf, r=jyn514
bors [Sun, 17 Jul 2022 21:42:52 +0000 (21:42 +0000)]
Auto merge of #99062 - Kobzol:lld-icf, r=jyn514

Use ICF (identical code folding) for building rustc

It seems that ICF (identical code folding) is able to remove duplicated functions created by monomorphization from binaries, resulting in smaller binary size and better i-cache utilization. Let's see if it helps for `rustc`.

I'm not sure if `lld` is even used for linking `rustc` on the Linux `dist` builder, let's see.

23 months agoFix example for `clippy::invalid_regex`
alexey semenyuk [Sun, 17 Jul 2022 21:35:34 +0000 (00:35 +0300)]
Fix example for `clippy::invalid_regex`

23 months agoAuto merge of #99033 - 5225225:interpreter-validity-checks, r=oli-obk
bors [Sun, 17 Jul 2022 19:28:01 +0000 (19:28 +0000)]
Auto merge of #99033 - 5225225:interpreter-validity-checks, r=oli-obk

Use constant eval to do strict mem::uninit/zeroed validity checks

I'm not sure about the code organisation here, I just dumped the check in rustc_const_eval at the root. Not hard to move it elsewhere, in any case.

Also, this means cranelift codegen intrinsics lose the strict checks, since they don't seem to depend on rustc_const_eval, and I didn't see a point in keeping around two copies.

I also left comments in the is_zero_valid methods about "uhhh help how do i do this", those apply to both methods equally.

Also rustc_codegen_ssa now depends on rustc_const_eval... is this okay?

Pinging `@RalfJung` since you were the one who mentioned this to me, so I'm assuming you're interested.

Haven't had a chance to run full tests on this since it's really warm, and it's 1AM, I'll check out any failures/comments in the morning :)

23 months agouse body's param-env when checking if type needs drop
Michael Goulet [Sun, 17 Jul 2022 17:56:12 +0000 (10:56 -0700)]
use body's param-env when checking if type needs drop

23 months agoUse LLD linker for compiling rustc on Linux x64 and use ICF for binary size optimization
Jakub Beránek [Sun, 17 Jul 2022 15:37:10 +0000 (17:37 +0200)]
Use LLD linker for compiling rustc on Linux x64 and use ICF for binary size optimization

23 months agoAdd GUI test for source code sidebar auto-expand
Guillaume Gomez [Sun, 17 Jul 2022 12:12:03 +0000 (14:12 +0200)]
Add GUI test for source code sidebar auto-expand

23 months agointerpret/visitor: add missing early return
Ralf Jung [Sun, 17 Jul 2022 14:47:34 +0000 (10:47 -0400)]
interpret/visitor: add missing early return

23 months agoAuto merge of #9022 - alex-semenyuk:needless_option_take_more_docs, r=Jarcho
bors [Sun, 17 Jul 2022 13:33:40 +0000 (13:33 +0000)]
Auto merge of #9022 - alex-semenyuk:needless_option_take_more_docs, r=Jarcho

`NEEDLESS_OPTION_TAKE` doc improvements

changelog: More info on `NEEDLESS_OPTION_TAKE`

23 months agoNEEDLESS_OPTION_TAKE doc improvements
alexey semenyuk [Sun, 19 Jun 2022 14:15:14 +0000 (14:15 +0000)]
NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

NEEDLESS_OPTION_TAKE doc improvements

23 months agoAuto merge of #99283 - RalfJung:miri, r=RalfJung
bors [Sun, 17 Jul 2022 13:08:06 +0000 (13:08 +0000)]
Auto merge of #99283 - RalfJung:miri, r=RalfJung

update Miri

Fixes https://github.com/rust-lang/rust/issues/99224
r? `@ghost`

23 months agomake tidy accept another permutation of this license string
Ralf Jung [Fri, 15 Jul 2022 15:57:04 +0000 (11:57 -0400)]
make tidy accept another permutation of this license string

23 months agoupdate Miri
Ralf Jung [Fri, 15 Jul 2022 14:04:23 +0000 (10:04 -0400)]
update Miri