Searched refs:panic (Results 1 – 17 of 17) sorted by relevance
| /rust/macros/ |
| A D | helpers.rs | 26 panic!("Escape sequences in string literals not yet handled"); in try_string() 30 panic!("Raw string literals are not yet handled"); in try_string() 45 panic!("Expected Punct"); in expect_punct() 63 panic!("Expected Group"); in expect_group() 69 panic!("Expected end"); in expect_end()
|
| A D | module.rs | 19 _ => panic!("Expected ',' or end of array"), in expect_string_array() 122 Some(_) => panic!("Expected Ident or end"), in parse() 127 panic!("Duplicated key \"{key}\". Keys can only be specified once."); in parse() 140 _ => panic!("Unknown key \"{key}\". Valid keys are: {EXPECTED_KEYS:?}."), in parse() 152 panic!("Missing required key \"{key}\"."); in parse() 164 panic!("Keys are not ordered as expected. Order them like: {ordered_keys:?}."); in parse()
|
| A D | kunit.rs | 14 panic!("Missing test name in `#[kunit_tests(test_name)]` macro") in kunit_tests() 18 panic!("The test suite name `{attr}` exceeds the maximum length of 255 bytes") in kunit_tests() 38 _ => panic!("Cannot locate main body of module"), in kunit_tests()
|
| A D | paste.rs | 30 panic!("expected identifier as modifier"); in concat_helper() 45 v => panic!("unknown modifier `{v}`"), in concat_helper() 53 token => panic!("unexpected token in paste segments: {token:?}"), in concat_helper()
|
| A D | concat_idents.rs | 11 panic!("Expected Ident") in expect_ident()
|
| A D | vtable.rs | 26 _ => panic!("cannot locate main body of trait or impl block"), in vtable()
|
| /rust/ |
| A D | build_error.rs | 30 panic!("{}", msg); in build_error()
|
| A D | compiler_builtins.rs | 34 panic!($reason);
|
| /rust/kernel/sync/ |
| A D | locked_by.rs | 134 panic!("mismatched owners"); in access() 163 panic!("mismatched owners"); in access_mut()
|
| /rust/kernel/ |
| A D | lib.rs | 211 fn panic(info: &core::panic::PanicInfo<'_>) -> ! { in panic() function 328 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
|
| A D | task.rs | 417 let loc = core::panic::Location::caller(); in might_sleep()
|
| A D | kunit.rs | 267 panic!(concat!(
|
| A D | error.rs | 28 None => panic!("Invalid errno in `declare_err!`"),
|
| A D | str.rs | 600 Err(_) => panic!("string contains interior NUL"),
|
| /rust/kernel/block/mq/ |
| A D | request.rs | 247 panic!("Request refcount zero on clone") in inc_ref() 264 panic!("Request reached refcount zero in Rust abstractions"); in dec_ref()
|
| /rust/pin-init/internal/src/ |
| A D | pinned_drop.rs | 38 .unwrap_or_else(|| panic!("Expected an `impl` block implementing `PinnedDrop`.")); in pinned_drop()
|
| /rust/pin-init/src/ |
| A D | macros.rs | 1364 @acc($($acc)* $field: ::core::panic!(),), 1377 @acc($($acc)* $field: ::core::panic!(),),
|
Completed in 25 milliseconds