-
Notifications
You must be signed in to change notification settings - Fork 17
refactor(hugrv2)!: combine TypeEnum with Term, no RV parametrization #2895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
3ec0890
Remove TypeRow(RV) from Type(RV), add from <const N: usize> [Type(RV)…
acl-cqc 7e65a1b
Merge remote-tracking branch 'origin/main' into acl/no_1type_row
acl-cqc 33618ba
Grab most type_param.rs changes
acl-cqc d383d39
And copy much of type_row.rs too
acl-cqc a3a5f2c
Remove TypeEnum, RowVar, MaybeRV, etc.
acl-cqc 92083e2
GeneralSum (w/out bound), serialize.rs
acl-cqc ae898bd
copy signature.rs/poly_func.rs
acl-cqc c88231e
A bunch of others...onto another stage of typechecking
acl-cqc 6948450
WIP types.rs/type_param.rs, conversions, etc.
acl-cqc 94625c2
collections (matches vs TypeArg::Runtime), pub(crate) Term::lub/copyable
acl-cqc b7fc0b8
updates to hugr-passes; non-test code builds
acl-cqc 041d536
many test fixes, except new_tuple
acl-cqc 73c4cec
new_tuple takes term; tests compile; fix prelude
acl-cqc cc22ad5
clippy+fmt
acl-cqc 573d59d
fix some tests, revert signature of SumType::new_tuple, Display for T…
acl-cqc 9c43e4b
fix serialization of GeneralSum
acl-cqc 57d7edf
Move as_sum/as_extension into Term; fmt; doc new_row_var_use
acl-cqc 86b1e89
hugr-llvm
acl-cqc e10f2c5
docs
acl-cqc af2a6f9
clippy+benchmarks
acl-cqc 8805064
update hugr-llvm snapshots
acl-cqc b996510
update snapshots more
acl-cqc 4f7be66
Remove TypeRV (use Term)
acl-cqc 0ac2b53
Make TypeRowRV a struct (the only panicking new); rm GeneralSum, SerT…
acl-cqc c563bde
docs
acl-cqc cfed69d
comment re. Type::validate
acl-cqc 2b231ae
Merge remote-tracking branch 'origin/main' into acl/no_1type_row
acl-cqc 3cbda59
Merge remote-tracking branch 'origin/main' into acl/no_1type_row
acl-cqc 88a0c0d
move validate/substitute into trait Substitutable
acl-cqc 62e67d9
Reparametrize signature
acl-cqc f42f66e
Add PartialEq<TypeRowRV> for TypeRow
acl-cqc 9035f6b
Reintroduce parametrized PolyFuncTypeBase...problems with deriving AR…
acl-cqc cfe35bf
Manually impl the ARbitrary's, it's straightforward even if tedious
acl-cqc 21d1db9
Move Substitutable into internals module to fix private_bounds warning
acl-cqc 531719e
doc
acl-cqc 16b4c5e
Merge branch 'acl/no_1type_row' into acl/type_wraps_term
acl-cqc 34cb99d
Fix json-encoding of type variables (showed only in extension defs)
acl-cqc 2962d96
TypeRowRV::new() is const no-args; use try_from, but use safe ctors more
acl-cqc 2471156
fix doctests
acl-cqc 07862d3
Use ? to convert TermTypeError -> SignatureError (*1)
acl-cqc cb877d0
Add From<TermTypeError> for OpLoadError
acl-cqc 2864663
impl From<TermTypeError> for ImportErrorInner
acl-cqc c0badc6
Merge remote-tracking branch 'origin/main' into acl/type_wraps_term
acl-cqc 83d9bde
reduce change to benchmark
acl-cqc 77a74c5
Try "optimizing"(?) import_signature not to import_func_type
acl-cqc c5011b8
Expand doc-comment for Term
acl-cqc 001055b
dataflow test no_outer_row_variables: use TypeRowRV::just_row_var to …
acl-cqc a764d14
small tweaks + change reduction
acl-cqc 2641710
Arbitrary for TypeRowRV includes row vars; test Term<->TypeRowRV roun…
acl-cqc 35ff825
avoid unwrap in validate/test row_variables
acl-cqc 3ad01d7
more conversion tests
acl-cqc d71c564
controlflow.rs: pull out tup_ty
acl-cqc 092ba1f
undo rename in array_scan...clarified code but confused change
acl-cqc 3c612d7
Reduce change in poly_func.rs by parametrizing everything by Substitu…
acl-cqc fb063c1
comments in serialize.rs
acl-cqc f71314c
serialize.rs: revert TypeArgSer to contain Type not SerSimpleType...c…
acl-cqc d489a3e
signature.rs: remove bogus comment in Arbitrary
acl-cqc bf41550
export.rs: restore export_poly_func_type and export_func_type but bot…
acl-cqc 6e354fd
Revert change to export_sum_variants
acl-cqc 397a778
import.rs: reparametrize import_func_type, revert adding import_signa…
acl-cqc f8ee718
type_param.rs: bogus comment re. Term::List/TypeRow
acl-cqc 9a64b77
type_param.rs tweaks
acl-cqc fb501c2
type_param.rs test tidies
acl-cqc cef21cd
type_param.rs doc-comment on validate
acl-cqc 0cd842e
typerow.rs docs
acl-cqc e0004c0
TypeRowRV::is_empty, hide Term::is_empty_list
acl-cqc 3a25e6e
Revert accidental widening of as_option() return-type, should be Opti…
acl-cqc c1fb66a
types.rs: comments
acl-cqc 1c19ce2
types.rs: Arbitrary: use TypeRowRV not TypeRow; revert to using .as_e…
acl-cqc 1ef81e5
Revert SumType::as_tuple -> return Opt<&TypeRowRV>
acl-cqc e58209f
types/custom.rs: unnecessary doc ref
acl-cqc 749786f
Implement Substitutable only for TypeRow(RV)
acl-cqc e44bae7
Rename Substitutable -> TypeRowLike, move into type_row.rs
acl-cqc 3a3bd42
type_param.rs: reduce change, move subst/validate back
acl-cqc 2697658
drop From<SumType/CustomType> for Term
acl-cqc 90b9fe3
easy comment removals
acl-cqc ca3aa2f
TypeRowRV::just_row_var=>new_var_use
acl-cqc 983470b
Generalize Term::new_list, adding Term::EMPTY_LIST; simplify many places
acl-cqc b67372a
Remove impl From<Vec<Type>> for Term, and also from array
acl-cqc 3cd0f44
hugr-llvm: use anyhow not expect
acl-cqc 272a866
Move TypeRowRV stuff later
acl-cqc 414e579
TypeRowRV: only from Vec or array of Type, not any IntoIter
acl-cqc 3a41dda
FromIterator for both TypeRowRV and TypeRow
acl-cqc 4646a1a
remove another ALAN
acl-cqc 80f1934
comment out get_alias_type and friends
acl-cqc c301ffd
driveby fix to Term::substitute
acl-cqc 43fedc2
hide TypeRowRV::new_unchecked
acl-cqc 903ca84
Remove new_unchecked, use try_into+expect until shown to be performan…
acl-cqc 9fe64c5
missing display specifier for Term::RuntimeExtension
acl-cqc 9bc14d8
todo alias -> unimplemented
acl-cqc 984cfba
fmt
acl-cqc 884684e
remove commented-out references to aliases
acl-cqc aa82fb6
Merge remote-tracking branch 'origin/main' into acl/type_wraps_term
acl-cqc a00561c
More remove commented-out references to aliases
acl-cqc 07490ea
Merge remote-tracking branch 'origin/main' into acl/type_wraps_term
acl-cqc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.