rust/src/librustc_typeck
Dylan DPC 63d1e372a6
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
2020-08-11 01:56:30 +02:00
..
check Rollup merge of #75098 - Ryan1729:clippy-pointer-cast-lint-experiment, r=oli-obk 2020-08-11 01:56:30 +02:00
coherence split ignore_qualifiers 2020-07-27 21:06:36 +02:00
collect impl review 2020-08-05 18:30:37 +02:00
impl_wf_check introduce PredicateAtom 2020-07-27 21:07:37 +02:00
outlives directly contain PredicateAtom in PredicateKind::ForAll 2020-07-27 21:08:14 +02:00
variance Added in explicit check for the type being matched 2020-07-31 21:33:55 +00:00
astconv.rs Change Ord impl for ParamKindOrd 2020-08-09 07:41:26 +00:00
Cargo.toml Move from log to tracing 2020-07-31 22:38:20 +02:00
check_unused.rs typeck: Use LocalDefIds for the unused trait import set 2020-06-15 21:06:13 +03:00
collect.rs rustc_typeck: use IndexSet in UniquePredicates 2020-08-09 12:25:22 -07:00
constrained_generic_params.rs introduce PredicateAtom 2020-07-27 21:07:37 +02:00
expr_use_visitor.rs Rollup merge of #74424 - sexxi-goose:move_hir_place, r=nikomatsakis 2020-07-17 14:09:26 -07:00
impl_wf_check.rs Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>. 2020-07-05 23:00:14 +03:00
lib.rs Rollup merge of #75098 - Ryan1729:clippy-pointer-cast-lint-experiment, r=oli-obk 2020-08-11 01:56:30 +02:00
mem_categorization.rs fix clippy::needless_return: remove unneeded return statements 2020-08-08 00:57:37 +02:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
structured_errors.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.