Deadbeef
be44860ab9
fix for Self
not respecting tuple Ctor privacy
...
This fixes #111220 by checking the privacy of tuple constructors using `Self`, so the following code now errors
```rust
mod my {
pub struct Foo(&'static str);
}
impl AsRef<str> for my::Foo {
fn as_ref(&self) -> &str {
let Self(s) = self; // previously compiled, now errors correctly
s
}
}
```
2023-05-26 06:23:03 +00:00
..
2023-04-02 19:42:30 -04:00
2023-02-22 08:40:47 -07:00
2023-03-31 17:07:59 +04:00
2023-03-31 17:07:59 +04:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-05-26 06:23:03 +00:00
2023-05-26 06:23:03 +00:00
2023-05-26 06:23:03 +00:00
2023-05-26 06:23:03 +00:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-04-21 22:12:45 +00:00
2023-04-21 22:12:45 +00:00
2023-01-11 21:36:02 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-04-12 16:17:31 +00:00
2023-02-13 18:41:18 +00:00
2023-04-12 16:17:31 +00:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-01-11 21:36:02 +00:00
2023-01-11 21:36:02 +00:00
2023-01-11 21:36:02 +00:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00