]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #75098 - Ryan1729:clippy-pointer-cast-lint-experiment, r=oli-obk
authorDylan DPC <dylan.dpc@gmail.com>
Mon, 10 Aug 2020 23:56:30 +0000 (01:56 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Aug 2020 23:56:30 +0000 (01:56 +0200)
commit9e73d3368041a74fac40328d91605364e0cedcd7
tree27d789fd52956c9a474200829567d464d586ff9a
parent01bba2c532c1f8bfc1463d672c6b2fc79bd96495
parent873e5f5c19818cd0106764fc649c1edadf24972a
Rollup merge of #75098 - Ryan1729:clippy-pointer-cast-lint-experiment, r=oli-obk

Clippy pointer cast lint experiment

This PR is an experiment about exposing more parts of `rustc_typeck` for use in `clippy`. In particular, the code that checks where a cast is valid or not was exposed, which necessitated exposing [`FnCtxt`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_typeck/check/struct.FnCtxt.html), and figuring out how to create an instance of that type inside `clippy`.

This was prompted by [this clippy issue](https://github.com/rust-lang/rust-clippy/issues/2064).

r? @oli-obk