diff --git a/rustfmt.toml b/rustfmt.toml index c884a33729c..7c384b876bf 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -53,4 +53,8 @@ ignore = [ # Code automatically generated and included. "compiler/rustc_codegen_gcc/src/intrinsic/archs.rs", "compiler/rustc_codegen_gcc/example", + + # Rustfmt doesn't support use closures yet + "tests/mir-opt/ergonomic-clones/closure.rs", + "tests/codegen/ergonomic-clones/closure.rs", ]