diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-09-01 14:59:07 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-09-01 15:04:50 -0700 |
| commit | 50983ba6df8effdeae993b2d4ed5eefe8c863bbf (patch) | |
| tree | effe17167cf4f518654b7febf43ac757d69a8b37 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 50171c310cd15e1b2d3723766ce64e2e4d6696fc (diff) | |
| download | rust-50983ba6df8effdeae993b2d4ed5eefe8c863bbf.tar.gz rust-50983ba6df8effdeae993b2d4ed5eefe8c863bbf.zip | |
rustdoc: Don't panic on ambiguous inherent associated types
Instead, return `Type::Infer` since compilation should fail anyway. That's how rustdoc handles `hir::TyKind::Err`s, so this just extends that behavior to `ty::Err`s when analyzing associated types. For some reason, the error is printed twice with rustdoc (though only once with rustc). I'm not sure why that is, but it's better than panicking. This commit also makes rustdoc fail early in the non-projection, non-error case, instead of returning a `Res::Err` that would likely cause rustdoc to panic later on. This change is originally from #88379.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
