3 macro_rules! assert_expansion_site_is_tracked {
5 let location = std::panic::Location::caller();
6 assert_eq!(location.file(), file!());
7 assert_ne!(location.line(), line!(), "line should be outside this fn");
12 fn local_tracked(&self);
15 fn blanket_tracked(&self);
18 fn default_tracked(&self) {
19 assert_expansion_site_is_tracked!();
25 fn local_tracked(&self) {
26 assert_expansion_site_is_tracked!();
29 fn blanket_tracked(&self) {
30 assert_expansion_site_is_tracked!();
34 impl Tracked for bool {
36 fn local_tracked(&self) {
37 assert_expansion_site_is_tracked!();
40 fn blanket_tracked(&self) {
41 assert_expansion_site_is_tracked!();
44 fn default_tracked(&self) {
45 assert_expansion_site_is_tracked!();
51 fn local_tracked(&self) {
52 assert_expansion_site_is_tracked!();
55 fn blanket_tracked(&self) {
56 assert_expansion_site_is_tracked!();
60 fn default_tracked(&self) {
61 assert_expansion_site_is_tracked!();
71 true.default_tracked();
72 true.blanket_tracked();
75 0u8.default_tracked();
76 0u8.blanket_tracked();