-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Nightly warning for codeblock languages with non-alphanumeric characters #115938
Comments
fixed by #115914 |
@Nilstrieb Apologies, I'm not sure I see how the linked PR fixes the issue. We're not using the new syntax or custom code classes. Using the codeblock fence syntax in the PR description shouldn't generate an error or a warning, no? Have I misunderstood something? |
Hm, good point, I didn't look at this in detail (I wanted to but got distracted). The PR will be in nightly tomorrow, could you try it then to see whether it works? But you're right, looking at the error it looks like it might not. |
It should generate a warning as the meaning of |
Oh wait, it should indeed not emit a warning (or at least not this one) in this case. I'll check what rustdoc did before. |
Wrote the fix in #115947. So in your case, it'll still emit a warning, but the correct one this time: it'll tell you that the behaviour will change in the future. So now about how |
Thanks @GuillaumeGomez
I'll wait for this to land in a nightly release so I can see what the new warning looks like and we can go from there :-) |
Rollup merge of rust-lang#115947 - GuillaumeGomez:custom_code_classes_in_docs-warning, r=notriddle Custom code classes in docs warning Fixes rust-lang#115938. This PR does two things: 1. Unless the `custom_code_classes_in_docs` feature is enabled, it will use the old codeblock tag parser. 2. If there is a codeblock tag that starts with a `.`, it will emit a behaviour change warning. Hopefully this is the last missing part for this feature until stabilization. Follow-up of rust-lang#110800. r? `@notriddle`
We're not seeing a warning or an error with the latest nightly. Thanks again for the quick fix :-) |
👍 |
Code
I tried this code with
cargo doc
:I expected to see this happen: rust doc generated without any warnings.
Instead, this happened:
"ASN.1" is supported by Linguist. I also see the same result if I specify any codefence languages that include special characters (e.g. C++, C#).
Version it worked on
It most recently worked on:
rustc 1.74.0-nightly (8142a319e 2023-09-13)
Version with regression
It fails with a warning on
rustc 1.74.0-nightly (203c57dbe 2023-09-17)
rustc --version --verbose
:Possibly related to #110800 ?
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: