Skip to content

Commit 3944301

Browse files
committed
Use pub(crate) in a couple of places.
1 parent e0461f9 commit 3944301

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_errors/src

1 file changed

+2
-2
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub struct SubstitutionPart {
174174
/// Used to translate between `Span`s and byte positions within a single output line in highlighted
175175
/// code of structured suggestions.
176176
#[derive(Debug, Clone, Copy)]
177-
pub struct SubstitutionHighlight {
177+
pub(crate) struct SubstitutionHighlight {
178178
start: usize,
179179
end: usize,
180180
}
@@ -201,7 +201,7 @@ impl SubstitutionPart {
201201
impl CodeSuggestion {
202202
/// Returns the assembled code suggestions, whether they should be shown with an underline
203203
/// and whether the substitution only differs in capitalization.
204-
pub fn splice_lines(
204+
pub(crate) fn splice_lines(
205205
&self,
206206
sm: &SourceMap,
207207
) -> Vec<(String, Vec<SubstitutionPart>, Vec<Vec<SubstitutionHighlight>>, bool)> {

0 commit comments

Comments
 (0)