Skip to content

Commit cc69863

Browse files
committed
fixed bug
1 parent 4e6f5af commit cc69863

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+0
-1
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15551555
} else {
15561556
let snippet = source_map.span_to_snippet(full_call_span).unwrap_or_default();
15571557
let method_name = if snippet.contains("::") {
1558-
// Извлекаем последнюю часть после последнего `::`
15591558
snippet.rsplit("::").next().unwrap_or(&snippet).to_string()
15601559
} else {
15611560
snippet

0 commit comments

Comments
 (0)