Skip to content

Comments

fix(span): add debug assertion for Span::new#15787

Closed
sapphi-red wants to merge 1 commit intomainfrom
11-17-fix_span_add_debug_assertion_for_span_new_
Closed

fix(span): add debug assertion for Span::new#15787
sapphi-red wants to merge 1 commit intomainfrom
11-17-fix_span_add_debug_assertion_for_span_new_

Conversation

@sapphi-red
Copy link
Member

No description provided.

@github-actions github-actions bot added A-linter Area - Linter A-parser Area - Parser C-bug Category - Bug labels Nov 17, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 17, 2025

CodSpeed Performance Report

Merging #15787 will not alter performance

Comparing 11-17-fix_span_add_debug_assertion_for_span_new_ (8096ef9) with main (b09aa09)

Summary

✅ 37 untouched

@overlookmotel
Copy link
Member

overlookmotel commented Nov 17, 2025

This is good. Incorrect spans are a common cause of panics in linter. The more checks the better.

I think we can go even further. It should always be true that start < end (not start <= end) except for the "no span" span SPAN. A node can't have an empty span.

@Boshen
Copy link
Member

Boshen commented Jan 21, 2026

Close as stale.

@Boshen Boshen closed this Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter A-parser Area - Parser C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants