diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-07-27 22:24:43 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-07-28 01:41:52 +0200 |
| commit | dbd0fd2c2a6c0c5ea649dfb4d2a1b3d09e725ca0 (patch) | |
| tree | 94d4d48ddbd3ee9929868c7017eed7e6136ed3ea /compiler/rustc_trait_selection/src | |
| parent | 70f74719a92ef52bc28610ba04b7e98ada035ec9 (diff) | |
| download | rust-dbd0fd2c2a6c0c5ea649dfb4d2a1b3d09e725ca0.tar.gz rust-dbd0fd2c2a6c0c5ea649dfb4d2a1b3d09e725ca0.zip | |
Fix ICE in `diagnostic_hir_wf_check`
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index 13a6733fb47..c134af44992 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -240,8 +240,8 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { let mut err = match *error { SelectionError::Unimplemented => { - // If this obligation was generated as a result of well-formed checking, see if we - // can get a better error message by performing HIR-based well formed checking. + // If this obligation was generated as a result of well-formedness checking, see if we + // can get a better error message by performing HIR-based well-formedness checking. if let ObligationCauseCode::WellFormed(Some(wf_loc)) = root_obligation.cause.code.peel_derives() { |
