Make std.file.setAttributes safe
Merge pull request #2528 from tom-tan/safe-file-setAttributes

Make std.file.setAttributes safe
Add @nogc unittest for std.range.retro.

To prevent regression of issue 12662.
Merge pull request #2529 from quickfur/issue12662

Add @nogc unittest for std.range.retro.