File tree 2 files changed +3
-4
lines changed
rustc_hir_analysis/src/check
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ fn check_impl_items_against_trait<'tcx>(
823
823
} ;
824
824
match ty_impl_item. kind {
825
825
ty:: AssocKind :: Const => {
826
- let _ = tcx. compare_impl_const ( (
826
+ tcx. ensure ( ) . compare_impl_const ( (
827
827
impl_item. expect_local ( ) ,
828
828
ty_impl_item. trait_item_def_id . unwrap ( ) ,
829
829
) ) ;
Original file line number Diff line number Diff line change @@ -743,12 +743,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
743
743
rustc_passes:: hir_id_validator:: check_crate ( tcx) ;
744
744
745
745
let sess = tcx. sess ;
746
- let mut entry_point = None ;
747
746
748
747
sess. time ( "misc_checking_1" , || {
749
748
parallel ! (
750
749
{
751
- entry_point = sess. time( "looking_for_entry_point" , || tcx. entry_fn( ( ) ) ) ;
750
+ sess. time( "looking_for_entry_point" , || tcx. ensure ( ) . entry_fn( ( ) ) ) ;
752
751
753
752
sess. time( "looking_for_derive_registrar" , || {
754
753
tcx. ensure( ) . proc_macro_decls_static( ( ) )
@@ -862,7 +861,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
862
861
863
862
// This check has to be run after all lints are done processing. We don't
864
863
// define a lint filter, as all lint checks should have finished at this point.
865
- sess. time ( "check_lint_expectations" , || tcx. check_expectations ( None ) ) ;
864
+ sess. time ( "check_lint_expectations" , || tcx. ensure ( ) . check_expectations ( None ) ) ;
866
865
} ) ;
867
866
868
867
if sess. opts . unstable_opts . print_vtable_sizes {
You can’t perform that action at this time.
0 commit comments