Skip to content

Commit ac9dd1b

Browse files
author
Alexander Regueiro
committed
Fixed up a few comments.
1 parent 481068a commit ac9dd1b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/bootstrap/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ pub struct Compiler {
197197

198198
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
199199
pub enum DocTests {
200-
// Default, run normal tests and doc tests.
200+
/// Run normal tests and doc tests (default).
201201
Yes,
202-
// Do not run any doc tests.
202+
/// Do not run any doc tests.
203203
No,
204-
// Only run doc tests.
204+
/// Only run doc tests.
205205
Only,
206206
}
207207

@@ -221,10 +221,10 @@ pub enum GitRepo {
221221
/// methods specifically on this structure itself (to make it easier to
222222
/// organize).
223223
pub struct Build {
224-
// User-specified configuration via config.toml
224+
/// User-specified configuration from `config.toml`.
225225
config: Config,
226226

227-
// Derived properties from the above two configurations
227+
// Properties derived from the above configuration
228228
src: PathBuf,
229229
out: PathBuf,
230230
rust_info: channel::GitInfo,
@@ -240,12 +240,12 @@ pub struct Build {
240240
doc_tests: DocTests,
241241
verbosity: usize,
242242

243-
// Targets for which to build.
243+
// Targets for which to build
244244
build: Interned<String>,
245245
hosts: Vec<Interned<String>>,
246246
targets: Vec<Interned<String>>,
247247

248-
// Stage 0 (downloaded) compiler and cargo or their local rust equivalents.
248+
// Stage 0 (downloaded) compiler and cargo or their local rust equivalents
249249
initial_rustc: PathBuf,
250250
initial_cargo: PathBuf,
251251

@@ -255,7 +255,7 @@ pub struct Build {
255255
cxx: HashMap<Interned<String>, cc::Tool>,
256256
ar: HashMap<Interned<String>, PathBuf>,
257257
ranlib: HashMap<Interned<String>, PathBuf>,
258-
// Misc
258+
// Miscellaneous
259259
crates: HashMap<Interned<String>, Crate>,
260260
is_sudo: bool,
261261
ci_env: CiEnv,

src/librustc_typeck/check/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4458,7 +4458,7 @@ pub fn check_bounds_are_used<'tcx>(tcx: TyCtxt<'tcx>, generics: &ty::Generics, t
44584458
return;
44594459
}
44604460

4461-
// Make a vector of booleans initially false, set to true when used.
4461+
// Make a vector of booleans initially `false`; set to `true` when used.
44624462
let mut types_used = vec![false; own_counts.types];
44634463

44644464
for leaf_ty in ty.walk() {
@@ -4467,7 +4467,7 @@ pub fn check_bounds_are_used<'tcx>(tcx: TyCtxt<'tcx>, generics: &ty::Generics, t
44674467
types_used[index as usize - own_counts.lifetimes] = true;
44684468
} else if let ty::Error = leaf_ty.sty {
44694469
// If there is already another error, do not emit
4470-
// an error for not using a type Parameter.
4470+
// an error for not using a type parameter.
44714471
assert!(tcx.sess.has_errors());
44724472
return;
44734473
}

0 commit comments

Comments
 (0)