Reduce pub
exposure.
This commit is contained in:
parent
7ebd2bdbf6
commit
95b4c07ef8
8 changed files with 51 additions and 42 deletions
|
@ -2256,7 +2256,7 @@ pub(crate) struct FnParseMode {
|
|||
/// to true.
|
||||
/// * The span is from Edition 2015. In particular, you can get a
|
||||
/// 2015 span inside a 2021 crate using macros.
|
||||
pub req_name: ReqName,
|
||||
pub(super) req_name: ReqName,
|
||||
/// If this flag is set to `true`, then plain, semicolon-terminated function
|
||||
/// prototypes are not allowed here.
|
||||
///
|
||||
|
@ -2275,7 +2275,7 @@ pub(crate) struct FnParseMode {
|
|||
/// This field should only be set to false if the item is inside of a trait
|
||||
/// definition or extern block. Within an impl block or a module, it should
|
||||
/// always be set to true.
|
||||
pub req_body: bool,
|
||||
pub(super) req_body: bool,
|
||||
}
|
||||
|
||||
/// Parsing of functions and methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue