Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/run-make/deref-impl-rustdoc-ice/foo.rs

12 lines
190 B
Rust
Raw Permalink Normal View History

Fix rustdoc ICE.
2016-12-20 21:22:09 +00:00
#![crate_type = "proc-macro"]
extern crate proc_macro;
#[proc_macro_derive(A)]
Run rustfmt on `tests/run-make/`. With the exception of `tests/run-make/translation/test.rs`, which has a syntax error. The expected output in `rustdoc-error-lines/rmake.rs`'s required slight tweaking. The two `reproducible-build.rs` files need `// ignore-tidy-linelength` because rustfmt produces lines longer than 100 chars, which tidy doesn't like, yuk.
2024-05-29 15:01:33 +10:00
pub fn derive(ts: proc_macro::TokenStream) -> proc_macro::TokenStream {
ts
}
Fix rustdoc ICE.
2016-12-20 21:22:09 +00:00
#[derive(Debug)]
struct S;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1142ms 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