mozilla/rust — pull request #3286 by erickt (2012-08-26 19:47:59+00:00)
Title: Fix tests most unused pattern variable warnings

I almost fixed all the unused variable warnings, and found a couple cases where we weren't properly using an enum because it wasn't imported. There were a couple I didn't know how to handle though:

```
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/ty.rs:1038:6: 1038:27 warning: unused variable: `sty`
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/ty.rs:1038 ref sty @ ty_fn(f) => {
^~~~~~~~~~~~~~~~~~~~~
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/ty.rs:2232:6: 2232:22 warning: unused variable: `re_bot`
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/ty.rs:2232 re_bot => 4u
^~~~~~~~~~~~~~~~
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/typeck/check.rs:895:14: 895:43 warning: unused variable: `sty`
/Users/etryzelaar/Projects/rust/rust/src/rustc/middle/typeck/check.rs:895 sty @ ty::ty_fn(ref fn_ty) => {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

I'm not quite sure what the `sty @ ty::ty_fn(...)` means, and `re_bot` seems like it should be a variant, but it doesn't exist.