diff options
| author | bors <bors@rust-lang.org> | 2017-10-28 21:01:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-28 21:01:07 +0000 |
| commit | 269cf5026cdac6ff47f886a948e99101316d7091 (patch) | |
| tree | cda80a57ee48dc8fbcdf330e20670482f483edd8 /src/rustllvm/PassWrapper.cpp | |
| parent | 2e6a1a9fb49f30e41316fb374b12301a3445ae8d (diff) | |
| parent | bb0049bcd21ca8c9707207de4669fadfd7362367 (diff) | |
| download | rust-269cf5026cdac6ff47f886a948e99101316d7091.tar.gz rust-269cf5026cdac6ff47f886a948e99101316d7091.zip | |
Auto merge of #45540 - virgil-palanciuc:master, r=estebank
Avoid repetition on “use of unstable library feature 'rustc_private'” This PR fixes the error by only emitting it when the span contains a real file (is not inside a macro) - and making sure it's emitted only once per span. The first check was needed because spans-within-macros seem to differ a lot and "fixing" them to the real location is not trivial (and the method that does this is private to another module). It also feels like there always will be an error on import, with the real file name, so not sure there's a point to re-emit the same error at macro use. Fix #44953.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
