Enable comparing fat pointers#58301
Conversation
There was a problem hiding this comment.
isn't this problematic for miri? a fat pointer will cause an error here, will it not?
There was a problem hiding this comment.
to_scalar_ptr returns the first component of a scalar pair.
src/librustc_mir/interpret/place.rs
Outdated
There was a problem hiding this comment.
| let layout = self.layout_of(self.tcx.types.usize)?; | |
| let layout = self.layout_of(self.tcx.types.usize)?; |
|
@bors r=oli-obk |
|
📌 Commit fd141293def51541872b439a64090c9929653873 has been approved by |
|
☔ The latest upstream changes (presumably #58316) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Rebased. @bors r=oli-obk |
|
📌 Commit a873d18395c1f90d4ffe13ef28bdbca344115fe9 has been approved by |
|
Rebased, to integrate with other Miri-related changes (for easier testing). @bors r=oli-obk |
|
📌 Commit 1a5304a has been approved by |
This comment has been minimized.
This comment has been minimized.
|
Fixed rebase fallout. @bors r=oli-obk |
|
📌 Commit 22d5e6a has been approved by |
Enable comparing fat pointers Also refactor our binops a bit to make that happen more easily. r? @oli-obk
Enable comparing fat pointers Also refactor our binops a bit to make that happen more easily. r? @oli-obk
Rollup of 8 pull requests Successful merges: - #57451 (suggestion-diagnostics: as_ref improve snippet) - #57856 (Convert old first edition links to current edition one) - #57992 (Update the future/task API) - #58258 (Reduce the size of `hir::Expr`.) - #58267 (Tweak "incompatible match arms" error) - #58296 (Hidden suggestion support) - #58301 (Enable comparing fat pointers) - #58308 (Extract block to insert an intrinsic into its own function) Failed merges: r? @ghost
Also refactor our binops a bit to make that happen more easily.
r? @oli-obk