-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add serde
support
#264
Add serde
support
#264
Conversation
Implements #260 |
/// The total length of the span. Think of this as an offset from `start`. | ||
length: SourceOffset, | ||
/// The total length of the span | ||
length: usize, | ||
} | ||
|
||
impl SourceSpan { | ||
/// Create a new [`SourceSpan`]. | ||
pub fn new(start: SourceOffset, length: SourceOffset) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be:
pub fn new(start: SourceOffset, length: SourceOffset) -> Self { | |
pub fn new(start: SourceOffset, length: usize) -> Self { |
But will be breaking change.
SourceOffset
may not represent length in no way. This looks more like a range (e.g 3..3
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make a pr for this once this lands? I'll mark it as breaking but that way we won't forget to do it.
There's a good chunk of desirable breaking changes in the pipeline right now and I think I'm gonna find some time to roll up 6.0 at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Looks like you need to fix a conflict, but also I'm not sure about those other dependencies you bumped? Those seem to be what's causing the CI issues |
Also you may as well add serde support to MietteDiagnostic while you're at it |
Why do you need to update those dependencies? |
I don't need to :) Just noticed they are outdated and thought it may be easy to fix it |
This reverts commit f2ef757.
Need to add serde to
MietteDiagnostic
too, when #262 is merged