diff options
| author | Roland Kuhn <rk@rkuhn.info> | 2020-04-05 19:25:32 +0200 |
|---|---|---|
| committer | Roland Kuhn <rk@rkuhn.info> | 2020-04-05 19:25:32 +0200 |
| commit | 2275b875c2a2bdca40cfad44e6f9c4b0a99c4f05 (patch) | |
| tree | 06178d758e6825f96850fc60f297946f39845cb5 | |
| parent | e129923b7e4d58a92c8a0530cd6eaa5be548342d (diff) | |
| download | rust-2275b875c2a2bdca40cfad44e6f9c4b0a99c4f05.tar.gz rust-2275b875c2a2bdca40cfad44e6f9c4b0a99c4f05.zip | |
expose suggestions::InferCtxtExt for clippy
| -rw-r--r-- | src/librustc_trait_selection/traits/error_reporting/suggestions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_trait_selection/traits/error_reporting/suggestions.rs b/src/librustc_trait_selection/traits/error_reporting/suggestions.rs index fcec29aaa8e..14c87b001ab 100644 --- a/src/librustc_trait_selection/traits/error_reporting/suggestions.rs +++ b/src/librustc_trait_selection/traits/error_reporting/suggestions.rs @@ -22,7 +22,8 @@ use std::fmt; use super::InferCtxtPrivExt; use crate::traits::query::evaluate_obligation::InferCtxtExt as _; -crate trait InferCtxtExt<'tcx> { +// public for clippy +pub trait InferCtxtExt<'tcx> { fn suggest_restricting_param_bound( &self, err: &mut DiagnosticBuilder<'_>, |
