File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ impl<'a> Location<'a> {
83
83
#[ stable( feature = "track_caller" , since = "1.46.0" ) ]
84
84
#[ rustc_const_unstable( feature = "const_caller_location" , issue = "76156" ) ]
85
85
#[ track_caller]
86
+ #[ inline]
86
87
pub const fn caller ( ) -> & ' static Location < ' static > {
87
88
crate :: intrinsics:: caller_location ( )
88
89
}
@@ -122,6 +123,7 @@ impl<'a> Location<'a> {
122
123
/// ```
123
124
#[ must_use]
124
125
#[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
126
+ #[ inline]
125
127
pub fn file ( & self ) -> & str {
126
128
self . file
127
129
}
@@ -145,6 +147,7 @@ impl<'a> Location<'a> {
145
147
/// ```
146
148
#[ must_use]
147
149
#[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
150
+ #[ inline]
148
151
pub fn line ( & self ) -> u32 {
149
152
self . line
150
153
}
@@ -168,6 +171,7 @@ impl<'a> Location<'a> {
168
171
/// ```
169
172
#[ must_use]
170
173
#[ stable( feature = "panic_col" , since = "1.25.0" ) ]
174
+ #[ inline]
171
175
pub fn column ( & self ) -> u32 {
172
176
self . col
173
177
}
You can’t perform that action at this time.
0 commit comments