]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 19 Jul 2022 11:30:46 +0000 (13:30 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Jul 2022 11:30:46 +0000 (13:30 +0200)
commit4815f94c51d9c4a9c43fcc77da0c788056f9cf9e
treeaa27e40035aa34bb4384b85a0debf8e2bbee1520
parent31473928e993517f4e1909478c573628d8119cdc
parenta22934bea1d02870cda58eb6297ff9332fcc2104
Rollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote

Avoid `Symbol` to `&str` conversions

`Symbol::as_str` is a slowish operation, so this patch removes some usages of it.
compiler/rustc_ast_passes/src/feature_gate.rs
compiler/rustc_resolve/src/diagnostics.rs
compiler/rustc_resolve/src/late/diagnostics.rs
compiler/rustc_span/src/symbol.rs
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
compiler/rustc_typeck/src/check/_match.rs
compiler/rustc_typeck/src/check/op.rs