diff options
| author | Hirochika Matsumoto <git@hkmatsumoto.com> | 2021-12-02 19:22:46 +0900 |
|---|---|---|
| committer | Hirochika Matsumoto <git@hkmatsumoto.com> | 2021-12-04 23:51:56 +0900 |
| commit | 9b77a1e571041716ad0c446afd87949d40ed4de6 (patch) | |
| tree | b4885e1b557d5941abaaff036588cd8869c36a43 /compiler/rustc_mir_transform/src/coverage/tests.rs | |
| parent | 887999d163bace7e79370b952bdd1f930ff4cdd5 (diff) | |
| download | rust-9b77a1e571041716ad0c446afd87949d40ed4de6.tar.gz rust-9b77a1e571041716ad0c446afd87949d40ed4de6.zip | |
Don't suggest types whose inner type is erroneous
Currently, we check if the returned type equals to `tcx.ty_error()` not to emit erroneous types, but this has a pitfall; for example, `Option<[type error]> != tcx.ty_error()` holds.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions
