File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,10 @@ pub enum Origin {
12
12
}
13
13
14
14
impl fmt:: Display for Origin {
15
- fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
16
- // If the user passed `-Z borrowck=compare`, then include
17
- // origin info as part of the error report,
18
- // otherwise
19
- let display_origin = ty:: tls:: with_opt ( |opt_tcx| {
20
- if let Some ( tcx) = opt_tcx {
21
- tcx. sess . opts . borrowck_mode == BorrowckMode :: Compare
22
- } else {
23
- false
24
- }
25
- } ) ;
26
- if display_origin {
27
- match * self {
28
- Origin :: Mir => write ! ( w, " (Mir)" ) ,
29
- Origin :: Ast => write ! ( w, " (Ast)" ) ,
30
- }
31
- } else {
32
- // Print no origin info
33
- Ok ( ( ) )
34
- }
15
+ fn fmt ( & self , _w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
16
+ // FIXME(chrisvittal) remove Origin entirely
17
+ // Print no origin info
18
+ Ok ( ( ) )
35
19
}
36
20
}
37
21
You can’t perform that action at this time.
0 commit comments