Conversation
|
This direction feels like an improvement, though looking back at #36537 I recall we'd decided that it would be something like: struct_span_error(line 5 at '}, ....) It looks like you moved the span to the end of the block, which sounds right. I didn't see the labels for some of the errors you updated. You should add those, too, as I think they'll help the error messages be more readable. You may also want to consider moving the tests you're updating to be UI tests. You can see examples in src/test/ui. They're pretty straightforward, the .stderr file just captures what the output is expected to look like. |
|
@jonathandturner Should I move all changed tests to ui? |
|
@mikhail-m1 - feel free to move all the tests you're updating with this PR to UI |
7b7a886 to
73422a9
Compare
|
@jonathandturner I created new directory in ui, is it ok? |
|
@mikhail-m1 - you can put them in src/test/ui/span |
|
@jonathandturner was moved |
|
@bors r+ |
|
📌 Commit 842b79d has been approved by |
|
two new tests in master branch |
|
@bors r- Yeah, looks like there are a few that need to be updated: |
|
@jonathandturner I cannot find this files in master branch. All cfail tests passes. edit: I've found in cfail-full |
|
@jonathandturner Should I put tests from compile-fail-fulldeps in ui too? There is no ui-fulldeps. |
|
@mikhail-m1 you can leave the fulldeps tests where they are. I'm not 100% sure they'll work as ui tests. |
|
test [ui] ui/dropck/dropck-eyepatch-extern-crate.rs ... FAILED |
|
@jonathandturner fixed |
|
@mikhail-m1 I think this is ready to land. The wording for the temporary values can also be updated, but that can happen in a separate PR. @bors r+ |
|
📌 Commit e852775 has been approved by |
improve "Doesn't live long enough" error I've fixed only with same case issue #36537 part of #35233 r? @jonathandturner
I've fixed only with same case
issue #36537 part of #35233
r? @jonathandturner