-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Ensure that the source code display is working with DOS backline #77939
Ensure that the source code display is working with DOS backline #77939
Conversation
I just wonder about something: should I make this |
I don't understand why this would fix the problem. Why is |
You gave me an idea. I'll check it out later. |
The idea didn't work out unfortunately... So I think the current PR is as good as I can think. |
@GuillaumeGomez do you know why |
Because "\r\n" is considered as two backlines. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with a test added; please make sure it fails before and succeeds after.
a0aea9c
to
5c4cd43
Compare
…ackline in source rendering
5c4cd43
to
0c52044
Compare
Add the test. |
@bors: r=jyn514 |
📌 Commit 0c52044 has been approved by |
…backline, r=jyn514 Ensure that the source code display is working with DOS backline Fixes rust-lang#76361. cc `@lzutao` r? `@jyn514`
Rust 1.48.0 stable release This PR bumps the 1.48 beta branch to the 1.48 stable branch, and applies these last minute backports: * rust-lang#77939 - Ensure that the source code display is working with DOS backline * rust-lang#77508 - Fix capitalization in blog post name * rust-lang#78559 - Add LLVM upgrades from 7 to 10 to RELEASES.md * rust-lang#78364 - Update RELEASES.md for 1.48.0 r? `@ghost` cc `@rust-lang/release`
…backline, r=jyn514 Ensure that the source code display is working with DOS backline Fixes rust-lang#76361. cc ``@lzutao`` r? ``@jyn514``
…backline, r=jyn514 Ensure that the source code display is working with DOS backline Fixes rust-lang#76361. cc ```@lzutao``` r? ```@jyn514```
Rollup of 9 pull requests Successful merges: - rust-lang#77939 (Ensure that the source code display is working with DOS backline) - rust-lang#78138 (Upgrade dlmalloc to version 0.2) - rust-lang#78967 (Make codegen tests compatible with extra inlining) - rust-lang#79027 (Limit storage duration of inlined always live locals) - rust-lang#79077 (document that __rust_alloc is also magic to our LLVM fork) - rust-lang#79088 (clarify `span_label` documentation) - rust-lang#79097 (Code block invalid html tag lint) - rust-lang#79105 (std: Fix test `symlink_hard_link` on Windows) - rust-lang#79107 (build-manifest: strip newline from rustc version) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Get rid of `highlight::Class::None` This is mostly me learning the codebase for rust-lang#77939, so feel free to close the PR. It does have the small benefit that we statically know rustdoc isn't generating useless `span`s, though. r? `@GuillaumeGomez` cc `@matklad`
…crum Prepare beta 1.49.0 This PR sets everything up for beta 1.49.0, and backports the following PRs to it: * rust-lang#79107 - build-manifest: strip newline from rustc version * rust-lang#78986 - Avoid installing external LLVM dylibs * rust-lang#79074 - Install CI llvm into the library directory * rust-lang#78364 - Update RELEASES.md for 1.48.0 * rust-lang#77939 - Ensure that the source code display is working with DOS backline r? `@ghost` cc `@rust-lang/release`
Actually prepare beta 1.49.0 This PR sets everything up for beta 1.49.0, and backports the following PRs to it: * rust-lang#79107 - build-manifest: strip newline from rustc version * rust-lang#78986 - Avoid installing external LLVM dylibs * rust-lang#79074 - Install CI llvm into the library directory * rust-lang#78364 - Update RELEASES.md for 1.48.0 * rust-lang#77939 - Ensure that the source code display is working with DOS backline This is the same as rust-lang#79132, but actually targeting the right branch. r? `@ghost` cc `@rust-lang/release`
Fixes #76361.
cc @lzutao
r? @jyn514