File tree 3 files changed +11
-2
lines changed
rust-analyzer/tests/heavy_tests
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ pub struct CheckOptions {
35
35
/// The spawned thread is shut down when this struct is dropped.
36
36
#[ derive( Debug ) ]
37
37
pub struct CheckWatcher {
38
- pub task_recv : Receiver < CheckTask > ,
39
38
// XXX: drop order is significant
40
39
cmd_send : Option < Sender < CheckCommand > > ,
41
40
handle : Option < jod_thread:: JoinHandle < ( ) > > ,
41
+ pub task_recv : Receiver < CheckTask > ,
42
42
}
43
43
44
44
impl CheckWatcher {
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