Uh oh!
There was an error while loading. Please reload this page.
Don't check interpret_interner when accessing a static to fix miri mutable statics - #49216
Conversation
rust-highfive
commented
Mar 20, 2018
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Mar 20, 2018
|
oli-obk
commented
Mar 21, 2018
I think you need to adjust https://github.com/rust-lang/rust/blob/master/src/librustc_mir/interpret/const_eval.rs#L343 to check whether the static has already been computed. If so, don't call |
bjorn3
commented
Mar 21, 2018
@oli-obk the problem is that I use a custom |
oli-obk
commented
Mar 21, 2018
Oh I get that. I meant rustc's init static impl. The test failure is from that |
bjorn3
commented
Mar 21, 2018
I get it |
34ff964 to
5f73901Comparebjorn3
commented
Mar 21, 2018
Travis is green |
estebank
commented
Mar 21, 2018
@bors r+ rollup |
bors
commented
Mar 21, 2018
📌 Commit 5aa29c4 has been approved by |
bors
commented
Mar 21, 2018
🌲 The tree is currently closed for pull requests below priority 30, this pull request will be tested once the tree is reopened |
Don't check interpret_interner when accessing a static to fix miri mutable statics Mutable statics don't work in my PR to fix the standalone [miri](https://github.com/solson/miri), as init_static didn't get called when the interpret_interner already contained a entry for the static, which is always immutable. cc rust-lang/miri#364
Don't check interpret_interner when accessing a static to fix miri mutable statics Mutable statics don't work in my PR to fix the standalone [miri](https://github.com/solson/miri), as init_static didn't get called when the interpret_interner already contained a entry for the static, which is always immutable. cc rust-lang/miri#364
Mutable statics don't work in my PR to fix the standalone miri, as init_static didn't get called when the interpret_interner already contained a entry for the static, which is always immutable.
cc rust-lang/miri#364