mdbook/src
Mike English 1d265fd143 Broaden scope of suppressed warnings for listings without a main fn
At present, code listings without a main function will be wrapped in one and
annotated with an allow lint check attribute provided by the following [code][]:

```
format!(
    "\n# #![allow(unused_variables)]\n{}#fn main() {{\n{}#}}",
    attrs, code
)
```

A broader lint check attribute such as `#![allow(unused)]` seems like it might
better fit the apparent intent of this code.

Addresses: https://github.com/rust-lang/mdBook/issues/1192

[code]: 769cc0a7c1/src/renderer/html_handlebars/hbs_renderer.rs (L635-L638)
2020-04-18 01:36:11 -04:00
..
book Revert "Support anchors in SUMMARY (#1173)" (#1175) 2020-03-24 23:52:24 +01:00
cmd Stop scrolling on socket reload 2019-11-12 18:06:11 -08:00
preprocess Implement a rustdoc_include preprocessor (#1003) 2019-10-06 00:27:03 +02:00
renderer Broaden scope of suppressed warnings for listings without a main fn 2020-04-18 01:36:11 -04:00
theme Merge pull request #1170 from ehuss/fix-theme-focus 2020-04-03 12:45:33 -07:00
utils Address PR review comments 2020-04-03 10:39:15 -07:00
config.rs Fix doc comment of BuildConfig::create_missing (#1104) 2019-11-29 06:22:21 +01:00
lib.rs rust-lang-nursery -> rust-lang 2019-10-29 08:04:16 -05:00
main.rs rust-lang-nursery -> rust-lang 2019-10-29 08:04:16 -05:00