diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-09-18 18:22:13 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-09-18 18:35:10 -0400 |
| commit | 822393d690eb7c238c18c1bb0b1e7831c4776cd3 (patch) | |
| tree | 679537c657d52f5f2af49b3c6e405fb7fe2ed737 /src/test/ui/thinlto | |
| parent | eceec57f72150dd548e05025a05a93381da41385 (diff) | |
| download | rust-822393d690eb7c238c18c1bb0b1e7831c4776cd3.tar.gz rust-822393d690eb7c238c18c1bb0b1e7831c4776cd3.zip | |
Point at original span when emitting unreachable lint
Fixes #64590 When we emit an 'unreachable' lint, we now add a note pointing at the expression that actually causes the code to be unreachable (e.g. `return`, `break`, `panic`). This is especially useful when macros are involved, since a diverging expression might be hidden inside of a macro invocation.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
