-
Notifications
You must be signed in to change notification settings - Fork 27
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
Simplify SimpleType::from_nir for UnionType #213
Simplify SimpleType::from_nir for UnionType #213
Conversation
Looks like everything's green except for a clippy failure that's not related to this change. |
How about using |
Interesting! Is this because the new |
The fact that tests passed anyways is because serde_dhall is nowhere near as well-tested as dhall, since it's mostly a facade. Not great though |
Should be fixed in 846c14f . This should no longer cause a break with the new |
FYI, this is not about the new |
👍 to the change to use an error type. The main thing here was this: .map(|v| Ok(Self::from_nir(v)?)) This isn't the only codebase where we've seen that, but it's a subtle mixing of So we're looking to see if we can just remove it (perhaps over an edition). So far it's looking promising, since the error messages would be better and the cases I've found so far have been clearer without the mixing -- either using |
Thanks for spotting that, that was indeed a confusing mix |
Spotted in crater using a prototype of a has-breaking-changes version of rust-lang/rfcs#3058
TBD whether this change will ever be required, but I think it's a good change even if not.