File tree 2 files changed +10
-1
lines changed
rust-analyzer/tests/heavy_tests
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,14 @@ pub fn print_backtrace() {
339
339
let bt = backtrace:: Backtrace :: new ( ) ;
340
340
eprintln ! ( "{:?}" , bt) ;
341
341
}
342
+ #[ cfg( not( feature = "backtrace" ) ) ]
343
+ pub fn print_backtrace ( ) {
344
+ eprintln ! (
345
+ r##"enable the backtrace feature:
346
+ ra_prof = { path = "../ra_prof", features = [ "backtrace"] }
347
+ "##
348
+ ) ;
349
+ }
342
350
343
351
thread_local ! ( static IN_SCOPE : RefCell <bool > = RefCell :: new( false ) ) ;
344
352
Original file line number Diff line number Diff line change @@ -83,9 +83,10 @@ pub fn project(fixture: &str) -> Server {
83
83
pub struct Server {
84
84
req_id : Cell < u64 > ,
85
85
messages : RefCell < Vec < Message > > ,
86
- dir : TempDir ,
87
86
_thread : jod_thread:: JoinHandle < ( ) > ,
88
87
client : Connection ,
88
+ /// XXX: remove the tempdir last
89
+ dir : TempDir ,
89
90
}
90
91
91
92
impl Server {
You can’t perform that action at this time.
0 commit comments