]> git.lizzy.rs Git - rust.git/commit
use vec![] macro to create Vector with first item inside instead of pushing to an...
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 16 Jul 2021 23:38:08 +0000 (01:38 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Sun, 25 Jul 2021 10:19:33 +0000 (12:19 +0200)
commit1c129f7b975af43362877054c4cd24d70929a030
tree9859c8d9aa682379e173d505f978448be9a39127
parent71a6c7c80398143a67e27b01412f4b2ec12bde8b
use vec![] macro to create Vector with first item inside instead of pushing to an empty vec![]

slightly reduces code bloat
compiler/rustc_ast_pretty/src/pprust/state.rs
compiler/rustc_hir_pretty/src/lib.rs
compiler/rustc_mir/src/transform/coverage/graph.rs
compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs