<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/issues/issue-66667-function-cmp-cycle.rs, branch 1.52.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.52.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.52.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-03-11T19:35:46+00:00</updated>
<entry>
<title>Fix cycle error when emitting suggestion for mismatched `fn` type</title>
<updated>2020-03-11T19:35:46+00:00</updated>
<author>
<name>Aaron Hill</name>
<email>aa1ronham@gmail.com</email>
</author>
<published>2020-03-11T19:35:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff65bffe2b143528ff90d5226b18ceca750d7c02'/>
<id>urn:sha1:ff65bffe2b143528ff90d5226b18ceca750d7c02</id>
<content type='text'>
Fixes #66667

Previously, we called `tcx.typeck_tables_of` when determining whether or
not to emit a suggestion for a type error. However, we might already be
type-checking the `DefId` we pass to `typeck_tables_of` (it could be
anywhere in the query stack).

Fortunately, we only need the function signature, not the entire
`TypeckTables`. By using `tcx.fn_sig`, we avoid the possibility of cycle
errors while retaining the ability to emit a suggestion.
</content>
</entry>
</feed>
