diff options
| author | Ilya Yanok <ilya.yanok@gmail.com> | 2021-10-28 13:23:49 +0000 |
|---|---|---|
| committer | Ilya Yanok <ilya.yanok@gmail.com> | 2021-10-28 13:23:49 +0000 |
| commit | 6f942a2f4a0487a7428a9aba8f018eb45cdb924e (patch) | |
| tree | 435ac02c461ad40f026e16eceeeeb5d975290339 | |
| parent | 6c61db44073ce96176850ea5db5dc99624823d91 (diff) | |
| download | rust-6f942a2f4a0487a7428a9aba8f018eb45cdb924e.tar.gz rust-6f942a2f4a0487a7428a9aba8f018eb45cdb924e.zip | |
Reformat the changed line to make tidy happy
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 8bd842a5e06..60676ad3f4f 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1547,8 +1547,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { // Check if a bound would previously have been removed when normalizing // the param_env so that it can be given the lowest priority. See // #50825 for the motivation for this. - let is_global = - |cand: &ty::PolyTraitRef<'tcx>| cand.is_global(self.infcx.tcx) && !cand.has_late_bound_regions(); + let is_global = |cand: &ty::PolyTraitRef<'tcx>| { + cand.is_global(self.infcx.tcx) && !cand.has_late_bound_regions() + }; // (*) Prefer `BuiltinCandidate { has_nested: false }`, `PointeeCandidate`, // and `DiscriminantKindCandidate` to anything else. |
