-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Label non_exhaustive
attribute on privacy errors from non-local items
#110013
Label non_exhaustive
attribute on privacy errors from non-local items
#110013
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue I wonder if the extra get_attr here is going to be expensive - hopefully not, but if so maybe we can only do it if all fields are mentioned (or there are no fields), which this code is already mostly doing I suspect? |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 8ed2dc0 with merge d53a6dffb83447b7ffd6880976ccb09d6112fc33... |
Just noting that this only happens in an error reporting function, so I would be very surprised if this affects perf. |
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 ig (is there a reason to wait for the perf run?...)
@bors r=WaffleLapkin Yeah, perf is not gonna show anything given this only happens in the error case. |
This comment was marked as duplicate.
This comment was marked as duplicate.
@bors r- |
Please don't r+ a pr that is currently |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
now we can r+ this @bors r=WaffleLapkin |
Finished benchmarking commit (d53a6dffb83447b7ffd6880976ccb09d6112fc33): 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.
CyclesResultsThis 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.
|
@bors rollup |
Ah yeah, I'd forgotten about that :-/ |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#109806 (Workaround rust-lang#109797 on windows-gnu) - rust-lang#109957 (diagnostics: account for self type when looking for source of unsolved type variable) - rust-lang#109960 (Fix buffer overrun in bootstrap and (test-only) symlink_junction) - rust-lang#110013 (Label `non_exhaustive` attribute on privacy errors from non-local items) - rust-lang#110016 (Run collapsed GUI test in mobile mode as well) - rust-lang#110022 (fix: fix regression in rust-lang#109203) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Label when an ADT is
non_exhaustive
and we get a privacy error, help with confusion in a case like this: