Move tests from tests/ui/issues/ to appropriate directories#155058
Move tests from tests/ui/issues/ to appropriate directories#155058ujjwalvishwakarma2006 wants to merge 2 commits intorust-lang:mainfrom
tests/ui/issues/ to appropriate directories#155058Conversation
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Failed to set assignee to
|
tests/ui/issues/ to appropriate directories
There was a problem hiding this comment.
A more minimal version for the second test could be, in my opinion:
trait MyTrait {
fn dummy(&self) {}
}
struct TraitWrapper(Box<dyn MyTrait + 'static>);
fn get_tw_map(tw: &TraitWrapper) -> &dyn MyTrait {
match *tw {
TraitWrapper(box ref map) => map,
}
}
pub fn main() {}|
Hi. I see that |
In this PR, I am moving the following test from
tests/ui/issuesdirectory to the appropriate directories, followed by the addition of issue links at the top and reblessing of the stderr files:issue-3874.rs➝tests/ui/binding/ref-in-let-lhs-in-field.rsissue-4972.{rs,stderr}➝tests/ui/box/deref-borrowed-trait-object-in-box.{rs,stderr}Initially, I decided upon the following more descriptive names, but they were way too big:
issue-3874.rs➝tests/ui/binding/ref-pattern-in-let-lhs-in-enum-field.rsissue-4972.{rs,stderr}➝tests/ui/box/dereferencing-borrowed-trait-object-inside-box.{rs,stderr}r? Kivooeo
r? Teapot4195