Uh oh!
There was an error while loading. Please reload this page.
Don't access a static just for its size and alignment - #62982
Conversation
rust-highfive
commented
Jul 25, 2019
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Jul 26, 2019
r? @RalfJung |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
left a comment
There was a problem hiding this comment.
r=me with these nits fixed and CI green
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Ralf Jung <post@ralfj.de>
Co-Authored-By: Ralf Jung <post@ralfj.de>
RalfJung
commented
Jul 27, 2019
@bors r+ |
bors
commented
Jul 27, 2019
📌 Commit 0cd7167 has been approved by |
Don't access a static just for its size and alignment cc @RalfJungfixesrust-lang#62189
Rollup of 6 pull requests Successful merges: - #62423 (Fix cycle error with existential types) - #62979 (Cleanup save-analysis JsonDumper) - #62982 (Don't access a static just for its size and alignment) - #63013 (add `repr(transparent)` to `IoSliceMut` where missing) - #63014 (Stop bare trait lint applying to macro call sites) - #63036 (Add lib section to rustc_lexer's Cargo.toml) Failed merges: r? @ghost
| return Ok((Size::from_bytes(alloc.bytes.len() as u64), alloc.align)); | ||
| } | ||
| // Function pointers. | ||
| if let Ok(_) = self.get_fn_alloc(id) { |
There was a problem hiding this comment.
Ah, this is the bug that I missed. We no longer check the "machine" function pointers.
…oli-obk Miri: fix determining size of an "extra function" allocation Fixes [a bug](rust-lang/miri#862) introduced by rust-lang#62982. Best reviewed commit-by-commit. r? @oli-obk
Miri: Check that a ptr is aligned and inbounds already when evaluating `*` This syncs Miri with what the Nomicon and the Reference say, and resolvesrust-lang/miri#447. Also this would not have worked without rust-lang#62982 due to new cycles. ;) r? @oli-obk
Miri: Check that a ptr is aligned and inbounds already when evaluating `*` This syncs Miri with what the Nomicon and the Reference say, and resolvesrust-lang/miri#447. Also this would not have worked without rust-lang#62982 due to new cycles. ;) r? @oli-obk
Miri: Check that a ptr is aligned and inbounds already when evaluating `*` This syncs Miri with what the Nomicon and the Reference say, and resolvesrust-lang/miri#447. Also this would not have worked without rust-lang#62982 due to new cycles. ;) r? @oli-obk
Miri: Check that a ptr is aligned and inbounds already when evaluating `*` This syncs Miri with what the Nomicon and the Reference say, and resolvesrust-lang/miri#447. Also this would not have worked without rust-lang#62982 due to new cycles. ;) r? @oli-obk
Miri: Check that a ptr is aligned and inbounds already when evaluating `*` This syncs Miri with what the Nomicon and the Reference say, and resolvesrust-lang/miri#447. Also this would not have worked without rust-lang#62982 due to new cycles. ;) r? @oli-obk
nikomatsakis
commented
Aug 29, 2019
Reviewed by the compiler team: |
RalfJung
commented
Aug 29, 2019
Didn't this land before the current beta branched? |
nikomatsakis
commented
Aug 29, 2019
I'm going to remove the beta nominated label. It seems like it either landed or got rolle up or something. |
RalfJung
commented
Aug 29, 2019
I also last-minute backported it to stable. Maybe that's where the confusion comes from. |
Mark-Simulacrum
commented
Aug 29, 2019
This indeed made it into (current) beta I believe as part of a5e7bb3. |
cc @RalfJung
fixes#62189