diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-08 15:49:29 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-08 15:49:29 +0000 |
| commit | 1d93b358553f1942214e6800bb3fc68a521abe90 (patch) | |
| tree | b7f1e1eea1e4750f7c4a0d61b302b57dd5bd295f /compiler/rustc_trait_selection/src/traits | |
| parent | a7a40ddc795a61091b6da4b22b935d82e3c94342 (diff) | |
| download | rust-1d93b358553f1942214e6800bb3fc68a521abe90.tar.gz rust-1d93b358553f1942214e6800bb3fc68a521abe90.zip | |
Remove overloaded_span argument from `new`, where it is usually redundant with the main span
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index 0f4aa87b43f..aece4ab7922 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -714,7 +714,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> { obligation.cause.body_id, span, base_ty, - span, ); if let Some(steps) = autoderef.find_map(|(ty, steps)| { // Re-add the `&` |
