Skip to content

write_with_newline now handles \r\n #4547

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

Conversation

bookshelfdave
Copy link

fixes #4208
changelog: write_with_newline now handles \r\n

based off of matthiaskrgr@588dcc8

@bookshelfdave
Copy link
Author

build failures don't appear to be related to this PR:

error[E0425]: cannot find function `report_ices_to_stderr_if_any` in crate `rustc_driver`
   --> src/driver.rs:251:23
    |
251 |         rustc_driver::report_ices_to_stderr_if_any(move || {
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `rustc_driver`

Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, waiting for the rustup.

@ghost
Copy link

ghost commented Sep 18, 2019

Does it handle "\\r\n"?

@flip1995
Copy link
Member

It should lint on \\r\n, since

"\\r\n" == r"\r
"

ping @metadave can you add a test for this?

@bookshelfdave
Copy link
Author

yes, I'll try to add that some time today. I'm having issues getting it to compile related to #4547 (comment), any tips for getting the right version to build with?

@flip1995
Copy link
Member

With RTIM you can install the master toolchain or just run setup-toolchain.sh script in the repo root. If you already use the master toolchain, you can just rebase on the master branch.

$ git fetch upstream # where upstream is the remote of this repo
$ git rebase upstream/master # This should work without conflicts
$ git push --force-with-lease

After this cargo +master check should run without errors.

@phansch phansch added the S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) label Sep 23, 2019
@flip1995 flip1995 added S-inactive-closed Status: Closed due to inactivity and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Sep 23, 2019
@HKalbasi
Copy link
Member

finished in #4769
@rustbot label -S-inactive-closed

@rustbot rustbot removed the S-inactive-closed Status: Closed due to inactivity label Jul 29, 2021
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

Successfully merging this pull request may close these issues.

write_with_newline should not warn when "\n" is preceded by "\r"
5 participants