We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1494755 + 359f060 commit 8b1f449Copy full SHA for 8b1f449
1 file changed
compiler/rustc_type_ir/src/relate.rs
@@ -155,11 +155,10 @@ impl<I: Interner> Relate<I> for ty::FnSig<I> {
155
let cx = relation.cx();
156
157
if a.c_variadic != b.c_variadic {
158
- return Err(TypeError::VariadicMismatch({
159
- let a = a.c_variadic;
160
- let b = b.c_variadic;
161
- ExpectedFound::new(a, b)
162
- }));
+ return Err(TypeError::VariadicMismatch(ExpectedFound::new(
+ a.c_variadic,
+ b.c_variadic,
+ )));
163
}
164
165
if a.safety != b.safety {
0 commit comments