Home
last modified time | relevance | path

Searched refs:stringify (Results 1 – 25 of 32) sorted by relevance

12

/linux/rust/syn/
H A Dcustom_keyword.rs137 ident == $crate::__private::stringify!($ident)
144 $crate::__private::concat!("`", $crate::__private::stringify!($ident), "`")
152 if ident == $crate::__private::stringify!($ident) {
158 $crate::__private::stringify!($ident),
183 let ident = $crate::Ident::new($crate::__private::stringify!($ident), self.span);
235 $crate::__private::stringify!($ident),
H A Dcustom_punctuation.rs202 $crate::__private::Formatter::write_str(f, $crate::__private::stringify!($ident))
304 $crate::__private::concat!($($crate::__private::stringify!($tt)),+)
H A Dident.rs21 Ident::new(stringify!($token), token.span)
H A Dexport.rs22 pub use std::stringify;
H A Dtoken.rs248 f.write_str(stringify!($name))
375 f.write_str(stringify!($name))
482 f.write_str(stringify!($name))
/linux/rust/kernel/sync/lock/
H A Dglobal.rs268 ::core::stringify!($name),
270 ::core::stringify!($name),
277 const NAME: &'static $crate::str::CStr = $crate::c_str!(::core::stringify!($name));
/linux/rust/kernel/
H A Dkunit.rs70 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition));
248 let name_u8 = ::core::stringify!($name).as_bytes();
254 ::core::stringify!($name),
H A Dbuild_assert.rs211 $crate::build_assert::build_error_fn(concat!("assertion failed: ", stringify!($cond)));
H A Dstd_vendor.rs156 ::core::stringify!($val), &tmp);
H A Ddevice_id.rs191 "__", stringify!($table_name))
210 "__", stringify!($table_name))
H A Dbitfield.rs540 f.debug_struct(stringify!($name))
543 .field(stringify!($field), &self.$field())
/linux/rust/zerocopy/src/
H A Dbyteorder.rs174 f.debug_tuple(stringify!($name)).field(&self.get()).finish()
499 `", stringify!($name), "` is like the native `", stringify!($native), "` type with
505 ", stringify!($article), " `", stringify!($name), "` can be constructed using
507 `",stringify!($native), "` using the [`get`] method, or updated in place with
510 order to uphold the invariants that a) the layout of `", stringify!($name), "`
511 has endianness `O` and that, b) the layout of `", stringify!($native), "` has
514 `", stringify!($name), "` implements [`FromBytes`], [`IntoBytes`], and [`Unaligned`],
518 [`new`]: crate::byteorder::", stringify!($name), "::new
519 [`get`]: crate::byteorder::", stringify!($name), "::get
520 [`set`]: crate::byteorder::", stringify!($name), "::set
H A Dimpls.rs1674 let allowlist_names: &[&str] = &[ $($(stringify!($tys)),*)? ]; in test_impls()
1677 …llowlist.contains(&id), "{} is not on allowlist for {}: {:?}", stringify!($ty), stringify!($fn_nam… in test_impls()
1804 … assert!(res, "{}::is_bit_valid (shared `Ptr`): got false, expected true", stringify!($ty)); in test_impls()
1814 … assert!(res, "{}::is_bit_valid (exclusive `Ptr`): got false, expected true", stringify!($ty)); in test_impls()
1825 … assert!(res.is_some(), "{}::try_ref_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
1849 … assert!(res.is_some(), "{}::try_mut_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
1855 … assert!(res.is_some(), "{}::try_read_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
1867 …ssert!(res.is_none(), "{}::try_ref_from_bytes({:?}): got Some, expected None", stringify!($ty), c); in test_impls()
1872 …ssert!(res.is_none(), "{}::try_mut_from_bytes({:?}): got Some, expected None", stringify!($ty), c); in test_impls()
1878 …sert!(res.is_none(), "{}::try_read_from_bytes({:?}): got Some, expected None", stringify!($ty), c); in test_impls()
/linux/rust/
H A Dcompiler_builtins.rs32 #[export_name = concat!("__rust", stringify!($ident))]
/linux/rust/quote/
H A Dlib.rs1018 $crate::__private::push_ident(&mut $tokens, stringify!($ident));
1222 $crate::__private::push_lifetime(&mut $tokens, stringify!($lifetime));
1230 $crate::__private::parse(&mut $tokens, stringify!($other));
1239 $crate::__private::push_ident_spanned(&mut $tokens, $span, stringify!($ident));
1446 $crate::__private::push_lifetime_spanned(&mut $tokens, $span, stringify!($lifetime));
1454 $crate::__private::parse_spanned(&mut $tokens, $span, stringify!($other));
/linux/rust/zerocopy/src/util/
H A Dmacros.rs597 let _: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e)));
608 …: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e), ": ", stringify!($arg…
627 …let _: () = const_panic!(@non_panic concat!("assertion failed: ", stringify!($e) $(, ": ", $msg)?)…
890 <details name='tab-", $name,"' style='--n: ", $n ,"'", $(stringify!($open),)*">
/linux/rust/kernel/num/
H A Dbounded.rs262 ::core::stringify!($type),
1022 ::core::stringify!($type),
1096 ::core::stringify!($type),
1098 ::core::stringify!($type),
/linux/drivers/pinctrl/aspeed/
H A Dpinmux-aspeed.h578 #define stringify(x) #x macro
579 #define istringify(x) stringify(x)
/linux/scripts/gcc-plugins/
H A DMakefile31 -DPLUGIN_VERSION=$(call stringify,$(KERNELVERSION)) \
/linux/rust/kernel/drm/
H A Dioctl.rs210 $crate::c_str!(::core::stringify!($cmd)),
/linux/scripts/
H A DMakefile.lib20 name-fix = $(call stringify,$(call name-fix-token,$1))
24 modfile_flags = -DKBUILD_MODFILE=$(call stringify,$(modfile))
/linux/rust/pin-init/src/
H A Dmacros.rs
/linux/scripts/gdb/linux/
H A Dconstants.py.in28 /* We need to stringify expanded macros so that they can be parsed */
/linux/rust/macros/
H A Dquote.rs
/linux/rust/kernel/pci/
H A Did.rs61 &Self::$variant => write!(f, stringify!($variant)),
146 &Self::$variant => write!(f, stringify!($variant)),

12