<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_expand/src/mut_visit, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-05-05T23:06:02+00:00</updated>
<entry>
<title>Move some tests from `rustc_expand` to `rustc_parse`.</title>
<updated>2024-05-05T23:06:02+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-05-02T23:26:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2acbe9c7438478b022fa52e54ba3ceb8ca570c20'/>
<id>urn:sha1:2acbe9c7438478b022fa52e54ba3ceb8ca570c20</id>
<content type='text'>
There are some test cases involving `parse` and `tokenstream` and
`mut_visit` that are located in `rustc_expand`. Because it used to be
the case that constructing a `ParseSess` required the involvement of
`rustc_expand`. However, since #64197 merged (a long time ago)
`rust_expand` no longer needs to be involved.

This commit moves the tests into `rustc_parse`. This is the optimal
place for the `parse` tests. It's not ideal for the `tokenstream` and
`mut_visit` tests -- they would be better in `rustc_ast` -- but they
still rely on parsing, which is not available in `rustc_ast`. But
`rustc_parse` is lower down in the crate graph and closer to `rustc_ast`
than `rust_expand`, so it's still an improvement for them.

The exact renaming is as follows:

- rustc_expand/src/mut_visit/tests.rs -&gt; rustc_parse/src/parser/mut_visit/tests.rs
- rustc_expand/src/tokenstream/tests.rs -&gt; rustc_parse/src/parser/tokenstream/tests.rs
- rustc_expand/src/tests.rs + rustc_expand/src/parse/tests.rs -&gt;
  compiler/rustc_parse/src/parser/tests.rs

The latter two test files are combined because there's no need for them
to be separate, and having a `rustc_parse::parser::parse` module would
be weird. This also means some `pub(crate)`s can be removed.
</content>
</entry>
<entry>
<title>rustc_ast: Turn `MutVisitor::token_visiting_enabled` into a constant</title>
<updated>2021-10-17T21:23:24+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2021-10-17T21:06:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2470e74e133de90c227e6d22dfd3391277333b3'/>
<id>urn:sha1:d2470e74e133de90c227e6d22dfd3391277333b3</id>
<content type='text'>
It's a visitor property rather than something that needs to be determined at runtime
</content>
</entry>
<entry>
<title>Rework SESSION_GLOBALS API to prevent overwriting it</title>
<updated>2021-07-08T14:16:28+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2021-05-05T19:31:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a2654fb64c9c9d368063b488693d8da17bc9b4e9'/>
<id>urn:sha1:a2654fb64c9c9d368063b488693d8da17bc9b4e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ast: Stop using `Mod` in `Crate`</title>
<updated>2021-02-18T10:07:49+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2021-02-14T18:14:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eb65f15c7800930c3f74288974689d9884e51ba0'/>
<id>urn:sha1:eb65f15c7800930c3f74288974689d9884e51ba0</id>
<content type='text'>
Crate root is sufficiently different from `mod` items, at least at syntactic level.

Also remove customization point for "`mod` item or crate root" from AST visitors.
</content>
</entry>
<entry>
<title>rustc_ast: `visit_mac` -&gt; `visit_mac_call`</title>
<updated>2020-11-03T20:39:51+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2020-11-03T17:34:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90fafc8c8ff680fc631a44230d8352d7911e70f2'/>
<id>urn:sha1:90fafc8c8ff680fc631a44230d8352d7911e70f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_ast: Do not panic by default when visiting macro calls</title>
<updated>2020-11-03T17:38:20+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2020-11-03T17:26:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3237b3886c8d1bd19b78eda6040e2c55e5332a82'/>
<id>urn:sha1:3237b3886c8d1bd19b78eda6040e2c55e5332a82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Expand `NtExpr` tokens only in key-value attributes</title>
<updated>2020-11-02T21:53:43+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2020-09-27T13:52:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19dbb02a8923c5ffd969d4d7ac3008c4df7326e9'/>
<id>urn:sha1:19dbb02a8923c5ffd969d4d7ac3008c4df7326e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mv compiler to compiler/</title>
<updated>2020-08-30T15:45:07+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-08-28T03:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e5f7d5631b8f4009ac1c693e585d4b7108d4275'/>
<id>urn:sha1:9e5f7d5631b8f4009ac1c693e585d4b7108d4275</id>
<content type='text'>
</content>
</entry>
</feed>
