<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs, branch lcnr/rustc-dev-guide</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-29T22:31:44+00:00</updated>
<entry>
<title>add rustfmt settings file</title>
<updated>2025-03-29T22:31:44+00:00</updated>
<author>
<name>Tshepang Mbambo</name>
<email>tshepang@gmail.com</email>
</author>
<published>2025-03-29T22:31:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9302f4d94f97750e84a47eaf5ac180feaaaafa3a'/>
<id>urn:sha1:9302f4d94f97750e84a47eaf5ac180feaaaafa3a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>example assumes a static exists</title>
<updated>2025-03-29T22:16:39+00:00</updated>
<author>
<name>Tshepang Mbambo</name>
<email>tshepang@gmail.com</email>
</author>
<published>2025-03-29T22:16:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=471a2a8b87d8b5ba03a43a2c067dd322c1f5e7af'/>
<id>urn:sha1:471a2a8b87d8b5ba03a43a2c067dd322c1f5e7af</id>
<content type='text'>
This was removed, likely by mistake, during a refactor.
</content>
</entry>
<entry>
<title>update rustc-{driver,interface} examples</title>
<updated>2025-03-29T21:52:57+00:00</updated>
<author>
<name>Tshepang Mbambo</name>
<email>tshepang@gmail.com</email>
</author>
<published>2025-03-29T21:52:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1faf7ff9a434de8995e97e7372408489ce87050e'/>
<id>urn:sha1:1faf7ff9a434de8995e97e7372408489ce87050e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adapt to rust-lang/rust#136466:</title>
<updated>2025-03-16T15:27:10+00:00</updated>
<author>
<name>Yang Lin</name>
<email>yanglin@smail.nju.edu.cn</email>
</author>
<published>2025-03-16T15:27:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a4b76e31f8f906e31256b2c8f696e39b2ee36c41'/>
<id>urn:sha1:a4b76e31f8f906e31256b2c8f696e39b2ee36c41</id>
<content type='text'>
Start removing `rustc_middle::hir::map::Map`

Following commit f86f7ad from pull request #136466
in the Rust project
(https://github.com/rust-lang/rust),
some methods in `Map` were moved to `TyCtxt`.
This update reimplements `rustc-drive-example.rs`,
`rustc-driver-interacting-with-the-ast.rs`,
and `rustc-interface-example.rs` using the new
versions of these methods, ensuring compatibility
with the nightly-2025-03-08 toolchain.
</content>
</entry>
<entry>
<title>Fix examples to work with nightly-2025-02-13</title>
<updated>2025-02-15T18:44:32+00:00</updated>
<author>
<name>Florian Brucker</name>
<email>mail@florianbrucker.de</email>
</author>
<published>2025-02-15T18:44:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dce265224a7674814d4d81a81192bf9077ed2edd'/>
<id>urn:sha1:dce265224a7674814d4d81a81192bf9077ed2edd</id>
<content type='text'>
While there were comments indicating which nightly versions the examples
were tested with, those versions did not work for me: neither did the
examples compile, nor did they produce the expected output.

This commit fixes the compilation issues, using nightly-2025-02-13 for
all examples (previously the version differed between the examples) and,
in the case of the `rustc_driver` examples, also fixes the argument
passing: rustc ignores the first argument, so we need to pass the
filename as the second (otherwise we only get the help text printed).

Note that the `rustc-interface-getting-diagnostics.rs` example still
does not produce any output, which I assume is not how it is intended.
However, I don't know enough to fix it.

To avoid inconsistencies between the documented version and the actually
required version I've moved the version comment from the Markdown into
the Rust code where it hopefully won't be forgotten as easily.

Finally I've clarified in the examples' README that you also need to use
the proper nightly version when compiling the examples, not just when
running them.
</content>
</entry>
<entry>
<title>tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`</title>
<updated>2025-02-03T10:25:57+00:00</updated>
<author>
<name>Askar Safin</name>
<email>safinaskar@mail.ru</email>
</author>
<published>2025-02-03T03:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0a21f1d0a2fe9e84727a2de735fdcf55e8820db6'/>
<id>urn:sha1:0a21f1d0a2fe9e84727a2de735fdcf55e8820db6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make crate AST mutation accessible for driver callback</title>
<updated>2025-01-28T19:45:20+00:00</updated>
<author>
<name>Mohammad Omidvar</name>
<email>m_omidvart@sfu.ca</email>
</author>
<published>2025-01-28T19:45:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5dfe0f8cf49110491ec0391c4b94b56834d65aef'/>
<id>urn:sha1:5dfe0f8cf49110491ec0391c4b94b56834d65aef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove RunCompiler</title>
<updated>2025-01-23T09:38:58+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-01-22T14:13:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a77776cc1d7c599f4ff9355ffe01bad2e2b5bbad'/>
<id>urn:sha1:a77776cc1d7c599f4ff9355ffe01bad2e2b5bbad</id>
<content type='text'>
It has become nothing other than a wrapper around run_compiler.
</content>
</entry>
<entry>
<title>Remove set_make_codegen_backend and set_file_loader</title>
<updated>2025-01-23T09:38:58+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-01-22T14:00:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=974db1a6e444e2b053f49a8d3242db335669acef'/>
<id>urn:sha1:974db1a6e444e2b053f49a8d3242db335669acef</id>
<content type='text'>
They can both be set inside the config callback too.
</content>
</entry>
<entry>
<title>Rework the driver docs (#2162)</title>
<updated>2024-12-27T12:40:32+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2024-12-27T12:40:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1289e54d588047e1ce1e22cf0fa7e41de2e6068b'/>
<id>urn:sha1:1289e54d588047e1ce1e22cf0fa7e41de2e6068b</id>
<content type='text'>
</content>
</entry>
</feed>
