-
Notifications
You must be signed in to change notification settings - Fork 13.5k
rustdoc-json: Add test for #[cold]
#142919
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
base: master
Are you sure you want to change the base?
rustdoc-json: Add test for #[cold]
#142919
Conversation
These commits modify Please ensure that if you've changed the output:
|
This comment has been minimized.
This comment has been minimized.
ea147eb
to
98fce25
Compare
@@ -0,0 +1,3 @@ | |||
//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]' |
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.
Is it normal that Cold
is capitalized?
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.
Yeah, because it's an enum variant. Same reason as #142916 (comment)
Thanks! @bors r+ rollup |
…ou, r=GuillaumeGomez rustdoc-json: Add test for `#[cold]` Follow-up to rust-lang#142491 r? `@GuillaumeGomez` CC `@jdonszelmann`
Rollup of 7 pull requests Successful merges: - #137268 (Allow comparisons between `CStr`, `CString`, and `Cow<CStr>`.) - #142704 (Remove the deprecated unstable `concat_idents!` macro) - #142742 ([win][aarch64] Fix linking statics on Arm64EC, take 2) - #142843 (Enable reproducible-build-2 for Windows MSVC) - #142916 (rustdoc-json: Add test for `#[optimize(..)]`) - #142919 (rustdoc-json: Add test for `#[cold]`) - #142944 (Stats output tweaks) Failed merges: - #142825 (Port `#[track_caller]` to the new attribute system) r? `@ghost` `@rustbot` modify labels: rollup
Follow-up to #142491
r? @GuillaumeGomez
CC @jdonszelmann