rust-lang/rust — pull request #18264 by jakub- (2014-10-23 20:50:18+00:00)
Title: Only include variable IDs in diagnostics when there's more than one

Diagnostics such as the following

```
mismatched types: expected `core::result::Result`, found `core::option::Option<>`
:6 let a: Result = None;
^~~~
mismatched types: expected `&mut `, found `uint`
:7 f(42u);
^~~
```

tend to be fairly terse to new users. While specific type var IDs are valuable in
diagnostics that deal with more than one such variable, in practice many messages
only mention one. In those cases, leaving out the specific number makes the messages
slightly less terrifying.