Some cleanups around AllocId management#56461
Some cleanups around AllocId management#56461alexcrichton merged 11 commits intorust-lang:masterfrom
AllocId management#56461Conversation
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.
"Dangling" for the global memory only, right? It could still be allocated in the local (EvalContext) memory?
There was a problem hiding this comment.
Yes, but the local memory will never hit the global one if it has that AllocId locally.
There was a problem hiding this comment.
Sure, I just think the comment should explain what "dangling" means here.
|
@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