diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-02-22 14:54:47 -0500 | 
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-05-19 12:21:45 +0000 | 
| commit | 5ff331142e03bede7f9c8264b8625caf6b65989c (patch) | |
| tree | 91b68c412532abe12f3cbd4e0a47f915db4b887f /compiler/rustc_interface/src/passes.rs | |
| parent | f0620c95038c1e586f5165d5d3be7cf009aaf387 (diff) | |
| download | rust-5ff331142e03bede7f9c8264b8625caf6b65989c.tar.gz rust-5ff331142e03bede7f9c8264b8625caf6b65989c.zip | |
Move check to existing pass
This alters the diagnostics a bit, as the trait method is still stable. The only thing this check does is ensure that compilation fails if a trait implementation is declared const-stable.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 4 | 
1 files changed, 0 insertions, 4 deletions
| diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 7a6ab62ef67..00119267e85 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -970,10 +970,6 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { sess.time("layout_testing", || layout_test::test_layout(tcx)); - sess.time("stable_impl_const_trait_checking", || { - rustc_passes::stability::check_const_impl_trait(tcx) - }); - // Avoid overwhelming user with errors if borrow checking failed. // I'm not sure how helpful this is, to be honest, but it avoids a // lot of annoying errors in the ui tests (basically, | 
