rustc_target: drop duplicate code#113914
Merged
bors merged 1 commit intorust-lang:masterfrom Jul 21, 2023
Merged
Conversation
Drop duplicate helper methods on `Layout`, which are already implemented
on `LayoutS`. Note that `Layout` has a `Deref` implementation to
`LayoutS`, so all accessors are automatically redirected.
The methods are identical and have been copied to `rustc_abi` in:
commit 390a637
Author: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
Date: Mon Nov 7 00:36:11 2022 +0330
move things from rustc_target::abi to rustc_abi
This commit left behind the original implementation. Drop it now.
Signed-off-by: David Rheinsberg <david@readahead.eu>
Collaborator
|
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
Contributor
|
Thanks! |
Collaborator
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Jul 21, 2023
rustc_target: drop duplicate code
Drop duplicate helper methods on `Layout`, which are already implemented on `LayoutS`. Note that `Layout` has a `Deref` implementation to `LayoutS`, so all accessors are automatically redirected.
The methods are identical and have been copied to `rustc_abi` in:
commit 390a637
Author: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
Date: Mon Nov 7 00:36:11 2022 +0330
move things from rustc_target::abi to rustc_abi
This commit left behind the original implementation. Drop it now.
(originally moved by `@HKalbasi)`
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jul 21, 2023
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#113887 (new solver: add a separate cache for coherence) - rust-lang#113910 (Add FnPtr ty to SMIR) - rust-lang#113913 (error/E0691: include alignment in error message) - rust-lang#113914 (rustc_target: drop duplicate code) r? `@ghost` `@rustbot` modify labels: rollup
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.
Drop duplicate helper methods on
Layout, which are already implemented onLayoutS. Note thatLayouthas aDerefimplementation toLayoutS, so all accessors are automatically redirected.The methods are identical and have been copied to
rustc_abiin:This commit left behind the original implementation. Drop it now.
(originally moved by @HKalbasi)