doc: Correctly onclose code blocks in HashSet
auto merge of #16030 : treeman/rust/doc-hashset-fix, r=sfackler

Not sure how this could slip by.