<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_session/src/session.rs, branch 1.66.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.66.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.66.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-10-21T11:59:58+00:00</updated>
<entry>
<title>Rollup merge of #103051 - davidtwco:translation-tidying-up, r=compiler-errors</title>
<updated>2022-10-21T11:59:58+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2022-10-21T11:59:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e11511dfa648186b809cf2cd458af2110f5a6809'/>
<id>urn:sha1:e11511dfa648186b809cf2cd458af2110f5a6809</id>
<content type='text'>
translation: doc comments with derives, subdiagnostic-less enum variants, more derive use

- Adds support for `doc` attributes in the diagnostic derives so that documentation comments don't result in the derive failing.
- Adds support for enum variants in the subdiagnostic derive to not actually correspond to an addition to a diagnostic.
- Made use of the derive in more places in the `rustc_ast_lowering`, `rustc_ast_passes`, `rustc_lint`, `rustc_session`, `rustc_infer` - taking advantage of recent additions like eager subdiagnostics, multispan suggestions, etc.

cc #100717
</content>
</entry>
<entry>
<title>Remove `RunCompiler::emitter`.</title>
<updated>2022-10-17T21:48:58+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-10-12T23:23:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=641f8249f99b407af7e5376b098323926eab1696'/>
<id>urn:sha1:641f8249f99b407af7e5376b098323926eab1696</id>
<content type='text'>
It's no longer used.
</content>
</entry>
<entry>
<title>session: use derive more</title>
<updated>2022-10-17T08:54:24+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-10-14T12:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f8b628bce4fb3f71e660fb7d80e4bc5fdcaaee62'/>
<id>urn:sha1:f8b628bce4fb3f71e660fb7d80e4bc5fdcaaee62</id>
<content type='text'>
Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</content>
</entry>
<entry>
<title>errors: add `emit_note`/`create_note`</title>
<updated>2022-10-07T19:19:27+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-09-01T10:40:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f8ebc72b4aa138772434039950126f2c7f07a3f4'/>
<id>urn:sha1:f8ebc72b4aa138772434039950126f2c7f07a3f4</id>
<content type='text'>
Add `Noted` marker struct that implements `EmissionGuarantee` so that
`emit_note` and `create_note` can be implemented for struct diagnostics.

Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</content>
</entry>
<entry>
<title>Remove `-Ztime` option.</title>
<updated>2022-10-06T04:49:44+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-10-06T03:51:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9110d925d0b3e4842376e830f4404a28e1aa2658'/>
<id>urn:sha1:9110d925d0b3e4842376e830f4404a28e1aa2658</id>
<content type='text'>
The compiler currently has `-Ztime` and `-Ztime-passes`. I've used
`-Ztime-passes` for years but only recently learned about `-Ztime`.

What's the difference? Let's look at the `-Zhelp` output:
```
  -Z        time=val -- measure time of rustc processes (default: no)
  -Z time-passes=val -- measure time of each rustc pass (default: no)
```
The `-Ztime-passes` description is clear, but the `-Ztime` one is less so.
Sounds like it measures the time for the entire process?

No. The real difference is that `-Ztime-passes` prints out info about passes,
and `-Ztime` does the same, but only for a subset of those passes. More
specifically, there is a distinction in the profiling code between a "verbose
generic activity" and an "extra verbose generic activity". `-Ztime-passes`
prints both kinds, while `-Ztime` only prints the first one. (It took me
a close reading of the source code to determine this difference.)

In practice this distinction has low value. Perhaps in the past the "extra
verbose" output was more voluminous, but now that we only print stats for a
pass if it exceeds 5ms or alters the RSS, `-Ztime-passes` is less spammy. Also,
a lot of the "extra verbose" cases are for individual lint passes, and you need
to also use `-Zno-interleave-lints` to see those anyway.

Therefore, this commit removes `-Ztime` and the associated machinery. One thing
to note is that the existing "extra verbose" activities all have an extra
string argument, so the commit adds the ability to accept an extra argument to
the "verbose" activities.
</content>
</entry>
<entry>
<title>session: remove now-unnecessary lint `#[allow]`s</title>
<updated>2022-09-27T10:01:49+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-09-27T10:01:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2286888ef9441d1efe4d912f2d2d7e8ccc8abd11'/>
<id>urn:sha1:2286888ef9441d1efe4d912f2d2d7e8ccc8abd11</id>
<content type='text'>
In #101230, the internal diagnostic migration lints -
`diagnostic_outside_of_impl` and `untranslatable_diagnostic` - were
modified so that they wouldn't trigger on functions annotated with
`#[rustc_lint_diagnostics]`. However, this change has to make it into
the bootstrap compiler before the `#[allow]` annotations that it aims to
remove can be removed, which is possible now that #102051 has landed.

Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</content>
</entry>
<entry>
<title>FIX - adopt new Diagnostic naming in newly migrated modules</title>
<updated>2022-09-21T15:43:22+00:00</updated>
<author>
<name>Jhonny Bill Mena</name>
<email>jhonnybillm@gmail.com</email>
</author>
<published>2022-09-15T04:01:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e52e2344dc574922ce4f8ddfd508f8bfdec3f404'/>
<id>urn:sha1:e52e2344dc574922ce4f8ddfd508f8bfdec3f404</id>
<content type='text'>
FIX - ambiguous Diagnostic link in docs

UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic

[Gardening] FIX - formatting via `x fmt`

FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way

DELETE - unneeded allow attributes in Handler method

FIX - broken test

FIX - Rebase conflict

UPDATE - rename residual _SessionDiagnostic and fix LintDiag link
</content>
</entry>
<entry>
<title>UPDATE - rename DiagnosticHandler trait to IntoDiagnostic</title>
<updated>2022-09-21T15:39:52+00:00</updated>
<author>
<name>Jhonny Bill Mena</name>
<email>jhonnybillm@gmail.com</email>
</author>
<published>2022-09-18T15:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19b348fed44342d8addbbb5e8f67cda5dc8d9b95'/>
<id>urn:sha1:19b348fed44342d8addbbb5e8f67cda5dc8d9b95</id>
<content type='text'>
</content>
</entry>
<entry>
<title>UPDATE - move SessionDiagnostic from rustc_session to rustc_errors</title>
<updated>2022-09-21T15:39:52+00:00</updated>
<author>
<name>Jhonny Bill Mena</name>
<email>jhonnybillm@gmail.com</email>
</author>
<published>2022-09-07T13:36:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5b8152807cae152d5c7cfb40615e5a817a6cf750'/>
<id>urn:sha1:5b8152807cae152d5c7cfb40615e5a817a6cf750</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #101266 - LuisCardosoOliveira:translation-rustcsession-pt3, r=davidtwco</title>
<updated>2022-09-13T20:25:34+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-09-13T20:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bc8ec5e5fa241140ef53a37a002c5b88246ac3fa'/>
<id>urn:sha1:bc8ec5e5fa241140ef53a37a002c5b88246ac3fa</id>
<content type='text'>
translations(rustc_session): migrates rustc_session to use SessionDiagnostic - Final

# Description
This is the final part of the rustc_session https://github.com/rust-lang/rust/issues/100717#issuecomment-1220279883.

Please only review this [commit](https://github.com/rust-lang/rust/pull/101266/commits/a54534703774bfb9fc344f61d511760a7c43fe94). The other ones are from the PR https://github.com/rust-lang/rust/pull/101041# that is not yet merged.

In this PR, we migrate the file `output.rs`
</content>
</entry>
</feed>
