Removed various double spaces in compiler source comments.

This commit is contained in:
André Vennberg 2023-01-14 17:34:59 +01:00
parent 44a500c8c1
commit da3623abab
6 changed files with 6 additions and 6 deletions

View File

@ -1100,7 +1100,7 @@ pub enum FieldsShape {
/// named `inverse_memory_index`. /// named `inverse_memory_index`.
/// ///
// FIXME(eddyb) build a better abstraction for permutations, if possible. // FIXME(eddyb) build a better abstraction for permutations, if possible.
// FIXME(camlorn) also consider small vector optimization here. // FIXME(camlorn) also consider small vector optimization here.
memory_index: Vec<u32>, memory_index: Vec<u32>,
}, },
} }

View File

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

View File

@ -417,7 +417,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
// Named constants have to be equated with the value // Named constants have to be equated with the value
// being matched, so that's a read of the value being matched. // being matched, so that's a read of the value being matched.
// //
// FIXME: We don't actually reads for ZSTs. // FIXME: We don't actually reads for ZSTs.
needs_to_be_read = true; needs_to_be_read = true;
} }
_ => { _ => {

View File

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

View File

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

View File

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