Skip to content

Commit 2bffa31

Browse files
author
Thomas Jespersen
committed
compiletest: Change Config comments to doc comments
1 parent a0c3bd2 commit 2bffa31

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

src/tools/compiletest/src/common.rs

+39-39
Original file line numberDiff line numberDiff line change
@@ -83,117 +83,117 @@ impl fmt::Display for Mode {
8383

8484
#[derive(Clone)]
8585
pub struct Config {
86-
// The library paths required for running the compiler
86+
/// The library paths required for running the compiler
8787
pub compile_lib_path: PathBuf,
8888

89-
// The library paths required for running compiled programs
89+
/// The library paths required for running compiled programs
9090
pub run_lib_path: PathBuf,
9191

92-
// The rustc executable
92+
/// The rustc executable
9393
pub rustc_path: PathBuf,
9494

95-
// The rustdoc executable
95+
/// The rustdoc executable
9696
pub rustdoc_path: Option<PathBuf>,
9797

98-
// The python executable to use for LLDB
98+
/// The python executable to use for LLDB
9999
pub lldb_python: String,
100100

101-
// The python executable to use for htmldocck
101+
/// The python executable to use for htmldocck
102102
pub docck_python: String,
103103

104-
// The llvm FileCheck binary path
104+
/// The llvm FileCheck binary path
105105
pub llvm_filecheck: Option<PathBuf>,
106106

107-
// The valgrind path
107+
/// The valgrind path
108108
pub valgrind_path: Option<String>,
109109

110-
// Whether to fail if we can't run run-pass-valgrind tests under valgrind
111-
// (or, alternatively, to silently run them like regular run-pass tests).
110+
/// Whether to fail if we can't run run-pass-valgrind tests under valgrind
111+
/// (or, alternatively, to silently run them like regular run-pass tests).
112112
pub force_valgrind: bool,
113113

114-
// The directory containing the tests to run
114+
/// The directory containing the tests to run
115115
pub src_base: PathBuf,
116116

117-
// The directory where programs should be built
117+
/// The directory where programs should be built
118118
pub build_base: PathBuf,
119119

120-
// The name of the stage being built (stage1, etc)
120+
/// The name of the stage being built (stage1, etc)
121121
pub stage_id: String,
122122

123-
// The test mode, compile-fail, run-fail, run-pass
123+
/// The test mode, compile-fail, run-fail, run-pass
124124
pub mode: Mode,
125125

126-
// Run ignored tests
126+
/// Run ignored tests
127127
pub run_ignored: bool,
128128

129-
// Only run tests that match this filter
129+
/// Only run tests that match this filter
130130
pub filter: Option<String>,
131131

132-
// Exactly match the filter, rather than a substring
132+
/// Exactly match the filter, rather than a substring
133133
pub filter_exact: bool,
134134

135-
// Write out a parseable log of tests that were run
135+
/// Write out a parseable log of tests that were run
136136
pub logfile: Option<PathBuf>,
137137

138-
// A command line to prefix program execution with,
139-
// for running under valgrind
138+
/// A command line to prefix program execution with,
139+
/// for running under valgrind
140140
pub runtool: Option<String>,
141141

142-
// Flags to pass to the compiler when building for the host
142+
/// Flags to pass to the compiler when building for the host
143143
pub host_rustcflags: Option<String>,
144144

145-
// Flags to pass to the compiler when building for the target
145+
/// Flags to pass to the compiler when building for the target
146146
pub target_rustcflags: Option<String>,
147147

148-
// Target system to be tested
148+
/// Target system to be tested
149149
pub target: String,
150150

151-
// Host triple for the compiler being invoked
151+
/// Host triple for the compiler being invoked
152152
pub host: String,
153153

154-
// Path to / name of the GDB executable
154+
/// Path to / name of the GDB executable
155155
pub gdb: Option<String>,
156156

157-
// Version of GDB, encoded as ((major * 1000) + minor) * 1000 + patch
157+
/// Version of GDB, encoded as ((major * 1000) + minor) * 1000 + patch
158158
pub gdb_version: Option<u32>,
159159

160-
// Whether GDB has native rust support
160+
/// Whether GDB has native rust support
161161
pub gdb_native_rust: bool,
162162

163-
// Version of LLDB
163+
/// Version of LLDB
164164
pub lldb_version: Option<String>,
165165

166-
// Version of LLVM
166+
/// Version of LLVM
167167
pub llvm_version: Option<String>,
168168

169-
// Is LLVM a system LLVM
169+
/// Is LLVM a system LLVM
170170
pub system_llvm: bool,
171171

172-
// Path to the android tools
172+
/// Path to the android tools
173173
pub android_cross_path: PathBuf,
174174

175-
// Extra parameter to run adb on arm-linux-androideabi
175+
/// Extra parameter to run adb on arm-linux-androideabi
176176
pub adb_path: String,
177177

178-
// Extra parameter to run test suite on arm-linux-androideabi
178+
/// Extra parameter to run test suite on arm-linux-androideabi
179179
pub adb_test_dir: String,
180180

181-
// status whether android device available or not
181+
/// status whether android device available or not
182182
pub adb_device_status: bool,
183183

184-
// the path containing LLDB's Python module
184+
/// the path containing LLDB's Python module
185185
pub lldb_python_dir: Option<String>,
186186

187-
// Explain what's going on
187+
/// Explain what's going on
188188
pub verbose: bool,
189189

190-
// Print one character per test instead of one line
190+
/// Print one character per test instead of one line
191191
pub quiet: bool,
192192

193-
// Whether to use colors in test.
193+
/// Whether to use colors in test.
194194
pub color: ColorConfig,
195195

196-
// where to find the remote test client process, if we're using it
196+
/// where to find the remote test client process, if we're using it
197197
pub remote_test_client: Option<PathBuf>,
198198

199199
// Configuration for various run-make tests frobbing things like C compilers

0 commit comments

Comments
 (0)