<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_log, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-12T10:11:15+00:00</updated>
<entry>
<title>Add documentation for init_logger_with_additional_layer</title>
<updated>2025-06-12T10:11:15+00:00</updated>
<author>
<name>Stypox</name>
<email>stypox@pm.me</email>
</author>
<published>2025-06-12T10:09:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=781baafbe4501e079489f76fdd6fb439252f467d'/>
<id>urn:sha1:781baafbe4501e079489f76fdd6fb439252f467d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use closure to allow passing custom tracing layers</title>
<updated>2025-06-11T08:42:50+00:00</updated>
<author>
<name>Stypox</name>
<email>stypox@pm.me</email>
</author>
<published>2025-06-11T08:23:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc96ca8bbad7fb4c7546fb98807e826723fc6c1d'/>
<id>urn:sha1:fc96ca8bbad7fb4c7546fb98807e826723fc6c1d</id>
<content type='text'>
The previous method, where a layer would be passed directly,
required to pass a "no-op" layer when no custom layer was needed.
This should have in theory worked, however having a no-op layer
seems to change the way the tracing lib applies filters internally,
leading to some debug!() being printed despite them being out of
the minimum level for the filters. Note however that this behavior
was very inconsistent, and e.g. some debug!() would get printed
and some others wouldn't, for no apparent reason.
</content>
</entry>
<entry>
<title>Allow initializing logger with additional tracing Layer</title>
<updated>2025-06-11T08:41:22+00:00</updated>
<author>
<name>Stypox</name>
<email>stypox@pm.me</email>
</author>
<published>2025-05-12T14:27:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0d74252537b6fd3ae6287486dbeec437cf021efa'/>
<id>urn:sha1:0d74252537b6fd3ae6287486dbeec437cf021efa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow linking rustc and rustdoc against the same single tracing crate</title>
<updated>2025-05-03T17:18:50+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2025-05-03T16:57:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00d3fdce7cb36a8c3fa090f797bdd093665cbe93'/>
<id>urn:sha1:00d3fdce7cb36a8c3fa090f797bdd093665cbe93</id>
<content type='text'>
By consecutively initializing `tracing` and `rustc_log`, Rustdoc assumes
that these involve 2 different tracing crates.

I would like to be able to build rustdoc against the same tracing crate
that rustc_log is also built against. Previously this arrangement would
crash rustdoc:

    thread 'main' panicked at rust/compiler/rustc_log/src/lib.rs:142:65:
    called `Result::unwrap()` on an `Err` value: SetGlobalDefaultError("a global default trace dispatcher has already been set")
    stack backtrace:
       0: rust_begin_unwind
       1: core::panicking::panic_fmt
       2: core::result::unwrap_failed
       3: rustc_log::init_logger
       4: rustc_driver_impl::init_logger
       5: rustdoc::main
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

    error: the compiler unexpectedly panicked. this is a bug.

    note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&amp;template=ice.md

    note: please make sure that you have updated to the latest nightly

    query stack during panic:
    end of query stack
</content>
</entry>
<entry>
<title>Use `-Wunused_crate_dependencies` for compiler crates.</title>
<updated>2025-03-19T21:59:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-03-03T07:59:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8121958fda43759fa94e3f74f7cdbb595ddcc0e5'/>
<id>urn:sha1:8121958fda43759fa94e3f74f7cdbb595ddcc0e5</id>
<content type='text'>
It's very useful. There are some false positives involving integration
tests in `rustc_pattern_analysis` and `rustc_serialize`. There is also a
false positive involving `rustc_driver_impl`'s
`rustc_randomized_layouts` feature. And I removed a `rustc_span` mention
in a doc comment in `rustc_log` because it wasn't integral to the
comment but caused a dev-dependency.
</content>
</entry>
<entry>
<title>Revert "Use workspace lints for crates in `compiler/` #138084"</title>
<updated>2025-03-10T10:12:47+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-03-10T10:12:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=063ef18fdc10cb0eb49e1af855e1a8e807e73eed'/>
<id>urn:sha1:063ef18fdc10cb0eb49e1af855e1a8e807e73eed</id>
<content type='text'>
Revert &lt;https://github.com/rust-lang/rust/pull/138084&gt; to buy time to
consider options that avoids breaking downstream usages of cargo on
distributed `rustc-src` artifacts, where such cargo invocations fail due
to inability to inherit `lints` from workspace root manifest's
`workspace.lints` (this is only valid for the source rust-lang/rust
workspace, but not really the distributed `rustc-src` artifacts).

This breakage was reported in
&lt;https://github.com/rust-lang/rust/issues/138304&gt;.

This reverts commit 48caf81484b50dca5a5cebb614899a3df81ca898, reversing
changes made to c6662879b27f5161e95f39395e3c9513a7b97028.
</content>
</entry>
<entry>
<title>Specify rust lints for `compiler/` crates via Cargo.</title>
<updated>2025-03-07T21:41:09+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-03-06T00:53:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61'/>
<id>urn:sha1:beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61</id>
<content type='text'>
By naming them in `[workspace.lints.rust]` in the top-level
`Cargo.toml`, and then making all `compiler/` crates inherit them with
`[lints] workspace = true`. (I omitted `rustc_codegen_{cranelift,gcc}`,
because they're a bit different.)

The advantages of this over the current approach:
- It uses a standard Cargo feature, rather than special handling in
  bootstrap. So, easier to understand, and less likely to get
  accidentally broken in the future.
- It works for proc macro crates.

It's a shame it doesn't work for rustc-specific lints, as the comments
explain.
</content>
</entry>
<entry>
<title>Upgrade the compiler to edition 2024</title>
<updated>2025-02-22T00:01:48+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-20T18:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=76d341fa09c423e601e2c47f8e4d165fcb7c21aa'/>
<id>urn:sha1:76d341fa09c423e601e2c47f8e4d165fcb7c21aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid naming variables `str`</title>
<updated>2025-01-07T12:30:02+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-01-07T12:12:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb6bbfa13f97e6ef30ecd63c835c99cf7762bd6e'/>
<id>urn:sha1:bb6bbfa13f97e6ef30ecd63c835c99cf7762bd6e</id>
<content type='text'>
This renames variables named `str` to other names, to make sure `str`
always refers to a type.

It's confusing to read code where `str` (or another standard type name)
is used as an identifier. It also produces misleading syntax
highlighting.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
</feed>
