-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Some cleanups around AllocId
management
#56461
Conversation
src/librustc/mir/interpret/mod.rs
Outdated
} | ||
|
||
pub fn get(&self, id: AllocId) -> Option<AllocType<'tcx, M>> { | ||
/// Returns `None` in case the `AllocId` is dangling. |
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.
"Dangling" for the global memory only, right? It could still be allocated in the local (EvalContext
) memory?
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.
Yes, but the local memory will never hit the global one if it has that AllocId
locally.
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.
Sure, I just think the comment should explain what "dangling" means here.
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.
LGTM!
@bors r+ |
📌 Commit 7181aa1 has been approved by |
⌛ Testing commit 7181aa1 with merge 91d4020bff9ffad6472bb681b9954fd1f117a640... |
💔 Test failed - status-appveyor |
Your PR failed on Travis (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 |
@bors: retry
|
💔 Test failed - status-appveyor |
@bors: retry |
⌛ Testing commit 7181aa1 with merge 28e4bc8dc355df2e8c84eb90424985adebc383bc... |
💔 Test failed - status-travis |
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 |
@bors retry network/tls error |
@bors ping |
😪 I'm awake I'm awake |
tests passed, bors hiccup, merging manually |
Tested on commit rust-lang/rust@7489ee9. Direct link to PR: <rust-lang/rust#56461> 💔 miri on windows: test-pass → test-fail (cc @oli-obk @RalfJung @eddyb, @rust-lang/infra). 🎉 rls on linux: test-fail → test-pass (cc @nrc @Xanewok, @rust-lang/infra).
💥 Test timed out |
r? @eddyb
cc @RalfJung