Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/rustdoc-json/attrs/no_mangle_2021.rs

7 lines
135 B
Rust
Raw Normal View History

rustdoc: Add attribute-related tests for rustdoc JSON.
2025-03-05 04:46:14 +00:00
//@ edition: 2021
#![no_std]
rustdoc-json: Structured attributes Implements https://www.github.com/rust-lang/rust/issues/141358. This has 2 primary benefits: 1. For rustdoc-json consumers, they no longer need to parse strings of attributes, but it's there in a structured and normalized way. 2. For rustc contributors, the output of HIR pretty printing is no longer a versioned thing in the output. People can work on https://github.com/rust-lang/rust/issues/131229 without needing to bump `FORMAT_VERSION`. (Over time, as the attribute refractor continues, I expect we'll add new things to `rustdoc_json_types::Attribute`. But this can be done separately to the rustc changes).
2025-06-20 02:48:15 +00:00
//@ is "$.index[?(@.name=='example')].attrs" '["no_mangle"]'
rustdoc: Add attribute-related tests for rustdoc JSON.
2025-03-05 04:46:14 +00:00
#[no_mangle]
pub extern "C" fn example() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 190ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API