Skip to content

Commit

Permalink
done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjit Jhala committed Nov 2, 2023
1 parent e518f0f commit bea972d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/flux-fhir-analysis/src/wf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl<'a, 'tcx> Wf<'a, 'tcx> {
if let fhir::GenericArg::Type(ty) = arg {
self.check_ty_is_base(ty)?;
} else {
bug!("expected type argument got `{arg:?}`")
bug!("expected type argument got `{arg:?}`");
}
}
}
Expand Down Expand Up @@ -498,7 +498,7 @@ impl<'a, 'tcx> Wf<'a, 'tcx> {
}
let snapshot = self.xi.snapshot();

if let fhir::Res::Def(_kind, did) = &path.res /*&& !matches!(_kind, DefKind::TyParam) */ && path.args.len() > 0 {
if let fhir::Res::Def(_kind, did) = &path.res /*&& !matches!(_kind, DefKind::TyParam) */ && !path.args.is_empty() {
self.check_generic_args(infcx, *did, &path.args)?;
}
let bindings = self.check_type_bindings(infcx, &path.bindings);
Expand Down

0 comments on commit bea972d

Please sign in to comment.