]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #104976 - WaffleLapkin:move_comments, r=cjgillot
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 27 Nov 2022 21:14:08 +0000 (22:14 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 21:14:08 +0000 (22:14 +0100)
commit86304f5149fde69905bc28bc80e7734f3b9745f7
treeed2db21c837c3d2c9941e3d04d970f7de7d6f1b7
parent53cfcfbfedf2104a020b7e9de229a51562767012
parent1d42936b18d08ba414d9def35508d3baf2175c72
Rollup merge of #104976 - WaffleLapkin:move_comments, r=cjgillot

Prefer doc comments over `//`-comments in compiler

Doc comments are generally nicer: they show up in the documentation, they are shown in IDEs when you hover other mentions of items, etc. Thus it makes sense to use them instead of `//`-comments.
compiler/rustc_const_eval/src/transform/check_consts/ops.rs
compiler/rustc_hir/src/hir.rs
compiler/rustc_hir_analysis/src/astconv/mod.rs
compiler/rustc_middle/src/ty/mod.rs
compiler/rustc_middle/src/ty/sty.rs