about summary refs log tree commit diff
path: root/compiler/rustc_span/src/span_encoding.rs
AgeCommit message (Collapse)AuthorLines
2023-10-16debug Span::ctxt() call detectionArthur Lafrance-1/+1
2023-10-16basic lint v2 implementedArthur Lafrance-1/+1
2023-10-16implement the basics of the lint static analysisArthur Lafrance-0/+1
2023-10-13Format all the let chains in compilerMichael Goulet-1/+1
2023-09-08Optimize `Span::is_dummy`.Nicholas Nethercote-0/+17
It's quite hot, and worth having a version that works directly at the `Span` level, rather than first converting to the `SpanData` level.
2023-09-08`Span` tweaks.Nicholas Nethercote-110/+128
`Span` has undergone some changes over the years (addition of an optional parent, and possible inlining of the context in interned spans) but the comments and identifiers used haven't kept up. As a result, I find it harder to understand than I should. This commit reworks the comments, renames some identifiers, and restructures the code slightly, all to make things clearer. I now feel like I understand this code again.
2023-04-18Refactor `SyntaxContext::ctxt` logic.Camille GILLOT-10/+14
2023-02-11Intern span when length is MAX_LEN with parent.Camille GILLOT-1/+6
2022-12-25Encode span parent in the inlined representation.Camille GILLOT-22/+64
2022-12-01Remove useless borrows and derefsMaybe Waffle-1/+1
2022-08-17Make names more explicit.Camille GILLOT-15/+21
2022-08-17Keep ctxt in encoded span representation.Camille GILLOT-9/+23
2022-02-25Enable rustc_pass_by_value for SpanMark Rousskov-2/+1
2022-02-25Switch bootstrap cfgsMark Rousskov-9/+2
2022-01-27try apply `rustc_pass_by_value` to `Span`lcnr-0/+9
2021-09-10Rename decode to data_untracked.Camille GILLOT-2/+2
2021-09-10Track span dependency using a callback.Camille GILLOT-0/+16
2021-09-10Keep a parent LocalDefId in SpanData.Camille GILLOT-3/+11
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-2/+1
2021-05-03Remove SpanInterner::getJoshua Nelson-6/+1
- It's used exactly once, so it's trivial to replace - It doesn't match the normal convention for containers: normally `get()` returns and option and indexing panics. Instead `get()` panicked and there's no indexing operation available.
2020-12-25Edit rustc_span documentationpierwill-5/+3
Various changes to the `rustc_span` docs, including the following: - Additions to top-level docs - Edits to the source_map module docs - Edits to documentation for `Span` and `SpanData` - Added intra-docs links - Documentation for Levenshtein distances - Fixed missing punctuation
2020-08-30mv compiler to compiler/mark-0/+133