-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 10 pull requests #99346
Rollup of 10 pull requests #99346
Commits on Jul 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6c6cccd - Browse repository at this point
Copy the full SHA 6c6cccdView commit details
Commits on Jul 15, 2022
-
errors: impl
IntoDiagnosticArg
forchar
Implements `IntoDiagnosticArg` for `char` using its `Debug` implementation and introduces a macro for those types which just delegate the implementation to `ToString`. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for 06f4806 - Browse repository at this point
Copy the full SHA 06f4806View commit details -
errors: lint on
LintDiagnosticBuilder::build
Apply the `#[rustc_lint_diagnostics]` attribute to `LintDiagnosticBuilder::build` so that diagnostic migration lints will trigger for it. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for c3fdf74 - Browse repository at this point
Copy the full SHA c3fdf74View commit details -
macros: support
MultiSpan
in diag derivesAdd support for `MultiSpan` with any of the attributes that work on a `Span` - requires that diagnostic logic generated for these attributes are emitted in the by-move block rather than the by-ref block that they would normally have been generated in. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for 88c11c5 - Browse repository at this point
Copy the full SHA 88c11c5View commit details -
macros: support adding warnings to diags
Both diagnostic and subdiagnostic derives were missing the ability to add warnings to diagnostics - this is made more difficult by the `warn` attribute already existing, so this name being unavailable for the derives to use. `#[warn_]` is used instead, which requires special-casing so that `{span_,}warn` is called instead of `{span_,}warn_`. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for 81cf229 - Browse repository at this point
Copy the full SHA 81cf229View commit details -
passes: migrate half of
check_attr
Migrate half of the `rustc_passes::check_attr` diagnostics to using diagnostic derives and being translatable.
Configuration menu - View commit details
-
Copy full SHA for 78b19a9 - Browse repository at this point
Copy the full SHA 78b19a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84a444a - Browse repository at this point
Copy the full SHA 84a444aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4cb043 - Browse repository at this point
Copy the full SHA c4cb043View commit details -
Configuration menu - View commit details
-
Copy full SHA for a034446 - Browse repository at this point
Copy the full SHA a034446View commit details -
Configuration menu - View commit details
-
Copy full SHA for eeb1033 - Browse repository at this point
Copy the full SHA eeb1033View commit details -
Remove early return that would likely have caused miscompilations if …
…it ever happened
Configuration menu - View commit details
-
Copy full SHA for 7a8a048 - Browse repository at this point
Copy the full SHA 7a8a048View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c6918f - Browse repository at this point
Copy the full SHA 0c6918fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12457f8 - Browse repository at this point
Copy the full SHA 12457f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 728c7e8 - Browse repository at this point
Copy the full SHA 728c7e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b33d5b - Browse repository at this point
Copy the full SHA 6b33d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea68ce7 - Browse repository at this point
Copy the full SHA ea68ce7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92e470a - Browse repository at this point
Copy the full SHA 92e470aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57e9f7a - Browse repository at this point
Copy the full SHA 57e9f7aView commit details -
Revert "Highlight conflicting param-env candidates"
This reverts commit 0813525.
Configuration menu - View commit details
-
Copy full SHA for 1c8f87e - Browse repository at this point
Copy the full SHA 1c8f87eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20b5aaf - Browse repository at this point
Copy the full SHA 20b5aafView commit details -
We check that there's a single level of block nesting to ensure always correct suggestions. If we don't, then we only provide a free-form message to avoid misleading users in cases like `src/test/ui/nll/borrowed-temporary-error.rs`. We could expand the analysis to suggest hoising all of the relevant parts of the users' code to make the code compile, but that could be too much.
Configuration menu - View commit details
-
Copy full SHA for 635c381 - Browse repository at this point
Copy the full SHA 635c381View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e5809d - Browse repository at this point
Copy the full SHA 3e5809dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ee4e5f - Browse repository at this point
Copy the full SHA 3ee4e5fView commit details
Commits on Jul 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aeb9497 - Browse repository at this point
Copy the full SHA aeb9497View commit details -
Configuration menu - View commit details
-
Copy full SHA for 653a214 - Browse repository at this point
Copy the full SHA 653a214View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a15c71 - Browse repository at this point
Copy the full SHA 1a15c71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c55a26 - Browse repository at this point
Copy the full SHA 3c55a26View commit details -
Configuration menu - View commit details
-
Copy full SHA for b95b138 - Browse repository at this point
Copy the full SHA b95b138View commit details -
Configuration menu - View commit details
-
Copy full SHA for b393e97 - Browse repository at this point
Copy the full SHA b393e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for c54d4ad - Browse repository at this point
Copy the full SHA c54d4adView commit details -
Rollup merge of rust-lang#98582 - oli-obk:unconstrained_opaque_type, …
…r=estebank Allow destructuring opaque types in their defining scopes fixes rust-lang#96572 Before this PR, the following code snippet failed with an incomprehensible error, and similar code just ICEd in mir borrowck. ```rust type T = impl Copy; let foo: T = (1u32, 2u32); let (a, b) = foo; ``` The problem was that the last line created MIR projections of the form `foo.0` and `foo.1`, but `foo`'s type is `T`, which doesn't have fields (only its hidden type does). But the pattern supplies enough type information (a tuple of two different inference types) to bind a hidden type.
Configuration menu - View commit details
-
Copy full SHA for 6f8fb91 - Browse repository at this point
Copy the full SHA 6f8fb91View commit details -
Rollup merge of rust-lang#99213 - davidtwco:translation-migrate-passe…
…s, r=compiler-errors migrate some of `rustc_passes::check_attr`'s diagnostics and derive improvements - Implements `IntoDiagnosticArg` for `char` using its `Debug` implementation and introduces a macro for those types which just delegate the implementation to `ToString`. - Apply the `#[rustc_lint_diagnostics]` attribute to `LintDiagnosticBuilder::build` so that diagnostic migration lints will trigger for it - some diagnostics in `rustc_privacy` need updated after this since the lints apply to that crate. - Add support for `MultiSpan` with any of the attributes that work on a `Span` in the diagnostic derive (`SessionDiagnostic` + `LintDiagnostic`). Requires that diagnostic logic generated for these attributes are emitted in the by-move block rather than the by-ref block that they would normally have been generated in. - Both diagnostic and subdiagnostic derives were missing the ability to add warnings to diagnostics - this is made more difficult by the `warn` attribute already existing, so this name being unavailable for the derives to use. `#[warn_]` is used instead, which requires special-casing so that `{span_,}warn` is called instead of `{span_,}warn_`. - Migrate half of the `rustc_passes::check_attr` diagnostics to using diagnostic derives and being translatable. I got tired after a while. I modified some diagnostic output for consistency while doing this, nothing too crazy. r? `@compiler-errors`
Configuration menu - View commit details
-
Copy full SHA for 79857a7 - Browse repository at this point
Copy the full SHA 79857a7View commit details -
Rollup merge of rust-lang#99258 - estebank:suggest-let, r=wesleywiser
Provide structured suggestion for dropped temp value
Configuration menu - View commit details
-
Copy full SHA for 984ef42 - Browse repository at this point
Copy the full SHA 984ef42View commit details -
Rollup merge of rust-lang#99259 - RalfJung:visit-a-place, r=oli-obk
interpret/visitor: support visiting with a PlaceTy Finally we can visit a `PlaceTy` in a way that will only do `force_allocation` when needed ti visit a field. :) r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for fa298be - Browse repository at this point
Copy the full SHA fa298beView commit details -
Rollup merge of rust-lang#99287 - GuillaumeGomez:rustdoc-json-double-…
…export, r=notriddle [rustdoc-json] JSON no longer inlines Fixes rust-lang#98007. Fixes rust-lang#96161. Fixes rust-lang#83057. Fixes rust-lang#83720. I took over rust-lang#93518 and applied the comments and added more tests. There was one thing missing (which is in the second commit): if a non-exported item was used in a public API but not reexported, it was still missing. cc `@CraftSpider` `@Urgau` `@Enselic` r? `@notriddle`
Configuration menu - View commit details
-
Copy full SHA for 02b9701 - Browse repository at this point
Copy the full SHA 02b9701View commit details -
Rollup merge of rust-lang#99290 - compiler-errors:revert-98794, r=lcnr
Revert "Highlight conflicting param-env candidates" This reverts rust-lang#98794, commit 0813525. Seems to have caused an incremental compilation bug. The root cause of the incr comp bug is somewhat unrelated but is triggered by this PR, so I don't feel comfortable with having this PR in the codebase until it can be investigated further. Fixes rust-lang#99233.
Configuration menu - View commit details
-
Copy full SHA for 69e4f21 - Browse repository at this point
Copy the full SHA 69e4f21View commit details -
Rollup merge of rust-lang#99316 - tshepang:clearer, r=compiler-errors
docs: add missing word
Configuration menu - View commit details
-
Copy full SHA for 4805c21 - Browse repository at this point
Copy the full SHA 4805c21View commit details -
Rollup merge of rust-lang#99317 - yanchith:borrow-vec-ta-as-slice-t, …
…r=Mark-Simulacrum Borrow Vec<T, A> as [T] Hello all, When `Vec` was parametrized with `A`, the `Borrow` impls were omitted and currently `Vec<T, A>` can't be borrowed as `[T]`. This PR fixes that. This was probably missed, because the `Borrow` impls are in a different file - `src/alloc/slice.rs`. We briefly discussed this here: rust-lang/wg-allocators#96 and I was told to go ahead and make a PR :) I tested this by building the toolchain and building my code that needed the `Borrow` impl against it, but let me know if I should add any tests to this PR.
Configuration menu - View commit details
-
Copy full SHA for ddc32d1 - Browse repository at this point
Copy the full SHA ddc32d1View commit details -
Rollup merge of rust-lang#99323 - GuillaumeGomez:fix-gui-flaky, r=Dyl…
…an-DPC Fix flakyness of GUI tests Fixes rust-lang#98163. All flaky tests seemed to be linked to the search. Since the search JS is loaded when we focus the search input, I think it's possible that we enter faster than the JS is actually loaded. The solution for that would be to do it in two steps: first we write into the search input (`browser-ui-test` adds a small sleep time after such commands) and then we press enter to be sure that it wasn't missed. cc `@JohnTitor` r? `@Dylan-DPC`
Configuration menu - View commit details
-
Copy full SHA for 0c6e01b - Browse repository at this point
Copy the full SHA 0c6e01bView commit details -
Rollup merge of rust-lang#99342 - TaKO8Ki:avoid-symbol-to-string-conv…
…ersions, r=compiler-errors Avoid some `Symbol` to `String` conversions This patch removes some Symbol to String conversions.
Configuration menu - View commit details
-
Copy full SHA for 6277ac2 - Browse repository at this point
Copy the full SHA 6277ac2View commit details