Rollup of 28 pull requests - #160482
Open
jhpratt wants to merge 77 commits into
Open
Conversation
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
```
error[E0277]: the trait bound `needs_borrow::Hello: needs_borrow::Tr` is not satisfied
--> $DIR/ownership-mismatch-on-arg.rs:42:13
|
LL | foo(hi, hi, hi);
| ^^^ -- -- `needs_borrow::Hello` doesn't satisfy the trait bound
| | |
| | `needs_borrow::Hello` doesn't satisfy the trait bound
| unsatisfied trait bound
|
help: the trait `needs_borrow::Tr` is not implemented for `needs_borrow::Hello`
--> $DIR/ownership-mismatch-on-arg.rs:27:5
|
LL | struct Hello;
| ^^^^^^^^^^^^
help: the trait `needs_borrow::Tr` is implemented for `&needs_borrow::Hello`
--> $DIR/ownership-mismatch-on-arg.rs:30:5
|
LL | impl Tr for &Hello {}
| ^^^^^^^^^^^^^^^^^^
note: required by a bound in `needs_borrow::foo`
--> $DIR/ownership-mismatch-on-arg.rs:32:15
|
LL | fn foo<T: Tr, K: std::fmt::Debug>(_v: T, _w: T, _k: K) {}
| ^^ required by this bound in `foo`
help: consider borrowing these argument
|
LL | foo(&hi, &hi, hi);
| + +
```
The linux kernel still uses fentry for x86 and s390x arches. s390x depends entirely on the compiler to record and nop these sections. This facilitates support for inserting nop's and/or recording the location of each mcount call in a special section named `__mcount_loc`. These attributes are currently only supported with fentry on the s390x target, otherwise they are quietly ignored (except on s390x).
* fix borrowck ICE for consts with fn pointer type annotate_argument_and_return_for_borrow called tcx.fn_sig on the item being checked whenever its type was FnDef or FnPtr. for a const whose type is a fn pointer that's not a function item, so we ICE'd with "unexpected sort of node in fn_sig". take the signature from the fn ptr type instead and skip the annotation when there's no fn decl. * run rustfmt and refmt * fix borrowck ICE for consts with fn pointer type annotate_argument_and_return_for_borrow called tcx.fn_sig on the item being checked whenever its type was FnDef or FnPtr. for a const whose type is a fn pointer that's not a function item, so we ICE'd with "unexpected sort of node in fn_sig". take the signature from the fn ptr type instead and skip the annotation when there's no fn decl. * edit comment * use ty.fn_sig per review
…hite tests: Enable `feature(stmt_expr_attributes)` in `2229_closure_analysis` tests The feature gating errors are entirely off-topic for those tests.
Fix rustdoc ICE when checking if a generic arg can be elided Fixes rust-lang#133637 The `param_at` call expects a index into the full generics list, while index is generated only from the children. I also noticed a call to `skip_norm_wip` so I replaced that with `skip_normalization` I have one question about adding the regression test, should it live under rustdoc-ui or rustdoc-ui/issue. I will add it later today. @fmease
…k, r=folkertdev Linkify C-SKY targets in `platform-support.md` Targets with dedicated pages are linked, so the C-SKY ones should be too.
fix borrowck ICE for consts with fn pointer type `borrowck`'s `annotate_argument_and_return_for_borrow` called `tcx.fn_sig` on the item being checked whenever its type was a `fn def` or `fn ptr`. For a const like `const A: fn()`, that asks for the signature of the const itself, which is not a function item, so we ICE'd with `"unexpected sort of node in fn_sig"`. Now we take the signature from the `fn ptr` type instead and skip the annotation when there's no `fn decl` to annotate. also added a regression test under `tests/ui/borrowck`. fixes: rust-lang#160255
ElaborateBoxDeref: remove unnecessary projection r? @oli-obk
Add regression test for supertrait associated type normalization through dyn Closes rust-lang#61083. Adds a check pass regression test. couldn't find existing coverage for this case
…act-unused-parens, r=JohnTitor Add regression test for unused_parens on contract clauses Fixes rust-lang#143754 This issue is fixed by the parens->brace delimiter change in rust-lang#144438
… r=Mark-Simulacrum Add doc aliases for transpositions `read_exact_buf` and `read_exact_buf_at` When fingers really want to type `read_exact`, that naturally leads to the typo `read_exact_buf` instead of `read_buf_exact`, and `read_exact_buf_at` instead of `read_buf_exact_at`. Add doc aliases. These will help people find them in rustdoc, and once rust-lang#160369 goes in, it'll also help people find them as rustfix suggestions.
…, r=Kobzol Add PR body notes for Cargo lock file maintenance r? @Kobzol
…/check_rustc_must_implement_one_of, r=JonathanBrouwer Move duplicate-names check for #[rustc_must_implement_one_of] to attribute parser Part of rust-lang#131229 which is the parent issue of rust-lang#153101
…lacrum Run try builds on EC2 by default This PR switches try builds to EC2 instances by default, while still giving us the option to do a try build on codebuild. x64 Linux auto jobs are still using CodeBuild, for now. This script can be used to test the configuration of the generated CI jobs locally: ```bash #!/bin/bash #export GITHUB_EVENT_NAME=pull_request #export GITHUB_REF=refs/heads/pr/1 export GITHUB_EVENT_NAME=push export GITHUB_REF=refs/heads/automation/bors/try #export GITHUB_REF=refs/heads/automation/bors/auto #export COMMIT_MESSAGE="try-job: dist-x86_64-linux-quick" export COMMIT_MESSAGE="msg" export GITHUB_RUN_ID=123 export GITHUB_RUN_ATTEMPT=1 cargo run --manifest-path src/ci/citool/Cargo.toml calculate-job-matrix ``` CI runs: - `@bors try` - rust-lang#160427 (comment) (59m) - `@bors try jobs=dist-x86_64-linux-quick`: rust-lang#160427 (comment) (1h 32m) - `@bors try jobs=dist-x86_64-linux-codebuild`: rust-lang#160427 (comment) (3h 6m) - `@bors try jobs=dist-x86_64-linux`: rust-lang#160427 (comment) (3h 6m) r? @Mark-Simulacrum
bump tracing-tree This removes the timestamps from the trace which apparently are meant to be turned off by default but that was buggy in old versions of tracing-trees. r? @oli-obk
…trochenkov Fix lookup of object files I broke this in rust-lang#158823. I wanted to optimize the potentially O(n^2) object file lookup, but didn't realize that we have to search all search paths here, not only files that we already prefiltered for the lib prefixes. r? @petrochenkov Fixes: rust-lang#160446
…g, r=jhpratt Update the tracking issue for `borrowed_buf_init` This used the same tracking issue as `read_buf`, which is likely to stabilize in the near future without this portion of the API. Previous issue: rust-lang#78485 New issue: rust-lang#160476
Member
Author
|
@bors r+ rollup=never p=10 |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
DepKindcleanups #160406 (DepKindcleanups)thread::available_parallelismas the default limit for backend parallelism #160424 (Usethread::available_parallelismas the default limit for backend parallelism)...without pattern post-expansion #160165 (reject...without pattern post-expansion)feature(stmt_expr_attributes)in2229_closure_analysistests #160172 (tests: Enablefeature(stmt_expr_attributes)in2229_closure_analysistests)platform-support.md#160305 (Linkify C-SKY targets inplatform-support.md)read_exact_bufandread_exact_buf_at#160371 (Add doc aliases for transpositionsread_exact_bufandread_exact_buf_at)borrowed_buf_init#160477 (Update the tracking issue forborrowed_buf_init)r? @ghost
Create a similar rollup