Fix dogfood errors

This commit is contained in:
Michael Wright 2020-12-13 06:32:41 +02:00
parent 3af09b8cf1
commit a6aa0acbea
5 changed files with 13 additions and 10 deletions

View file

@ -372,7 +372,7 @@ impl LateLintPass<'_> for StringToString {
if let ExprKind::MethodCall(path, _, args, _) = &expr.kind;
if path.ident.name == sym!(to_string);
let ty = cx.typeck_results().expr_ty(&args[0]);
if is_type_diagnostic_item(cx, ty, sym!(string_type));
if is_type_diagnostic_item(cx, ty, sym::string_type);
then {
span_lint_and_help(
cx,