Skip to content

rustc doesn't like \r\n in string literals when breaking lines #14979

Closed
@imbaczek

Description

rustc -L deps/sax-rs/lib src/gen/main.rs -o bin/glrsgen
src\gen\main.rs:307:79: 307:80 error: unknown string escape: \r
src\gen\main.rs:307                 "pub extern \"system\" fn {name}({params}){return_suffix} {{ \
                                                                                                  ^

etc. git autocrlf is probably at work here. this is on windows 8.

ps.

$ rustc --version
rustc 0.11.0-pre-nightly (18c451f 2014-06-14 06:36:49 +0000)
host: i686-pc-mingw32

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