1
Fork 0

remove is_noop

This commit is contained in:
lcnr 2022-01-19 10:33:23 +01:00
parent 2f004d2d40
commit 4bd571c4ff
4 changed files with 4 additions and 8 deletions

View file

@ -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(