about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-25 22:19:52 +0100
committerGitHub <noreply@github.com>2023-01-25 22:19:52 +0100
commit9e3f3306567f62086dcbb7f6a71f0a0c07db0de2 (patch)
treea3aec2fc3767c3bea32e56599b6c4922cfa88922 /compiler/rustc_trait_selection
parentf21728fee4eb11ec7e73801bc60e78dbb08bf71a (diff)
parent7b8251e1886924dde68ff9b6a1c02e9973d0bd0a (diff)
downloadrust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.tar.gz
rust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.zip
Rollup merge of #106897 - estebank:issue-99430, r=davidtwco
Tweak E0597

CC #99430
Diffstat (limited to 'compiler/rustc_trait_selection')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs2
1 files changed, 1 insertions, 1 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 aaeb3def06a..98917430d24 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
@@ -2825,7 +2825,7 @@ pub struct FindExprBySpan<'hir> {
 }
 
 impl<'hir> FindExprBySpan<'hir> {
-    fn new(span: Span) -> Self {
+    pub fn new(span: Span) -> Self {
         Self { span, result: None, ty_result: None }
     }
 }