mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 03:05:30 +00:00
Add rustX check to codeblock attributes lint We discovered this issue [here](https://github.com/rust-lang/rust/pull/118802#discussion_r1421815943). I assume that the issue will be present in other places outside of the compiler so it's worth adding a check for it. First commit is just a small cleanup about variables creation which was a bit strange (at least more than necessary). r? ```@notriddle```
For more information about how librustdoc works, see the rustc dev guide.