-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add a convenience method on TyCtxt
for checking for thread locals
#71465
Conversation
hmm, bors doesn't like bjorn github reviewer suggestions say |
|
aa91776
to
c3d17e6
Compare
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@@ -452,6 +452,8 @@ pub enum UnsupportedOpInfo { | |||
NoMirFor(DefId), | |||
/// Encountered a pointer where we needed raw bytes. | |||
ReadPointerAsBytes, | |||
|
|||
// The variants below are only reachable from CTFE/const prop, miri will never emit them. |
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.
Please leave an empty line above and below, otherwise this "melds" into the following doc-comment.
Also while you are at it, could you fix the doc-comment for the enum
itself?
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.
Rustfmt eats that line. I did have that line ;)
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.
do you want me to rustfmt skip the enum?
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.
Seriously, rustfmt is getting annoying. :/
Maybe then format it like that:
//
// text
//
or does rustfmt also remove empty comments?
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.
yea that worked
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
/// Currently, we also use this as fall-back error kind for errors that have not been | ||
/// categorized yet. |
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.
This is no longer true.
357f634
to
8079dd8
Compare
@bors r+ |
📌 Commit 8079dd8 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#71148 (Vec drop and truncate: drop using raw slice *mut [T]) - rust-lang#71465 (Add a convenience method on `TyCtxt` for checking for thread locals) - rust-lang#71567 (Handle build completion message from Cargo) - rust-lang#71590 (MIR dump: print pointers consistently with Miri output) - rust-lang#71682 (Bump pulldown-cmark) - rust-lang#71688 (Allow `Downcast` projections unconditionally in const-checking) - rust-lang#71691 (Allow `Unreachable` terminators unconditionally in const-checking) - rust-lang#71719 (Update backtrace-sys) Failed merges: r? @ghost
☔ The latest upstream changes (presumably #71721) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR extracts the cleanup part of #71192
r? @bjorn3