]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #86571 - fee1-dead:const-trait-impl-fix, r=jackh726
authorbors <bors@rust-lang.org>
Sat, 3 Jul 2021 07:24:24 +0000 (07:24 +0000)
committerbors <bors@rust-lang.org>
Sat, 3 Jul 2021 07:24:24 +0000 (07:24 +0000)
commit701496384fd2d46557b3f013b50860c69c9848cc
treeb93a1be018014080bb5086d5d8818624cd918e3e
parentfdd9a071474d898556891d5146fd9e8d1a10a077
parent5e178b29b43adbd3313fbc70037cf7aba0c98a56
Auto merge of #86571 - fee1-dead:const-trait-impl-fix, r=jackh726

deny using default function in impl const Trait

Fixes #79450.

I don't know if my implementation is correct:

 - The check is in `rustc_passes::check_const`, should I put it somewhere else instead?
 - Is my approach (to checking the impl) optimal? It works for the current tests, but it might have some issues or there might be a better way of doing this.