File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
librustc/middle/typeck/check Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: ce4f73a243de147c2c5b9b9822a71dafbca97a51
17
+ refs/heads/auto: 028dc589d1cfb7e44b36b978ea1dcc304d70cee0
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -413,12 +413,9 @@ fn constrain_derefs(rcx: @mut Rcx,
413
413
414
414
match ty:: deref ( tcx, derefd_ty, true ) {
415
415
Some ( mt) => derefd_ty = mt. ty ,
416
- None => {
417
- tcx. sess . span_bug (
418
- deref_expr. span ,
419
- fmt ! ( "%?'th deref is of a non-deref'able type `%s`" ,
420
- i, rcx. fcx. infcx( ) . ty_to_str( derefd_ty) ) ) ;
421
- }
416
+ /* if this type can't be dereferenced, then there's already an error
417
+ in the session saying so. Just bail out for now */
418
+ None => break
422
419
}
423
420
}
424
421
}
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // error-pattern:cannot be dereferenced
12
11
fn main ( ) {
13
- match * 1 {
12
+ match * 1 { //~ ERROR: cannot be dereferenced
14
13
_ => { fail ! ( ) ; }
15
14
}
16
15
}
You can’t perform that action at this time.
0 commit comments