make small ty_struct immediate

Closes #9651
auto merge of #9759 : thestinger/rust/immediate, r=alexcrichton

Closes #9651