File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
201201impl 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 ) > {
You can’t perform that action at this time.
0 commit comments