1
Fork 0

Remove crate visibility usage in compiler

This commit is contained in:
Jacob Pratt 2022-05-20 19:51:09 -04:00
parent 536020c5f9
commit 49c82f31a8
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
186 changed files with 865 additions and 800 deletions

View file

@ -352,7 +352,7 @@ pub struct HygieneData {
}
impl HygieneData {
crate fn new(edition: Edition) -> Self {
pub(crate) fn new(edition: Edition) -> Self {
let root_data = ExpnData::default(
ExpnKind::Root,
DUMMY_SP,
@ -668,17 +668,17 @@ impl SyntaxContext {
}
#[inline]
crate fn as_u32(self) -> u32 {
pub(crate) fn as_u32(self) -> u32 {
self.0
}
#[inline]
crate fn from_u32(raw: u32) -> SyntaxContext {
pub(crate) fn from_u32(raw: u32) -> SyntaxContext {
SyntaxContext(raw)
}
/// Extend a syntax context with a given expansion and transparency.
crate fn apply_mark(self, expn_id: ExpnId, transparency: Transparency) -> SyntaxContext {
pub(crate) fn apply_mark(self, expn_id: ExpnId, transparency: Transparency) -> SyntaxContext {
HygieneData::with(|data| data.apply_mark(self, expn_id, transparency))
}

View file

@ -15,7 +15,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![feature(array_windows)]
#![feature(crate_visibility_modifier)]
#![feature(let_else)]
#![feature(if_let_guard)]
#![feature(negative_impls)]