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
2 parents bea972d + 509ef55 commit 3ab9b60
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ For an overview, take a look at the [`flux` website](https://flux-rs.github.io).
# Docs

Documentation, including installation and usage guides can be found on the
[website](https://flux-rs.github.io/flux).
[website](https://flux-rs.github.io/flux).
3 changes: 0 additions & 3 deletions crates/flux-fhir-analysis/src/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,6 @@ impl<'a, 'tcx> ConvCtxt<'a, 'tcx> {

fn conv_base_ty(&self, env: &mut Env, bty: &fhir::BaseTy) -> QueryResult<rty::Ty> {
let sort = self.genv.sort_of_bty(bty);
// if sort.is_none() {
// println!("TRACE: conv_base_ty {bty:?} ==> None");
// }

if let fhir::BaseTyKind::Path(fhir::QPath::Resolved(self_ty, path)) = &bty.kind {
if let fhir::Res::Def(DefKind::AssocTy, def_id) = path.res {
Expand Down
1 change: 0 additions & 1 deletion crates/flux-fhir-analysis/src/wf/sortck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
}
fhir::ExprKind::Dot(var, fld) => {
let sort = self[var.name].clone();
// println!("TRACE: synth_expr {:?} ==> {sort:?}", var.source_info.name);
match &sort {
fhir::Sort::Record(def_id, sort_args) => {
self.genv
Expand Down
1 change: 1 addition & 0 deletions crates/flux-middle/src/fhir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ impl BaseTy {
BaseTyKind::Path(QPath::Resolved(_, Path { res: Res::PrimTy(PrimTy::Bool), .. }))
)
}

pub fn as_path(&self) -> Option<&Path> {
match &self.kind {
BaseTyKind::Path(QPath::Resolved(None, path)) => Some(path),
Expand Down

0 comments on commit 3ab9b60

Please sign in to comment.