Update help text in inefficient_to_string

Co-Authored-By: Manish Goregaokar <manishsmail@gmail.com>
This commit is contained in:
Michael Zhang 2019-10-17 19:11:51 -04:00 committed by HMPerson1
parent ffb53e7457
commit 2106a23966
No known key found for this signature in database
GPG key ID: 1FB477DDD27821CE
2 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,7 @@ pub fn lint<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &hir::Expr, arg: &hir::Expr,
&format!("calling `to_string` on `{}`", arg_ty),
|db| {
db.help(&format!(
"`{}` implements `ToString` through the blanket impl, but `{}` specializes `ToString` directly",
"`{}` implements `ToString` through a slower blanket impl, but `{}` has a fast specialization of `ToString`",
self_ty, deref_self_ty
));
let mut applicability = Applicability::MachineApplicable;