about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-06-03 01:00:54 -0400
committerGitHub <noreply@github.com>2017-06-03 01:00:54 -0400
commitbef8fbd6db4ba1edf3f4cfbcf5dacb62a4b8c933 (patch)
treea78da2ce6d67731e5c5af007c93e99cb92e04108 /src/test/run-pass/thinlto
parent25bbbb31198a60369d00b333162c1406dc13bac3 (diff)
parent4142d7bb890b631bae5d7872dce3e1c1a6816e9f (diff)
downloadrust-bef8fbd6db4ba1edf3f4cfbcf5dacb62a4b8c933.tar.gz
rust-bef8fbd6db4ba1edf3f4cfbcf5dacb62a4b8c933.zip
Rollup merge of #42368 - estebank:call-site, r=nikomatsakis
Use callsite's span for macro calls on suggestion

When suggesting an appropriate mutability for a macro call, use the call
span instead of the expanded macro's span.

```
error[E0308]: mismatched types
  --> $DIR/coerce-suggestions.rs:48:9
   |
48 |     s = format!("foo");
   |         ^^^^^^^^^^^^^^ expected mutable reference, found struct `std::string::String`
   |
   = note: expected type `&mut std::string::String`
              found type `std::string::String`
   = help: try with `&mut format!("foo")`
   = note: this error originates in a macro outside of the current crate
```
Fix #41858.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions