]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy/clippy_lints/src/needless_pass_by_value.rs
Rollup merge of #106499 - lyming2007:issue-105946-fix, r=estebank
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Fri, 6 Jan 2023 06:08:57 +0000 (11:38 +0530)
committerGitHub <noreply@github.com>
Fri, 6 Jan 2023 06:08:57 +0000 (11:38 +0530)
commita8f7ec2c48326d6c018d79d444ac00012624e279
treea28469a22dc788f13458876a47105a4f7051015c
parent4b094c5933b6aad94db93b65e1f6e35564270258
parent10dbcf063033eb842a80ff386e268f8448ccf1ed
Rollup merge of #106499 - lyming2007:issue-105946-fix, r=estebank

fix [type error] for error E0029 and E0277

check explicitly for the type references error
if ty.references_error() is true change the error to be err.delay_as_bug() and prevent the error E0029 and E0277 from emitting out this fix #105946
compiler/rustc_hir_typeck/src/pat.rs
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs