Skip to content

Commit

Permalink
Revert "Update mod.rs"
Browse files Browse the repository at this point in the history
This reverts commit cb9380f.
  • Loading branch information
mtshiba committed Sep 16, 2024
1 parent 9d88e8d commit b84fee1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/erg_compiler/ty/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,6 @@ impl HasType for Type {

impl HasLevel for Type {
fn level(&self) -> Option<usize> {
println!("lev: {self}");
match self {
Self::FreeVar(v) => v.level(),
Self::Ref(t) => t.level(),
Expand Down Expand Up @@ -2035,10 +2034,7 @@ impl HasLevel for Type {
Some(min)
}
}
Self::Structural(ty) => {
set_recursion_limit!(None, 128);
ty.level()
}
Self::Structural(ty) => ty.level(),
Self::Guard(guard) => guard.to.level(),
Self::Quantified(quant) => quant.level(),
Self::Bounded { sub, sup } => {
Expand Down

0 comments on commit b84fee1

Please sign in to comment.