mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
b7026f87f5
Several (doc) comments were super outdated or didn't provide enough context. Some doc comments shoved everything in a single paragraph without respecting the fact that the first paragraph should be a single sentence because rustdoc treats these as item descriptions / synopses on module pages.
22 lines
471 B
Rust
22 lines
471 B
Rust
//! This is a minimal reproducer for the ICE in https://github.com/rust-lang/rust-clippy/pull/6179.
|
|
//! The ICE is mainly caused by using `lower_ty`. See the discussion in the PR for details.
|
|
|
|
#![warn(clippy::use_self)]
|
|
#![allow(dead_code, clippy::let_with_type_underscore)]
|
|
#![allow(non_local_definitions)]
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
fn new() -> Self {
|
|
impl Foo {
|
|
fn bar() {}
|
|
}
|
|
|
|
let _: _ = 1;
|
|
|
|
Self {}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|