-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
layout_of: T: Thin
implies sizeof(&T) == sizeof(usize)
#104376
layout_of: T: Thin
implies sizeof(&T) == sizeof(usize)
#104376
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 7e7fefe1829e2a101bcf1ea405fe54ea28cf25fe with merge ab804231e1a8be74b6d8bf87c2500ec91374b892... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (ab804231e1a8be74b6d8bf87c2500ec91374b892): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
517d98a
to
88d6176
Compare
This comment has been minimized.
This comment has been minimized.
88d6176
to
1f87162
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with nit
1f87162
to
a5d39cf
Compare
@bors r=wesleywiser |
Ended up not being perf sensitive anyways, @bors rollup- |
⌛ Testing commit a5d39cf with merge 16db584a73dcbee32144101bf20483303098cb2f... |
Let's let the rollup try again @bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (ddad1e1): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Use the
<T as Pointee>::Metadata
associated type to calculate the layout of a pointee's metadata, instead of hard-coding rules about certain types.Maybe this approach is overkill -- we could instead hard-code this approach as a fallback, with the matching on
Slice
/Dynamic
/etc. happening firstFixes this issue here #104338 (comment) .. But is also useful with transmutes, for example, given the UI test I added below.