Skip to content

error: unicode codepoint changing visible direction of text present in literal #227

@TheFinnishOne

Description

@TheFinnishOne

when trying to build with cargo build --release, it fails to compile to 9 "unicode codepoint changing visible direction of text present in literal" errors.

here is the entire log I get when attempting to build

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7335:32
     |
7335 | (r#"LEFT-TO-RIGHT EMBEDDING"#, r#"�"#),
     |                                ^^^-^^
     |                                |  |
     |                                |  '\u{202a}'
     |                                this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = note: `#[deny(text_direction_codepoint_in_literal)]` on by default
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7335 - (r#"LEFT-TO-RIGHT EMBEDDING"#, r#"�"#),
7335 + (r#"LEFT-TO-RIGHT EMBEDDING"#, r#"\u{202a}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7336:32
     |
7336 | (r#"RIGHT-TO-LEFT EMBEDDING"#, r#"�"#),
     |                                ^^^-^^
     |                                |  |
     |                                |  '\u{202b}'
     |                                this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7336 - (r#"RIGHT-TO-LEFT EMBEDDING"#, r#"�"#),
7336 + (r#"RIGHT-TO-LEFT EMBEDDING"#, r#"\u{202b}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7337:35
     |
7337 | (r#"POP DIRECTIONAL FORMATTING"#, r#"�"#),
     |                                   ^^^-^^
     |                                   |  |
     |                                   |  '\u{202c}'
     |                                   this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7337 - (r#"POP DIRECTIONAL FORMATTING"#, r#"�"#),
7337 + (r#"POP DIRECTIONAL FORMATTING"#, r#"\u{202c}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7338:31
     |
7338 | (r#"LEFT-TO-RIGHT OVERRIDE"#, r#"�"#),
     |                               ^^^-^^
     |                               |  |
     |                               |  '\u{202d}'
     |                               this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7338 - (r#"LEFT-TO-RIGHT OVERRIDE"#, r#"�"#),
7338 + (r#"LEFT-TO-RIGHT OVERRIDE"#, r#"\u{202d}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7339:31
     |
7339 | (r#"RIGHT-TO-LEFT OVERRIDE"#, r#"�"#),
     |                               ^^^-^^
     |                               |  |
     |                               |  '\u{202e}'
     |                               this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7339 - (r#"RIGHT-TO-LEFT OVERRIDE"#, r#"�"#),
7339 + (r#"RIGHT-TO-LEFT OVERRIDE"#, r#"\u{202e}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7394:30
     |
7394 | (r#"LEFT-TO-RIGHT ISOLATE"#, r#"�"#),
     |                              ^^^-^^
     |                              |  |
     |                              |  '\u{2066}'
     |                              this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7394 - (r#"LEFT-TO-RIGHT ISOLATE"#, r#"�"#),
7394 + (r#"LEFT-TO-RIGHT ISOLATE"#, r#"\u{2066}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7395:30
     |
7395 | (r#"RIGHT-TO-LEFT ISOLATE"#, r#"�"#),
     |                              ^^^-^^
     |                              |  |
     |                              |  '\u{2067}'
     |                              this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7395 - (r#"RIGHT-TO-LEFT ISOLATE"#, r#"�"#),
7395 + (r#"RIGHT-TO-LEFT ISOLATE"#, r#"\u{2067}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7396:29
     |
7396 | (r#"FIRST STRONG ISOLATE"#, r#"�"#),
     |                             ^^^-^^
     |                             |  |
     |                             |  '\u{2068}'
     |                             this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7396 - (r#"FIRST STRONG ISOLATE"#, r#"�"#),
7396 + (r#"FIRST STRONG ISOLATE"#, r#"\u{2068}"#),
     |

error: unicode codepoint changing visible direction of text present in literal
    --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:7397:32
     |
7397 | (r#"POP DIRECTIONAL ISOLATE"#, r#"�"#),
     |                                ^^^-^^
     |                                |  |
     |                                |  '\u{2069}'
     |                                this literal contains an invisible unicode text flow control codepoint
     |
     = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
     = help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
     |
7397 - (r#"POP DIRECTIONAL ISOLATE"#, r#"�"#),
7397 + (r#"POP DIRECTIONAL ISOLATE"#, r#"\u{2069}"#),
     |

warning: allow(text_direction_codepoint_in_literal) is ignored unless specified at crate level
 --> /home/thefinnishone/Documents/anyrun/target/release/build/symbols-ba90891afa46563c/out/unicode.rs:1:9
  |
1 | #[allow(text_direction_codepoint_in_literal)]
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_attributes)]` on by default

warning: `symbols` (lib) generated 1 warning
error: could not compile `symbols` (lib) due to 9 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions