diff options
| author | lcnr <rust@lcnr.de> | 2022-01-19 10:33:23 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-01-19 13:58:29 +0100 |
| commit | 4bd571c4ffc3ce14a3584bd11e3f1f4883b2bff6 (patch) | |
| tree | cadcc970be226851b088da8cb0bbf8f12a484f9b /compiler/rustc_trait_selection/src/traits | |
| parent | 2f004d2d401682e553af3984ebd9a3976885e752 (diff) | |
remove `is_noop`
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/specialize/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs index cd2e0f18e0c..195a4a4a653 100644 --- a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs @@ -484,7 +484,7 @@ crate fn to_pretty_impl_header(tcx: TyCtxt<'_>, impl_def_id: DefId) -> Option<St let mut types_without_default_bounds = FxHashSet::default(); let sized_trait = tcx.lang_items().sized_trait(); - if !substs.is_noop() { + if !substs.is_empty() { types_without_default_bounds.extend(substs.types()); w.push('<'); w.push_str( |
