<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/replace-version-placeholder, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-01-07T21:46:18+00:00</updated>
<entry>
<title>Include rustc and rustdoc book in replace-version-placeholder</title>
<updated>2025-01-07T21:46:18+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2025-01-07T21:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eadb76ec98c15166d298e0e92da6ee55a61a6b75'/>
<id>urn:sha1:eadb76ec98c15166d298e0e92da6ee55a61a6b75</id>
<content type='text'>
</content>
</entry>
<entry>
<title>avoid replacing the definition of CURRENT_RUSTC_VERSION</title>
<updated>2025-01-06T20:53:48+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro@pietroalbini.org</email>
</author>
<published>2025-01-06T20:53:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80cdaeac3de16f48db1e187b2426c2517d5aa5ea'/>
<id>urn:sha1:80cdaeac3de16f48db1e187b2426c2517d5aa5ea</id>
<content type='text'>
Before this commit, replace-version-placeholder hardcoded the path
defining CURRENT_RUSTC_VERSION (to avoid replacing it). After a refactor
moved the file defining it without changing the hardcoded path, the tool
started replacing the constant itself with the version number.

To avoid this from happening in the future, this changes the definition
of the constant to avoid the tool from ever matching it.
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Only depend on CFG_VERSION in rustc_interface</title>
<updated>2023-05-18T04:54:21+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2023-05-08T09:12:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5f2b8e5c65b0406254b990296793f664c1926a0'/>
<id>urn:sha1:d5f2b8e5c65b0406254b990296793f664c1926a0</id>
<content type='text'>
this avoids having to rebuild the whole compiler on each commit when
`omit-git-hash = false`.
</content>
</entry>
<entry>
<title>Don't skip all directories when tidy-checking</title>
<updated>2023-03-27T18:52:47+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-03-21T11:44:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=436afdf1feab1a928538e8360ab6bfd3e1fef2ab'/>
<id>urn:sha1:436afdf1feab1a928538e8360ab6bfd3e1fef2ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ignore things in .gitignore in tidy</title>
<updated>2023-03-05T11:44:13+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>github@jyn.dev</email>
</author>
<published>2023-01-04T02:16:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1cccf2dd4cb342542a0c7d2e59445f6eedd32a85'/>
<id>urn:sha1:1cccf2dd4cb342542a0c7d2e59445f6eedd32a85</id>
<content type='text'>
- Switch from `walkdir` to `ignore`. This required various changes to
  make `skip` thread-safe.
- Ignore `build` anywhere in the source tree, not just at the top-level.
  We support this in bootstrap, we should support it in tidy too.

As a nice side benefit, this also makes tidy a bit faster.

Before:
```
; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"'
Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"
  Time (mean ± σ):      1.080 s ±  0.008 s    [User: 2.616 s, System: 3.243 s]
  Range (min … max):    1.069 s …  1.099 s    10 runs
```

After:
```
; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"'
Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"
  Time (mean ± σ):     705.0 ms ±   1.4 ms    [User: 3179.1 ms, System: 1517.5 ms]
  Range (min … max):   702.3 ms … 706.9 ms    10 runs
```
</content>
</entry>
<entry>
<title>Also replace the version placeholder in rustc_attr</title>
<updated>2022-09-01T23:47:01+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2022-08-30T21:05:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c4ec5df58201a9215248d6cf68865431b4d3e35'/>
<id>urn:sha1:0c4ec5df58201a9215248d6cf68865431b4d3e35</id>
<content type='text'>
This fixes rustdoc not showing the current version as stabilization version
for recently stabilized lang features.
</content>
</entry>
<entry>
<title>Add replace-version-placeholder tool</title>
<updated>2022-08-27T15:39:11+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2022-08-23T20:14:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d32ff14b86c72f55a113a3f477c42b2995e8c620'/>
<id>urn:sha1:d32ff14b86c72f55a113a3f477c42b2995e8c620</id>
<content type='text'>
This tool is to be ran at specific points in the release process to replace
the version place holder made by stabilizations with the version number.
</content>
</entry>
</feed>
