diff options
author | Matthew Maurer <mmaurer@google.com> | 2024-03-19 17:53:21 +0000 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2024-03-19 18:22:13 +0000 |
commit | 15cbbff88df7a8191d88c7aebefc7b508bd4de69 (patch) | |
tree | a559c2c5f783d4cbd605578eee27269d1e3c533b /gen/build/src/intern.rs | |
parent | 6bdb9aa5e8afca684f73b8b30a162f3064e183a6 (diff) | |
parent | 07a056908617acbdad914acda674b6da88ed1add (diff) | |
download | cxx-15cbbff88df7a8191d88c7aebefc7b508bd4de69.tar.gz |
Update cxx to latest master
* Update build to match upstream's use of edition 2021
Test: mmm
Change-Id: Iad58f8bb416050de4fb3f3087c051d680a2180e7
Diffstat (limited to 'gen/build/src/intern.rs')
-rw-r--r-- | gen/build/src/intern.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gen/build/src/intern.rs b/gen/build/src/intern.rs index c8b57d89..753e3f31 100644 --- a/gen/build/src/intern.rs +++ b/gen/build/src/intern.rs @@ -3,15 +3,15 @@ use once_cell::sync::OnceCell; use std::sync::{Mutex, PoisonError}; #[derive(Copy, Clone, Default)] -pub struct InternedString(&'static str); +pub(crate) struct InternedString(&'static str); impl InternedString { - pub fn str(self) -> &'static str { + pub(crate) fn str(self) -> &'static str { self.0 } } -pub fn intern(s: &str) -> InternedString { +pub(crate) fn intern(s: &str) -> InternedString { static INTERN: OnceCell<Mutex<Set<&'static str>>> = OnceCell::new(); let mut set = INTERN |