Moved the main impl for FnCtxt to its own file.

This is a solution to the file length being over 3000, something Clippy has a problem with.

The other solution to the file length is
1. to change the API of this struct by
2. encapulating certain fields of the struct into other structs.
This commit is contained in:
Nicholas-Baron 2020-10-10 17:43:32 -07:00
parent b1af43bc63
commit 21751fa93b
3 changed files with 2949 additions and 2936 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -76,6 +76,7 @@ pub mod dropck;
mod expectation;
mod expr;
mod fn_ctxt;
mod fn_ctxt_impl;
mod gather_locals;
mod generator_interior;
mod inherited;
@ -97,6 +98,7 @@ pub use check::{check_item_type, check_wf_new};
pub use diverges::Diverges;
pub use expectation::Expectation;
pub use fn_ctxt::FnCtxt;
pub use fn_ctxt_impl::*;
pub use inherited::{Inherited, InheritedBuilder};
use crate::astconv::AstConv;