Repository navigation
Closed
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Description
struct thing<Q> {
x: &Q;
new(x: &Q) { self.x = x; }
}
fn main() {
thing(&());
}
Backtrace:
#0 upcall_fail (expr=0x7fffe4380fc0 "option::get none", ...)
#1 0x00007ffff5c978c3 in middle::ty::subst::do_subst::anon ()
#2 0x00007ffff5c9529a in middle::ty::fold_regions_and_ty ()
#3 0x00007ffff5c976ff in middle::ty::subst::do_subst ()
#4 0x00007ffff5ba5363 in middle::ty::subst ()
#5 0x00007ffff5b6c5d7 in middle::ty::lookup_field_type ()
#6 0x00007ffff5b6c459 in middle::trans::type_of::type_of::anon ()
#7 0x00007ffff5b6c395 in vec::map5742 ()
#8 0x00007ffff5b5ee95 in middle::trans::type_of::type_of ()
#9 0x00007ffff5b5d3d3 in middle::trans::type_of::type_of ()
#10 0x00007ffff5b67c24 in middle::trans::type_of::type_of_fn ()
#11 0x00007ffff5b92502 in middle::trans::base::monomorphic_fn ()
#12 0x00007ffff6028c20 in __morestack ()
#13 0x00007ffff5bbfe8e in middle::trans::base::lval_static_fn_inner ()
#14 0x00007ffff5bbf68d in middle::trans::base::lval_static_fn ()
#15 0x00007ffff5bc2353 in middle::trans::base::trans_var ()
#16 0x00007ffff5bc1fec in middle::trans::base::trans_path ()
#17 0x00007ffff5bc4f85 in middle::trans::base::trans_callee ()
#18 0x00007ffff5bd3b34 in middle::trans::base::trans_call_inner::anon ()
#19 0x00007ffff5bd3939 in middle::trans::base::with_scope ()
#20 0x00007ffff5b9e3fb in middle::trans::base::trans_call_inner ()
#21 0x00007ffff5bcb7dd in middle::trans::base::trans_call ()
#22 0x00007ffff5bd91c0 in middle::trans::base::trans_expr::unrooted ()
#23 0x00007ffff5b9ee23 in middle::trans::base::trans_expr ()
#24 0x00007ffff5be31d6 in middle::trans::base::trans_stmt ()
#25 0x00007ffff5ba72d1 in middle::trans::base::trans_block ()
#26 0x00007ffff5beb805 in middle::trans::base::trans_closure ()
#27 0x00007ffff5bb108c in middle::trans::base::trans_fn ()
Metadata
Metadata
Assignees
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Activity
bblum commentedon Aug 9, 2012
I had to work around this here: 604e4ad#L0R74
Add rw_arc.downgrade() + std and cfail tests. Tons of region FIXMEs..…
catamorphism commentedon Dec 6, 2012
As of b60a0be, this fails with a borrow check error, rather than ICEing.
yields:
bblum commentedon Dec 7, 2012
I'm not convinced a borrow-check error is grounds for closing this. Tentatively reopening.
Would you mind trying to merge
struct SemReleaseandstruct SemAndSignalReleaseinlibstd/sync.rs? They should be able to be merged into a singlestruct SemRelease<Q> { sem: &Sem<Q> }and likewise share one implementation.I don't expect any borrow-check errors there, since the lifetimes work out with the currently-hand-monomorphised version.
catamorphism commentedon Dec 7, 2012
I was able to merge the two structs and haven't gotten any compile errors yet, but I'm still waiting for tests to run.
catamorphism commentedon Dec 7, 2012
See 7a365e4
bblum commentedon Dec 7, 2012
Hot. Thanks!
missed-spans: Fix bogus check.
Auto merge of rust-lang#3154 - rust-lang:rustup-2023-11-04, r=RalfJung
Automatic toolchain upgrade to nightly-2024-04-20 (rust-lang#3154)