parser: reduce visibility of unnecessary public UnmatchedDelim
`lexer::UnmatchedDelim` struct in `rustc_parse` is unnecessary public outside of the crate. This commit reduces the visibility to `pub(crate)`. Beside, this removes unnecessary field `expected_delim` that causes warnings after changing the visibility.
This commit is contained in:
parent
75fd074338
commit
3a0d8d8afc
2 changed files with 2 additions and 5 deletions
|
@ -34,8 +34,7 @@ use unescape_error_reporting::{emit_unescape_error, escaped_char};
|
|||
rustc_data_structures::static_assert_size!(rustc_lexer::Token, 12);
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct UnmatchedDelim {
|
||||
pub expected_delim: Delimiter,
|
||||
pub(crate) struct UnmatchedDelim {
|
||||
pub found_delim: Option<Delimiter>,
|
||||
pub found_span: Span,
|
||||
pub unclosed_span: Option<Span>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue