about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2022-03-21 12:57:06 +0800
committerCharles Lew <crlf0710@gmail.com>2022-09-11 14:04:16 +0800
commit22f4bbb20f373b0c3d47788f58c95d60656918f2 (patch)
tree478ff4f6dae1a7afb05ce002c71bbb5bb1fd1dca /compiler/rustc_ty_utils
parent8aa30dd3cb18e4e6a1a5940addd8e744ab8d3eef (diff)
downloadrust-22f4bbb20f373b0c3d47788f58c95d60656918f2.tar.gz
rust-22f4bbb20f373b0c3d47788f58c95d60656918f2.zip
Apply formatting fixes
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r--compiler/rustc_ty_utils/src/instance.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs
index 87eca3d388b..edf47403c0d 100644
--- a/compiler/rustc_ty_utils/src/instance.rs
+++ b/compiler/rustc_ty_utils/src/instance.rs
@@ -263,10 +263,10 @@ fn resolve_associated_item<'tcx>(
                     let is_copy = self_ty.is_copy_modulo_regions(tcx.at(DUMMY_SP), param_env);
                     match self_ty.kind() {
                         _ if is_copy => (),
-                        ty::Generator(..) |
-                        ty::GeneratorWitness(..) |
-                        ty::Closure(..) |
-                        ty::Tuple(..) => {},
+                        ty::Generator(..)
+                        | ty::GeneratorWitness(..)
+                        | ty::Closure(..)
+                        | ty::Tuple(..) => {}
                         _ => return Ok(None),
                     };