Logo
Explore Help
Register Sign In
mikros/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Packages Projects Releases Wiki Activity
rust/tests/rustdoc-ui/auxiliary/empty-fn.rs

4 lines
62 B
Rust
Raw Normal View History

fix(doctest): detect extern crate items in statement doctests This partially reverts #91026, because rustdoc needs to detect the extern statements, even when they appear inside implicit `main()`. It does not entirely revert it, so the old bug is still fixed, by duplicating some of the logic from `parse_mod` instead of trying to use it directly. Fixes #91134
2021-11-22 19:47:58 -07:00
// no-prefer-dynamic
#![crate_type = "lib"]
pub fn empty() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 6569ms Template: 29ms
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