1
Fork 0

Reduce pub exposure.

This commit is contained in:
Nicholas Nethercote 2024-06-03 15:47:46 +10:00
parent 7ebd2bdbf6
commit 95b4c07ef8
8 changed files with 51 additions and 42 deletions

View file

@ -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.