<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_span/src/lib.rs, branch 1.51.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.51.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.51.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-01-23T20:41:17+00:00</updated>
<entry>
<title>Add disambiugator to ExpnData</title>
<updated>2021-01-23T20:41:17+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-12-07T22:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3540f9396aff85110277af03b68b3303f3a8b7d3'/>
<id>urn:sha1:3540f9396aff85110277af03b68b3303f3a8b7d3</id>
<content type='text'>
Due to macro expansion, its possible to end up with two distinct
`ExpnId`s that have the same `ExpnData` contents. This violates the
contract of `HashStable`, since two unequal `ExpnId`s will end up with
equal `Fingerprint`s.

This commit adds a `disambiguator` field to `ExpnData`, which is used to
force two otherwise-equivalent `ExpnData`s to be distinct.
</content>
</entry>
<entry>
<title>Properly handle `SyntaxContext` of dummy spans in incr comp</title>
<updated>2021-01-13T20:20:29+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-01-03T15:09:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=482a67d20f3c7059c33368df424f781585ead7cc'/>
<id>urn:sha1:482a67d20f3c7059c33368df424f781585ead7cc</id>
<content type='text'>
Fixes #80336

Due to macro expansion, we may end up with spans with an invalid
location and non-root `SyntaxContext`. This commits preserves the
`SyntaxContext` of such spans in the incremental cache, and ensures
that we always hash the `SyntaxContext` when computing the `Fingerprint`
of a `Span`

Previously, we would discard the `SyntaxContext` during serialization to
the incremental cache, causing the span's `Fingerprint` to change across
compilation sessions.
</content>
</entry>
<entry>
<title>Auto merge of #79012 - tgnottingham:span_data_to_lines_and_cols, r=estebank</title>
<updated>2021-01-11T21:32:50+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-01-11T21:32:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe531d5a5f1404281e3fb237daaf87b8180bd13d'/>
<id>urn:sha1:fe531d5a5f1404281e3fb237daaf87b8180bd13d</id>
<content type='text'>
rustc_span: add span_data_to_lines_and_cols to caching source map view
</content>
</entry>
<entry>
<title>resolve: Scope visiting doesn't need an `Ident`</title>
<updated>2021-01-07T13:09:47+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2021-01-07T12:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ff866ed7c814add27d32a31caaf29fa44cb53f5'/>
<id>urn:sha1:3ff866ed7c814add27d32a31caaf29fa44cb53f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add edition 2021.</title>
<updated>2020-12-31T18:06:09+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-12-30T13:33:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f16ef7d7ce0357d63435201ae51e2c0a6916e07d'/>
<id>urn:sha1:f16ef7d7ce0357d63435201ae51e2c0a6916e07d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #80358 - pierwill:edit_rustc_span, r=lcnr</title>
<updated>2020-12-30T09:15:11+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-12-30T09:15:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6064be7ced9e56a8b10cb33c4183b07a6f55965d'/>
<id>urn:sha1:6064be7ced9e56a8b10cb33c4183b07a6f55965d</id>
<content type='text'>
Edit rustc_span documentation

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
</content>
</entry>
<entry>
<title>Edit rustc_span documentation</title>
<updated>2020-12-25T22:02:52+00:00</updated>
<author>
<name>pierwill</name>
<email>pierwill@users.noreply.github.com</email>
</author>
<published>2020-12-24T07:01:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8775d44e9f273b8ec03a0a881f2dc6800eb3027'/>
<id>urn:sha1:a8775d44e9f273b8ec03a0a881f2dc6800eb3027</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Remap instrument-coverage line numbers in doctests</title>
<updated>2020-12-19T12:22:24+00:00</updated>
<author>
<name>Arpad Borsos</name>
<email>arpad.borsos@googlemail.com</email>
</author>
<published>2020-12-06T12:57:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=830ceaa41908bd428e36b1a804dd93c9a257aea8'/>
<id>urn:sha1:830ceaa41908bd428e36b1a804dd93c9a257aea8</id>
<content type='text'>
This uses the `SourceMap::doctest_offset_line` method to re-map line
numbers from doctests. Remapping columns is not yet done.

Part of issue #79417.
</content>
</entry>
<entry>
<title>rustc_span: add span_data_to_lines_and_cols to caching source map view</title>
<updated>2020-12-04T02:36:34+00:00</updated>
<author>
<name>Tyson Nottingham</name>
<email>tgnottingham@gmail.com</email>
</author>
<published>2020-09-21T00:40:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=75de8286c04af256762804ee96b08a68d2aba279'/>
<id>urn:sha1:75de8286c04af256762804ee96b08a68d2aba279</id>
<content type='text'>
Gives a performance increase over calling byte_pos_to_line_and_col
twice, partially because it decreases the function calling overhead,
potentially because it doesn't populate the line cache with lines that
turn out to belong to invalid spans, and likely because of some other
incidental improvements made possible by having more context available.
</content>
</entry>
<entry>
<title>Fix some clippy lints</title>
<updated>2020-12-03T22:08:19+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>jyn514@gmail.com</email>
</author>
<published>2020-12-03T22:06:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0ad3dce83a4506875e6b1381f5261e458b5c5d98'/>
<id>urn:sha1:0ad3dce83a4506875e6b1381f5261e458b5c5d98</id>
<content type='text'>
</content>
</entry>
</feed>
