You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std;
import std::option::*;
fn main() {
let t[int] x = none;
x = 5;
}
Looks like stack overflow. The interesting part of the backtrace: #1019 0x080df952 in middle::ty::fold_ty () #1020 0x080f985f in middle::ty::unify::fixup_vars::subst_vars () #1021 0x0827bc13 in middle::ty::unify::fixup_vars::subst_vars::thunk3323 () #1022 0x080e3e7f in middle::ty::fold_ty () #1023 0x080df952 in middle::ty::fold_ty () #1024 0x080f985f in middle::ty::unify::fixup_vars::subst_vars () #1025 0x0827bc13 in middle::ty::unify::fixup_vars::subst_vars::thunk3323 () #1026 0x080e3e7f in middle::ty::fold_ty () #1027 0x080df952 in middle::ty::fold_ty () #1028 0x080f985f in middle::ty::unify::fixup_vars::subst_vars () #1029 0x0827be33 in middle::ty::unify::fixup_vars::thunk3333 () #1030 0x080e3e7f in middle::ty::fold_ty () #1031 0x080f9bb7 in middle::ty::unify::fixup_vars () #1032 0x08137e5a in middle::typeck::demand::full () #1033 0x0814097a in middle::typeck::check_expr () #1034 0x08145d44 in middle::typeck::check_expr () #1035 0x0813fdca in middle::typeck::check_expr::check_then_else () #1036 0x08145e0f in middle::typeck::check_expr () #1037 0x081530aa in middle::typeck::check_block () #1038 0x08146df7 in middle::typeck::check_expr () #1039 0x081530aa in middle::typeck::check_block () #1040 0x08146df7 in middle::typeck::check_expr () #1041 0x081530aa in middle::typeck::check_block () #1042 0x0813f85a in middle::typeck::check_expr::check_for_or_for_each () #1043 0x08146170 in middle::typeck::check_expr () #1044 0x08152ee7 in middle::typeck::check_block () #1045 0x08154ee0 in middle::typeck::check_fn () #1046 0x08156bda in middle::typeck::check_item () #1047 0x0829730e in middle::typeck::check_crate::thunk5452 () #1048 0x080fce01 in middle::walk::walk_item ()
fn unify_step(&@ctxt cx, &t expected, &t actual) -> result {
// TODO: occurs check, to make sure we don't loop forever when
// unifying e.g. 'a and option['a]
Activity
jdm commentedon Jul 3, 2011
Helpful note from ty.rs?
catamorphism commentedon Jul 14, 2011
I'm calling this a duplicate of #229 and the fact that stack overflow is currently a crash.
Auto merge of rust-lang#602 - Razican:unistd_sync, r=alexcrichton
Merge pull request rust-lang#602 from MemPage/TypePathSegment-fix
Auto merge of rust-lang#2357 - DebugSteven:epoll_create1-shim, r=oli-obk
Auto merge of rust-lang#2357 - DebugSteven:epoll_create1-shim, r=oli-obk
Merge pull request rust-lang#602 from Anon258/master
Merge pull request rust-lang#602 from Amanieu/release-0.1.111
Simplify bounds of `T` in `mode` (rust-lang#602)
Merge rust-lang#602