Skip to content

Commit 3efecc6

Browse files
committed
use macros from formality_core in formality_types
1 parent ac11606 commit 3efecc6

File tree

9 files changed

+9
-15
lines changed

9 files changed

+9
-15
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/formality-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ edition = "2021"
99
anyhow = "1.0.65"
1010
lazy_static = "1.4.0"
1111
formality-core = { path = "../formality-core" }
12-
formality-macros = { path = "../formality-macros" }
1312
tracing = "0.1"
1413
contracts = "0.6.3"
1514
stacker = "0.1.15"

crates/formality-types/src/grammar/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod valtree;
33
use crate::cast::{DowncastTo, Upcast, UpcastFrom};
44

55
use super::{Parameter, Ty, Variable};
6-
use formality_macros::{term, Visit};
6+
use formality_core::{term, Visit};
77
use std::sync::Arc;
88
pub use valtree::*;
99

crates/formality-types/src/grammar/consts/valtree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use formality_macros::Visit;
1+
use formality_core::Visit;
22

33
use crate::cast::{Upcast, UpcastFrom};
44

crates/formality-types/src/grammar/formulas.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use formality_macros::term;
1+
use formality_core::term;
22

33
use crate::cast::To;
44
use crate::cast::Upcast;
@@ -119,11 +119,7 @@ impl Predicate {
119119
Predicate::AliasEq(AliasTy { name, parameters }, ty) => {
120120
let mut params = parameters.clone();
121121
params.push(ty.clone().upcast());
122-
(
123-
Skeleton::AliasEq(name.clone()),
124-
params,
125-
)
126-
122+
(Skeleton::AliasEq(name.clone()), params)
127123
}
128124
Predicate::WellFormedTraitRef(TraitRef {
129125
trait_id,

crates/formality-types/src/grammar/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use contracts::requires;
2-
use formality_macros::{term, Visit};
2+
use formality_core::{term, Visit};
33
use std::{collections::BTreeSet, sync::Arc};
44

55
mod debug_impls;

crates/formality-types/src/grammar/wc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::Arc;
22

3-
use formality_macros::term;
3+
use formality_core::term;
44

55
use crate::{
66
cast::{DowncastFrom, DowncastTo, Upcast, UpcastFrom, Upcasted},

crates/formality-types/src/judgment/test_filtered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
use std::sync::Arc;
44

5-
use formality_macros::{term, test};
5+
use formality_core::{term, test};
66

7-
use crate::{judgment_fn};
7+
use crate::judgment_fn;
88

99
#[term($edges)]
1010
struct Graph {

crates/formality-types/src/judgment/test_reachable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use std::sync::Arc;
44

5-
use formality_macros::term;
5+
use formality_core::term;
66

77
use crate::judgment_fn;
88

0 commit comments

Comments
 (0)