Skip to content

Commit 7342325

Browse files
committed
Add #![deny(warnings)] to internal tools
1 parent 7b907de commit 7342325

File tree

9 files changed

+33
-17
lines changed

9 files changed

+33
-17
lines changed

src/tools/build-manifest/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//! via `x.py dist hash-and-sign`; the cmdline arguments are set up
55
//! by rustbuild (in `src/bootstrap/dist.rs`).
66
7+
#![deny(warnings)]
8+
79
use toml;
810
use serde::Serialize;
911

src/tools/cargotest/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(warnings)]
2+
13
use std::env;
24
use std::process::Command;
35
use std::path::{Path, PathBuf};

src/tools/compiletest/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![crate_name = "compiletest"]
22
#![feature(test)]
33
#![feature(vec_remove_item)]
4+
#![deny(warnings)]
45

56
extern crate test;
67

src/tools/error_index_generator/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(rustc_private)]
2+
#![deny(warnings)]
23

34
extern crate env_logger;
45
extern crate syntax;

src/tools/linkchecker/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//! A few whitelisted exceptions are allowed as there's known bugs in rustdoc,
1515
//! but this should catch the majority of "broken link" cases.
1616
17+
#![deny(warnings)]
18+
1719
use std::collections::hash_map::Entry;
1820
use std::collections::{HashMap, HashSet};
1921
use std::env;

src/tools/remote-test-client/src/main.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
/// This is a small client program intended to pair with `remote-test-server` in
2-
/// this repository. This client connects to the server over TCP and is used to
3-
/// push artifacts and run tests on the server instead of locally.
4-
///
5-
/// Here is also where we bake in the support to spawn the QEMU emulator as
6-
/// well.
1+
//! This is a small client program intended to pair with `remote-test-server` in
2+
//! this repository. This client connects to the server over TCP and is used to
3+
//! push artifacts and run tests on the server instead of locally.
4+
//!
5+
//! Here is also where we bake in the support to spawn the QEMU emulator as
6+
//! well.
7+
8+
#![deny(warnings)]
79

810
use std::env;
911
use std::fs::{self, File};

src/tools/remote-test-server/src/main.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
/// This is a small server which is intended to run inside of an emulator or
2-
/// on a remote test device. This server pairs with the `remote-test-client`
3-
/// program in this repository. The `remote-test-client` connects to this
4-
/// server over a TCP socket and performs work such as:
5-
///
6-
/// 1. Pushing shared libraries to the server
7-
/// 2. Running tests through the server
8-
///
9-
/// The server supports running tests concurrently and also supports tests
10-
/// themselves having support libraries. All data over the TCP sockets is in a
11-
/// basically custom format suiting our needs.
1+
//! This is a small server which is intended to run inside of an emulator or
2+
//! on a remote test device. This server pairs with the `remote-test-client`
3+
//! program in this repository. The `remote-test-client` connects to this
4+
//! server over a TCP socket and performs work such as:
5+
//!
6+
//! 1. Pushing shared libraries to the server
7+
//! 2. Running tests through the server
8+
//!
9+
//! The server supports running tests concurrently and also supports tests
10+
//! themselves having support libraries. All data over the TCP sockets is in a
11+
//! basically custom format suiting our needs.
12+
13+
#![deny(warnings)]
1214

1315
use std::cmp;
1416
use std::env;

src/tools/tidy/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//! etc. This is run by default on `make check` and as part of the auto
55
//! builders.
66
7+
#![deny(warnings)]
8+
79
use tidy::*;
810

911
use std::process;

src/tools/unstable-book-gen/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Auto-generate stub docs for the unstable book
22
3+
#![deny(warnings)]
4+
35
use tidy::features::{Feature, Features, collect_lib_features, collect_lang_features};
46
use tidy::unstable_book::{collect_unstable_feature_names, collect_unstable_book_section_file_names,
57
PATH_STR, LANG_FEATURES_DIR, LIB_FEATURES_DIR};

0 commit comments

Comments
 (0)