rust/src/librustdoc
Jubilee 0430782d1d
Rollup merge of #118872 - GuillaumeGomez:codeblock-attr-lint, r=notriddle
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```
2023-12-12 18:48:51 -08:00
..
2023-11-15 21:45:48 -05:00
2023-11-22 08:13:21 +11:00
2023-11-25 17:18:33 +00:00
2023-12-10 10:56:22 +08:00

For more information about how librustdoc works, see the rustc dev guide.