Skip to content

Commit a79d1f6

Browse files
committed
trailing whitespace
1 parent f3ea722 commit a79d1f6

File tree

1 file changed

+8
-4
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+8
-4
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,18 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
10271027
}
10281028
}
10291029

1030-
fn assoc_ty_contraint_param_error_emit(&self, gen_args: &GenericArgs, data: &ParenthesizedArgs) -> () {
1030+
fn assoc_ty_contraint_param_error_emit(
1031+
&self,
1032+
gen_args: &GenericArgs,
1033+
data: &ParenthesizedArgs,
1034+
) -> () {
10311035
let mut err = self.sess.struct_span_err(
10321036
gen_args.span(),
1033-
"parenthesized generic arguments cannot be used in associated type constraints"
1037+
"parenthesized generic arguments cannot be used in associated type constraints",
10341038
);
1035-
if let Ok(snippet) = self.sess.source_map().span_to_snippet(data.span)
1039+
if let Ok(snippet) = self.sess.source_map().span_to_snippet(data.span)
10361040
// Skip snippet with missing `)`
1037-
&& snippet.ends_with(')')
1041+
&& snippet.ends_with(')')
10381042
&& let Some(split) = snippet.find("(") {
10391043

10401044
let trait_name = &snippet[0..split];

0 commit comments

Comments
 (0)