adapt to current HEAD of rustc

adapt to current HEAD of rustc 124eb21 by adding #[fixed_stack_segment] and removing unsafe where rustc complained