144 |
#[cfg(test)]
|
145 |
#[allow(clippy::panic)]
|
146 |
mod test {
|
169 |
1 => true,
|
170 |
#[allow(clippy::panic)]
|
171 |
_ => panic!("invalid value in PodBool"),
|
126 |
#[cfg(test)]
|
127 |
#[allow(clippy::panic)]
|
128 |
mod test {
|
767 |
fn expect(self, msg: &str) {
|
768 |
#[allow(clippy::panic)]
|
769 |
match self {
|
50 |
/// This is a workaround until `Result::unwrap` is allowed in `const fn`.
|
51 |
#[allow(clippy::panic)]
|
52 |
pub(crate) const fn panic(self) -> ! {
|
128 |
pub const fn new(byte: u8) -> Self {
|
129 |
#[allow(clippy::panic)]
|
130 |
if byte > Self::MAX {
|
158 |
#[cfg(test)]
|
159 |
#[allow(clippy::panic)]
|
160 |
mod tests {
|
382 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
383 |
#[cfg(test)]
|
87 |
#[allow(clippy::panic)]
|
88 |
#[allow(clippy::unwrap_used)]
|
102 |
#[cfg(test)]
|
103 |
#[allow(clippy::panic)]
|
104 |
mod tests {
|
39 |
#[cfg(test)]
|
40 |
#[allow(clippy::panic)]
|
41 |
mod tests {
|
94 |
#[cfg(test)]
|
95 |
#[allow(clippy::panic)]
|
96 |
mod tests {
|
131 |
#[cfg(test)]
|
132 |
#[allow(clippy::panic)]
|
133 |
mod tests {
|
180 |
#[cfg(test)]
|
181 |
#[allow(clippy::panic)]
|
182 |
mod tests {
|
150 |
#[cfg(test)]
|
151 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
152 |
pub mod tests {
|
348 |
#[cfg(test)]
|
349 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
350 |
pub mod tests {
|
289 |
#[cfg(test)]
|
290 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
291 |
mod tests {
|
216 |
/// Arbitrary impl for ErgoBoxAssetsData
|
217 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
218 |
#[cfg(feature = "arbitrary")]
|
294 |
#[cfg(test)]
|
295 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
296 |
mod tests {
|
196 |
#[cfg(feature = "arbitrary")]
|
197 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
198 |
mod test {
|
275 |
#[cfg(test)]
|
276 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
277 |
mod test {
|
344 |
#[cfg(feature = "arbitrary")]
|
345 |
#[allow(clippy::unwrap_used, clippy::panic)]
|
346 |
pub mod tests {
|
46 |
/// heap, but only if the element was previously not removed from the heap.
|
47 |
#[allow(clippy::panic)]
|
48 |
pub fn push(&mut self, t: T) -> Slot {
|
84 |
#[allow(clippy::panic)]
|
85 |
pub fn remove(&mut self, slot: Slot) -> T {
|
124 |
#[allow(clippy::panic)]
|
125 |
fn percolate_down(&mut self, mut idx: usize) -> usize {
|
168 |
#[allow(clippy::panic)]
|
169 |
fn assert_consistent(&self) {
|
216 |
#[allow(clippy::panic)]
|
217 |
fn set_index<T>(slab: &mut Vec<SlabSlot<T>>, slab_slot: usize, val: T) {
|
18 |
#[allow(clippy::panic)]
|
19 |
#[cfg(test)]
|
54 |
#[allow(clippy::unwrap_used)]
|
55 |
#[allow(clippy::panic)]
|
56 |
#[cfg(test)]
|
322 |
#[allow(clippy::panic)]
|
323 |
#[cfg(test)]
|
23 |
#[allow(clippy::panic)]
|
24 |
#[cfg(test)]
|
20 |
#[cfg(test)]
|
21 |
#[allow(clippy::panic)]
|
22 |
mod tests {
|
29 |
#[allow(clippy::unwrap_used)]
|
30 |
#[allow(clippy::panic)]
|
31 |
#[cfg(test)]
|
30 |
#[cfg(test)]
|
31 |
#[allow(clippy::panic)]
|
32 |
mod tests {
|
29 |
#[cfg(test)]
|
30 |
#[allow(clippy::panic)]
|
31 |
mod tests {
|
59 |
#[allow(clippy::unwrap_used)]
|
60 |
#[allow(clippy::panic)]
|
61 |
#[cfg(test)]
|
71 |
#[allow(clippy::unwrap_used)]
|
72 |
#[allow(clippy::panic)]
|
73 |
#[cfg(test)]
|
547 |
#[allow(clippy::unwrap_used)]
|
548 |
#[allow(clippy::panic)]
|
549 |
mod tests {
|
69 |
#[allow(clippy::unwrap_used)]
|
70 |
#[allow(clippy::panic)]
|
71 |
#[cfg(test)]
|
239 |
#[allow(clippy::panic)]
|
240 |
#[allow(clippy::unwrap_used)]
|
441 |
#[allow(clippy::panic)]
|
442 |
#[allow(clippy::unwrap_used)]
|
448 |
#[allow(clippy::panic)]
|
449 |
#[allow(clippy::unwrap_used)]
|
292 |
#[allow(clippy::panic)]
|
293 |
#[allow(clippy::unwrap_used)]
|
282 |
#[allow(clippy::panic)]
|
283 |
#[cfg(test)]
|
601 |
#[allow(clippy::unwrap_used)]
|
602 |
#[allow(clippy::panic)]
|
603 |
#[allow(clippy::expect_used)]
|
68 |
#[cfg(test)]
|
69 |
#[allow(clippy::panic)]
|
70 |
mod tests {
|
110 |
#[cfg(test)]
|
111 |
#[allow(clippy::panic)]
|
112 |
#[allow(clippy::unwrap_used)]
|
27 |
#[allow(clippy::panic)]
|
28 |
fn get_mut_module(&mut self, state: State) -> &mut Box<dyn Module + 'modules> {
|
34 |
#[allow(clippy::borrowed_box, clippy::panic)]
|
35 |
fn get_module(&self, state: State) -> &Box<dyn Module + 'modules> {
|
28 |
/// If the repository cannot be created for any reason, this function will panic.
|
29 |
#[allow(clippy::panic, clippy::unwrap_used)]
|
30 |
#[inline]
|
58 |
#[inline]
|
59 |
#[allow(clippy::panic)]
|
60 |
pub fn with_temp_bare_repository<F>(callback: F)
|
167 |
#[allow(clippy::panic)]
|
168 |
fn expand_expected(expected: &[String]) -> Vec<String> {
|
188 |
#[allow(clippy::indexing_slicing, clippy::string_slice, clippy::panic)]
|
189 |
pub(crate) fn _assert_rendered_output(options: AssertRenderOptions, actual: &[String], expected: &[String]) {
|
301 |
#[allow(clippy::panic)]
|
302 |
fn assert_view_sender_actions(view_sender: &ViewSender, expected_actions: &[String]) {
|
406 |
#[inline]
|
407 |
#[allow(clippy::missing_panics_doc, clippy::panic)]
|
408 |
pub fn assert_sent_messages(&self, messages: Vec<&str>) {
|
88 |
// must be initialized in `main`
|
89 |
#[allow(clippy::panic)]
|
90 |
None => panic!("the environment object is uninitialized"),
|
172 |
Some(v) => v,
|
173 |
#[allow(clippy::panic)]
|
174 |
None => panic!(),
|
37 |
if !std::path::Path::new(&db).exists() {
|
38 |
#[allow(clippy::panic)]
|
39 |
std::fs::create_dir_all(std::path::Path::new(&db)).unwrap_or_else(|f| panic!("Failed to create database folder at {}: {:?} ", &db, f));
|
55 |
if !std::path::Path::new(&db).exists() {
|
56 |
#[allow(clippy::panic)]
|
57 |
std::fs::create_dir_all(std::path::Path::new(&db)).unwrap_or_else(|f| panic!("Failed to create database folder at {}: {:?} ", &db, f));
|
228 |
// This is only reached from misuse of from_raw, a semi-internal api
|
229 |
#[allow(clippy::panic)]
|
230 |
(_, d) => panic!(
|
166 |
#[cfg(feature = "experimental")]
|
167 |
#[allow(clippy::panic)] // explicit panic in experimental mode
|
168 |
_ => panic!("Non-experimental constructor cannot handle experimental options"),
|
507 |
// Modify the resulting pattern to have fields of the same length.
|
508 |
#[allow(clippy::panic)] // guards against running this branch in non-datagen mode.
|
509 |
if prefer_matched_pattern {
|
1 |
#[allow(clippy::expect_used)]
|
2 |
#[allow(clippy::panic)]
|
3 |
#[doc(hidden)]
|
479 |
fn index(&self, key: &K) -> &V {
|
480 |
#[allow(clippy::panic)] // documented
|
481 |
match self.get(key) {
|
492 |
fn index_mut(&mut self, key: &K) -> &mut V {
|
493 |
#[allow(clippy::panic)] // documented
|
494 |
match self.get_mut(key) {
|
90 |
#[allow(clippy::expect_used)]
|
91 |
#[allow(clippy::panic)]
|
92 |
fn populate_litemap<S>(map: &mut LiteMap<u32, u64, S>)
|
54 |
impl StateAction {
|
55 |
#[allow(clippy::panic)]
|
56 |
pub fn apply_to(self, stack: &mut Vec<State>) {
|
338 |
#[allow(clippy::panic)] // Panics should not occur.
|
339 |
(
|
110 |
log::error!("Panic was caught in thread `{}`", self.name);
|
111 |
#[allow(clippy::panic)]
|
112 |
{
|
1320 |
#[allow(clippy::panic)]
|
1321 |
async fn get_store(
|
1367 |
#[allow(clippy::panic)]
|
1368 |
async fn get_store(name: String, passphrase: Option<&str>) -> StateStore<sqlx::sqlite::Sqlite> {
|
39 |
/// This method will panic if not implemented by the `Strategy`.
|
40 |
#[allow(clippy::panic)]
|
41 |
fn select_single<RNG>(
|
85 |
#[allow(clippy::panic)]
|
86 |
pub(super) fn set_type(&mut self, id: Word) {
|
92 |
#[allow(clippy::panic)]
|
93 |
pub(super) fn set_result(&mut self, id: Word) {
|
3500 |
let mut expressions = Arena::new();
|
3501 |
#[allow(clippy::panic)]
|
3502 |
{
|
135 |
#[allow(clippy::panic)]
|
136 |
fn index(&self, handle: Handle<crate::Expression>) -> &Self::Output {
|
84 |
// This function is never called, it's only a placeholder
|
85 |
#[allow(clippy::panic)]
|
86 |
pub fn any<T>(_: &str) -> T {
|
7 |
#[allow(clippy::panic)]
|
8 |
#[inline]
|
106 |
#[must_use]
|
107 |
#[allow(clippy::panic)]
|
108 |
fn predecessor(&self) -> Option<Self> {
|
120 |
#[must_use]
|
121 |
#[allow(clippy::panic)]
|
122 |
fn successor(&self) -> Option<Self> {
|
25 |
/// calling this is safe, as it was set as the start when the range was constructed.
|
26 |
#[allow(clippy::panic)]
|
27 |
fn into_iter(self) -> Self::IntoIter {
|
100 |
}
|
101 |
#[allow(clippy::panic)]
|
102 |
Arrangement::Empty {
|
358 |
#[must_use]
|
359 |
#[allow(clippy::panic)]
|
360 |
pub fn new_with_bounds(start: Bound<T>, end: Bound<T>) -> Self {
|
271 |
#[cfg(test)]
|
272 |
#[allow(clippy::wildcard_imports, clippy::default_trait_access, clippy::panic)]
|
273 |
mod tests {
|
54 |
#[cfg(test)]
|
55 |
#[allow(clippy::wildcard_imports, clippy::default_trait_access, clippy::panic)]
|
56 |
mod tests {
|
44 |
#[cfg(test)]
|
45 |
#[allow(clippy::panic)]
|
46 |
mod tests {
|
33 |
pub fn append(&mut self, key: String, exec: Box<dyn Layer<TCtx>>, ty: ProcedureDataType) {
|
34 |
#[allow(clippy::panic)]
|
35 |
if key.is_empty() || key == "ws" || key.starts_with("rpc.") || key.starts_with("rspc.") {
|
43 |
#[allow(clippy::panic)]
|
44 |
if self.store.contains_key(&key) {
|
37 |
#[cfg(debug_assertions)]
|
38 |
#[allow(clippy::panic)]
|
39 |
pub fn test_result_type<T: specta::Type + serde::Serialize>() {
|
43 |
#[cfg(debug_assertions)]
|
44 |
#[allow(clippy::panic)]
|
45 |
pub fn test_result_value<T: specta::Type + serde::Serialize>(_: T) {
|
220 |
{
|
221 |
#[allow(clippy::panic)]
|
222 |
if prefix.is_empty() || prefix.starts_with("rpc.") || prefix.starts_with("rspc.") {
|
651 |
#[allow(clippy::panic)] // false positive in select! macro
|
652 |
while !self.common.disconnected {
|
341 |
#[allow(clippy::panic)] // false positive in macro
|
342 |
while !self.common.disconnected {
|
266 |
if self.p.is_null() {
|
267 |
#[allow(clippy::panic)]
|
268 |
{
|
207 |
/// Finds and outputs all unsafe things to the given file
|
208 |
#[allow(clippy::panic)]
|
209 |
pub fn find_unsafe_in_packages(
|
190 |
#[cfg(test)]
|
191 |
#[allow(clippy::panic)]
|
192 |
mod test {
|
262 |
#[cfg(test)]
|
263 |
#[allow(clippy::panic)]
|
264 |
mod tests {
|
41 |
#[cfg(test)]
|
42 |
#[allow(clippy::panic)]
|
43 |
mod tests {
|
160 |
#[allow(clippy::manual_string_new)]
|
161 |
#[allow(clippy::panic)]
|
162 |
#[allow(clippy::too_many_lines)]
|
160 |
#[allow(clippy::panic)]
|
161 |
async fn channel_messages(
|
11 |
/// Exports all types in the [`TYPES`](static@crate::export::TYPES) map to the provided TypeScript file.
|
12 |
#[allow(clippy::panic)]
|
13 |
pub fn ts(path: &str) {
|
85 |
impl From<u8> for Face {
|
86 |
#[allow(clippy::panic)]
|
87 |
fn from(elem: u8) -> Self {
|
229 |
pub fn atom_at(self, index: usize) -> u16 {
|
230 |
#[allow(clippy::panic)] // The below panic is too much of an edge-case for it to be worth propagating
|
231 |
let shifted = if index < 4 {
|
52 |
impl<'a> Parameters<'a> {
|
53 |
#[allow(clippy::panic)]
|
54 |
pub(crate) const fn parse_next(
|
12 |
#[allow(clippy::panic)]
|
13 |
fn require_id(&self) -> u32 {
|
158 |
#[allow(clippy::panic)]
|
159 |
#[cfg(test)]
|
103 |
pub fn insert(&mut self, index: usize, item: usize) {
|
104 |
#[allow(clippy::panic)] // panic is documented in function contract
|
105 |
if index > self.len() {
|
158 |
pub fn remove(&mut self, index: usize) -> usize {
|
159 |
#[allow(clippy::panic)] // panic is documented in function contract
|
160 |
if index >= self.len() {
|
205 |
pub fn pop_sorted(&mut self) -> usize {
|
206 |
#[allow(clippy::panic)] // panic is documented in function contract
|
207 |
if self.is_empty() {
|
129 |
// overall array.
|
130 |
#[allow(clippy::panic)] // panic is documented in function contract
|
131 |
let (_, remainder) = match bytes.split_last() {
|
510 |
fn index(&self, index: usize) -> &Self::Output {
|
511 |
#[allow(clippy::panic)] // documented
|
512 |
match self.get(index) {
|
45 |
fn index(&self, i: usize) -> &i32 {
|
46 |
#![allow(clippy::panic)]
|
47 |
match i {
|
81 |
fn index_mut(&mut self, i: usize) -> &mut i32 {
|
82 |
#![allow(clippy::panic)]
|
83 |
match i {
|
226 |
fn step_forward(&mut self, steps: u8, mut direction: Direction) -> Direction {
|
227 |
#![allow(clippy::panic)]
|
228 |
let mut delta = direction.delta();
|
31 |
clippy::panic_in_result_fn,
|
32 |
clippy::panic,
|
33 |
clippy::print_stdout,
|
3 |
#![allow(clippy::expect_used, clippy::panic)]
|
30 |
clippy::multiple_crate_versions,
|
31 |
clippy::panic,
|
32 |
clippy::pub_use,
|
14 |
clippy::module_name_repetitions,
|
15 |
clippy::panic,
|
16 |
clippy::expect_used,
|
1 |
#![allow(clippy::panic)] // TODO: inside the impl_value macro, should try and remove it instead
|
25 |
clippy::modulo_arithmetic,
|
26 |
clippy::panic,
|
27 |
clippy::print_stdout,
|
38 |
#![allow(clippy::option_expect_used)]
|
39 |
#![allow(clippy::panic)]
|
40 |
#![allow(clippy::result_expect_used)]
|
40 |
#![allow(clippy::option_expect_used)]
|
41 |
#![allow(clippy::panic)]
|
42 |
#![allow(clippy::result_expect_used)]
|
80 |
#![allow(clippy::option_expect_used)]
|
81 |
#![allow(clippy::panic)]
|
82 |
#![allow(clippy::result_expect_used)]
|
306 |
#![allow(clippy::expect_used)]
|
307 |
#![allow(clippy::panic)]
|
308 |
#![allow(clippy::unwrap_used)]
|
245 |
pub mod tests {
|
246 |
#![allow(clippy::panic)]
|
247 |
#![allow(clippy::unwrap_used)]
|
142 |
#![allow(clippy::expect_used)]
|
143 |
#![allow(clippy::panic)]
|
144 |
#![allow(clippy::unwrap_used)]
|
1126 |
#![allow(clippy::expect_used)]
|
1127 |
#![allow(clippy::panic)]
|
1128 |
#![allow(clippy::unwrap_used)]
|
276 |
pub mod tests {
|
277 |
#![allow(clippy::panic)]
|
278 |
#![allow(clippy::unwrap_used)]
|
30 |
// its functions are allowed to panic.
|
31 |
#![allow(clippy::panic)]
|
32 |
#![allow(clippy::unwrap_used)]
|
1936 |
#![allow(clippy::expect_used)]
|
1937 |
#![allow(clippy::panic)]
|
1938 |
#![allow(clippy::unwrap_used)]
|
25 |
clippy::modulo_arithmetic,
|
26 |
clippy::panic,
|
27 |
clippy::print_stdout,
|
35 |
clippy::implicit_return, // This is rust style
|
36 |
clippy::panic, // allow assert
|
37 |
)]
|
3 |
#![allow(clippy::default_numeric_fallback)]
|
4 |
#![allow(clippy::panic)]
|
6 |
#![allow(clippy::panic)]
|
25 |
clippy::modulo_arithmetic,
|
26 |
clippy::panic,
|
27 |
clippy::print_stdout,
|
353 |
#![warn(clippy::panic_in_result_fn)]
|
354 |
#![allow(clippy::panic)]
|
11 |
#![allow(clippy::implicit_return)]
|
12 |
#![allow(clippy::panic)]
|
13 |
#![allow(clippy::expect_used)]
|
200 |
mod tests {
|
201 |
#![allow(clippy::panic)]
|
202 |
#![allow(clippy::panic_in_result_fn)]
|
58 |
// This is a build tool with many invariants being enforced
|
59 |
#![allow(clippy::panic)]
|
60 |
#![allow(clippy::expect_used)]
|
74 |
clippy::expect_used,
|
75 |
clippy::panic
|
76 |
)]
|
105 |
#![allow(
|
106 |
clippy::panic, // allow debug_assert, panic in production code
|
107 |
clippy::multiple_crate_versions, // caused by the dependency, can't be fixed
|
35 |
clippy::blanket_clippy_restriction_lints, // allow clippy::restriction
|
36 |
clippy::panic, // allow debug_assert, panic in production code
|
37 |
clippy::implicit_return, // actually omitting the return keyword is idiomatic Rust code
|
65 |
clippy::multiple_crate_versions, // multi-version dependency crates is not able to fix
|
66 |
clippy::panic, // allow debug_assert, panic in production code
|
67 |
clippy::panic_in_result_fn,
|
65 |
clippy::multiple_crate_versions, // multi-version dependency crates is not able to fix
|
66 |
clippy::panic, // allow debug_assert, panic in production code
|
67 |
clippy::panic_in_result_fn,
|
35 |
clippy::blanket_clippy_restriction_lints, // allow clippy::restriction
|
36 |
clippy::panic, // allow debug_assert, panic in production code
|
37 |
clippy::implicit_return, // actually omitting the return keyword is idiomatic Rust code
|
615 |
mod tests {
|
616 |
#![allow(clippy::panic)]
|
1981 |
mod tests {
|
1982 |
#![allow(clippy::panic)]
|
24 |
#![allow(clippy::implicit_return )] // Our convention uses tail returns
|
25 |
#![allow(clippy::panic )] // We use panic when we reach an unstable state
|
26 |
#![allow(clippy::result_expect_used)] // We use expect when making assertions
|
341 |
mod test {
|
342 |
#![allow(clippy::panic)]
|
56 |
clippy::panic_in_result_fn,
|
57 |
clippy::panic,
|
58 |
clippy::unimplemented,
|
51 |
clippy::panic_in_result_fn,
|
52 |
clippy::panic,
|
53 |
clippy::unimplemented,
|
53 |
clippy::panic_in_result_fn,
|
54 |
clippy::panic,
|
55 |
clippy::unimplemented,
|
51 |
clippy::panic_in_result_fn,
|
52 |
clippy::panic,
|
53 |
clippy::unimplemented,
|
53 |
clippy::panic_in_result_fn,
|
54 |
clippy::panic,
|
55 |
clippy::unimplemented,
|
15 |
clippy::shadow_unrelated,
|
16 |
clippy::panic,
|
17 |
clippy::enum_glob_use,
|
4 |
#![allow(clippy::panic)]
|
103 |
clippy::module_name_repetitions, // Allowed by default
|
104 |
clippy::panic, // Panic when fatal failures occur
|
105 |
clippy::blanket_clippy_restriction_lints,
|
1 |
#![allow(
|
2 |
clippy::panic,
|
3 |
clippy::as_conversions,
|
29 |
fn write_internal(&self, what: &str, writer: &mut dyn Write) {
|
30 |
#![allow(clippy::panic)]
|
31 |
#![allow(clippy::unwrap_used)]
|
2 |
#![allow(clippy::unwrap_used)]
|
3 |
#![allow(clippy::panic)]
|
63 |
clippy::indexing_slicing,
|
64 |
clippy::panic,
|
65 |
clippy::expect_used,
|
10 |
#![allow(missing_docs, clippy::panic)]
|
153 |
#![allow(clippy::unwrap_used)]
|
154 |
#![allow(clippy::panic)]
|
36 |
clippy::multiple_crate_versions, // multi-version dependency crates is not able to fix
|
37 |
clippy::panic, // allow debug_assert, panic in production code
|
38 |
// clippy::panic_in_result_fn,
|
34 |
// clippy::multiple_crate_versions, // multi-version dependency crates is not able to fix
|
35 |
clippy::panic, // allow debug_assert, panic in production code
|
36 |
// clippy::panic_in_result_fn,
|
1328 |
mod tests {
|
1329 |
#![allow(clippy::panic)]
|
800 |
mod tests {
|
801 |
#![allow(clippy::panic)]
|
17 |
#![allow(clippy::expect_used)]
|
18 |
#![allow(clippy::panic)]
|
19 |
#![allow(clippy::unwrap_used)]
|
8 |
#![allow(clippy::indexing_slicing)]
|
9 |
#![allow(clippy::panic)]
|