Reorganize tests/ui/issues [19/N]#158826
Merged
Merged
Conversation
Collaborator
|
This PR modifies |
zedddie
commented
Jul 5, 2026
Comment on lines
+1
to
+6
| //! Regression test for <https://github.com/rust-lang/rust/issues/3220>. | ||
| //! Initially a pretty-printer bug, which omitted parentheses around `move` | ||
| //! keyword in lhs (`(move z).f()`), now this behaviour is untestable as | ||
| //! plain `move` outside a closure doesn't exist. | ||
| //! | ||
| //! Now appears to test that drop works correctly when value is moved by method. |
Contributor
Author
There was a problem hiding this comment.
not really sure whether this test should stay or be deleted
zedddie
commented
Jul 5, 2026
Comment on lines
+23
to
+37
|
|
||
| { fn f<X: ::std::marker()::Send>() {} } | ||
| //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait | ||
|
|
||
| { fn f() -> impl ::std::marker()::Send { } } | ||
| //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait | ||
|
|
||
| } | ||
|
|
||
| #[derive(Clone)] | ||
| struct X; | ||
|
|
||
| impl ::std::marker()::Copy for X {} | ||
| //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait | ||
|
|
Contributor
Author
There was a problem hiding this comment.
merged tests/ui/typeck/parenthesized-type-parameters-error-32995.rs into this.
Contributor
|
Looks fine to me, although I'm not sure what to do with that 3220 test. |
Member
|
Let's keep that test since I didn't find any duplicates. @bors r=Teapot4195 rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Jul 7, 2026
Rollup of 13 pull requests Successful merges: - #158478 (Use correct typing mode in mir building for the next solver) - #158796 (Distinguish null reference production from null pointer dereference in UB checks) - #158821 (add regression test for late-bound type method probe ICE) - #158245 (Update the rustc_perf submodule) - #158346 (Prevent rustdoc auto-trait ICEs with `-Znext-solver=globally`) - #158536 (Instatiate binder instead of skipping when suggesting function arg error) - #158553 (Avoid infinite recursion when trying to build valtrees for self-referential consts) - #158679 (Document blocking guarantees for `std::sync`) - #158826 (Reorganize `tests/ui/issues` [19/N]) - #158860 (Delete `impl_def_id` field from `ImplHeader`) - #158867 (rewrite `Align::max_for_target` in a more obvious way) - #158878 (borrowck: Inline `free_region_constraint_info()` to simplify the code) - #158881 (Update mdbook to 0.5.4)
rust-timer
added a commit
that referenced
this pull request
Jul 7, 2026
Rollup merge of #158826 - zedddie:gsoc-batch-19-meow, r=Teapot4195 Reorganize `tests/ui/issues` [19/N] Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues) r? Kivooeo @Teapot4195
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of GSoC'26 project
r? Kivooeo
@Teapot4195