Files
rust/compiler/rustc_span/src
Matthias Krüger a2ae171b97 Rollup merge of #140485 - Jarcho:from_expansion_opt, r=petrochenkov
Optimize the codegen for `Span::from_expansion`

See https://godbolt.org/z/bq65Y6bc4 for the difference. the new version is less than half the number of instructions.

Also tried fully writing the function by hand:
```rust
sp.ctxt_or_parent_or_marker != 0
        && (
            sp.len_with_tag_or_marker == BASE_LEN_INTERNED_MARKER
            || sp.len_with_tag_or_marker & PARENT_TAG == 0
        )
```

But that was no better than this PR's current use of `match_span_kind`.
2025-05-02 19:37:56 +02:00
..
2025-01-08 21:26:39 +01:00
2025-03-06 11:11:55 -08:00
2025-03-27 18:29:06 +00:00
2025-04-24 12:54:40 +08:00
2024-07-29 08:26:52 +10:00