Skip to content

Commit da3623a

Browse files
committed
Removed various double spaces in compiler source comments.
1 parent 44a500c commit da3623a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

compiler/rustc_abi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ pub enum FieldsShape {
11001100
/// named `inverse_memory_index`.
11011101
///
11021102
// FIXME(eddyb) build a better abstraction for permutations, if possible.
1103-
// FIXME(camlorn) also consider small vector optimization here.
1103+
// FIXME(camlorn) also consider small vector optimization here.
11041104
memory_index: Vec<u32>,
11051105
},
11061106
}

compiler/rustc_borrowck/src/places_conflict.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn place_components_conflict<'tcx>(
209209
match (elem, &base_ty.kind(), access) {
210210
(_, _, Shallow(Some(ArtificialField::ArrayLength)))
211211
| (_, _, Shallow(Some(ArtificialField::ShallowBorrow))) => {
212-
// The array length is like additional fields on the
212+
// The array length is like additional fields on the
213213
// type; it does not overlap any existing data there.
214214
// Furthermore, if cannot actually be a prefix of any
215215
// borrowed place (at least in MIR as it is currently.)

compiler/rustc_hir_typeck/src/expr_use_visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
417417
// Named constants have to be equated with the value
418418
// being matched, so that's a read of the value being matched.
419419
//
420-
// FIXME: We don't actually reads for ZSTs.
420+
// FIXME: We don't actually reads for ZSTs.
421421
needs_to_be_read = true;
422422
}
423423
_ => {

compiler/rustc_hir_typeck/src/method/probe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ pub type PickResult<'tcx> = Result<Pick<'tcx>, MethodError<'tcx>>;
232232
pub enum Mode {
233233
// An expression of the form `receiver.method_name(...)`.
234234
// Autoderefs are performed on `receiver`, lookup is done based on the
235-
// `self` argument of the method, and static methods aren't considered.
235+
// `self` argument of the method, and static methods aren't considered.
236236
MethodCall,
237237
// An expression of the form `Type::item` or `<T>::item`.
238238
// No autoderefs are performed, lookup is done based on the type each

compiler/rustc_session/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ fn parse_libs(matches: &getopts::Matches, error_format: ErrorOutputType) -> Vec<
20912091
.map(|s| {
20922092
// Parse string of the form "[KIND[:MODIFIERS]=]lib[:new_name]",
20932093
// where KIND is one of "dylib", "framework", "static", "link-arg" and
2094-
// where MODIFIERS are a comma separated list of supported modifiers
2094+
// where MODIFIERS are a comma separated list of supported modifiers
20952095
// (bundle, verbatim, whole-archive, as-needed). Each modifier is prefixed
20962096
// with either + or - to indicate whether it is enabled or disabled.
20972097
// The last value specified for a given modifier wins.

compiler/rustc_trait_selection/src/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ pub fn normalize_param_env_or_error<'tcx>(
308308
// the `TypeOutlives` predicates first inside the unnormalized parameter environment, and
309309
// then we normalize the `TypeOutlives` bounds inside the normalized parameter environment.
310310
//
311-
// This works fairly well because trait matching does not actually care about param-env
311+
// This works fairly well because trait matching does not actually care about param-env
312312
// TypeOutlives predicates - these are normally used by regionck.
313313
let outlives_predicates: Vec<_> = predicates
314314
.drain_filter(|predicate| {

0 commit comments

Comments
 (0)