File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,6 @@ impl<'a> Location<'a> {
83
83
pub const fn caller ( ) -> & ' static Location < ' static > {
84
84
crate :: intrinsics:: caller_location ( )
85
85
}
86
- }
87
-
88
- impl < ' a > Location < ' a > {
89
- #![ unstable(
90
- feature = "panic_internals" ,
91
- reason = "internal details of the implementation of the `panic!` and related macros" ,
92
- issue = "none"
93
- ) ]
94
- #[ doc( hidden) ]
95
- pub const fn internal_constructor ( file : & ' a str , line : u32 , col : u32 ) -> Self {
96
- Location { file, line, col }
97
- }
98
86
99
87
/// Returns the name of the source file from which the panic originated.
100
88
///
@@ -179,6 +167,18 @@ impl<'a> Location<'a> {
179
167
}
180
168
}
181
169
170
+ #[ unstable(
171
+ feature = "panic_internals" ,
172
+ reason = "internal details of the implementation of the `panic!` and related macros" ,
173
+ issue = "none"
174
+ ) ]
175
+ impl < ' a > Location < ' a > {
176
+ #[ doc( hidden) ]
177
+ pub const fn internal_constructor ( file : & ' a str , line : u32 , col : u32 ) -> Self {
178
+ Location { file, line, col }
179
+ }
180
+ }
181
+
182
182
#[ stable( feature = "panic_hook_display" , since = "1.26.0" ) ]
183
183
impl fmt:: Display for Location < ' _ > {
184
184
fn fmt ( & self , formatter : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments