<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_borrowck/src/diagnostics, branch 1.71.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.71.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.71.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-05-25T17:40:46+00:00</updated>
<entry>
<title>Remove DesugaringKind::Replace.</title>
<updated>2023-05-25T17:40:46+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2023-05-25T17:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=844c1cc5fec38f691a2ffb53ef3366f25cf7b02b'/>
<id>urn:sha1:844c1cc5fec38f691a2ffb53ef3366f25cf7b02b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #111912 - WaffleLapkin:is_some_and_in_the_compiler, r=petrochenkov</title>
<updated>2023-05-24T22:05:05+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2023-05-24T22:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0b3ebee6605b7b04cc81f32c9743db2970349ce'/>
<id>urn:sha1:d0b3ebee6605b7b04cc81f32c9743db2970349ce</id>
<content type='text'>
Use `Option::is_some_and` and `Result::is_ok_and` in the compiler

`.is_some_and(..)`/`.is_ok_and(..)` replace `.map_or(false, ..)` and `.map(..).unwrap_or(false)`, making the code more readable.

This PR is a sibling of https://github.com/rust-lang/rust/pull/111873#issuecomment-1561316515
</content>
</entry>
<entry>
<title>Use ObligationCtxt in custom type ops</title>
<updated>2023-05-24T16:06:32+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-05-18T20:42:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=521a0bcd1f9b47513d65d4f711f5b21a9a2eafdc'/>
<id>urn:sha1:521a0bcd1f9b47513d65d4f711f5b21a9a2eafdc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `is_some_and`/`is_ok_and` in less obvious spots</title>
<updated>2023-05-24T14:33:43+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-05-24T14:33:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=307799a711826294bc2b3e562cd87bf1e2ff28b4'/>
<id>urn:sha1:307799a711826294bc2b3e562cd87bf1e2ff28b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `Option::is_some_and` and `Result::is_ok_and` in the compiler</title>
<updated>2023-05-24T14:20:41+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-05-24T14:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb0f74a8c9e8b8f488ec5894d5d314caebf4c662'/>
<id>urn:sha1:fb0f74a8c9e8b8f488ec5894d5d314caebf4c662</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #110583 - Ezrashaw:tweak-make-mut-spans, r=estebank</title>
<updated>2023-05-09T07:03:45+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-05-09T07:03:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff30b8cb7bcf3eaee7a5222c8ec35adba4a0d243'/>
<id>urn:sha1:ff30b8cb7bcf3eaee7a5222c8ec35adba4a0d243</id>
<content type='text'>
tweak "make mut" spans when assigning to locals

Work towards fixing #106857

This PR just cleans up a lot of spans which is helpful before properly fixing the issues. Best reviewed commit-by-commit.

r? `@estebank`
</content>
</entry>
<entry>
<title>Rollup merge of #110827 - compiler-errors:issue-110761-followup, r=cjgillot</title>
<updated>2023-05-08T06:09:20+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-05-08T06:09:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e04c9019f03e7c3dc86a5f3b3ab779d326a47158'/>
<id>urn:sha1:e04c9019f03e7c3dc86a5f3b3ab779d326a47158</id>
<content type='text'>
Fix lifetime suggestion for type aliases with objects in them

Fixes an issue identified in https://github.com/rust-lang/rust/issues/110761#issuecomment-1520678479

This suggestion, like many other borrowck suggestions, are very fragile and there are other ways to trigger strange behavior even after this PR, so this is just a small improvement and not a total rework :skull:
</content>
</entry>
<entry>
<title>fix trait definition spans in "make mut" suggestion</title>
<updated>2023-05-05T11:11:54+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-04-21T11:49:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e64e986fe1cbaa3679cd228a6900304ebf81018'/>
<id>urn:sha1:3e64e986fe1cbaa3679cd228a6900304ebf81018</id>
<content type='text'>
</content>
</entry>
<entry>
<title>implement review comment</title>
<updated>2023-05-05T10:40:05+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>Ezrasure@outlook.com</email>
</author>
<published>2023-04-21T01:29:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2608dfabb3a353fd2ab25f8bb1abf04b497af3b'/>
<id>urn:sha1:d2608dfabb3a353fd2ab25f8bb1abf04b497af3b</id>
<content type='text'>
Co-authored-by: Esteban Kuber &lt;estebank@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>tweak spans for `ref mut` suggestion</title>
<updated>2023-05-05T10:40:05+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-04-20T06:58:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87a1b3840ecfebdcd22313ed37f0609732d8cf83'/>
<id>urn:sha1:87a1b3840ecfebdcd22313ed37f0609732d8cf83</id>
<content type='text'>
</content>
</entry>
</feed>
