<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/proc-macro/dollar-crate.stdout, branch 1.63.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.63.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.63.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-09-13T03:26:17+00:00</updated>
<entry>
<title>Properly encode spans with a dummy location and non-root `SyntaxContext`</title>
<updated>2020-09-13T03:26:17+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-09-13T03:26:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a67d248b13e8ac6f83df8994f59e7b89f064339e'/>
<id>urn:sha1:a67d248b13e8ac6f83df8994f59e7b89f064339e</id>
<content type='text'>
Previously, we would throw away the `SyntaxContext` of any span with a
dummy location during metadata encoding. This commit makes metadata Span
encoding consistent with incr-cache Span encoding - an 'invalid span'
tag is only used when it doesn't lose any information.
</content>
</entry>
<entry>
<title>Remove normalization of `Span` debug output in proc-macro tests</title>
<updated>2020-08-09T18:41:51+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-08-09T17:36:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=db6b3c1ce4004b7834cbeb6d6b5feac74f7cd4c0'/>
<id>urn:sha1:db6b3c1ce4004b7834cbeb6d6b5feac74f7cd4c0</id>
<content type='text'>
Fixes #74800

The definition of `is_x86_feature_detected!` (and similar macros)
depends on the platform - it is produced by a `cfg_if!` invocation on
x86, and a plain `#[cfg]` on other platforms. Since it is part of the
prelude, we will end up importing different hygiene information
depending on the platform. This previously required us to avoid printing raw
`SyntaxContext` ids in any tests that uses the standard library, since
the captured output will be platform-dependent.

Previously, we replaced all `SyntaxContext` ids with "#CTXT", and the
raw `Span` lo/hi bytes with "LO..HI".

This commit adds `#![no_std]` and `extern crate std` to all proc-macro
tests that print spans. This suppresses the prelude import, while
still using lang items from `std` (which gives us a buildable binary).
With this apporach, we will only load hygiene information for things
which we explicitly import. This lets us re-add
`-Z unpretty=expanded,hygiene`, since its output can now be made stable
across all platforms.

Additionally, we use `-Z span-debug` in more places, which lets us avoid
the "LO..HI" normalization hack.
</content>
</entry>
<entry>
<title>Normalize the test output of hygiene-related tests</title>
<updated>2020-07-27T00:05:02+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-07-27T00:00:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7235a898a150ce77a214f51c30f9ac8bd8864a5'/>
<id>urn:sha1:f7235a898a150ce77a214f51c30f9ac8bd8864a5</id>
<content type='text'>
A raw SyntaxContext id is implicitly dependent on the target platform,
since libstd and libcore have platform-dependent #[cfg]s which affect
which macros are invoked. As a result, we must strip out any
SyntaxContext ids from test output to ensure that the captured stdout is
not platform-dependent.
</content>
</entry>
<entry>
<title>Hygiene serialization implementation</title>
<updated>2020-07-26T22:37:02+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-03-17T15:45:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0caebfabe6f3506355581b2fbfcfa0ca05a768fc'/>
<id>urn:sha1:0caebfabe6f3506355581b2fbfcfa0ca05a768fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>expand: Stop using nonterminals for passing tokens to attribute and derive macros</title>
<updated>2020-07-01T10:13:21+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2020-06-14T11:30:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a5764de00b8d953a4071c9318a31628fa0549982'/>
<id>urn:sha1:a5764de00b8d953a4071c9318a31628fa0549982</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update pretty tests</title>
<updated>2020-03-17T19:58:31+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2020-03-17T14:08:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=81172d8f39685fe52aac077c18ccdc899f94d363'/>
<id>urn:sha1:81172d8f39685fe52aac077c18ccdc899f94d363</id>
<content type='text'>
</content>
</entry>
<entry>
<title>proc_macro: Add `Span::mixed_site` exposing `macro_rules` hygiene</title>
<updated>2019-10-03T08:28:06+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2019-09-22T15:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1310dc6c989e191d85c73c943d4175fbf1dccb8'/>
<id>urn:sha1:d1310dc6c989e191d85c73c943d4175fbf1dccb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `with_{def_site,call_site,legacy}_ctxt,` methods to `Span`</title>
<updated>2019-09-05T14:07:17+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2019-08-28T09:41:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8cf9f5a025bb475804b5a90f54aca310b952526'/>
<id>urn:sha1:c8cf9f5a025bb475804b5a90f54aca310b952526</id>
<content type='text'>
Use these to create call-site spans for AST passes when needed.
</content>
</entry>
<entry>
<title>Move special treatment of `derive(Copy, PartialEq, Eq)` from expansion infrastructure to elsewhere</title>
<updated>2019-08-03T20:57:35+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2019-08-03T01:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a9b75281bfb03fc795568ac8fb6eeff7cac8034'/>
<id>urn:sha1:2a9b75281bfb03fc795568ac8fb6eeff7cac8034</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pprust: Use `print_mac_common` for delimited token groups</title>
<updated>2019-07-15T09:42:07+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2019-07-13T20:08:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11585b598ccf5942df405320bead98c096e93259'/>
<id>urn:sha1:11585b598ccf5942df405320bead98c096e93259</id>
<content type='text'>
</content>
</entry>
</feed>
