(fix) conflicting negative impl marker and add tests

This commit is contained in:
Giang Dao
2024-09-13 23:07:08 +08:00
parent 842d6fc32e
commit b0db3a7bed
4 changed files with 36 additions and 1 deletions

View File

@@ -344,7 +344,8 @@ pub(crate) fn to_pretty_impl_header(tcx: TyCtxt<'_>, impl_def_id: DefId) -> Opti
write!(
w,
" {} for {}",
" {}{} for {}",
tcx.impl_polarity(impl_def_id).as_str(),
trait_ref.print_only_trait_path(),
tcx.type_of(impl_def_id).instantiate_identity()
)