Skip to content

Commit 1c0f60f

Browse files
authored
Rollup merge of #100901 - TaKO8Ki:make-some-methods-private, r=sanxiyn
Make some methods private
2 parents 0fcabec + 000dc80 commit 1c0f60f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/explain_borrow.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ impl<'tcx> BorrowExplanation<'tcx> {
273273
_ => {}
274274
}
275275
}
276-
pub(crate) fn add_lifetime_bound_suggestion_to_diagnostic(
276+
277+
fn add_lifetime_bound_suggestion_to_diagnostic(
277278
&self,
278279
err: &mut Diagnostic,
279280
category: &ConstraintCategory<'tcx>,

compiler/rustc_resolve/src/late/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
21802180
err.emit()
21812181
}
21822182

2183-
pub(crate) fn add_missing_lifetime_specifiers_label(
2183+
fn add_missing_lifetime_specifiers_label(
21842184
&mut self,
21852185
err: &mut Diagnostic,
21862186
lifetime_refs: Vec<MissingLifetime>,

0 commit comments

Comments
 (0)