Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imbaczek opened this issue Jun 17, 2014 · 1 comment
Closed

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

imbaczek opened this issue Jun 17, 2014 · 1 comment

Comments

@imbaczek
Copy link

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
@alexcrichton
Copy link
Member

Closing, I believe that #14400 handled this.

lnicola pushed a commit to lnicola/rust that referenced this issue Jun 19, 2023
…e-1, r=Veykril

internal: Migrate some assists to use the structured snippet API

Migrates the following assists:

- `add_missing_impl_members`
- `extract_type_alias`

As an additional requirement, these assists are also migrated to use the mutable AST API, since otherwise there would be overlapping `Indel` spans
bors added a commit to rust-lang-ci/rust that referenced this issue Jul 17, 2023
…e-2, r=lowr

internal: Migrate more assists to use the structured snippet API

Continuing from rust-lang#14979

Migrates the following assists:
- `generate_derive`
- `wrap_return_type_in_result`
- `generate_delegate_methods`

As a bonus, `generate_delegate_methods` now generates the function and impl block at the correct indentation 🎉.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants