diff options
| author | yukang <moorekang@gmail.com> | 2025-01-17 13:24:09 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2025-01-17 15:41:05 +0800 |
| commit | 865a09d50a6eb5bb079310f0777e4e7afd1c676d (patch) | |
| tree | 0b2776fd76b7efa73ee3d9ec4a1c68f2a5ca6e64 /compiler/rustc_hir_analysis | |
| parent | bb3fa4b48eef8dc0815b0464e56f1fb82fe2cdfc (diff) | |
| download | rust-865a09d50a6eb5bb079310f0777e4e7afd1c676d.tar.gz rust-865a09d50a6eb5bb079310f0777e4e7afd1c676d.zip | |
remove unnecessary assertion for reference error
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/check.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs index ec82644ea5b..b0a6922ff72 100644 --- a/compiler/rustc_hir_analysis/src/check/check.rs +++ b/compiler/rustc_hir_analysis/src/check/check.rs @@ -1637,7 +1637,6 @@ fn check_type_alias_type_params_are_used<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalD let ty = tcx.type_of(def_id).instantiate_identity(); if ty.references_error() { // If there is already another error, do not emit an error for not using a type parameter. - assert!(tcx.dcx().has_errors().is_some()); return; } |
