Skip to content

Commit

Permalink
Merge pull request #107 from xiyuzhai/main
Browse files Browse the repository at this point in the history
update expect
  • Loading branch information
xiyuzhai committed Jun 29, 2024
2 parents 06218fa + 8562262 commit 5f4249a
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -54,7 +54,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -74,7 +74,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -54,7 +54,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -54,7 +54,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -54,7 +54,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -34,7 +34,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -54,7 +54,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -74,7 +74,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -94,7 +94,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -114,7 +114,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand All @@ -134,7 +134,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command: Some(
Command {
title: "#deps",
command: "deps",
command: "husky-analyzer.deps",
arguments: None,
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ DiagnosticSheet {
diagnostics: [],
},
expr_ty_diagnostic_sheet: ExprTypeDiagnosticSheet {
diagnostics: [
Diagnostic {
message: "place error cannot convert to const",
severity: Error,
range: [29:19, 29:49),
},
],
diagnostics: [],
},
}
```
6 changes: 4 additions & 2 deletions crates/kernel/husky-fly-term/src/term/quary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ pub type FlyPlaceResult<T> = Result<T, FlyPlaceError>;
impl FlyQuary {
pub(crate) fn bind(&self, contract: Contract) -> FlyPlaceResult<()> {
match (contract, self) {
(Contract::Compterm, FlyQuary::Compterm) => Ok(()),
(Contract::Compterm, _) => Err(FlyPlaceError::CannotConvertToConst),
// (Contract::Compterm, FlyQuary::Compterm) => Ok(()),
// (Contract::Compterm, _) => Err(FlyPlaceError::CannotConvertToConst),
// ad hoc
(Contract::Compterm, _) => Ok(()),
(Contract::Leash, FlyQuary::Leashed { .. }) => Ok(()),
(Contract::Leash, _) => todo!("error"),
(Contract::Pure, _) => Ok(()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1851,11 +1851,15 @@
),
},
resolve_progress: ExpectationProgress::Resolved(
Err(
FlyTermExpectationError::Original(
OriginalFlyTermExpectationError::Place(
CannotConvertToConst,
),
Ok(
ExpectationOutcome::Coercion(
ExpectCoercionOutcome {
coercion: Trivial(
TrivialFlyCoercion {
expectee_quary: Transient,
},
),
},
),
),
),
Expand Down

0 comments on commit 5f4249a

Please sign in to comment.