Skip to content

Commit b5d0321

Browse files
committed
add a comment
1 parent 50b3192 commit b5d0321

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
25962596
trait_def_id != *def_id
25972597
&& trait_name == self.tcx.item_name(def_id)
25982598
&& trait_has_same_params(*def_id)
2599-
// `PointeeSized` is removed during lowering.
2599+
// Skip `PointeeSized` here to avoid creating `PointeeSized` solver obligations during error reporting.
26002600
&& !self.tcx.is_lang_item(*def_id, LangItem::PointeeSized)
26012601
&& self.predicate_must_hold_modulo_regions(&Obligation::new(
26022602
self.tcx,

0 commit comments

Comments
 (0)