<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_session/src/session.rs, branch 1.56.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-09-02T10:29:12+00:00</updated>
<entry>
<title>Add explanation for ctfe_backtrace lock</title>
<updated>2021-09-02T10:29:12+00:00</updated>
<author>
<name>bjorn3</name>
<email>bjorn3@users.noreply.github.com</email>
</author>
<published>2021-08-31T13:06:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=74c7f1267b2afe17332ba3aa6b00eb9452404cf3'/>
<id>urn:sha1:74c7f1267b2afe17332ba3aa6b00eb9452404cf3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove print_fuel_crate field of Session</title>
<updated>2021-09-02T10:29:11+00:00</updated>
<author>
<name>bjorn3</name>
<email>bjorn3@users.noreply.github.com</email>
</author>
<published>2021-08-30T12:41:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c9abc7e2bbed4afca2e7c8de7c7334d0a3724bb8'/>
<id>urn:sha1:c9abc7e2bbed4afca2e7c8de7c7334d0a3724bb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove optimization_fuel_crate from Session</title>
<updated>2021-09-02T10:29:11+00:00</updated>
<author>
<name>bjorn3</name>
<email>bjorn3@users.noreply.github.com</email>
</author>
<published>2021-08-30T12:36:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5464b2e713d5366b3aec5c6eebbe1b84a782c51e'/>
<id>urn:sha1:5464b2e713d5366b3aec5c6eebbe1b84a782c51e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `Session.if_let_suggestions`</title>
<updated>2021-08-27T23:28:22+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-08-27T23:28:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=672d370764862272735466346e9291dbf3163aeb'/>
<id>urn:sha1:672d370764862272735466346e9291dbf3163aeb</id>
<content type='text'>
We can instead if either the LHS or RHS types contain
`TyKind::Error`. In addition to covering the case where
we would have previously updated `if_let_suggestions`, this might
also prevent redundant errors in other cases as well.
</content>
</entry>
<entry>
<title>Rollup merge of #88218 - Aaron1011:missing-method-dyn, r=nagisa</title>
<updated>2021-08-25T13:48:51+00:00</updated>
<author>
<name>Léo Lanteri Thauvin</name>
<email>leseulartichaut@gmail.com</email>
</author>
<published>2021-08-25T13:48:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2cbbb93a2e0008f2907894ecd9fd9de3b39595b'/>
<id>urn:sha1:f2cbbb93a2e0008f2907894ecd9fd9de3b39595b</id>
<content type='text'>
Remove `Session.trait_methods_not_found`

Instead, avoid registering the problematic well-formed obligation
to begin with. This removes global untracked mutable state,
and avoids potential issues with incremental compilation.
</content>
</entry>
<entry>
<title>Remove `Session.trait_methods_not_found`</title>
<updated>2021-08-22T01:45:11+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-08-21T23:45:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41f9f38d6e19c669a14432b9ec56f26425c6c9e2'/>
<id>urn:sha1:41f9f38d6e19c669a14432b9ec56f26425c6c9e2</id>
<content type='text'>
Instead, avoid registering the problematic well-formed obligation
to begin with. This removes global untracked mutable state,
and avoids potential issues with incremental compilation.
</content>
</entry>
<entry>
<title>Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`</title>
<updated>2021-08-21T18:27:27+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-07-29T17:00:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=af46699f8104ba5257d0da56d3d817bf8fc751cf'/>
<id>urn:sha1:af46699f8104ba5257d0da56d3d817bf8fc751cf</id>
<content type='text'>
Instead of updating global state to mark attributes as used,
we now explicitly emit a warning when an attribute is used in
an unsupported position. As a side effect, we are to emit more
detailed warning messages (instead of just a generic "unused" message).

`Session.check_name` is removed, since its only purpose was to mark
the attribute as used. All of the callers are modified to use
`Attribute.has_name`

Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed
used' attribute is implemented by simply not performing any checks
in `CheckAttrVisitor` for a particular attribute.

We no longer emit unused attribute warnings for the `#[rustc_dummy]`
attribute - it's an internal attribute used for tests, so it doesn't
mark sense to treat it as 'unused'.

With this commit, a large source of global untracked state is removed.
</content>
</entry>
<entry>
<title>Include (potentially remapped) working dir in crate hash</title>
<updated>2021-08-15T20:17:37+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2021-08-12T20:30:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a895069c5023a82e9316d21854a81172c69d1418'/>
<id>urn:sha1:a895069c5023a82e9316d21854a81172c69d1418</id>
<content type='text'>
Fixes #85019

A `SourceFile` created during compilation may have a relative
path (e.g. if rustc itself is invoked with a relative path).
When we write out crate metadata, we convert all relative paths
to absolute paths using the current working direction.

However, the working directory is not included in the crate hash.
This means that the crate metadata can change while the crate
hash remains the same. Among other problems, this can cause a
fingerprint mismatch ICE, since incremental compilation uses
the crate metadata hash to determine if a foreign query is green.

This commit moves the field holding the working directory from
`Session` to `Options`, including it as part of the crate hash.
</content>
</entry>
<entry>
<title>Replace #[plugin_registrar] with exporting __rustc_plugin_registrar</title>
<updated>2021-08-10T12:20:48+00:00</updated>
<author>
<name>bjorn3</name>
<email>bjorn3@users.noreply.github.com</email>
</author>
<published>2021-05-14T13:37:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a501308ec1601c2b1d50230a061fb2700940727d'/>
<id>urn:sha1:a501308ec1601c2b1d50230a061fb2700940727d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #87761 - rusticstuff:rustc_error_overflow, r=Mark-Simulacrum</title>
<updated>2021-08-06T16:46:32+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2021-08-06T16:46:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b0e797ee6678175d1df9a01e944312b348d05b0'/>
<id>urn:sha1:3b0e797ee6678175d1df9a01e944312b348d05b0</id>
<content type='text'>
Fix overflow in rustc happening if the `err_count()` is reduced in a stage.

This can happen if stashed diagnostics are removed or replaced with fewer errors. The semantics stay the same if built without overflow checks. Fixes #84219.

Background: I came across this independently by running `RUSTFLAGS="-C overflow-checks=on" ./x.py test`. Fixing this will allow us to move on and find further overflow errors with testing or fuzzing.
</content>
</entry>
</feed>
