1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
use std::fmt;
use std::sync::Arc;
use api::protocol::{Context, User, Value};
use client::noop::Client;
#[derive(Debug, Clone)]
pub struct Scope;
pub fn with_client_and_scope<F, R>(f: F) -> R
where
F: FnOnce(Arc<Client>, &Scope) -> R,
R: Default,
{
let _f = f;
Default::default()
}
#[derive(Default)]
pub struct ScopeGuard;
impl fmt::Debug for ScopeGuard {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "ScopeGuard")
}
}
#[inline(always)]
pub fn push_scope() -> ScopeGuard {
ScopeGuard
}
pub fn current_client() -> Option<Arc<Client>> {
None
}
pub fn bind_client(client: Arc<Client>) {
let _client = client;
shim_unreachable!();
}
pub fn unbind_client() {}
impl Scope {
pub fn clear(&mut self) {
shim_unreachable!();
}
pub fn set_fingerprint(&mut self, fingerprint: Option<&[&str]>) {
let _fingerprint = fingerprint;
shim_unreachable!();
}
pub fn set_transaction(&mut self, transaction: Option<&str>) {
let _transaction = transaction;
shim_unreachable!();
}
pub fn set_user(&mut self, user: Option<User>) {
let _user = user;
shim_unreachable!();
}
pub fn set_tag<V: ToString>(&mut self, key: &str, value: V) {
let _key = key;
let _value = value;
shim_unreachable!();
}
pub fn remove_tag(&mut self, key: &str) {
let _key = key;
shim_unreachable!();
}
pub fn set_context<C: Into<Context>>(&mut self, key: &str, value: C) {
let _key = key;
let _value = value;
shim_unreachable!();
}
pub fn remove_context(&mut self, key: &str) {
let _key = key;
shim_unreachable!();
}
pub fn set_extra(&mut self, key: &str, value: Value) {
let _key = key;
let _value = value;
shim_unreachable!();
}
pub fn remove_extra(&mut self, key: &str) {
let _key = key;
shim_unreachable!();
}
}
#[allow(unused)]
pub(crate) fn scope_panic_safe() -> bool {
true
}