Uh oh!
There was an error while loading. Please reload this page.
Merge Promoted and Static in mir::Place - #59232
Conversation
rust-highfive
commented
Mar 16, 2019
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
saleemjaffer
commented
Mar 16, 2019
r? @oli-obk |
Promoted and Static in mir::PlaceUh 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.
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.
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.
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
4a149ed to
268b4f7CompareUh 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.
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Mar 17, 2019
note that you need to rebase over the master branch, since there are merge conflicts |
saleemjaffer
commented
Mar 17, 2019
Not sure how to get the |
oli-obk
commented
Mar 17, 2019
You can add a new |
saleemjaffer
commented
Mar 17, 2019
I am stuck with figuring out how to obtain the current function's |
4d7d305 to
d9092a7Compared9092a7 to
752544bComparerust-highfive
commented
Mar 23, 2019
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 |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
saleemjaffer
commented
Mar 24, 2019
Fixed everything. |
oli-obk
commented
Mar 25, 2019
@bors r+ Thanks! |
bors
commented
Mar 25, 2019
📌 Commit fb93f10 has been approved by |
…oli-obk Merge `Promoted` and `Static` in `mir::Place` fixesrust-lang#53848
…oli-obk Merge `Promoted` and `Static` in `mir::Place` fixesrust-lang#53848
…oli-obk Merge `Promoted` and `Static` in `mir::Place` fixesrust-lang#53848
| assert!(!static_.ty.needs_subst()); | ||
| let layout = self.layout_of(static_.ty)?; | ||
| let instance = ty::Instance::mono(*self.tcx, static_.def_id); | ||
| Base(PlaceBase::Static(box Static { kind: StaticKind::Static(def_id), ty })) => { |
There was a problem hiding this comment.
Why do these cases need to be handled so differently here? I somewhat hoped they'd get more uniform though this PR.
There was a problem hiding this comment.
To get this resolved we'll need to either teach intern_static about promoteds (which opens up a whole can of worms since we'd need to put a GlobalId in there (which has 'tcx lifetimes) or we'd need to still treat it differently in the end, which would end up with the code we have now.
Rollup of 10 pull requests Successful merges: - #59150 (Expand suggestions for type ascription parse errors) - #59232 (Merge `Promoted` and `Static` in `mir::Place`) - #59267 (Provide suggestion when using field access instead of path) - #59315 (Add no_hash to query macro and move some queries over) - #59334 (Update build instructions in README.md) - #59362 (Demo `FromIterator` short-circuiting) - #59374 (Simplify checked_duration_since) - #59389 (replace redundant note in deprecation warning) - #59410 (Clarify `{Ord,f32,f64}::clamp` docs a little) - #59419 (Utilize `?` instead of `return None`.) Failed merges: r? @ghost
Rollup of 10 pull requests Successful merges: - #59150 (Expand suggestions for type ascription parse errors) - #59232 (Merge `Promoted` and `Static` in `mir::Place`) - #59267 (Provide suggestion when using field access instead of path) - #59315 (Add no_hash to query macro and move some queries over) - #59334 (Update build instructions in README.md) - #59362 (Demo `FromIterator` short-circuiting) - #59374 (Simplify checked_duration_since) - #59389 (replace redundant note in deprecation warning) - #59410 (Clarify `{Ord,f32,f64}::clamp` docs a little) - #59419 (Utilize `?` instead of `return None`.) Failed merges: r? @ghost
| #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)] | ||
| pub struct Static<'tcx> { | ||
| pub def_id: DefId, | ||
| pub ty: Ty<'tcx>, |
There was a problem hiding this comment.
cc @arielb1@nikomatsakis Are pre-normalized types in MIR still needed?
fixes#53848