Skip to content

Avoid various uses of Option<Span> in favor of using DUMMY_SP in the few cases that used None#122480

Merged
bors merged 1 commit intorust-lang:masterfrom
oli-obk:const-eval-span-no-opt
Mar 18, 2024
Merged

Avoid various uses of Option<Span> in favor of using DUMMY_SP in the few cases that used None#122480
bors merged 1 commit intorust-lang:masterfrom
oli-obk:const-eval-span-no-opt

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented Mar 14, 2024

based on #122471

DUMMY_SP is already the sentinel value we have that says "no span". We don't need to wrap these Spans in a separate Option.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants