Skip to content
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

cleanup: remove needless reference to Instance #63409

Closed
Mark-Simulacrum opened this issue Aug 9, 2019 · 0 comments · Fixed by #63464
Closed

cleanup: remove needless reference to Instance #63409

Mark-Simulacrum opened this issue Aug 9, 2019 · 0 comments · Fixed by #63464
Assignees
Labels
A-const-eval Area: constant evaluation (mir interpretation) C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Mark-Simulacrum
Copy link
Member

Mark-Simulacrum commented Aug 9, 2019

At least one case of this is in src/librustc_mir/interpret/snapshot.rs on line 305, but grepping is also advisable.

Originally posted by @eddyb in #63287

@jonas-schievink jonas-schievink added A-const-eval Area: constant evaluation (mir interpretation) C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 9, 2019
@Mark-Simulacrum Mark-Simulacrum self-assigned this Aug 11, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Aug 11, 2019
…ddyb

Copy ty::Instance instead of passing by reference

ty::Instance is small and Copy, we should not be adding additional
indirection.

Fixes rust-lang#63409.

r? @eddyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-eval Area: constant evaluation (mir interpretation) C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants