Skip to content

Avoid taking reference of &TyKind - #129590

Merged
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:ref-tykind
Aug 26, 2024
Merged

Avoid taking reference of &TyKind#129590
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:ref-tykind

Conversation

@compiler-errors

Copy link
Copy Markdown
Contributor

It's already a ref anyways. Just a tiny cleanup here.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @fmease

rustbot has assigned @fmease.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 25, 2024
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

HIR ty lowering was modified

cc @fmease

@fmease

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Aug 25, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 48f43fa has been approved by fmease

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 25, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Aug 25, 2024
Avoid taking reference of &TyKind
It's already a ref anyways. Just a tiny cleanup here.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 25, 2024
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#129207 (Lint that warns when an elided lifetime ends up being a named lifetime)
- rust-lang#129288 (Use subtyping for `UnsafeFnPointer` coercion, too)
- rust-lang#129405 (Fixing span manipulation and indentation of the suggestion introduced by rust-lang#126187)
- rust-lang#129518 (gitignore: ignore ICE reports regardless of directory)
- rust-lang#129519 (Remove redundant flags from `lower_ty_common` that can be inferred from the HIR)
- rust-lang#129544 (Removes dead code from the compiler)
- rust-lang#129553 (add back test for stable-const-can-only-call-stable-const)
- rust-lang#129590 (Avoid taking reference of &TyKind)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 26, 2024
…iaskrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#129288 (Use subtyping for `UnsafeFnPointer` coercion, too)
- rust-lang#129405 (Fixing span manipulation and indentation of the suggestion introduced by rust-lang#126187)
- rust-lang#129518 (gitignore: ignore ICE reports regardless of directory)
- rust-lang#129519 (Remove redundant flags from `lower_ty_common` that can be inferred from the HIR)
- rust-lang#129525 (rustdoc: clean up tuple <-> primitive conversion docs)
- rust-lang#129526 (Use `FxHasher` on new solver unconditionally)
- rust-lang#129544 (Removes dead code from the compiler)
- rust-lang#129553 (add back test for stable-const-can-only-call-stable-const)
- rust-lang#129590 (Avoid taking reference of &TyKind)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 26, 2024
…iaskrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#129288 (Use subtyping for `UnsafeFnPointer` coercion, too)
- rust-lang#129405 (Fixing span manipulation and indentation of the suggestion introduced by rust-lang#126187)
- rust-lang#129518 (gitignore: ignore ICE reports regardless of directory)
- rust-lang#129519 (Remove redundant flags from `lower_ty_common` that can be inferred from the HIR)
- rust-lang#129525 (rustdoc: clean up tuple <-> primitive conversion docs)
- rust-lang#129526 (Use `FxHasher` on new solver unconditionally)
- rust-lang#129544 (Removes dead code from the compiler)
- rust-lang#129553 (add back test for stable-const-can-only-call-stable-const)
- rust-lang#129590 (Avoid taking reference of &TyKind)
r? `@ghost`
`@rustbot` modify labels: rollup
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Aug 26, 2024
Rollup merge of rust-lang#129590 - compiler-errors:ref-tykind, r=fmease
Avoid taking reference of &TyKind
It's already a ref anyways. Just a tiny cleanup here.
@bors
bors merged commit d6a3aa4 into rust-lang:masterAug 26, 2024
@rustbotrustbot added this to the 1.82.0 milestone Aug 26, 2024
@GrigorenkoPV

Copy link
Copy Markdown
Contributor

Isn't this automatically linted?

@GrigorenkoPV

Copy link
Copy Markdown
Contributor

Apparently not, but clippy::trivially_copy_pass_by_ref exists

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@compiler-errors@rustbot@fmease@bors@GrigorenkoPV