mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Use pub(crate)
in a couple of places.
This commit is contained in:
parent
e0461f93c9
commit
394430166e
@ -174,7 +174,7 @@ pub struct SubstitutionPart {
|
|||||||
/// Used to translate between `Span`s and byte positions within a single output line in highlighted
|
/// Used to translate between `Span`s and byte positions within a single output line in highlighted
|
||||||
/// code of structured suggestions.
|
/// code of structured suggestions.
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub struct SubstitutionHighlight {
|
pub(crate) struct SubstitutionHighlight {
|
||||||
start: usize,
|
start: usize,
|
||||||
end: usize,
|
end: usize,
|
||||||
}
|
}
|
||||||
@ -201,7 +201,7 @@ impl SubstitutionPart {
|
|||||||
impl CodeSuggestion {
|
impl CodeSuggestion {
|
||||||
/// Returns the assembled code suggestions, whether they should be shown with an underline
|
/// Returns the assembled code suggestions, whether they should be shown with an underline
|
||||||
/// and whether the substitution only differs in capitalization.
|
/// and whether the substitution only differs in capitalization.
|
||||||
pub fn splice_lines(
|
pub(crate) fn splice_lines(
|
||||||
&self,
|
&self,
|
||||||
sm: &SourceMap,
|
sm: &SourceMap,
|
||||||
) -> Vec<(String, Vec<SubstitutionPart>, Vec<Vec<SubstitutionHighlight>>, bool)> {
|
) -> Vec<(String, Vec<SubstitutionPart>, Vec<Vec<SubstitutionHighlight>>, bool)> {
|
||||||
|
Loading…
Reference in New Issue
Block a user