about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui-internal/symbol_as_str_unfixable.stderr
blob: 65664ebb451ae9f0fb4dd14e1a3d8db21aeb92c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error: converting a Symbol to a string
  --> tests/ui-internal/symbol_as_str_unfixable.rs:9:5
   |
LL |     s.as_str() == "xyz123";
   |     ^^^^^^^^^^
   |
   = help: add the symbols to `clippy_utils/src/sym.rs` if needed
   = note: `-D clippy::symbol-as-str` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::symbol_as_str)]`
help: use preinterned symbols instead
   |
LL -     s.as_str() == "xyz123";
LL +     s == sym::xyz123;
   |

error: converting a Symbol to a string
  --> tests/ui-internal/symbol_as_str_unfixable.rs:11:5
   |
LL |     s.as_str() == "with-dash";
   |     ^^^^^^^^^^
   |
   = help: add the symbols to `clippy_utils/src/sym.rs` if needed
help: use preinterned symbols instead
   |
LL -     s.as_str() == "with-dash";
LL +     s == sym::with_dash;
   |

error: converting a Symbol to a string
  --> tests/ui-internal/symbol_as_str_unfixable.rs:13:5
   |
LL |     s.as_str() == "with.dot";
   |     ^^^^^^^^^^
   |
   = help: add the symbols to `clippy_utils/src/sym.rs` if needed
help: use preinterned symbols instead
   |
LL -     s.as_str() == "with.dot";
LL +     s == sym::with_dot;
   |

error: aborting due to 3 previous errors