repr: write the mutability qualifier for slices
repr: update for removal of const
auto merge of #9066 : thestinger/rust/repr, r=alexcrichton