Skip to content

Commit 8da0770

Browse files
committed
don't intern defined symbol, remove mentions of 'debug_tuple'
1 parent 40ecb57 commit 8da0770

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/missing_fields_in_debug.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn as_field_call<'tcx>(
136136
if let ExprKind::MethodCall(path, recv, [debug_field, _], _) = &expr.kind
137137
&& let recv_ty = typeck_results.expr_ty(recv).peel_refs()
138138
&& match_type(cx, recv_ty, &paths::DEBUG_STRUCT)
139-
&& path.ident.name == sym!(field)
139+
&& path.ident.name == sym::field
140140
&& let ExprKind::Lit(lit) = &debug_field.kind
141141
&& let LitKind::Str(sym, ..) = lit.node
142142
{
@@ -194,8 +194,7 @@ fn check_struct<'tcx>(
194194
/// the item is an enum.
195195
///
196196
/// Currently, only simple cases are detected where the user
197-
/// matches on `self` and calls `debug_struct` or `debug_tuple`
198-
/// inside of the arms
197+
/// matches on `self` and calls `debug_struct` inside of the arms
199198
fn check_enum<'tcx>(
200199
cx: &LateContext<'tcx>,
201200
typeck_results: &TypeckResults<'tcx>,

0 commit comments

Comments
 (0)