diff options
| author | bors <bors@rust-lang.org> | 2019-12-24 18:02:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-24 18:02:10 +0000 |
| commit | a9c1c04e986dbf610be8cbe6a8107f90b4db61ce (patch) | |
| tree | 7ca546280b9c4523a8c2919d062a74690e69f1f8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | f6dca76be55dd6bb8d0d7d3b6bc39ae8373db506 (diff) | |
| parent | 05e3d200801a6236ddbb5b467b3b12a1b4ff15b2 (diff) | |
| download | rust-a9c1c04e986dbf610be8cbe6a8107f90b4db61ce.tar.gz rust-a9c1c04e986dbf610be8cbe6a8107f90b4db61ce.zip | |
Auto merge of #67241 - mark-i-m:simplify-borrow_check-3, r=matthewjasper
Refactorings to borrowck region diagnostic reporting This PR is a followup to #66886 and #67404 EDIT: updated In this PR: Clean up how errors are collected from NLL: introduce `borrow_check::diagnostics::RegionErrors` to collect errors. This is later passed to `MirBorrowckCtx::report_region_errors` after the `MirBorrowckCtx` is created. This will allow us to refactor away some of the extra context structs floating around (but we don't do it in this PR). `borrow_check::region_infer` is now mostly free of diagnostic generating code. The signatures of most of the functions in `region_infer` lose somewhere between 4 and 7 arguments :) Left for future (feedback appreciated): - Merge `ErrorRegionCtx` with `MirBorrowckCtx`, as suggested by @matthewjasper in https://github.com/rust-lang/rust/pull/66886#issuecomment-559949499 - Maybe move the contents of `borrow_check::nll` into `borrow_check` and remove the `nll` submodule altogether. - Find a way to make `borrow_check::diagnostics::region_errors` less of a strange appendage to `RegionInferenceContext`. I'm not really sure how to do this yet. Ideas welcome.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
