<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_lint/src/lints.rs, 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-01-28T20:41:41+00:00</updated>
<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>address requested changes</title>
<updated>2024-01-23T13:16:24+00:00</updated>
<author>
<name>HTGAzureX1212.</name>
<email>39023054+HTGAzureX1212@users.noreply.github.com</email>
</author>
<published>2024-01-23T13:16:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3a07333a8aa873fcb75d50541f7f209e2a04f80f'/>
<id>urn:sha1:3a07333a8aa873fcb75d50541f7f209e2a04f80f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add list of characters to uncommon codepoints lint</title>
<updated>2024-01-23T02:56:33+00:00</updated>
<author>
<name>HTGAzureX1212.</name>
<email>39023054+HTGAzureX1212@users.noreply.github.com</email>
</author>
<published>2024-01-23T02:56:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f3682a1304200d554d2d36abf21376861b9ae14a'/>
<id>urn:sha1:f3682a1304200d554d2d36abf21376861b9ae14a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin"</title>
<updated>2024-01-22T14:24:31+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2024-01-22T12:23:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a20cf169792bd9a3f7edcb5ac27d89598f32616'/>
<id>urn:sha1:9a20cf169792bd9a3f7edcb5ac27d89598f32616</id>
<content type='text'>
This reverts commit 6d2b84b3ed7848fd91b8d6151d4451b3103ed816, reversing
changes made to 73bc12199ea8c7651ed98b069c0dd6b0bb5fabcf.
</content>
</entry>
<entry>
<title>Rollup merge of #119710 - Nilstrieb:let-_-=-oops, r=TaKO8Ki</title>
<updated>2024-01-22T06:56:41+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-01-22T06:56:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72dddeaeb78ff5bc95891f7846e4d360ebadc5fa'/>
<id>urn:sha1:72dddeaeb78ff5bc95891f7846e4d360ebadc5fa</id>
<content type='text'>
Improve `let_underscore_lock`

- lint if the lock was in a nested pattern
- lint if the lock is inside a `Result&lt;Lock, _&gt;`

addresses https://github.com/rust-lang/rust/pull/119704#discussion_r1444044745
</content>
</entry>
<entry>
<title>Add check for ui_testing via promoting parameters from `ParseSess` to `Session`</title>
<updated>2024-01-13T17:11:13+00:00</updated>
<author>
<name>George-lewis</name>
<email>george-lewis@user.noreply.github.com</email>
</author>
<published>2024-01-10T05:37:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=36a69e9d39b3dd49fefa2f84b2787a50230e0a32'/>
<id>urn:sha1:36a69e9d39b3dd49fefa2f84b2787a50230e0a32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve `let_underscore_lock`</title>
<updated>2024-01-12T22:18:58+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2024-01-07T19:37:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a04ac4952ce0fd9ac7a61da2eef1e2d8e4f9098d'/>
<id>urn:sha1:a04ac4952ce0fd9ac7a61da2eef1e2d8e4f9098d</id>
<content type='text'>
- lint if the lock was in a nested pattern
- lint if the lock is inside a `Result&lt;Lock, _&gt;`
</content>
</entry>
<entry>
<title>check rust lints when an unknown lint is detected</title>
<updated>2024-01-12T10:50:36+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2024-01-10T16:24:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ca421fe1d3cba0dbd1b0dcc52c3d040fce63971a'/>
<id>urn:sha1:ca421fe1d3cba0dbd1b0dcc52c3d040fce63971a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #119704 - chenyukang:yukang-fix-let_underscore, r=Nilstrieb</title>
<updated>2024-01-08T23:19:35+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-01-08T23:19:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5efa69d979445dd5c96adbb8981508afd3be2aa1'/>
<id>urn:sha1:5efa69d979445dd5c96adbb8981508afd3be2aa1</id>
<content type='text'>
Fix two variable binding issues in lint let_underscore

Fixes #119696
Fixes #119697
</content>
</entry>
<entry>
<title>Fix 2 variable binding issues in let_underscore</title>
<updated>2024-01-08T08:50:14+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2024-01-07T17:15:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=75df38e8165622e623fc24266ef4da49fd093933'/>
<id>urn:sha1:75df38e8165622e623fc24266ef4da49fd093933</id>
<content type='text'>
</content>
</entry>
</feed>
