mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Remove erroneous merge conflict
This commit is contained in:
parent
6db9605d85
commit
51e15ac709
@ -513,10 +513,6 @@ impl<'a, 'tcx> TypeFolder<'tcx> for SubstFolder<'a, 'tcx> {
|
|||||||
&mut self,
|
&mut self,
|
||||||
c: &'tcx ty::Const<'tcx>,
|
c: &'tcx ty::Const<'tcx>,
|
||||||
) -> Result<&'tcx ty::Const<'tcx>, Self::Error> {
|
) -> Result<&'tcx ty::Const<'tcx>, Self::Error> {
|
||||||
if !c.potentially_needs_subst() {
|
|
||||||
return Ok(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
if let ty::ConstKind::Param(p) = c.val {
|
if let ty::ConstKind::Param(p) = c.val {
|
||||||
Ok(self.const_for_param(p, c))
|
Ok(self.const_for_param(p, c))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user