fix: check vaild frist when relative_pos_range close #94#95
Conversation
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
|
Hi, yihong. Thank you for your contribution! The keyword
We can write code to check both issues and ensure that the program won't crash. However, the bugs from the caller function won't be detected. Considering that the bugs are conner cases, I think adding a visible notice will make sense? |
Hi thank you for the comments IMO for this kind of error the better way is do not panic and stop the world? can you try using RAPX for greptime, the error happens every time when using |
|
Hi yihong. I have checked the code and figured out the reason that caused this bug. In short, the An example: macro_rules! foo{
... // the sub_span locates at here
}
fn bar() { // span
foo!(...) // unfolded while compiling
}Then the previous code computes Thank you for your contribution! |
Thank you for the info, learned that |
as title, close #94