<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_hir_analysis/src/check, branch 1.77.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.77.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.77.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-03-04T17:35:03+00:00</updated>
<entry>
<title>Improve wording of static_mut_ref</title>
<updated>2024-03-04T17:35:03+00:00</updated>
<author>
<name>Obei Sideg</name>
<email>obei.sideg@gmail.com</email>
</author>
<published>2024-02-17T19:01:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0656ed6afbbd190d0824d3810e8e57194109f075'/>
<id>urn:sha1:0656ed6afbbd190d0824d3810e8e57194109f075</id>
<content type='text'>
Rename `static_mut_ref` lint to `static_mut_refs`.

(cherry picked from commit 408eeae59d35cbcaab2cfb345d24373954e74fc5)
</content>
</entry>
<entry>
<title>Auto merge of #120346 - petrochenkov:ownodes, r=oli-obk</title>
<updated>2024-01-31T05:37:49+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-01-31T05:37:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d53ddcd8bbb41cd977ab4f7a54886fd7779c0eba'/>
<id>urn:sha1:d53ddcd8bbb41cd977ab4f7a54886fd7779c0eba</id>
<content type='text'>
hir: Refactor getters for owner nodes
</content>
</entry>
<entry>
<title>hir: Remove `hir::Map::{owner,expect_owner}`</title>
<updated>2024-01-30T12:00:52+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-01-25T17:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=db41f4aaa0c7a2506b02407c1b5183d84103d24b'/>
<id>urn:sha1:db41f4aaa0c7a2506b02407c1b5183d84103d24b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply suggestions from review</title>
<updated>2024-01-30T00:09:58+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-01-26T19:18:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=720d7a7a03b9997644fe28a12a80a910b2652760'/>
<id>urn:sha1:720d7a7a03b9997644fe28a12a80a910b2652760</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Deeply normalize when processing registered region obligations</title>
<updated>2024-01-30T00:06:53+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-12-18T22:45:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=028d29301f9cbd174f3e21652d1c20d58af132ce'/>
<id>urn:sha1:028d29301f9cbd174f3e21652d1c20d58af132ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>No need to pass region bound pairs to resolve_regions_with_wf_tys</title>
<updated>2024-01-30T00:06:53+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-12-19T00:42:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e11a6a9cacdae64f1ee6fd412af273931d3ef25a'/>
<id>urn:sha1:e11a6a9cacdae64f1ee6fd412af273931d3ef25a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop using `String` for error codes.</title>
<updated>2024-01-28T20:41:41+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-01-13T23:57:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d9dfbd08f38c2a9bc71d39de8f5c7776afe0f9e'/>
<id>urn:sha1:5d9dfbd08f38c2a9bc71d39de8f5c7776afe0f9e</id>
<content type='text'>
Error codes are integers, but `String` is used everywhere to represent
them. Gross!

This commit introduces `ErrCode`, an integral newtype for error codes,
replacing `String`. It also introduces a constant for every error code,
e.g. `E0123`, and removes the `error_code!` macro. The constants are
imported wherever used with `use rustc_errors::codes::*`.

With the old code, we have three different ways to specify an error code
at a use point:
```
error_code!(E0123)  // macro call

struct_span_code_err!(dcx, span, E0123, "msg");  // bare ident arg to macro call

\#[diag(name, code = "E0123")]  // string
struct Diag;
```

With the new code, they all use the `E0123` constant.
```
E0123  // constant

struct_span_code_err!(dcx, span, E0123, "msg");  // constant

\#[diag(name, code = E0123)]  // constant
struct Diag;
```

The commit also changes the structure of the error code definitions:
- `rustc_error_codes` now just defines a higher-order macro listing the
  used error codes and nothing else.
- Because that's now the only thing in the `rustc_error_codes` crate, I
  moved it into the `lib.rs` file and removed the `error_codes.rs` file.
- `rustc_errors` uses that macro to define everything, e.g. the error
  code constants and the `DIAGNOSTIC_TABLES`. This is in its new
  `codes.rs` file.
</content>
</entry>
<entry>
<title>Auto merge of #119911 - NCGThompson:is-statically-known, r=oli-obk</title>
<updated>2024-01-25T05:16:53+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-01-25T05:16:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=039d887928361df98ca530471b609378be93983a'/>
<id>urn:sha1:039d887928361df98ca530471b609378be93983a</id>
<content type='text'>
Replacement of #114390: Add new intrinsic `is_var_statically_known` and optimize pow for powers of two

This adds a new intrinsic `is_val_statically_known` that lowers to [``@llvm.is.constant.*`](https://llvm.org/docs/LangRef.html#llvm-is-constant-intrinsic).` It also applies the intrinsic in the int_pow methods to recognize and optimize the idiom `2isize.pow(x)`. See #114390 for more discussion.

While I have extended the scope of the power of two optimization from #114390, I haven't added any new uses for the intrinsic. That can be done in later pull requests.

Note: When testing or using the library, be sure to use `--stage 1` or higher. Otherwise, the intrinsic will be a noop and the doctests will be skipped. If you are trying out edits, you may be interested in [`--keep-stage 0`](https://rustc-dev-guide.rust-lang.org/building/suggested.html#faster-builds-with---keep-stage).

Fixes #47234
Resolves #114390
`@Centri3`
</content>
</entry>
<entry>
<title>Rollup merge of #120270 - compiler-errors:randos, r=lcnr</title>
<updated>2024-01-23T20:19:56+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-01-23T20:19:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b1c2eb44ce3f44bbf75aecf00244a946bc50abd'/>
<id>urn:sha1:3b1c2eb44ce3f44bbf75aecf00244a946bc50abd</id>
<content type='text'>
A bunch of random modifications

r? oli-obk

Kitchen sink of changes that I didn't know where to put elsewhere. Documentation tweaks mostly, but also removing some unreachable code and simplifying the pretty printing for closures/coroutines.
</content>
</entry>
<entry>
<title>Random type checker changes</title>
<updated>2024-01-23T15:10:23+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-01-23T15:10:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5fc39e0796bae3aaba08be70606bbb52ccddc1d3'/>
<id>urn:sha1:5fc39e0796bae3aaba08be70606bbb52ccddc1d3</id>
<content type='text'>
</content>
</entry>
</feed>
