Skip to content

Commit 51e15ac

Browse files
committed
Remove erroneous merge conflict
1 parent 6db9605 commit 51e15ac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/rustc_middle/src/ty/subst.rs

-4
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,6 @@ impl<'a, 'tcx> TypeFolder<'tcx> for SubstFolder<'a, 'tcx> {
513513
&mut self,
514514
c: &'tcx ty::Const<'tcx>,
515515
) -> Result<&'tcx ty::Const<'tcx>, Self::Error> {
516-
if !c.potentially_needs_subst() {
517-
return Ok(c);
518-
}
519-
520516
if let ty::ConstKind::Param(p) = c.val {
521517
Ok(self.const_for_param(p, c))
522518
} else {

0 commit comments

Comments
 (0)