SYMBOL INDEX (16631 symbols across 2195 files) FILE: build.rs function main (line 1) | fn main() { FILE: clippy_config/src/conf.rs constant DEFAULT_DOC_VALID_IDENTS (line 25) | const DEFAULT_DOC_VALID_IDENTS: &[&str] = &[ constant DEFAULT_DISALLOWED_NAMES (line 53) | const DEFAULT_DISALLOWED_NAMES: &[&str] = &["foo", "baz", "quux"]; constant DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS (line 54) | const DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS: &[&str] = &["i", "j", "x",... constant DEFAULT_ALLOWED_PREFIXES (line 55) | const DEFAULT_ALLOWED_PREFIXES: &[&str] = &["to", "as", "into", "from", ... constant DEFAULT_ALLOWED_TRAITS_WITH_RENAMED_PARAMS (line 56) | const DEFAULT_ALLOWED_TRAITS_WITH_RENAMED_PARAMS: &[&str] = constant DEFAULT_MODULE_ITEM_ORDERING_GROUPS (line 58) | const DEFAULT_MODULE_ITEM_ORDERING_GROUPS: &[(&str, &[SourceItemOrdering... constant DEFAULT_TRAIT_ASSOC_ITEM_KINDS_ORDER (line 71) | const DEFAULT_TRAIT_ASSOC_ITEM_KINDS_ORDER: &[SourceItemOrderingTraitAss... constant DEFAULT_SOURCE_ITEM_ORDERING (line 76) | const DEFAULT_SOURCE_ITEM_ORDERING: &[SourceItemOrderingCategory] = { type TryConf (line 84) | struct TryConf { method from_toml_error (line 92) | fn from_toml_error(file: &SourceFile, error: &toml::de::Error) -> Self { type ConfError (line 103) | struct ConfError { method from_toml (line 110) | fn from_toml(file: &SourceFile, error: &toml::de::Error) -> Self { method spanned (line 115) | fn spanned( function sanitize_explanation (line 130) | pub fn sanitize_explanation(raw_docs: &str) -> String { function union (line 328) | fn union(x: &Range, y: &Range) -> Range { function span_from_toml_range (line 335) | fn span_from_toml_range(file: &SourceFile, span: Range) -> Span { function lookup_conf_file (line 928) | pub fn lookup_conf_file() -> io::Result<(Option, Vec)> { function deserialize (line 976) | fn deserialize(file: &SourceFile) -> TryConf { function extend_vec_if_indicator_present (line 1033) | fn extend_vec_if_indicator_present(vec: &mut Vec, default: &[&st... method read (line 1040) | pub fn read(sess: &Session, path: &io::Result<(Option, Vec, Vec(msg: T) -> Self { method unknown_field (line 1131) | fn unknown_field(field: &str, expected: &'static [&'static str]) -> Se... type Suggestion (line 1110) | struct Suggestion { method fmt (line 1118) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { function calculate_dimensions (line 1176) | fn calculate_dimensions(fields: &[&str]) -> (usize, Vec) { function suggest_candidate (line 1210) | fn suggest_candidate<'a, I>(value: &str, candidates: I) -> Option<&'a str> function configs_are_tested (line 1232) | fn configs_are_tested() { FILE: clippy_config/src/metadata.rs type ClippyConfiguration (line 5) | pub struct ClippyConfiguration { method fmt (line 14) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method to_markdown_paragraph (line 24) | pub fn to_markdown_paragraph(&self) -> String { method to_markdown_link (line 36) | pub fn to_markdown_link(&self) -> String { FILE: clippy_config/src/types.rs type Rename (line 16) | pub struct Rename { type DisallowedPathWithoutReplacement (line 21) | pub type DisallowedPathWithoutReplacement = DisallowedPath; type DisallowedPath (line 24) | pub struct DisallowedPath { function deserialize (line 42) | fn deserialize(deserializer: D) -> Result type DisallowedPathEnum (line 64) | enum DisallowedPathEnum { method path (line 105) | pub fn path(&self) -> &str { method reason (line 111) | fn reason(&self) -> Option<&str> { method replacement (line 118) | fn replacement(&self) -> Option<&str> { method allow_invalid (line 125) | fn allow_invalid(&self) -> bool { function path (line 76) | pub fn path(&self) -> &str { function diag_amendment (line 80) | pub fn diag_amendment(&self, span: Span) -> impl FnOnce(&mut Diag<'_, ()... function span (line 95) | pub fn span(&self) -> Span { function set_span (line 99) | pub fn set_span(&mut self, span: Span) { function create_disallowed_map (line 135) | pub fn create_disallowed_map( type MatchLintBehaviour (line 199) | pub enum MatchLintBehaviour { type MacroMatcher (line 206) | pub struct MacroMatcher { method deserialize (line 212) | fn deserialize(deser: D) -> Result type SourceItemOrderingCategory (line 273) | pub enum SourceItemOrderingCategory { type SourceItemOrdering (line 285) | pub struct SourceItemOrdering(Vec); method contains (line 288) | pub fn contains(&self, category: &SourceItemOrderingCategory) -> bool { method from (line 297) | fn from(value: T) -> Self { method fmt (line 303) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method deserialize (line 309) | fn deserialize(deserializer: D) -> Result method serialize (line 330) | fn serialize(&self, serializer: S) -> Result type SourceItemOrderingModuleItemKind (line 341) | pub enum SourceItemOrderingModuleItemKind { method all_variants (line 361) | pub fn all_variants() -> Vec { type SourceItemOrderingModuleItemGroupings (line 390) | pub struct SourceItemOrderingModuleItemGroupings { method build_lut (line 397) | fn build_lut( method build_back_lut (line 409) | fn build_back_lut( method grouping_name_of (line 421) | pub fn grouping_name_of(&self, item: &SourceItemOrderingModuleItemKind... method grouping_names (line 425) | pub fn grouping_names(&self) -> Vec { method is_grouping (line 429) | pub fn is_grouping(&self, grouping: &str) -> bool { method module_level_order_of (line 433) | pub fn module_level_order_of(&self, item: &SourceItemOrderingModuleIte... method from (line 439) | fn from(value: &[(&str, &[SourceItemOrderingModuleItemKind])]) -> Self { method fmt (line 449) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method deserialize (line 455) | fn deserialize(deserializer: D) -> Result method serialize (line 502) | fn serialize(&self, serializer: S) -> Result type SourceItemOrderingTraitAssocItemKind (line 513) | pub enum SourceItemOrderingTraitAssocItemKind { method all_variants (line 520) | pub fn all_variants() -> Vec { type SourceItemOrderingTraitAssocItemKinds (line 535) | pub struct SourceItemOrderingTraitAssocItemKinds(Vec... method from (line 547) | fn from(value: T) -> Self { method fmt (line 553) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method deserialize (line 559) | fn deserialize(deserializer: D) -> Result method serialize (line 589) | fn serialize(&self, serializer: S) -> Result type SourceItemOrderingWithinModuleItemGroupings (line 605) | pub enum SourceItemOrderingWithinModuleItemGroupings { method ordered_within (line 617) | pub fn ordered_within(&self, grouping_name: &String) -> bool { method deserialize (line 635) | fn deserialize(deserializer: D) -> Result type StringOrVecOfString (line 629) | enum StringOrVecOfString { method serialize (line 662) | fn serialize(&self, serializer: S) -> Result type PubUnderscoreFieldsBehaviour (line 697) | pub enum PubUnderscoreFieldsBehaviour { type InherentImplLintScope (line 704) | pub enum InherentImplLintScope { FILE: clippy_dev/src/deprecate_lint.rs function deprecate (line 17) | pub fn deprecate<'cx>(cx: ParseCx<'cx>, clippy_version: Version, name: &... function uplift (line 64) | pub fn uplift<'cx, 'env: 'cx>(cx: ParseCx<'cx>, clippy_version: Version,... function remove_lint_declaration (line 116) | fn remove_lint_declaration(name: &str, path: &Path, lints: &mut Vec(cx: ParseCx<'cx>, clippy_version: Versi... function uplift (line 47) | pub fn uplift<'cx, 'env: 'cx>(cx: ParseCx<'cx>, clippy_version: Version,... function rename (line 96) | pub fn rename<'cx, 'env: 'cx>(cx: ParseCx<'cx>, clippy_version: Version,... function remove_lint_declaration (line 163) | fn remove_lint_declaration(name: &str, lint: &ActiveLint<'_>, data: &Lin... function update_rename_targets (line 197) | fn update_rename_targets<'cx>(data: &mut LintData<'cx>, old_name: &str, ... function create_ignored_prefixes (line 209) | fn create_ignored_prefixes<'cx>(name: &str, data: &LintData<'cx>) -> Vec... function collect_ui_test_names (line 217) | fn collect_ui_test_names(lint: &str, ignored_prefixes: &[&str], dst: &mu... function collect_ui_toml_test_names (line 233) | fn collect_ui_toml_test_names(lint: &str, ignored_prefixes: &[&str], dst... function rename_test_files (line 250) | fn rename_test_files(old_name: &str, new_name: &str, ignored_prefixes: &... function delete_test_files (line 285) | fn delete_test_files(lint: &str, ignored_prefixes: &[&str]) { function snake_to_pascal (line 312) | fn snake_to_pascal(s: &str) -> String { function uplift_update_fn (line 331) | fn uplift_update_fn<'a>( function rename_update_fn (line 368) | fn rename_update_fn<'a>( FILE: clippy_dev/src/fmt.rs type Error (line 17) | pub enum Error { method from (line 24) | fn from(error: io::Error) -> Self { method display (line 30) | fn display(&self) { type ClippyConf (line 45) | struct ClippyConf<'a> { function offset_to_line (line 52) | fn offset_to_line(text: &str, offset: usize) -> usize { function fmt_conf (line 67) | fn fmt_conf(check: bool) -> Result<(), Error> { function fmt_syms (line 235) | fn fmt_syms(update_mode: UpdateMode) { function run_rustfmt (line 266) | fn run_rustfmt(update_mode: UpdateMode) { function run (line 331) | pub fn run(update_mode: UpdateMode) { FILE: clippy_dev/src/generate.rs constant GENERATED_FILE_COMMENT (line 10) | const GENERATED_FILE_COMMENT: &str = "// This file was generated by `car... constant DOCS_LINK (line 14) | const DOCS_LINK: &str = "https://rust-lang.github.io/rust-clippy/master/... function gen_decls (line 18) | pub fn gen_decls(&self, update_mode: UpdateMode) { function gen_mac (line 196) | pub fn gen_mac(&self, dst: &mut String) { function write_comment_lines (line 225) | fn write_comment_lines(s: &str, prefix: &str, dst: &mut String) -> bool { type ListFmt (line 238) | enum ListFmt { function write_list (line 243) | fn write_list<'a>( function gen_sorted_lints_file (line 263) | pub fn gen_sorted_lints_file( FILE: clippy_dev/src/lint.rs function run (line 10) | pub fn run<'a>(path: &str, edition: &str, args: impl Iterator Result { type Dev (line 112) | struct Dev { type DevCommand (line 118) | enum DevCommand { type SetupCommand (line 269) | struct SetupCommand { type SetupSubcommand (line 275) | enum SetupSubcommand { type RemoveCommand (line 329) | struct RemoveCommand { type RemoveSubcommand (line 335) | enum RemoveSubcommand { type SyncCommand (line 345) | struct SyncCommand { type SyncSubcommand (line 351) | enum SyncSubcommand { type ReleaseCommand (line 358) | struct ReleaseCommand { type ReleaseSubcommand (line 364) | enum ReleaseSubcommand { FILE: clippy_dev/src/new_lint.rs type Pass (line 11) | pub enum Pass { method fmt (line 17) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type LintData (line 25) | struct LintData<'a> { type Context (line 33) | trait Context { method context (line 34) | fn context>(self, text: C) -> Self; method context (line 38) | fn context>(self, text: C) -> Self { function create (line 54) | pub fn create( function create_lint (line 93) | fn create_lint(lint: &LintData<'_>, enable_msrv: bool) -> io::Result<()> { function create_test (line 106) | fn create_test(lint: &LintData<'_>, msrv: bool) -> io::Result<()> { function add_lint (line 156) | fn add_lint(lint: &LintData<'_>, enable_msrv: bool) -> io::Result<()> { function write_file (line 180) | fn write_file, C: AsRef<[u8]>>(path: P, contents: C) -> i... function to_camel_case (line 192) | fn to_camel_case(name: &str) -> String { function get_test_file_contents (line 204) | fn get_test_file_contents(lint_name: &str, msrv: bool) -> String { function get_manifest_contents (line 238) | fn get_manifest_contents(lint_name: &str, hint: &str) -> String { function get_lint_file_contents (line 253) | fn get_lint_file_contents(lint: &LintData<'_>, enable_msrv: bool) -> Str... function get_lint_declaration (line 340) | fn get_lint_declaration(version: Version, name_upper: &str, category: &s... function create_lint_for_ty (line 370) | fn create_lint_for_ty(lint: &LintData<'_>, enable_msrv: bool, ty: &str) ... function setup_mod_file (line 448) | fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'stat... function parse_mod_file (line 519) | fn parse_mod_file(path: &Path, contents: &str) -> (&'static str, usize) { function test_camel_case (line 550) | fn test_camel_case() { FILE: clippy_dev/src/parse.rs type ParseCxImpl (line 13) | pub struct ParseCxImpl<'cx> { type ParseCx (line 18) | pub type ParseCx<'cx> = &'cx mut ParseCxImpl<'cx>; function new_parse_cx (line 21) | pub fn new_parse_cx<'env, T>(f: impl for<'cx> FnOnce(&'cx mut Scoped<'cx... type StrBuf (line 31) | pub struct StrBuf(String); method with_capacity (line 34) | pub fn with_capacity(cap: usize) -> Self { method alloc_display (line 39) | pub fn alloc_display<'cx>(&mut self, arena: &'cx DroplessArena, value:... method alloc_ascii_lower (line 47) | pub fn alloc_ascii_lower<'cx>(&mut self, arena: &'cx DroplessArena, s:... method alloc_replaced (line 56) | pub fn alloc_replaced<'cx>( method with (line 81) | pub fn with(&mut self, f: impl FnOnce(&mut String) -> T) -> T { type VecBuf (line 87) | pub struct VecBuf(Vec); function with_capacity (line 90) | pub fn with_capacity(cap: usize) -> Self { function with (line 95) | pub fn with(&mut self, f: impl FnOnce(&mut Vec) -> R) -> R { type LintTool (line 102) | pub enum LintTool { method prefix (line 108) | pub fn prefix(self) -> &'static str { type LintName (line 117) | pub struct LintName<'cx> { function new_rustc (line 122) | pub fn new_rustc(name: &'cx str) -> Self { function new_clippy (line 129) | pub fn new_clippy(name: &'cx str) -> Self { method fmt (line 137) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type ActiveLint (line 143) | pub struct ActiveLint<'cx> { type DeprecatedLint (line 150) | pub struct DeprecatedLint<'cx> { type RenamedLint (line 155) | pub struct RenamedLint<'cx> { type Lint (line 160) | pub enum Lint<'cx> { type LintPassMac (line 167) | pub enum LintPassMac { method name (line 172) | pub fn name(self) -> &'static str { type LintPass (line 180) | pub struct LintPass<'cx> { type LintData (line 192) | pub struct LintData<'cx> { function split_by_lint_file (line 198) | pub fn split_by_lint_file<'s>( function parse_lint_decls (line 224) | pub fn parse_lint_decls(&mut self) -> LintData<'cx> { function parse_lint_src_file (line 279) | fn parse_lint_src_file(&mut self, path: &Path, contents: &str, module: &... function read_deprecated_lints (line 390) | fn read_deprecated_lints(&mut self, data: &mut LintData<'cx>) { function parse_str_lit (line 462) | fn parse_str_lit(&mut self, s: &str) -> &'cx str { function parse_str_single_line (line 487) | fn parse_str_single_line(&mut self, path: &Path, s: &str) -> &'cx str { function parse_clippy_lint_name (line 497) | fn parse_clippy_lint_name(&mut self, path: &Path, s: &str) -> &'cx str { function parse_lint_name (line 507) | fn parse_lint_name(&mut self, path: &Path, s: &str) -> LintName<'cx> { FILE: clippy_dev/src/parse/cursor.rs type Pat (line 11) | pub enum Pat<'a> { type Capture (line 39) | pub struct Capture { constant EMPTY (line 44) | pub const EMPTY: Self = Self { pos: 0, len: 0 }; type Cursor (line 48) | pub struct Cursor<'txt> { function new (line 56) | pub fn new(text: &'txt str) -> Self { function get_text (line 68) | pub fn get_text(&self, capture: Capture) -> &'txt str { function peek_text (line 75) | pub fn peek_text(&self) -> &'txt str { function peek_len (line 81) | pub fn peek_len(&self) -> u32 { function peek (line 88) | pub fn peek(&self) -> TokenKind { function pos (line 95) | pub fn pos(&self) -> u32 { function at_end (line 101) | pub fn at_end(&self) -> bool { function step (line 107) | pub fn step(&mut self) { function match_impl (line 119) | fn match_impl(&mut self, pat: Pat<'_>, captures: &mut slice::IterMut<'_,... function find_ident (line 247) | pub fn find_ident(&mut self, ident: &str) -> Option { function find_any_ident (line 266) | pub fn find_any_ident(&mut self) -> Option { function match_ident (line 285) | pub fn match_ident(&mut self, s: &str) -> Option { function capture_ident (line 301) | pub fn capture_ident(&mut self) -> Option { function find_pat (line 322) | pub fn find_pat(&mut self, pat: Pat<'_>) -> bool { function match_all (line 343) | pub fn match_all(&mut self, pats: &[Pat<'_>], captures: &mut [Capture]) ... function match_pat (line 354) | pub fn match_pat(&mut self, pat: Pat<'_>) -> bool { FILE: clippy_dev/src/release.rs function bump_version (line 12) | pub fn bump_version(mut version: Version) { FILE: clippy_dev/src/serve.rs constant PYTHON (line 11) | const PYTHON: &str = "python"; constant PYTHON (line 14) | const PYTHON: &str = "python3"; function run (line 19) | pub fn run(port: u16, lint: Option) -> ! { function log_err_and_continue (line 61) | fn log_err_and_continue(res: Result, path: &Path) ->... function mtime (line 71) | fn mtime(path: &str) -> SystemTime { function is_metadata_outdated (line 77) | fn is_metadata_outdated(time: SystemTime) -> bool { FILE: clippy_dev/src/setup/git_hook.rs constant REPO_GIT_DIR (line 8) | const REPO_GIT_DIR: &str = ".git"; constant HOOK_SOURCE_FILE (line 9) | const HOOK_SOURCE_FILE: &str = "util/etc/pre-commit.sh"; constant HOOK_TARGET_FILE (line 10) | const HOOK_TARGET_FILE: &str = ".git/hooks/pre-commit"; function install_hook (line 12) | pub fn install_hook(force_override: bool) { function check_precondition (line 35) | fn check_precondition(force_override: bool) -> bool { function remove_hook (line 58) | pub fn remove_hook() { function delete_git_hook_file (line 69) | fn delete_git_hook_file(path: &Path) -> bool { FILE: clippy_dev/src/setup/intellij.rs constant RUSTC_PATH_SECTION (line 11) | const RUSTC_PATH_SECTION: &str = "[target.'cfg(NOT_A_PLATFORM)'.dependen... constant DEPENDENCIES_SECTION (line 12) | const DEPENDENCIES_SECTION: &str = "[dependencies]"; constant CLIPPY_PROJECTS (line 14) | const CLIPPY_PROJECTS: &[ClippyProjectInfo] = &[ type ClippyProjectInfo (line 21) | struct ClippyProjectInfo { method new (line 29) | const fn new(name: &'static str, cargo_file: &'static str, lib_rs_file... function setup_rustc_src (line 38) | pub fn setup_rustc_src(rustc_path: &str) { function check_and_get_rustc_dir (line 52) | fn check_and_get_rustc_dir(rustc_path: &str) -> Result { function inject_deps_into_project (line 84) | fn inject_deps_into_project(rustc_source_dir: &Path, project: &ClippyPro... function read_project_file (line 102) | fn read_project_file(file_path: &str) -> Result { function inject_deps_into_manifest (line 118) | fn inject_deps_into_manifest( function remove_rustc_src (line 167) | pub fn remove_rustc_src() { function remove_rustc_src_from_project (line 173) | fn remove_rustc_src_from_project(project: &ClippyProjectInfo) -> bool { FILE: clippy_dev/src/setup/toolchain.rs function create (line 9) | pub fn create(standalone: bool, force: bool, release: bool, name: &str) { function install_bin (line 60) | fn install_bin(bin: &str, dest: &Path, standalone: bool, release: bool) { FILE: clippy_dev/src/setup/vscode.rs constant VSCODE_DIR (line 4) | const VSCODE_DIR: &str = ".vscode"; constant TASK_SOURCE_FILE (line 5) | const TASK_SOURCE_FILE: &str = "util/etc/vscode-tasks.json"; constant TASK_TARGET_FILE (line 6) | const TASK_TARGET_FILE: &str = ".vscode/tasks.json"; function install_tasks (line 8) | pub fn install_tasks(force_override: bool) { function check_install_precondition (line 22) | fn check_install_precondition(force_override: bool) -> bool { function remove_tasks (line 56) | pub fn remove_tasks() { function delete_vs_task_file (line 68) | fn delete_vs_task_file(path: &Path) -> bool { function try_delete_vs_directory_if_empty (line 79) | fn try_delete_vs_directory_if_empty() { FILE: clippy_dev/src/sync.rs function update_nightly (line 5) | pub fn update_nightly() { FILE: clippy_dev/src/utils.rs type Scoped (line 16) | pub struct Scoped<'inner, 'outer: 'inner, T>(T, PhantomData<&'inner mut ... function new (line 18) | pub fn new(value: T) -> Self { type Target (line 23) | type Target = T; method deref (line 24) | fn deref(&self) -> &Self::Target { method deref_mut (line 29) | fn deref_mut(&mut self) -> &mut Self::Target { type ErrAction (line 35) | pub enum ErrAction { method as_str (line 45) | fn as_str(self) -> &'static str { function panic_action (line 60) | pub fn panic_action(err: &impl Display, action: ErrAction, path: &Path) ... function expect_action (line 65) | pub fn expect_action(res: Result, action: ErrAction,... type File (line 73) | pub struct File<'a> { function open (line 80) | pub fn open(path: &'a (impl AsRef + ?Sized), options: &mut OpenOpt... function open_if_exists (line 90) | pub fn open_if_exists(path: &'a (impl AsRef + ?Sized), options: &m... function open_read_to_cleared_string (line 101) | pub fn open_read_to_cleared_string<'dst>( function read_append_to_string (line 110) | pub fn read_append_to_string<'dst>(&mut self, dst: &'dst mut String) -> ... function read_to_cleared_string (line 116) | pub fn read_to_cleared_string<'dst>(&mut self, dst: &'dst mut String) ->... function replace_contents (line 123) | pub fn replace_contents(&mut self, data: &[u8]) { function cargo_cmd (line 137) | pub fn cargo_cmd() -> Command { type Version (line 146) | pub struct Version { method rust_display (line 167) | pub fn rust_display(self) -> impl Display { method toml_display (line 179) | pub fn toml_display(self) -> impl Display { type Err (line 151) | type Err = (); method from_str (line 152) | fn from_str(s: &str) -> Result { type TomlPart (line 190) | enum TomlPart<'a> { function toml_iter (line 195) | fn toml_iter(s: &str) -> impl Iterator)> { type CargoPackage (line 214) | pub struct CargoPackage<'a> { function parse_cargo_package (line 221) | pub fn parse_cargo_package(s: &str) -> CargoPackage<'_> { type ClippyInfo (line 263) | pub struct ClippyInfo { method search_for_manifest (line 270) | pub fn search_for_manifest() -> Self { type UpdateStatus (line 304) | pub enum UpdateStatus { method from_changed (line 310) | pub fn from_changed(value: bool) -> Self { method is_changed (line 315) | pub fn is_changed(self) -> bool { type UpdateMode (line 321) | pub enum UpdateMode { method from_check (line 327) | pub fn from_check(check: bool) -> Self { method is_check (line 332) | pub fn is_check(self) -> bool { type FileUpdater (line 338) | pub struct FileUpdater { method update_file_checked_inner (line 344) | fn update_file_checked_inner( method update_file_inner (line 368) | fn update_file_inner(&mut self, path: &Path, update: &mut dyn FnMut(&P... method update_file_checked (line 378) | pub fn update_file_checked( method update_file (line 389) | pub fn update_file( function update_text_region (line 400) | pub fn update_text_region( function update_text_region_fn (line 424) | pub fn update_text_region_fn( function try_rename_file (line 433) | pub fn try_rename_file(old_name: &Path, new_name: &Path) -> bool { function try_rename_dir (line 455) | pub fn try_rename_dir(old_name: &Path, new_name: &Path) -> bool { function run_exit_on_err (line 481) | pub fn run_exit_on_err(path: &(impl AsRef + ?Sized), cmd: &mut Com... function run_with_output (line 494) | pub fn run_with_output(path: &(impl AsRef + ?Sized), cmd: &mut Com... function split_args_for_threads (line 517) | pub fn split_args_for_threads( function delete_file_if_exists (line 579) | pub fn delete_file_if_exists(path: &Path) -> bool { function delete_dir_if_exists (line 588) | pub fn delete_dir_if_exists(path: &Path) { function walk_dir_no_dot_or_target (line 597) | pub fn walk_dir_no_dot_or_target(p: impl AsRef) -> impl Iterator( FILE: clippy_dummy/build.rs function main (line 4) | fn main() { function foo (line 14) | fn foo() -> Result<()> { FILE: clippy_dummy/src/main.rs function main (line 1) | fn main() { FILE: clippy_lints/src/absolute_paths.rs type AbsolutePaths (line 58) | pub struct AbsolutePaths { method new (line 64) | pub fn new(conf: &'static Conf) -> Self { method check_path (line 80) | fn check_path(&mut self, cx: &LateContext<'tcx>, path: &Path<'tcx>, hi... FILE: clippy_lints/src/almost_complete_range.rs type AlmostCompleteRange (line 34) | pub struct AlmostCompleteRange { method new (line 38) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 45) | fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &Expr) { method check_pat (line 73) | fn check_pat(&mut self, cx: &EarlyContext<'_>, p: &Pat) { function is_incomplete_range (line 103) | fn is_incomplete_range(start: &Expr, end: &Expr) -> bool { FILE: clippy_lints/src/approx_const.rs constant KNOWN_CONSTS (line 45) | const KNOWN_CONSTS: [(f64, &str, usize, Option); 19] = [ type ApproxConstant (line 67) | pub struct ApproxConstant { method new (line 72) | pub fn new(conf: &'static Conf) -> Self { method check_lit (line 78) | fn check_lit(&mut self, cx: &LateContext<'_>, _hir_id: HirId, lit: Lit... method check_known_consts (line 94) | fn check_known_consts(&self, cx: &LateContext<'_>, span: Span, s: symb... function count_digits_after_dot (line 116) | fn count_digits_after_dot(input: &str) -> usize { function is_approx_const (line 127) | fn is_approx_const(constant: f64, value: &str, f_value: f64, min_digits:... FILE: clippy_lints/src/arbitrary_source_item_ordering.rs type ArbitrarySourceItemOrdering (line 171) | pub struct ArbitrarySourceItemOrdering { method new (line 183) | pub fn new(conf: &'static Conf) -> Self { method lint_impl_item (line 199) | fn lint_impl_item(&self, cx: &LateContext<'_>, item: ImplItemId, befor... method lint_member_name (line 214) | fn lint_member_name(cx: &T, ident: Ident, before_ident... method lint_member_item (line 225) | fn lint_member_item(cx: &LateContext<'_>, item: &Item<'_>, before_item... method lint_trait_item (line 250) | fn lint_trait_item(&self, cx: &LateContext<'_>, item: TraitItemId, bef... method check_item (line 266) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_mod (line 365) | fn check_mod(&mut self, cx: &LateContext<'tcx>, module: &'tcx Mod<'tcx... function convert_assoc_item_kind (line 471) | fn convert_assoc_item_kind(cx: &LateContext<'_>, owner_id: OwnerId) -> S... function convert_module_item_kind (line 489) | fn convert_module_item_kind(value: &ItemKind<'_>) -> SourceItemOrderingM... function get_item_name (line 526) | fn get_item_name(item: &Item<'_>) -> Option { FILE: clippy_lints/src/arc_with_non_send_sync.rs method check_expr (line 46) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/as_conversions.rs method check_expr (line 61) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/asm_syntax.rs type AsmStyle (line 12) | enum AsmStyle { method fmt (line 18) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Output (line 27) | type Output = AsmStyle; method not (line 29) | fn not(self) -> AsmStyle { function check_asm_syntax (line 37) | fn check_asm_syntax( method check_expr (line 129) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { method check_item (line 135) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { method check_expr (line 143) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { method check_item (line 149) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/assertions_on_constants.rs type AssertionsOnConstants (line 37) | pub struct AssertionsOnConstants { method new (line 41) | pub fn new(conf: &Conf) -> Self { method check_expr (line 47) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function as_bool_lit (line 85) | fn as_bool_lit(e: &Expr<'_>) -> Option { FILE: clippy_lints/src/assertions_on_result_states.rs method check_expr (line 51) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function type_suitable_to_unwrap (line 100) | fn type_suitable_to_unwrap<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -... FILE: clippy_lints/src/assigning_clones.rs type AssigningClones (line 58) | pub struct AssigningClones { method new (line 63) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 69) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function clone_source_borrows_from_dest (line 155) | fn clone_source_borrows_from_dest(cx: &LateContext<'_>, lhs: &Expr<'_>, ... type CloneTrait (line 202) | enum CloneTrait { type CallKind (line 208) | enum CallKind { function build_sugg (line 213) | fn build_sugg<'tcx>( FILE: clippy_lints/src/async_yields_async.rs method check_expr (line 51) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/attrs/allow_attributes.rs function check (line 10) | pub fn check<'cx>(cx: &EarlyContext<'cx>, attr: &'cx Attribute) { FILE: clippy_lints/src/attrs/allow_attributes_without_reason.rs function check (line 9) | pub(super) fn check<'cx>(cx: &EarlyContext<'cx>, name: Symbol, items: &[... FILE: clippy_lints/src/attrs/blanket_clippy_restriction_lints.rs function check (line 10) | pub(super) fn check(cx: &EarlyContext<'_>, name: Symbol, items: &[MetaIt... function check_command_line (line 25) | pub(super) fn check_command_line(cx: &EarlyContext<'_>) { FILE: clippy_lints/src/attrs/deprecated_cfg_attr.rs function check (line 9) | pub(super) fn check(cx: &EarlyContext<'_>, attr: &Attribute, msrv: &Msrv... function check_clippy (line 52) | pub(super) fn check_clippy(cx: &EarlyContext<'_>, attr: &Attribute) { function check_deprecated_cfg_recursively (line 62) | fn check_deprecated_cfg_recursively(cx: &EarlyContext<'_>, attr: &rustc_... function check_cargo_clippy_attr (line 75) | fn check_cargo_clippy_attr(cx: &EarlyContext<'_>, item: &rustc_ast::Meta... FILE: clippy_lints/src/attrs/deprecated_semver.rs function check (line 10) | pub(super) fn check(cx: &EarlyContext<'_>, span: Span, lit: &MetaItemLit) { FILE: clippy_lints/src/attrs/duplicated_attributes.rs function emit_if_duplicated (line 11) | fn emit_if_duplicated( function check_duplicated_attr (line 30) | fn check_duplicated_attr( function check (line 82) | pub fn check(cx: &EarlyContext<'_>, attrs: &[Attribute]) { FILE: clippy_lints/src/attrs/inline_always.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, span: Span, name: Symbol, attr... FILE: clippy_lints/src/attrs/mixed_attributes_style.rs type SimpleAttrKind (line 11) | enum SimpleAttrKind { method from (line 18) | fn from(value: &AttrKind) -> Self { function check (line 35) | pub(super) fn check(cx: &EarlyContext<'_>, item_span: Span, attrs: &[Att... function lint_mixed_attrs (line 67) | fn lint_mixed_attrs(cx: &EarlyContext<'_>, attrs: &[Attribute]) { function attr_in_same_src_as_item (line 82) | fn attr_in_same_src_as_item(source_map: &SourceMap, item_src: &Arc Self { method check_item (line 513) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_impl_item (line 523) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Impl... method check_trait_item (line 529) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Tra... type EarlyAttributes (line 536) | pub struct EarlyAttributes { method new (line 541) | pub fn new(conf: &'static Conf) -> Self { method check_attribute (line 549) | fn check_attribute(&mut self, cx: &EarlyContext<'_>, attr: &Attribute) { type PostExpansionEarlyAttributes (line 558) | pub struct PostExpansionEarlyAttributes { method new (line 563) | pub fn new(conf: &'static Conf) -> Self { method check_crate (line 571) | fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &ast::Crate) { method check_attribute (line 576) | fn check_attribute(&mut self, cx: &EarlyContext<'_>, attr: &Attribute) { method check_item (line 625) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &'_ ast::Item) { FILE: clippy_lints/src/attrs/non_minimal_cfg.rs function check (line 9) | pub(super) fn check(cx: &EarlyContext<'_>, attr: &Attribute) { function check_nested_cfg (line 17) | fn check_nested_cfg(cx: &EarlyContext<'_>, items: &[MetaItemInner]) { FILE: clippy_lints/src/attrs/repr_attributes.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, item_span: Span, attrs: &[Attr... FILE: clippy_lints/src/attrs/should_panic_without_expect.rs function check (line 10) | pub(super) fn check(cx: &EarlyContext<'_>, attr: &Attribute) { FILE: clippy_lints/src/attrs/unnecessary_clippy_cfg.rs function check (line 10) | pub(super) fn check( FILE: clippy_lints/src/attrs/useless_attribute.rs function check (line 10) | pub(super) fn check(cx: &EarlyContext<'_>, item: &Item, attrs: &[Attribu... FILE: clippy_lints/src/attrs/utils.rs function is_word (line 11) | pub(super) fn is_word(nmi: &MetaItemInner, expected: Symbol) -> bool { function is_lint_level (line 19) | pub(super) fn is_lint_level(symbol: Symbol, attr_id: AttrId) -> bool { function is_relevant_item (line 23) | pub(super) fn is_relevant_item(cx: &LateContext<'_>, item: &Item<'_>) ->... function is_relevant_impl (line 31) | pub(super) fn is_relevant_impl(cx: &LateContext<'_>, item: &ImplItem<'_>... function is_relevant_trait (line 38) | pub(super) fn is_relevant_trait(cx: &LateContext<'_>, item: &TraitItem<'... function is_relevant_block (line 48) | fn is_relevant_block(cx: &LateContext<'_>, typeck_results: &ty::TypeckRe... function is_relevant_expr (line 64) | fn is_relevant_expr(cx: &LateContext<'_>, typeck_results: &ty::TypeckRes... function extract_clippy_lint (line 79) | pub(super) fn extract_clippy_lint(lint: &MetaItemInner) -> Option { function namespace_and_lint (line 88) | pub(super) fn namespace_and_lint(lint: &MetaItemInner) -> (Option, conf: &'static Conf) -> Self { method check_expr (line 200) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... method check_interior_types (line 214) | fn check_interior_types(&self, cx: &LateContext<'_>, coroutine: &Corou... function emit_invalid_type (line 268) | fn emit_invalid_type( function is_mutex_guard (line 283) | fn is_mutex_guard(cx: &LateContext<'_>, def_id: DefId) -> bool { function is_refcell_ref (line 290) | fn is_refcell_ref(cx: &LateContext<'_>, def_id: DefId) -> bool { FILE: clippy_lints/src/blocks_in_conditions.rs constant BRACED_EXPR_MESSAGE (line 52) | const BRACED_EXPR_MESSAGE: &str = "omit braces around single expression ... method check_expr (line 55) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/bool_assert_comparison.rs function extract_bool_lit (line 40) | fn extract_bool_lit(e: &Expr<'_>) -> Option { function is_impl_not_trait_with_bool_out (line 52) | fn is_impl_not_trait_with_bool_out<'tcx>(cx: &LateContext<'tcx>, ty: Ty<... method check_expr (line 74) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/bool_comparison.rs method check_expr (line 40) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function check_comparison (line 106) | fn check_comparison<'a, 'tcx>( function suggest_bool_comparison (line 152) | fn suggest_bool_comparison<'a, 'tcx>( function fetch_bool_expr (line 172) | fn fetch_bool_expr(expr: &Expr<'_>) -> Option { FILE: clippy_lints/src/bool_to_int_with_if.rs method check_expr (line 49) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function as_int_bool_lit (line 102) | fn as_int_bool_lit(expr: &Expr<'_>) -> Option { FILE: clippy_lints/src/booleans.rs constant METHODS_WITH_NEGATION (line 80) | const METHODS_WITH_NEGATION: [(Option, Symbol, Symbol); 3]... type NonminimalBool (line 86) | pub struct NonminimalBool { method new (line 91) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 97) | fn check_fn( method check_expr (line 109) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... function inverted_bin_op_eq_str (line 125) | fn inverted_bin_op_eq_str(op: BinOpKind) -> Option<&'static str> { function bin_op_eq_str (line 133) | fn bin_op_eq_str(op: BinOpKind) -> Option<&'static str> { function check_inverted_bool_in_condition (line 141) | fn check_inverted_bool_in_condition( function check_simplify_not (line 199) | fn check_simplify_not(cx: &LateContext<'_>, msrv: Msrv, expr: &Expr<'_>) { type NonminimalBoolVisitor (line 233) | struct NonminimalBoolVisitor<'a, 'tcx> { type Hir2Qmm (line 239) | struct Hir2Qmm<'a, 'tcx, 'v> { function extract (line 245) | fn extract(&mut self, op: BinOpKind, a: &[&'v Expr<'_>], mut v: Vec) -> Result { type SuggestContext (line 325) | struct SuggestContext<'a, 'tcx, 'v> { function recurse (line 333) | fn recurse(&mut self, suggestion: &Bool) -> Option<()> { function simplify_not (line 403) | fn simplify_not(cx: &LateContext<'_>, curr_msrv: Msrv, expr: &Expr<'_>) ... function suggest (line 473) | fn suggest(cx: &LateContext<'_>, msrv: Msrv, suggestion: &Bool, terminal... function simple_negate (line 484) | fn simple_negate(b: Bool) -> Bool { type Stats (line 507) | struct Stats { function terminal_stats (line 513) | fn terminal_stats(b: &Bool) -> Stats { function bool_expr (line 540) | fn bool_expr(&self, e: &'tcx Expr<'_>) { function visit_expr (line 647) | fn visit_expr(&mut self, e: &'tcx Expr<'_>) { function implements_ord (line 672) | fn implements_ord(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/borrow_deref_ref.rs method check_expr (line 54) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>) { function potentially_bound_to_mutable_ref (line 131) | fn potentially_bound_to_mutable_ref<'tcx>(cx: &LateContext<'tcx>, expr: ... FILE: clippy_lints/src/box_default.rs method check_expr (line 39) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function is_plain_default (line 73) | fn is_plain_default(cx: &LateContext<'_>, arg_path: &Expr<'_>) -> bool { function is_local_vec_expn (line 85) | fn is_local_vec_expn(cx: &LateContext<'_>, expr: &Expr<'_>, ref_expr: &E... type InferVisitor (line 92) | struct InferVisitor(bool); method visit_infer (line 95) | fn visit_infer(&mut self, inf_id: HirId, _inf_span: Span, _kind: Infer... method visit_ty (line 100) | fn visit_ty(&mut self, t: &Ty<'_, AmbigArg>) { function given_type (line 108) | fn given_type(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/byte_char_slices.rs method check_expr (line 34) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function is_byte_char_slices (line 52) | fn is_byte_char_slices(expr: &Expr) -> Option { FILE: clippy_lints/src/cargo/common_metadata.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata, ignore_pu... function missing_warning (line 40) | fn missing_warning(cx: &LateContext<'_>, package: &cargo_metadata::Packa... function is_empty_str (line 45) | fn is_empty_str>(value: Option<&T>) -> bool { function is_empty_vec (line 49) | fn is_empty_vec(value: &[String]) -> bool { FILE: clippy_lints/src/cargo/feature_name.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) { function is_negative_prefix (line 45) | fn is_negative_prefix(s: &str) -> bool { function lint (line 49) | fn lint(cx: &LateContext<'_>, feature: &str, substring: &str, is_prefix:... function test_prefixes_sorted (line 83) | fn test_prefixes_sorted() { FILE: clippy_lints/src/cargo/lint_groups_priority.rs function toml_span (line 12) | fn toml_span(range: Range, file: &SourceFile) -> Span { type LintConfig (line 21) | struct LintConfig<'a> { function priority (line 27) | fn priority(&self) -> i64 { function is_implicit (line 31) | fn is_implicit(&self) -> bool { function parse (line 35) | fn parse(value: &'a Spanned>) -> Option { function check_table (line 55) | fn check_table(cx: &LateContext<'_>, table: &DeTable<'_>, known_groups: ... type LintTbls (line 112) | struct LintTbls<'a> { function get_lint_tbls (line 116) | fn get_lint_tbls<'a>(tbl: &'a DeTable<'a>) -> LintTbls<'a> { function check (line 131) | pub fn check(cx: &LateContext<'_>) { FILE: clippy_lints/src/cargo/mod.rs type Cargo (line 225) | pub struct Cargo { method new (line 231) | pub fn new(conf: &'static Conf) -> Self { method check_crate (line 240) | fn check_crate(&mut self, cx: &LateContext<'_>) { FILE: clippy_lints/src/cargo/multiple_crate_versions.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata, allowed_d... function is_normal_dep (line 60) | fn is_normal_dep(nodes: &[Node], local_id: &PackageId, dep_id: &PackageI... FILE: clippy_lints/src/cargo/wildcard_dependencies.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) { FILE: clippy_lints/src/casts/as_pointer_underscore.rs function check (line 5) | pub fn check<'tcx>(cx: &LateContext<'tcx>, ty_into: Ty<'_>, cast_to_hir:... FILE: clippy_lints/src/casts/as_ptr_cast_mut.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/as_underscore.rs function check (line 9) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/casts/borrow_as_ptr.rs function check (line 14) | pub(super) fn check<'tcx>( function check_implicit_cast (line 61) | pub(super) fn check_implicit_cast(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/casts/cast_abs_to_unsigned.rs function check (line 12) | pub(super) fn check( FILE: clippy_lints/src/casts/cast_enum_constructor.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/cast_lossless.rs function check (line 15) | pub(super) fn check( function should_lint (line 79) | fn should_lint(cx: &LateContext<'_>, cast_from: Ty<'_>, cast_to: Ty<'_>,... FILE: clippy_lints/src/casts/cast_nan_to_int.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... function is_known_nan (line 22) | fn is_known_nan(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { FILE: clippy_lints/src/casts/cast_possible_truncation.rs function constant_int (line 17) | fn constant_int(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option { function get_constant_bits (line 25) | fn get_constant_bits(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option, nbits: u64, expr: &Expr<'_>, s... function check (line 86) | pub(super) fn check( function offer_suggestion (line 179) | fn offer_suggestion( FILE: clippy_lints/src/casts/cast_possible_wrap.rs constant ALLOWED_POINTER_SIZES (line 12) | const ALLOWED_POINTER_SIZES: [u64; 3] = [16, 32, 64]; type EmitState (line 16) | enum EmitState { function check (line 22) | pub(super) fn check( FILE: clippy_lints/src/casts/cast_precision_loss.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_from: Ty... FILE: clippy_lints/src/casts/cast_ptr_alignment.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, cast_... function check_cast_method (line 15) | pub(super) fn check_cast_method(cx: &LateContext<'_>, expr: &Expr<'_>) { function lint_cast_ptr_alignment (line 28) | fn lint_cast_ptr_alignment<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>... function is_used_as_unaligned (line 53) | fn is_used_as_unaligned(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { FILE: clippy_lints/src/casts/cast_sign_loss.rs constant METHODS_RET_POSITIVE (line 23) | const METHODS_RET_POSITIVE: &[Symbol] = &[ constant METHODS_POW (line 37) | const METHODS_POW: &[Symbol] = &[sym::pow, sym::saturating_pow, sym::che... constant METHODS_UNWRAP (line 40) | const METHODS_UNWRAP: &[Symbol] = &[sym::unwrap, sym::unwrap_unchecked, ... function check (line 42) | pub(super) fn check<'cx>( function should_lint (line 79) | fn should_lint<'cx>(cx: &LateContext<'cx>, cast_op: &Expr<'_>, cast_from... function get_const_signed_int_eval (line 108) | fn get_const_signed_int_eval<'cx>( function get_const_unsigned_int_eval (line 123) | fn get_const_unsigned_int_eval<'cx>( type Sign (line 139) | enum Sign { function expr_sign (line 145) | fn expr_sign<'cx, 'tcx>(cx: &LateContext<'cx>, mut expr: &'tcx Expr<'tcx... function pow_call_result_sign (line 189) | fn pow_call_result_sign(cx: &LateContext<'_>, base: &Expr<'_>, exponent:... function expr_muldiv_sign (line 218) | fn expr_muldiv_sign(cx: &LateContext<'_>, expr: &Expr<'_>) -> Sign { function expr_add_sign (line 249) | fn expr_add_sign(cx: &LateContext<'_>, expr: &Expr<'_>) -> Sign { function exprs_with_muldiv_binop_peeled (line 290) | fn exprs_with_muldiv_binop_peeled<'e>(expr: &'e Expr<'_>) -> Vec<&'e Exp... function exprs_with_add_binop_peeled (line 339) | fn exprs_with_add_binop_peeled<'e>(expr: &'e Expr<'_>) -> Vec<&'e Expr<'... FILE: clippy_lints/src/casts/cast_slice_different_sizes.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>, msr... function is_child_of_cast (line 63) | fn is_child_of_cast(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function get_raw_slice_ty_mut (line 82) | fn get_raw_slice_ty_mut(ty: Ty<'_>) -> Option> { type CastChainInfo (line 92) | struct CastChainInfo<'tcx> { function expr_cast_chain_tys (line 105) | fn expr_cast_chain_tys<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) ... FILE: clippy_lints/src/casts/cast_slice_from_raw_parts.rs type RawPartsKind (line 15) | enum RawPartsKind { function raw_parts_kind (line 20) | fn raw_parts_kind(cx: &LateContext<'_>, did: DefId) -> Option, expr: &Expr<'_>, cast_expr: &E... function check_implicit_cast (line 61) | pub(super) fn check_implicit_cast(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/casts/char_lit_as_u8.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_from_exp... FILE: clippy_lints/src/casts/confusing_method_to_numeric_cast.rs function get_primitive_ty_name (line 13) | fn get_primitive_ty_name(ty: Ty<'_>) -> Option<&'static str> { function get_const_name_and_ty_name (line 23) | fn get_const_name_and_ty_name( function check (line 60) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/fn_to_numeric_cast.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/fn_to_numeric_cast_any.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/fn_to_numeric_cast_with_truncation.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &E... FILE: clippy_lints/src/casts/manual_dangling_ptr.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, from: &Expr<'... function is_expr_const_aligned (line 49) | fn is_expr_const_aligned(cx: &LateContext<'_>, expr: &Expr<'_>, to: &Ty<... function is_align_of_call (line 57) | fn is_align_of_call(cx: &LateContext<'_>, fun: &Expr<'_>, to: &Ty<'_>) -... function is_literal_aligned (line 69) | fn is_literal_aligned(cx: &LateContext<'_>, lit: &Spanned, to: ... FILE: clippy_lints/src/casts/mod.rs type Casts (line 880) | pub struct Casts { method new (line 885) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 891) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_body (line 958) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &rustc_hir::Bod... FILE: clippy_lints/src/casts/needless_type_cast.rs type BindingInfo (line 16) | struct BindingInfo<'a> { type UsageInfo (line 22) | struct UsageInfo<'a> { function check (line 27) | pub(super) fn check<'a>(cx: &LateContext<'a>, body: &Body<'a>) { function collect_binding_from_let (line 56) | fn collect_binding_from_let<'a>( function collect_binding_from_local (line 86) | fn collect_binding_from_local<'a>( function contains_unsafe (line 117) | fn contains_unsafe(expr: &Expr<'_>) -> bool { function has_generic_return_type (line 129) | fn has_generic_return_type(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_generic_res (line 182) | fn is_generic_res(cx: &LateContext<'_>, res: Res) -> bool { function is_cast_in_generic_context (line 193) | fn is_cast_in_generic_context<'a>(cx: &LateContext<'a>, cast_expr: &Expr... function can_coerce_to_target_type (line 237) | fn can_coerce_to_target_type(expr: &Expr<'_>) -> bool { function check_binding_usages (line 249) | fn check_binding_usages<'a>(cx: &LateContext<'a>, body: &Body<'a>, hir_i... FILE: clippy_lints/src/casts/ptr_as_ptr.rs type OmitFollowedCastReason (line 14) | enum OmitFollowedCastReason<'a> { function corresponding_item (line 21) | fn corresponding_item(&self) -> Option<&QPath<'_>> { function check (line 29) | pub(super) fn check<'tcx>( function qpath_span_without_turbofish (line 104) | fn qpath_span_without_turbofish(qpath: &QPath<'_>) -> Span { FILE: clippy_lints/src/casts/ptr_cast_constness.rs function check (line 13) | pub(super) fn check<'tcx>( function check_null_ptr_cast_method (line 79) | pub(super) fn check_null_ptr_cast_method(cx: &LateContext<'_>, expr: &Ex... FILE: clippy_lints/src/casts/ref_as_ptr.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/casts/unnecessary_cast.rs function check (line 20) | pub(super) fn check<'tcx>( function lint_unnecessary_cast (line 210) | fn lint_unnecessary_cast( function get_numeric_literal (line 245) | fn get_numeric_literal<'e>(expr: &'e Expr<'e>) -> Option { function fp_ty_mantissa_nbits (line 261) | fn fp_ty_mantissa_nbits(typ: Ty<'_>) -> u32 { function is_cast_from_ty_alias (line 273) | fn is_cast_from_ty_alias<'tcx>(cx: &LateContext<'tcx>, expr: impl Visita... FILE: clippy_lints/src/casts/utils.rs function int_ty_to_nbits (line 6) | pub(super) fn int_ty_to_nbits(tcx: TyCtxt<'_>, ty: Ty<'_>) -> Option { function enum_value_nbits (line 15) | pub(super) fn enum_value_nbits(value: EnumValue) -> u64 { function enum_ty_to_nbits (line 24) | pub(super) fn enum_ty_to_nbits(adt: AdtDef<'_>, tcx: TyCtxt<'_>) -> u64 { type CastTo (line 64) | pub(super) enum CastTo { function is_signedness_cast (line 71) | pub(super) fn is_signedness_cast(cast_from: Ty<'_>, cast_to: Ty<'_>) -> ... FILE: clippy_lints/src/casts/zero_ptr.rs function check (line 11) | pub fn check(cx: &LateContext<'_>, expr: &Expr<'_>, from: &Expr<'_>, to:... FILE: clippy_lints/src/cfg_not_test.rs method check_attribute (line 36) | fn check_attribute(&mut self, cx: &EarlyContext<'_>, attr: &rustc_ast::A... function contains_not_test (line 58) | fn contains_not_test(cfg: &CfgEntry, not: bool) -> bool { FILE: clippy_lints/src/checked_conversions.rs type CheckedConversions (line 39) | pub struct CheckedConversions { method new (line 44) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 50) | fn check_expr(&mut self, cx: &LateContext<'_>, item: &Expr<'_>) { type Conversion (line 100) | struct Conversion<'a> { type ConversionType (line 108) | enum ConversionType { method try_new (line 176) | fn try_new(from: Symbol, to: Symbol) -> Option { function read_le_ge (line 115) | fn read_le_ge<'tcx>( function combine (line 129) | pub fn combine(self, other: Self, cx: &LateContext<'_>) -> Option) -> bool { function has_compatible_to_type (line 147) | fn has_compatible_to_type(&self, other: &Self) -> bool { function try_new (line 155) | fn try_new(expr_to_cast: &'a Expr<'_>, from_type: Symbol, to_type: Symbo... function new_any (line 164) | fn new_any(expr_to_cast: &'a Expr<'_>) -> Conversion<'a> { function check_upper_bound (line 194) | fn check_upper_bound<'tcx>(lt: &'tcx Expr<'tcx>, gt: &'tcx Expr<'tcx>) -... function check_lower_bound (line 203) | fn check_lower_bound<'tcx>(lt: &'tcx Expr<'tcx>, gt: &'tcx Expr<'tcx>) -... function check_lower_bound_zero (line 208) | fn check_lower_bound_zero<'a>(candidate: &'a Expr<'_>, check: &'a Expr<'... function check_lower_bound_min (line 213) | fn check_lower_bound_min<'a>(candidate: &'a Expr<'_>, check: &'a Expr<'_... function get_types_from_cast (line 222) | fn get_types_from_cast( function get_implementing_type (line 278) | fn get_implementing_type(path: &QPath<'_>, candidates: &[Symbol], functi... function int_ty_to_sym (line 291) | fn int_ty_to_sym(path: &QPath<'_>) -> Option { constant UINTS (line 302) | const UINTS: &[Symbol] = &[sym::u8, sym::u16, sym::u32, sym::u64, sym::u... constant SINTS (line 303) | const SINTS: &[Symbol] = &[sym::i8, sym::i16, sym::i32, sym::i64, sym::i... constant INTS (line 304) | const INTS: &[Symbol] = &[ FILE: clippy_lints/src/cloned_ref_to_slice_refs.rs type ClonedRefToSliceRefs (line 49) | pub struct ClonedRefToSliceRefs<'a> { function new (line 53) | pub fn new(conf: &'a Conf) -> Self { function check_expr (line 59) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/coerce_container_to_any.rs method check_expr (line 53) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function is_ref_dyn_any (line 102) | fn is_ref_dyn_any(tcx: TyCtxt<'_>, ty: Ty<'_>) -> bool { function is_dyn_any (line 109) | fn is_dyn_any(tcx: TyCtxt<'_>, ty: Ty<'_>) -> bool { FILE: clippy_lints/src/cognitive_complexity.rs type CognitiveComplexity (line 45) | pub struct CognitiveComplexity { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method check (line 58) | fn check<'tcx>( method check_fn (line 138) | fn check_fn( method check_attributes (line 164) | fn check_attributes(&mut self, cx: &LateContext<'tcx>, attrs: &'tcx [A... method check_attributes_post (line 167) | fn check_attributes_post(&mut self, cx: &LateContext<'tcx>, attrs: &'t... FILE: clippy_lints/src/collapsible_if.rs type CollapsibleIf (line 84) | pub struct CollapsibleIf { method new (line 90) | pub fn new(conf: &'static Conf) -> Self { method check_collapsible_else_if (line 97) | fn check_collapsible_else_if(&self, cx: &LateContext<'_>, then_span: S... method check_collapsible_if_if (line 166) | fn check_collapsible_if_if(&self, cx: &LateContext<'_>, expr: &Expr<'_... method eligible_condition (line 217) | fn eligible_condition(&self, cx: &LateContext<'_>, cond: &Expr<'_>) ->... method check_significant_tokens_and_expect_attrs (line 226) | fn check_significant_tokens_and_expect_attrs( method check_expr (line 262) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function single_inner_if_else (line 284) | fn single_inner_if_else(expr: &Expr<'_>) -> bool { function expr_block (line 298) | fn expr_block<'tcx>(block: &Block<'tcx>) -> Option<&'tcx Expr<'tcx>> { function parens_around (line 307) | pub(super) fn parens_around(expr: &Expr<'_>) -> Vec<(Span, String)> { function span_extract_keyword (line 320) | fn span_extract_keyword(cx: &impl HasSession, span: Span, keyword: &str)... function peel_parens (line 336) | pub(super) fn peel_parens(cx: &impl HasSession, mut span: Span) -> (Span... function peel_parens_str (line 354) | fn peel_parens_str(snippet: &str) -> Option<(usize, &str, usize)> { FILE: clippy_lints/src/collection_is_never_read.rs method check_local (line 47) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt<'... function match_acceptable_type (line 59) | fn match_acceptable_type(cx: &LateContext<'_>, local: &LetStmt<'_>) -> b... function has_no_read_access (line 77) | fn has_no_read_access<'tcx, T: Visitable<'tcx>>(cx: &LateContext<'tcx>, ... FILE: clippy_lints/src/comparison_chain.rs method check_expr (line 59) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function kind_is_cmp (line 143) | fn kind_is_cmp(kind: BinOpKind) -> bool { FILE: clippy_lints/src/copy_iterator.rs method check_item (line 38) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/crate_in_macro_def.rs method check_item (line 56) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { function is_macro_export (line 74) | fn is_macro_export(attr: &Attribute) -> bool { function contains_unhygienic_crate_reference (line 84) | fn contains_unhygienic_crate_reference(tts: &TokenStream) -> Option { function is_crate_keyword (line 106) | fn is_crate_keyword(tt: &TokenTree) -> Option { function is_token (line 121) | fn is_token(tt: &TokenTree, kind: &TokenKind) -> bool { FILE: clippy_lints/src/create_dir.rs method check_expr (line 35) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/dbg_macro.rs type DbgMacro (line 38) | pub struct DbgMacro { method new (line 47) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 57) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { method check_crate_post (line 131) | fn check_crate_post(&mut self, _: &LateContext<'_>) { function is_coroutine_desugar (line 136) | fn is_coroutine_desugar(expr: &Expr<'_>) -> bool { function is_async_move_desugar (line 146) | fn is_async_move_desugar<'tcx>(expr: &'tcx Expr<'tcx>) -> Option<&'tcx E... function first_dbg_macro_in_expansion (line 165) | fn first_dbg_macro_in_expansion(cx: &LateContext<'_>, span: Span) -> Opt... function collect_vals (line 183) | fn collect_vals<'hir>(first: &'hir Expr<'hir>, mut arms: &'hir [Arm<'hir... FILE: clippy_lints/src/default.rs type Default (line 75) | pub struct Default { method check_expr (line 81) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_block (line 111) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &Block<'tcx>) { function field_reassigned_by_stmt (line 254) | fn field_reassigned_by_stmt<'tcx>(this: &Stmt<'tcx>, binding_name: Symbo... function is_update_syntax_base (line 272) | fn is_update_syntax_base<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<... FILE: clippy_lints/src/default_constructed_unit_structs.rs function is_alias (line 53) | fn is_alias(ty: hir::Ty<'_>) -> bool { method check_expr (line 62) | fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::... FILE: clippy_lints/src/default_instead_of_iter_empty.rs method check_expr (line 35) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function make_sugg (line 62) | fn make_sugg( FILE: clippy_lints/src/default_numeric_fallback.rs method check_body (line 54) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx>) { type NumericFallbackVisitor (line 66) | struct NumericFallbackVisitor<'a, 'tcx> { function new (line 74) | fn new(cx: &'a LateContext<'tcx>, is_parent_const: bool) -> Self { function check_lit (line 86) | fn check_lit(&self, lit: Lit, lit_ty: Ty<'tcx>, emit_hir_id: HirId) { function visit_expr (line 125) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function visit_pat (line 223) | fn visit_pat(&mut self, pat: &'tcx Pat<'_>) { function visit_stmt (line 237) | fn visit_stmt(&mut self, stmt: &'tcx Stmt<'_>) { function fn_sig_opt (line 250) | fn fn_sig_opt<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) -> Option) -> Self { method from (line 271) | fn from(v: Option>) -> Self { FILE: clippy_lints/src/default_union_representation.rs method check_item (line 55) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function is_union_with_two_non_zst_fields (line 81) | fn is_union_with_two_non_zst_fields<'tcx>(cx: &LateContext<'tcx>, item: ... function is_zst (line 91) | fn is_zst<'tcx>(cx: &LateContext<'tcx>, field: &FieldDef, args: ty::Gene... function has_c_repr_attr (line 100) | fn has_c_repr_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool { FILE: clippy_lints/src/dereference.rs type Dereferencing (line 153) | pub struct Dereferencing<'tcx> { type StateData (line 180) | struct StateData<'tcx> { type DerefedBorrow (line 186) | struct DerefedBorrow { type State (line 194) | enum State { type RefOp (line 220) | enum RefOp { type RefPat (line 226) | struct RefPat { function check_expr (line 241) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_pat (line 614) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>) { function check_body_post (line 657) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, body: &Body<'_>) { function check_item (line 682) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { function check_item_post (line 689) | fn check_item_post(&mut self, _cx: &LateContext<'_>, item: &Item<'_>) { function is_deref_or_derefmut_impl (line 697) | fn is_deref_or_derefmut_impl(cx: &LateContext<'_>, item: &Item<'_>) -> b... function try_parse_ref_op (line 708) | fn try_parse_ref_op<'tcx>( function deref_method_same_type (line 748) | fn deref_method_same_type<'tcx>(result_ty: Ty<'tcx>, arg_ty: Ty<'tcx>) -... function is_in_method_chain (line 759) | fn is_in_method_chain<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>)... type TyCoercionStability (line 784) | enum TyCoercionStability { method is_deref_stable (line 790) | fn is_deref_stable(self) -> bool { method is_reborrow_stable (line 794) | fn is_reborrow_stable(self) -> bool { method for_defined_ty (line 798) | fn for_defined_ty<'tcx>(cx: &LateContext<'tcx>, ty: DefinedTy<'tcx>, f... method for_hir_ty (line 819) | fn for_hir_ty<'tcx>(ty: &'tcx hir::Ty<'tcx>) -> Self { method for_mir_ty (line 872) | fn for_mir_ty<'tcx>(tcx: TyCtxt<'tcx>, def_site_def_id: Option,... function ty_contains_infer (line 933) | fn ty_contains_infer(ty: &hir::Ty<'_>) -> bool { function ty_contains_field (line 956) | fn ty_contains_field(ty: Ty<'_>, name: Symbol) -> bool { function in_deref_impl (line 965) | fn in_deref_impl(&self) -> bool { function check_local_usage (line 969) | fn check_local_usage(&mut self, cx: &LateContext<'tcx>, e: &Expr<'tcx>, ... function report (line 1029) | fn report( FILE: clippy_lints/src/derivable_impls.rs type DerivableImpls (line 61) | pub struct DerivableImpls { method new (line 66) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 230) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { function is_path_self (line 71) | fn is_path_self(e: &Expr<'_>) -> bool { function contains_trait_object (line 79) | fn contains_trait_object(ty: Ty<'_>) -> bool { function determine_derive_macro (line 88) | fn determine_derive_macro(cx: &LateContext<'_>, is_const: bool) -> Optio... function check_struct (line 95) | fn check_struct<'tcx>( function extract_enum_variant (line 160) | fn extract_enum_variant<'tcx>( function check_enum (line 187) | fn check_enum<'tcx>( FILE: clippy_lints/src/derive/derive_ord_xor_partial_ord.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/derive/derive_partial_eq_without_eq.rs function check (line 14) | pub(super) fn check<'tcx>( function ty_implements_eq_trait (line 53) | fn ty_implements_eq_trait<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, eq_trai... function typing_env_for_derived_eq (line 58) | fn typing_env_for_derived_eq(tcx: TyCtxt<'_>, did: DefId, eq_trait_id: D... FILE: clippy_lints/src/derive/derived_hash_with_manual_eq.rs function check (line 10) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/derive/expl_impl_clone_on_copy.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/derive/mod.rs method check_item (line 196) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/derive/unsafe_derive_deserialize.rs function check (line 16) | pub(super) fn check<'tcx>( type UnsafeVisitor (line 54) | struct UnsafeVisitor<'a, 'tcx> { type Result (line 59) | type Result = ControlFlow<()>; type NestedFilter (line 60) | type NestedFilter = nested_filter::All; function visit_fn (line 62) | fn visit_fn( function visit_expr (line 79) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) -> Self::Result { function maybe_tcx (line 94) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/disallowed_fields.rs type DisallowedFields (line 61) | pub struct DisallowedFields { method new (line 66) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_expr (line 80) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_pat (line 108) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>) { FILE: clippy_lints/src/disallowed_macros.rs type DisallowedMacros (line 68) | pub struct DisallowedMacros { method new (line 81) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf, early_macro_cache: At... method check (line 98) | fn check(&mut self, cx: &LateContext<'_>, span: Span, derive_src: Opti... method check_crate (line 131) | fn check_crate(&mut self, cx: &LateContext<'_>) { method check_expr (line 140) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { method check_stmt (line 148) | fn check_stmt(&mut self, cx: &LateContext<'_>, stmt: &Stmt<'_>) { method check_ty (line 152) | fn check_ty(&mut self, cx: &LateContext<'_>, ty: &Ty<'_, AmbigArg>) { method check_pat (line 156) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &Pat<'_>) { method check_item (line 160) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { method check_foreign_item (line 173) | fn check_foreign_item(&mut self, cx: &LateContext<'_>, item: &ForeignI... method check_impl_item (line 178) | fn check_impl_item(&mut self, cx: &LateContext<'_>, item: &ImplItem<'_... method check_trait_item (line 185) | fn check_trait_item(&mut self, cx: &LateContext<'_>, item: &TraitItem<... method check_path (line 189) | fn check_path(&mut self, cx: &LateContext<'_>, path: &Path<'_>, _: Hir... FILE: clippy_lints/src/disallowed_methods.rs type DisallowedMethods (line 66) | pub struct DisallowedMethods { method new (line 71) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_expr (line 90) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/disallowed_names.rs type DisallowedNames (line 31) | pub struct DisallowedNames { method new (line 36) | pub fn new(conf: &'static Conf) -> Self { method check_pat (line 44) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>) { FILE: clippy_lints/src/disallowed_script_idents.rs type DisallowedScriptIdents (line 50) | pub struct DisallowedScriptIdents { method new (line 55) | pub fn new(conf: &'static Conf) -> Self { method check_crate (line 68) | fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) { FILE: clippy_lints/src/disallowed_types.rs type DisallowedTypes (line 62) | pub struct DisallowedTypes { method new (line 68) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_res_emit (line 80) | fn check_res_emit(&self, cx: &LateContext<'_>, res: &Res, span: Span) { method check_item (line 110) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_ty (line 118) | fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx, Ambi... method check_poly_trait_ref (line 124) | fn check_poly_trait_ref(&mut self, cx: &LateContext<'tcx>, poly: &'tcx... function def_kind_predicate (line 96) | pub fn def_kind_predicate(def_kind: DefKind) -> bool { FILE: clippy_lints/src/doc/broken_link.rs function check (line 17) | pub fn check(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &st... function warn_if_broken_link (line 21) | fn warn_if_broken_link(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>... function report_broken_link (line 71) | fn report_broken_link(cx: &LateContext<'_>, frag_span: Span, offset: usi... FILE: clippy_lints/src/doc/doc_comment_double_space_linebreaks.rs function check (line 8) | pub fn check(cx: &LateContext<'_>, collected_breaks: &[Span]) { FILE: clippy_lints/src/doc/doc_paragraphs_missing_punctuation.rs constant MSG (line 9) | const MSG: &str = "doc paragraphs should end with a terminal punctuation... constant PUNCTUATION_SUGGESTION (line 10) | const PUNCTUATION_SUGGESTION: char = '.'; function check (line 12) | pub fn check(cx: &LateContext<'_>, doc: &str, fragments: Fragments<'_>) { function is_missing_punctuation (line 48) | fn is_missing_punctuation(doc_string: &str) -> Vec { function trim_trailing_symbols (line 125) | fn trim_trailing_symbols(s: &str) -> &str { type MissingPunctuation (line 141) | enum MissingPunctuation { FILE: clippy_lints/src/doc/doc_suspicious_footnotes.rs function check (line 13) | pub fn check(cx: &LateContext<'_>, doc: &str, range: Range, fragm... function all_numbers_upto_brace (line 117) | fn all_numbers_upto_brace(text: &str, i: usize) -> Option { FILE: clippy_lints/src/doc/include_in_doc_without_cfg.rs function check (line 9) | pub fn check(cx: &EarlyContext<'_>, attrs: &[Attribute]) { FILE: clippy_lints/src/doc/lazy_continuation.rs function map_container_to_text (line 10) | fn map_container_to_text(c: &super::Container) -> &'static str { function check (line 18) | pub(super) fn check( FILE: clippy_lints/src/doc/link_with_quotes.rs function check (line 8) | pub fn check(cx: &LateContext<'_>, trimmed_text: &str, range: Range, body_id: BodyId) -> Option { FILE: clippy_lints/src/doc/mod.rs type Documentation (line 730) | pub struct Documentation { method new (line 736) | pub fn new(conf: &'static Conf) -> Self { method check_attributes (line 751) | fn check_attributes(&mut self, cx: &LateContext<'tcx>, attrs: &'tcx [A... method check_attributes (line 745) | fn check_attributes(&mut self, cx: &EarlyContext<'_>, attrs: &[rustc_ast... type Fragments (line 818) | struct Fragments<'a> { function span (line 827) | fn span(self, cx: &LateContext<'_>, range: Range) -> Option { type DocHeaders (line 833) | struct DocHeaders { function check_attrs (line 847) | fn check_attrs(cx: &LateContext<'_>, valid_idents: &FxHashSet, a... type Container (line 941) | enum Container { function check_for_code_clusters (line 950) | fn check_for_code_clusters<'a, Events: Iterator Self { method default (line 1017) | fn default() -> Self { function check_doc (line 1080) | fn check_doc<'a, Events: Iterator, Ran... function looks_like_refdef (line 1324) | fn looks_like_refdef(doc: &str, range: Range) -> Option(mut tokens: impl Iterator, text: &str, offset: usize, fragments:... FILE: clippy_lints/src/doc/suspicious_doc_comments.rs function check (line 12) | pub fn check(cx: &LateContext<'_>, attrs: &[Attribute]) -> bool { function collect_doc_replacements (line 36) | fn collect_doc_replacements(attrs: &[Attribute]) -> Vec<(Span, String)> { FILE: clippy_lints/src/doc/test_attr_in_doctest.rs function check (line 8) | pub fn check(cx: &LateContext<'_>, text: &str, offset: usize, fragments:... FILE: clippy_lints/src/doc/too_long_first_doc_paragraph.rs function check (line 12) | pub(super) fn check( FILE: clippy_lints/src/double_parens.rs method check_expr (line 44) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function check_source (line 104) | fn check_source(cx: &EarlyContext<'_>, inner: &Expr) -> bool { FILE: clippy_lints/src/drop_forget_ref.rs constant DROP_NON_DROP_SUMMARY (line 75) | const DROP_NON_DROP_SUMMARY: &str = "call to `std::mem::drop` with a val... constant FORGET_NON_DROP_SUMMARY (line 77) | const FORGET_NON_DROP_SUMMARY: &str = "call to `std::mem::forget` with a... method check_expr (line 81) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function is_single_call_in_arm (line 143) | fn is_single_call_in_arm<'tcx>(cx: &LateContext<'tcx>, arg: &'tcx Expr<'... FILE: clippy_lints/src/duplicate_mod.rs type Modules (line 51) | struct Modules { type DuplicateMod (line 58) | pub struct DuplicateMod { method check_item (line 65) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { method check_crate_post (line 81) | fn check_crate_post(&mut self, cx: &EarlyContext<'_>, _: &Crate) { FILE: clippy_lints/src/duration_suboptimal_units.rs type DurationSuboptimalUnits (line 53) | pub struct DurationSuboptimalUnits { method new (line 59) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_expr (line 70) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { method promote (line 117) | fn promote(&self, cx: &LateContext<'_>, constructor_name: Symbol, valu... type Unit (line 143) | struct Unit { constant UNITS (line 159) | const UNITS: [Unit; 6] = [ constant EXTENDED_UNITS (line 194) | const EXTENDED_UNITS: [Unit; 2] = [ FILE: clippy_lints/src/else_if_without_else.rs method check_expr (line 49) | fn check_expr(&mut self, cx: &EarlyContext<'_>, item: &Expr) { FILE: clippy_lints/src/empty_drop.rs method check_item (line 38) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/empty_enums.rs method check_item (line 61) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/empty_line_after.rs type ItemInfo (line 97) | struct ItemInfo { type EmptyLineAfter (line 104) | pub struct EmptyLineAfter { method new (line 109) | pub fn new() -> Self { method check_gaps (line 308) | fn check_gaps(&self, cx: &EarlyContext<'_>, gaps: &[Gap<'_>], id: Node... method suggest_inner (line 401) | fn suggest_inner(&self, diag: &mut Diag<'_, ()>, kind: StopKind, gaps:... method check_item_kind (line 428) | fn check_item_kind( type StopKind (line 115) | enum StopKind { method is_doc (line 121) | fn is_doc(self) -> bool { type Stop (line 127) | struct Stop { method is_outer_attr_only (line 136) | fn is_outer_attr_only(&self) -> bool { method convert_to_inner (line 177) | fn convert_to_inner(&self) -> Option<(Span, String)> { method comment_out (line 191) | fn comment_out(&self, cx: &EarlyContext<'_>, suggestions: &mut Vec<(Sp... method from_attr (line 213) | fn from_attr(cx: &EarlyContext<'_>, attr: &Attribute) -> Option { type Gap (line 242) | struct Gap<'a> { function new (line 253) | fn new(cx: &EarlyContext<'_>, prev_chunk: &'a [Stop], next_chunk: &'a [S... function contiguous_empty_lines (line 293) | fn contiguous_empty_lines(&self) -> impl Iterator + '_ { method check_crate (line 500) | fn check_crate(&mut self, _: &EarlyContext<'_>, krate: &Crate) { method check_item_post (line 514) | fn check_item_post(&mut self, _: &EarlyContext<'_>, _: &Item) { method check_impl_item_post (line 517) | fn check_impl_item_post(&mut self, _: &EarlyContext<'_>, _: &Item, _: &Item, item: &Item, item: &Item, item: &Item) { FILE: clippy_lints/src/empty_with_brackets.rs type Usage (line 86) | enum Usage { type EmptyWithBrackets (line 93) | pub struct EmptyWithBrackets { method check_item (line 99) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { method check_variant (line 125) | fn check_variant(&mut self, cx: &LateContext<'_>, variant: &Variant<'_... method check_expr (line 147) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { method check_pat (line 168) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &Pat<'_>) { method check_crate_post (line 176) | fn check_crate_post(&mut self, cx: &LateContext<'_>) { method add_enum_variant (line 232) | fn add_enum_variant(&mut self, local_def_id: LocalDefId) { method update_enum_variant_usage (line 250) | fn update_enum_variant_usage(&mut self, def_id: LocalDefId, parenthese... function has_brackets (line 268) | fn has_brackets(var_data: &VariantData<'_>) -> bool { function has_no_fields (line 272) | fn has_no_fields(cx: &LateContext<'_>, var_data: &VariantData<'_>, brace... function call_parentheses_span (line 281) | fn call_parentheses_span(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> Option, expr: &Expr<'_>... function check_pat_for_enum_as_function (line 317) | fn check_pat_for_enum_as_function(cx: &LateContext<'_>, pat: &Pat<'_>) -... FILE: clippy_lints/src/endian_bytes.rs constant HOST_NAMES (line 72) | const HOST_NAMES: [Symbol; 2] = [sym::from_ne_bytes, sym::to_ne_bytes]; constant LITTLE_NAMES (line 73) | const LITTLE_NAMES: [Symbol; 2] = [sym::from_le_bytes, sym::to_le_bytes]; constant BIG_NAMES (line 74) | const BIG_NAMES: [Symbol; 2] = [sym::from_be_bytes, sym::to_be_bytes]; type LintKind (line 77) | enum LintKind { method allowed (line 90) | fn allowed(&self, cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { method as_lint (line 94) | fn as_lint(&self) -> &'static Lint { method as_name (line 102) | fn as_name(&self, prefix: Prefix) -> Symbol { type Prefix (line 84) | enum Prefix { method check_expr (line 114) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function maybe_lint_endian_bytes (line 135) | fn maybe_lint_endian_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, prefix... FILE: clippy_lints/src/entry.rs method check_expr (line 67) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type MapType (line 218) | enum MapType { method name (line 223) | fn name(self) -> &'static str { method entry_path (line 229) | fn entry_path(self) -> &'static str { type ContainsExpr (line 247) | struct ContainsExpr<'tcx> { function try_parse_contains (line 262) | fn try_parse_contains<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'_>) ... type InsertExpr (line 307) | struct InsertExpr<'tcx> { function try_parse_insert (line 319) | fn try_parse_insert<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ... type Edit (line 336) | enum Edit<'tcx> { function as_insertion (line 343) | fn as_insertion(self) -> Option> { type Insertion (line 348) | struct Insertion<'tcx> { type InsertSearcher (line 362) | struct InsertSearcher<'cx, 'tcx> { function visit_cond_arm (line 397) | fn visit_cond_arm(&mut self, e: &'tcx Expr<'_>) -> bool { function visit_non_tail_expr (line 409) | fn visit_non_tail_expr(&mut self, e: &'tcx Expr<'_>) { function visit_insert_expr_arguments (line 418) | fn visit_insert_expr_arguments(&mut self, e: &InsertExpr<'tcx>) { function visit_stmt (line 430) | fn visit_stmt(&mut self, stmt: &'tcx Stmt<'_>) { function visit_block (line 466) | fn visit_block(&mut self, block: &'tcx Block<'_>) { function visit_expr (line 495) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function visit_pat (line 590) | fn visit_pat(&mut self, p: &'tcx Pat<'tcx>) { function is_any_expr_in_map_used (line 600) | fn is_any_expr_in_map_used<'tcx>( type InsertSearchResults (line 615) | struct InsertSearchResults<'tcx> { function as_single_insertion (line 622) | fn as_single_insertion(&self) -> Option> { function snippet (line 626) | fn snippet( function snippet_occupied (line 657) | fn snippet_occupied(&self, cx: &LateContext<'_>, span: Span, app: &mut A... function snippet_vacant (line 671) | fn snippet_vacant(&self, cx: &LateContext<'_>, span: Span, app: &mut App... function snippet_closure (line 694) | fn snippet_closure(&self, cx: &LateContext<'_>, mut span: Span, app: &mu... function find_insert_calls (line 722) | fn find_insert_calls<'tcx>( function is_mutex_guard (line 765) | fn is_mutex_guard(cx: &LateContext<'_>, def_id: DefId) -> bool { FILE: clippy_lints/src/enum_clike.rs method check_item (line 37) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/equatable_if_let.rs function is_unary_pattern (line 44) | fn is_unary_pattern(pat: &Pat<'_>) -> bool { function is_structural_partial_eq (line 64) | fn is_structural_partial_eq<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, ... function contains_type_mismatch (line 75) | fn contains_type_mismatch(cx: &LateContext<'_>, pat: &Pat<'_>) -> bool { method check_expr (line 105) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/error_impl_error.rs method check_item (line 39) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function is_visible_outside_module (line 82) | fn is_visible_outside_module(cx: &LateContext<'_>, def_id: LocalDefId) -... FILE: clippy_lints/src/escape.rs type BoxedLocal (line 16) | pub struct BoxedLocal { method new (line 21) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 67) | fn check_fn( function is_non_trait_box (line 55) | fn is_non_trait_box(ty: Ty<'_>) -> bool { type EscapeDelegate (line 59) | struct EscapeDelegate<'a, 'tcx> { function is_argument (line 124) | fn is_argument(tcx: TyCtxt<'_>, id: HirId) -> bool { function consume (line 137) | fn consume(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId) { function use_cloned (line 146) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function borrow (line 148) | fn borrow(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId, _: ty::Borrow... function mutate (line 157) | fn mutate(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId) { function fake_read (line 180) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _: H... function is_large_box (line 184) | fn is_large_box(&self, ty: Ty<'tcx>) -> bool { FILE: clippy_lints/src/eta_reduction.rs method check_expr (line 74) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { function check_closure (line 90) | fn check_closure<'tcx>(cx: &LateContext<'tcx>, outer_receiver: Option<&E... function check_inputs (line 299) | fn check_inputs( function check_sig (line 320) | fn check_sig<'tcx>(closure_sig: FnSig<'tcx>, call_sig: FnSig<'tcx>) -> b... function has_late_bound_to_non_late_bound_regions (line 328) | fn has_late_bound_to_non_late_bound_regions(from_sig: FnSig<'_>, to_sig:... function ty_has_static (line 384) | fn ty_has_static(ty: Ty<'_>) -> bool { FILE: clippy_lints/src/excessive_bools.rs type ExcessiveBools (line 96) | pub struct ExcessiveBools { method new (line 102) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 132) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_trait_item (line 153) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, trait_item: &'t... method check_fn (line 163) | fn check_fn( function has_n_bools (line 110) | fn has_n_bools<'tcx>(iter: impl Iterator>, mut cou... function check_fn_decl (line 118) | fn check_fn_decl(cx: &LateContext<'_>, decl: &FnDecl<'_>, sp: Span, max:... FILE: clippy_lints/src/excessive_nesting.rs type ExcessiveNesting (line 67) | pub struct ExcessiveNesting { method new (line 73) | pub fn new(conf: &'static Conf) -> Self { method check_node_id (line 80) | pub fn check_node_id(&self, cx: &EarlyContext<'_>, span: Span, node_id... method check_crate (line 95) | fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &Crate) { method check_block (line 111) | fn check_block(&mut self, cx: &EarlyContext<'_>, block: &Block) { method check_item (line 115) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { type NestingVisitor (line 120) | struct NestingVisitor<'conf, 'cx> { function check_indent (line 127) | fn check_indent(&mut self, span: Span, id: NodeId) -> bool { function visit_block (line 141) | fn visit_block(&mut self, block: &Block) { function visit_item (line 162) | fn visit_item(&mut self, item: &Item) { FILE: clippy_lints/src/exhaustive_items.rs method check_item (line 71) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/exit.rs method check_expr (line 58) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { FILE: clippy_lints/src/explicit_write.rs type ExplicitWrite (line 44) | pub struct ExplicitWrite { method new (line 49) | pub fn new(format_args: FormatArgsStorage) -> Self { method check_expr (line 55) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function look_in_block (line 118) | fn look_in_block<'tcx, 'hir>(cx: &LateContext<'tcx>, kind: &'tcx ExprKin... FILE: clippy_lints/src/extra_unused_type_parameters.rs type ExtraUnusedTypeParameters (line 45) | pub struct ExtraUnusedTypeParameters { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 259) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_impl_item (line 277) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Impl... type TypeWalker (line 59) | struct TypeWalker<'cx, 'tcx> { function new (line 73) | fn new(cx: &'cx LateContext<'tcx>, generics: &'tcx Generics<'tcx>) -> Se... function get_bound_span (line 92) | fn get_bound_span(&self, param: &'tcx GenericParam<'tcx>) -> Span { function emit_help (line 98) | fn emit_help(&self, spans: Vec, msg: String, help: &'static str) { function emit_sugg (line 102) | fn emit_sugg(&self, spans: Vec, msg: String, help: &'static str) { function emit_lint (line 109) | fn emit_lint(&self) { function bound_to_trait_def_id (line 196) | fn bound_to_trait_def_id(bound: &GenericBound<'_>) -> Option { type NestedFilter (line 201) | type NestedFilter = nested_filter::OnlyBodies; function visit_ty (line 203) | fn visit_ty(&mut self, t: &'tcx Ty<'tcx, AmbigArg>) { function visit_where_predicate (line 211) | fn visit_where_predicate(&mut self, predicate: &'tcx WherePredicate<'tcx... function maybe_tcx (line 249) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function is_empty_body (line 254) | fn is_empty_body(cx: &LateContext<'_>, body: BodyId) -> bool { FILE: clippy_lints/src/fallible_impl_from.rs method check_item (line 53) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'... function lint_impl_body (line 64) | fn lint_impl_body(cx: &LateContext<'_>, item_def_id: hir::OwnerId, impl_... FILE: clippy_lints/src/field_scoped_visibility_modifiers.rs method check_item (line 55) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/float_literal.rs type FloatLiteral (line 66) | pub struct FloatLiteral { method new (line 71) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 79) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... function max_digits (line 177) | fn max_digits(fty: FloatTy) -> u32 { function count_digits (line 188) | fn count_digits(s: &str) -> usize { type FloatFormat (line 199) | enum FloatFormat { method new (line 206) | fn new(s: &str) -> Self { method format (line 215) | fn format(&self, f: T) -> String function maybe_let_stmt (line 227) | fn maybe_let_stmt<'a>(cx: &LateContext<'a>, expr: &hir::Expr<'_>) -> Opt... FILE: clippy_lints/src/floating_point_arithmetic/custom_abs.rs function is_testing_positive (line 18) | fn is_testing_positive(cx: &LateContext<'_>, expr: &Expr<'_>, test: &Exp... function is_testing_negative (line 31) | fn is_testing_negative(cx: &LateContext<'_>, expr: &Expr<'_>, test: &Exp... function is_zero (line 44) | fn is_zero(cx: &LateContext<'_>, expr: &Expr<'_>, ctxt: SyntaxContext) -... function are_negated (line 59) | fn are_negated<'a>(cx: &LateContext<'_>, expr1: &'a Expr<'a>, expr2: &'a... function check (line 73) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/floating_point_arithmetic/expm1.rs function check (line 15) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/floating_point_arithmetic/hypot.rs function detect (line 13) | pub(super) fn detect(cx: &LateContext<'_>, receiver: &Expr<'_>, app: &mu... function check (line 69) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/floating_point_arithmetic/lib.rs function prepare_receiver_sugg (line 9) | pub(super) fn prepare_receiver_sugg<'a>( FILE: clippy_lints/src/floating_point_arithmetic/ln1p.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/floating_point_arithmetic/log_base.rs function get_specialized_log_method (line 16) | fn get_specialized_log_method(cx: &LateContext<'_>, base: &Expr<'_>, ctx... function check (line 30) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/floating_point_arithmetic/log_division.rs function are_same_base_logs (line 11) | fn are_same_base_logs(cx: &LateContext<'_>, expr_a: &Expr<'_>, expr_b: &... function check (line 24) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/floating_point_arithmetic/mod.rs method check_expr (line 109) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/floating_point_arithmetic/mul_add.rs function is_float_mul_expr (line 12) | fn is_float_mul_expr<'a>(cx: &LateContext<'_>, expr: &'a Expr<'a>) -> Op... function check (line 29) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/floating_point_arithmetic/powf.rs function get_integer_from_float_constant (line 19) | fn get_integer_from_float_constant(value: &Constant) -> Option { function check (line 39) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/floating_point_arithmetic/powi.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/floating_point_arithmetic/radians.rs function check (line 15) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/format.rs type UselessFormat (line 44) | pub struct UselessFormat { method new (line 49) | pub fn new(format_args: FormatArgsStorage) -> Self { method check_expr (line 55) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function span_useless_format_empty (line 107) | fn span_useless_format_empty(cx: &LateContext<'_>, span: Span, sugg: Str... function span_useless_format (line 119) | fn span_useless_format(cx: &LateContext<'_>, span: Span, sugg: String, a... FILE: clippy_lints/src/format_args.rs type FormatArgs (line 271) | pub struct FormatArgs<'tcx> { function new (line 281) | pub fn new(tcx: TyCtxt<'tcx>, conf: &'static Conf, format_args: FormatAr... function check_expr (line 295) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { type FormatArgsExpr (line 322) | struct FormatArgsExpr<'a, 'tcx> { function check_trailing_comma (line 336) | fn check_trailing_comma(&self) { function check_templates (line 358) | fn check_templates(&mut self) { function check_unused_format_specifier (line 395) | fn check_unused_format_specifier(&self, placeholder: &FormatPlaceholder,... function check_uninlined_args (line 445) | fn check_uninlined_args(&self) { function check_one_arg (line 499) | fn check_one_arg(&self, pos: &FormatArgPosition, usage: FormatParamUsage... function check_format_in_format_args (line 527) | fn check_format_in_format_args(&self, name: Symbol, arg: &Expr<'_>) { function check_to_string_in_format_args (line 550) | fn check_to_string_in_format_args(&self, name: Symbol, value: &Expr<'_>) { function check_unnecessary_debug_formatting (line 596) | fn check_unnecessary_debug_formatting(&self, name: Symbol, value: &Expr<... function format_arg_positions (line 634) | fn format_arg_positions(&self) -> impl Iterator bool { function can_display_format (line 661) | fn can_display_format(&self, ty: Ty<'tcx>) -> bool { function has_pointer_debug (line 684) | fn has_pointer_debug(&mut self, ty: Ty<'tcx>, depth: usize) -> bool { function make_ty_msrv_map (line 737) | fn make_ty_msrv_map(tcx: TyCtxt<'_>) -> FxHashMap, Option(mut ty: Ty<'tcx>, mut iter: I) -> (usize... FILE: clippy_lints/src/format_impl.rs type FormatTraitNames (line 96) | struct FormatTraitNames { type FormatImpl (line 103) | pub struct FormatImpl { method new (line 110) | pub fn new(format_args: FormatArgsStorage) -> Self { method check_impl_item (line 119) | fn check_impl_item(&mut self, cx: &LateContext<'_>, impl_item: &ImplIt... method check_impl_item_post (line 123) | fn check_impl_item_post(&mut self, cx: &LateContext<'_>, impl_item: &I... method check_expr (line 130) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type FormatImplExpr (line 145) | struct FormatImplExpr<'a, 'tcx> { function check_to_string_in_display (line 153) | fn check_to_string_in_display(&self) { function check_self_in_format_args (line 181) | fn check_self_in_format_args(&self) { function check_format_arg_self (line 212) | fn check_format_arg_self(&self, arg: &Expr<'_>) { function check_print_in_format_impl (line 229) | fn check_print_in_format_impl(&self) { function is_format_trait_impl (line 258) | fn is_format_trait_impl(cx: &LateContext<'_>, impl_item: &ImplItem<'_>) ... FILE: clippy_lints/src/format_push_string.rs type FormatPushString (line 47) | pub(crate) struct FormatPushString { method new (line 72) | pub(crate) fn new(format_args: FormatArgsStorage) -> Self { method find_formats (line 76) | fn find_formats<'tcx>(&self, cx: &LateContext<'_>, e: &'tcx Expr<'tcx>... method check_expr (line 123) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type FormatSearchResults (line 51) | enum FormatSearchResults { function is_string (line 192) | fn is_string(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { FILE: clippy_lints/src/formatting.rs method check_block (line 149) | fn check_block(&mut self, cx: &EarlyContext<'_>, block: &Block) { method check_expr (line 157) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function check_assign (line 166) | fn check_assign(cx: &EarlyContext<'_>, expr: &Expr) { function check_unop (line 195) | fn check_unop(cx: &EarlyContext<'_>, expr: &Expr) { function check_else (line 227) | fn check_else(cx: &EarlyContext<'_>, expr: &Expr) { function has_unary_equivalent (line 279) | fn has_unary_equivalent(bin_op: BinOpKind) -> bool { function indentation (line 284) | fn indentation(cx: &EarlyContext<'_>, span: Span) -> usize { function check_array (line 289) | fn check_array(cx: &EarlyContext<'_>, expr: &Expr) { function check_missing_else (line 314) | fn check_missing_else(cx: &EarlyContext<'_>, first: &Expr, second: &Expr) { function is_block (line 345) | fn is_block(expr: &Expr) -> bool { function is_if (line 350) | fn is_if(expr: &Expr) -> bool { FILE: clippy_lints/src/four_forward_slashes.rs method check_item (line 42) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function contains_bare_cr (line 113) | fn contains_bare_cr(text: &str) -> bool { FILE: clippy_lints/src/from_over_into.rs type FromOverInto (line 57) | pub struct FromOverInto { method new (line 62) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 68) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { type SelfFinder (line 125) | struct SelfFinder<'a, 'tcx> { type Result (line 134) | type Result = ControlFlow<()>; type NestedFilter (line 135) | type NestedFilter = OnlyBodies; function maybe_tcx (line 137) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_path (line 141) | fn visit_path(&mut self, path: &Path<'tcx>, _id: HirId) -> Self::Result { function visit_name (line 157) | fn visit_name(&mut self, name: Symbol) -> Self::Result { function convert_to_from (line 166) | fn convert_to_from( FILE: clippy_lints/src/from_raw_with_void_ptr.rs method check_expr (line 42) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function def_id_matches_type (line 66) | fn def_id_matches_type(cx: &LateContext<'_>, def_id: DefId) -> Option<&'... FILE: clippy_lints/src/from_str_radix_10.rs method check_expr (line 46) | fn check_expr(&mut self, cx: &LateContext<'tcx>, exp: &Expr<'tcx>) { function is_ty_stringish (line 91) | fn is_ty_stringish(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { FILE: clippy_lints/src/functions/duplicate_underscore_argument.rs function check (line 10) | pub(super) fn check(cx: &EarlyContext<'_>, fn_kind: FnKind<'_>) { FILE: clippy_lints/src/functions/impl_trait_in_params.rs function report (line 12) | fn report(cx: &LateContext<'_>, param: &GenericParam<'_>, generics: &Gen... function check_fn (line 40) | pub(super) fn check_fn<'tcx>(cx: &LateContext<'_>, kind: &'tcx FnKind<'_... function check_impl_item (line 53) | pub(super) fn check_impl_item(cx: &LateContext<'_>, impl_item: &ImplItem... function check_trait_item (line 70) | pub(super) fn check_trait_item(cx: &LateContext<'_>, trait_item: &TraitI... FILE: clippy_lints/src/functions/misnamed_getters.rs function check_fn (line 14) | pub fn check_fn(cx: &LateContext<'_>, kind: FnKind<'_>, decl: &FnDecl<'_... FILE: clippy_lints/src/functions/mod.rs method check_fn (line 494) | fn check_fn(&mut self, cx: &EarlyContext<'_>, fn_kind: visit::FnKind<'_>... type Functions (line 499) | pub struct Functions { method new (line 512) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_fn (line 534) | fn check_fn( method check_item (line 561) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item... method check_impl_item (line 572) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir:... method check_trait_item (line 585) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir... method check_expr (line 600) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... FILE: clippy_lints/src/functions/must_use.rs function check_item (line 25) | pub(super) fn check_item<'tcx>(cx: &LateContext<'tcx>, item: &'tcx hir::... function check_impl_item (line 63) | pub(super) fn check_impl_item<'tcx>(cx: &LateContext<'tcx>, item: &'tcx ... function check_trait_item (line 95) | pub(super) fn check_trait_item<'tcx>(cx: &LateContext<'tcx>, item: &'tcx... function check_needless_must_use (line 133) | fn check_needless_must_use( function check_must_use_candidate (line 195) | fn check_must_use_candidate<'tcx>( function returns_unit (line 233) | fn returns_unit(decl: &hir::FnDecl<'_>) -> bool { function has_mutable_arg (line 244) | fn has_mutable_arg(cx: &LateContext<'_>, body: &hir::Body<'_>) -> bool { function is_mutable_pat (line 249) | fn is_mutable_pat(cx: &LateContext<'_>, pat: &hir::Pat<'_>, tys: &mut De... function is_mutable_ty (line 260) | fn is_mutable_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, tys: &mut D... function is_mutated_static (line 278) | fn is_mutated_static(e: &hir::Expr<'_>) -> bool { function mutates_static (line 289) | fn mutates_static<'tcx>(cx: &LateContext<'tcx>, body: &'tcx hir::Body<'_... FILE: clippy_lints/src/functions/not_unsafe_ptr_arg_deref.rs function check_fn (line 16) | pub(super) fn check_fn<'tcx>( function check_trait_item (line 32) | pub(super) fn check_trait_item<'tcx>(cx: &LateContext<'tcx>, item: &'tcx... function check_raw_ptr (line 39) | fn check_raw_ptr<'tcx>( function raw_ptr_arg (line 78) | fn raw_ptr_arg(cx: &LateContext<'_>, arg: &hir::Param<'_>) -> Option, raw_ptrs: &HirIdSet, arg: &hir::Expr<... FILE: clippy_lints/src/functions/ref_option.rs function check_ty (line 14) | fn check_ty<'a>(cx: &LateContext<'a>, param: &hir::Ty<'a>, param_ty: Ty<... function check_fn_sig (line 42) | fn check_fn_sig<'a>(cx: &LateContext<'a>, decl: &FnDecl<'a>, span: Span,... function check_fn (line 66) | pub(crate) fn check_fn<'a>( function check_trait_item (line 120) | pub(super) fn check_trait_item<'a>( FILE: clippy_lints/src/functions/renamed_function_params.rs function check_impl_item (line 12) | pub(super) fn check_impl_item(cx: &LateContext<'_>, item: &ImplItem<'_>,... type RenamedFnArgs (line 48) | struct RenamedFnArgs(Vec<(Span, String)>); method new (line 53) | fn new(default_idents: &mut I1, current_idents: &mut I2) -> Self method multi_span (line 79) | fn multi_span(&self) -> MultiSpan { function is_from_ignored_trait (line 89) | fn is_from_ignored_trait(of_trait: &TraitRef<'_>, ignored_traits: &DefId... FILE: clippy_lints/src/functions/result.rs function result_err_ty (line 18) | fn result_err_ty<'tcx>( function check_item (line 39) | pub(super) fn check_item<'tcx>( function check_impl_item (line 57) | pub(super) fn check_impl_item<'tcx>( function check_trait_item (line 77) | pub(super) fn check_trait_item<'tcx>( function check_result_unit_err (line 95) | fn check_result_unit_err(cx: &LateContext<'_>, err_ty: Ty<'_>, fn_header... function check_result_large_err (line 108) | fn check_result_large_err<'tcx>( function check_expr (line 177) | pub(super) fn check_expr<'tcx>( FILE: clippy_lints/src/functions/too_many_arguments.rs function check_fn (line 13) | pub(super) fn check_fn( function check_trait_item (line 30) | pub(super) fn check_trait_item(cx: &LateContext<'_>, item: &hir::TraitIt... function check_arg_number (line 44) | fn check_arg_number(cx: &LateContext<'_>, decl: &hir::FnDecl<'_>, fn_spa... FILE: clippy_lints/src/functions/too_many_lines.rs function check_fn (line 11) | pub(super) fn check_fn( FILE: clippy_lints/src/future_not_send.rs method check_fn (line 65) | fn check_fn( type TyParamAtTopLevelVisitor (line 145) | struct TyParamAtTopLevelVisitor; type Result (line 147) | type Result = ControlFlow; method visit_ty (line 148) | fn visit_ty(&mut self, ty: Ty<'tcx>) -> Self::Result { FILE: clippy_lints/src/if_let_mutex.rs method check_expr (line 53) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function mutex_lock_call (line 90) | fn mutex_lock_call<'tcx>( FILE: clippy_lints/src/if_not_else.rs method check_expr (line 52) | fn check_expr(&mut self, cx: &LateContext<'_>, e: &Expr<'_>) { function make_sugg (line 107) | fn make_sugg<'a>( FILE: clippy_lints/src/if_then_some_else_none.rs type IfThenSomeElseNone (line 55) | pub struct IfThenSomeElseNone { method new (line 60) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 66) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... FILE: clippy_lints/src/ifs/branches_sharing_code.rs function check (line 20) | pub(super) fn check<'tcx>( type BlockEq (line 103) | struct BlockEq { method start_span (line 113) | fn start_span(&self, b: &Block<'_>, sm: &SourceMap) -> Option { method end_span (line 121) | fn end_span(&self, b: &Block<'_>, sm: &SourceMap) -> Option { function eq_binding_names (line 133) | fn eq_binding_names(cx: &LateContext<'_>, s: &Stmt<'_>, names: &[(HirId,... function modifies_any_local (line 164) | fn modifies_any_local<'tcx>(cx: &LateContext<'tcx>, s: &'tcx Stmt<'_>, l... function eq_stmts (line 180) | fn eq_stmts( function scan_block_for_eq (line 203) | fn scan_block_for_eq<'tcx>( function adjust_by_closest_callsite (line 380) | fn adjust_by_closest_callsite<'tcx>( function check_for_warn_of_moved_symbol (line 398) | fn check_for_warn_of_moved_symbol(cx: &LateContext<'_>, symbols: &[(HirI... function is_expr_parent_assignment (line 426) | fn is_expr_parent_assignment(cx: &LateContext<'_>, expr: &Expr<'_>) -> b... FILE: clippy_lints/src/ifs/if_same_then_else.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, conds: &[&Expr<'_>], blocks: &... FILE: clippy_lints/src/ifs/ifs_same_cond.rs function method_caller_is_mutable (line 10) | fn method_caller_is_mutable<'tcx>( function check (line 26) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, conds: &[&Expr<'_>], i... FILE: clippy_lints/src/ifs/mod.rs type CopyAndPaste (line 157) | pub struct CopyAndPaste<'tcx> { function new (line 162) | pub fn new(tcx: TyCtxt<'tcx>, conf: &'static Conf) -> Self { function check_expr (line 170) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/ifs/same_functions_in_if_cond.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, conds: &[&Expr<'_>]) { FILE: clippy_lints/src/ignored_unit_patterns.rs method check_pat (line 40) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx hir::Pat<'tcx... FILE: clippy_lints/src/impl_hash_with_borrow_str_and_bytes.rs method check_item (line 79) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/implicit_hasher.rs method check_item (line 62) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { type ImplicitHasherType (line 204) | enum ImplicitHasherType<'tcx> { function new (line 211) | fn new(cx: &LateContext<'tcx>, hir_ty: &hir::Ty<'tcx>) -> Option { function type_name (line 246) | fn type_name(&self) -> &'static str { function type_arguments (line 253) | fn type_arguments(&self) -> String { function ty (line 260) | fn ty(&self) -> Ty<'tcx> { function span (line 266) | fn span(&self) -> Span { type ImplicitHasherTypeVisitor (line 273) | struct ImplicitHasherTypeVisitor<'a, 'tcx> { function new (line 279) | fn new(cx: &'a LateContext<'tcx>) -> Self { function visit_ty (line 285) | fn visit_ty(&mut self, t: &'tcx hir::Ty<'_, AmbigArg>) { type ImplicitHasherConstructorVisitor (line 295) | struct ImplicitHasherConstructorVisitor<'a, 'b, 'tcx> { function new (line 303) | fn new(cx: &'a LateContext<'tcx>, target: &'b ImplicitHasherType<'tcx>) ... type NestedFilter (line 314) | type NestedFilter = nested_filter::OnlyBodies; function visit_body (line 316) | fn visit_body(&mut self, body: &Body<'tcx>) { function visit_expr (line 322) | fn visit_expr(&mut self, e: &'tcx Expr<'_>) { function maybe_tcx (line 365) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/implicit_return.rs function lint_return (line 46) | fn lint_return(cx: &LateContext<'_>, emission_place: HirId, span: Span) { function lint_break (line 61) | fn lint_break(cx: &LateContext<'_>, emission_place: HirId, break_span: S... type LintLocation (line 82) | enum LintLocation { method still_parent (line 89) | fn still_parent(self, b: bool) -> Self { method is_parent (line 93) | fn is_parent(self) -> bool { function get_call_site (line 99) | fn get_call_site(span: Span, ctxt: SyntaxContext) -> Option { function lint_implicit_returns (line 103) | fn lint_implicit_returns( method check_fn (line 222) | fn check_fn( FILE: clippy_lints/src/implicit_saturating_add.rs method check_expr (line 43) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function get_int_max (line 99) | fn get_int_max(ty: Ty<'_>) -> Option { function get_const (line 118) | fn get_const<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) -> Option<... function invert_op (line 132) | fn invert_op(op: BinOpKind) -> Option { FILE: clippy_lints/src/implicit_saturating_sub.rs type ImplicitSaturatingSub (line 87) | pub struct ImplicitSaturatingSub { method new (line 92) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 98) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... function check_manual_check (line 123) | fn check_manual_check<'tcx>( function check_gt (line 176) | fn check_gt( function is_side_effect_free (line 202) | fn is_side_effect_free(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function check_subtraction (line 207) | fn check_subtraction( function check_with_condition (line 306) | fn check_with_condition<'tcx>( function subtracts_one (line 381) | fn subtracts_one<'a>(cx: &LateContext<'_>, expr: &'a Expr<'a>) -> Option... function print_lint_and_sugg (line 402) | fn print_lint_and_sugg(cx: &LateContext<'_>, var_name: Symbol, expr: &Ex... FILE: clippy_lints/src/implied_bounds_in_impls.rs function emit_lint (line 53) | fn emit_lint( function try_resolve_type (line 143) | fn try_resolve_type<'tcx>( function is_same_generics (line 179) | fn is_same_generics<'tcx>( type ImplTraitBound (line 216) | struct ImplTraitBound<'tcx> { function collect_supertrait_bounds (line 235) | fn collect_supertrait_bounds<'tcx>(cx: &LateContext<'tcx>, bounds: Gener... function find_bound_in_supertraits (line 264) | fn find_bound_in_supertraits<'a, 'tcx>( function check (line 290) | fn check<'tcx>(cx: &LateContext<'tcx>, bounds: GenericBounds<'tcx>) { method check_generics (line 328) | fn check_generics(&mut self, cx: &LateContext<'tcx>, generics: &rustc_hi... method check_ty (line 341) | fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &rustc_hir::Ty<'tcx, ... FILE: clippy_lints/src/incompatible_msrv.rs type Availability (line 77) | enum Availability { type StdCrates (line 83) | struct StdCrates([Option; 6]); method new (line 85) | fn new(tcx: TyCtxt<'_>) -> Self { method contains (line 102) | fn contains(&self, krate: CrateNum) -> bool { type IncompatibleMsrv (line 107) | pub struct IncompatibleMsrv { method new (line 119) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method get_def_id_availability (line 132) | fn get_def_id_availability(&mut self, tcx: TyCtxt<'_>, def_id: DefId, ... method emit_lint_if_under_msrv (line 168) | fn emit_lint_if_under_msrv( method check_expr (line 220) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... method check_ty (line 256) | fn check_ty(&mut self, cx: &LateContext<'tcx>, hir_ty: &'tcx hir::Ty<'... function is_under_cfg_attribute (line 269) | fn is_under_cfg_attribute(cx: &LateContext<'_>, hir_id: HirId) -> bool { FILE: clippy_lints/src/inconsistent_struct_constructor.rs type InconsistentStructConstructor (line 71) | pub struct InconsistentStructConstructor { method new (line 76) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 84) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... function is_consistent_order (line 139) | fn is_consistent_order<'tcx>(fields: &'tcx [hir::ExprField<'tcx>], def_o... function suggestion (line 152) | fn suggestion<'tcx>( function field_with_attrs_span (line 186) | fn field_with_attrs_span(tcx: TyCtxt<'_>, field: &hir::ExprField<'_>) ->... FILE: clippy_lints/src/index_refutable_slice.rs type IndexRefutableSlice (line 58) | pub struct IndexRefutableSlice { method new (line 64) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 73) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... function find_slice_values (line 90) | fn find_slice_values(cx: &LateContext<'_>, pat: &hir::Pat<'_>) -> FxInde... function lint_slice (line 129) | fn lint_slice(cx: &LateContext<'_>, slice: &SliceLintInformation) { type SliceLintInformation (line 180) | struct SliceLintInformation { method new (line 188) | fn new(ident: Ident, needs_ref: bool) -> Self { function filter_lintable_slices (line 198) | fn filter_lintable_slices<'tcx>( type SliceIndexLintingVisitor (line 215) | struct SliceIndexLintingVisitor<'a, 'tcx> { type NestedFilter (line 222) | type NestedFilter = nested_filter::OnlyBodies; function maybe_tcx (line 224) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_expr (line 228) | fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) { FILE: clippy_lints/src/indexing_slicing.rs type IndexingSlicing (line 97) | pub struct IndexingSlicing { method new (line 103) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 112) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function to_const_range (line 236) | fn to_const_range(cx: &LateContext<'_>, range: higher::Range<'_>, array_... function ty_has_applicable_get_function (line 263) | fn ty_has_applicable_get_function<'tcx>( FILE: clippy_lints/src/ineffective_open_options.rs method check_expr (line 46) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/infallible_try_from.rs method check_item (line 47) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { FILE: clippy_lints/src/infinite_iter.rs method check_expr (line 56) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type Finiteness (line 69) | enum Finiteness { method and (line 79) | fn and(self, b: Self) -> Self { method or (line 88) | fn or(self, b: Self) -> Self { method from (line 98) | fn from(b: bool) -> Self { type Heuristic (line 106) | enum Heuristic { constant HEURISTICS (line 124) | const HEURISTICS: [(Symbol, usize, Heuristic, Finiteness); 19] = [ function is_infinite (line 146) | fn is_infinite(cx: &LateContext<'_>, expr: &Expr<'_>) -> Finiteness { constant POSSIBLY_COMPLETING_METHODS (line 188) | const POSSIBLY_COMPLETING_METHODS: [(Symbol, usize); 6] = [ constant COMPLETING_METHODS (line 199) | const COMPLETING_METHODS: [(Symbol, usize); 12] = [ function complete_infinite_iter (line 214) | fn complete_infinite_iter(cx: &LateContext<'_>, expr: &Expr<'_>) -> Fini... FILE: clippy_lints/src/inherent_impl.rs type MultipleInherentImpl (line 52) | pub struct MultipleInherentImpl { method new (line 57) | pub fn new(conf: &'static Conf) -> Self { method check_crate_post (line 72) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type Criterion (line 65) | enum Criterion { function get_impl_span (line 166) | fn get_impl_span(cx: &LateContext<'_>, id: LocalDefId) -> Option { type IdOrSpan (line 180) | enum IdOrSpan { FILE: clippy_lints/src/inherent_to_string.rs method check_impl_item (line 97) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &'tcx I... function show_lint (line 120) | fn show_lint(cx: &LateContext<'_>, item: &ImplItem<'_>) { FILE: clippy_lints/src/init_numbered_fields.rs method check_expr (line 45) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { FILE: clippy_lints/src/inline_fn_without_body.rs method check_trait_item (line 32) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Trait... FILE: clippy_lints/src/int_plus_one.rs type LeOrGe (line 47) | enum LeOrGe { type Error (line 53) | type Error = (); method try_from (line 54) | fn try_from(value: BinOpKind) -> Result { method is_one (line 64) | fn is_one(expr: &Expr) -> bool { method is_neg_one (line 73) | fn is_neg_one(expr: &Expr) -> bool { method as_x_plus_one (line 82) | fn as_x_plus_one(expr: &Expr) -> Option<&Expr> { method as_x_minus_one (line 98) | fn as_x_minus_one(expr: &Expr) -> Option<&Expr> { method check_binop (line 111) | fn check_binop<'tcx>(le_or_ge: LeOrGe, lhs: &'tcx Expr, rhs: &'tcx Expr)... method emit_warning (line 128) | fn emit_warning(cx: &EarlyContext<'_>, expr: &Expr, new_lhs: &Expr, le_o... method check_expr (line 151) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/item_name_repetitions.rs type ItemNameRepetitions (line 166) | pub struct ItemNameRepetitions { method new (line 189) | pub fn new(conf: &'static Conf) -> Self { method is_allowed_prefix (line 201) | fn is_allowed_prefix(&self, prefix: &str) -> bool { method check_variants (line 213) | fn check_variants(&self, cx: &LateContext<'_>, item: &Item<'_>, def: &... method check_fields (line 235) | fn check_fields(&self, cx: &LateContext<'_>, item: &Item<'_>, fields: ... method check_enum_common_affix (line 244) | fn check_enum_common_affix(cx: &LateContext<'_>, item: &Item<'_>, def:... method check_struct_common_affix (line 294) | fn check_struct_common_affix(&self, cx: &LateContext<'_>, item: &Item<... method check_struct_name_repetition (line 367) | fn check_struct_name_repetition(&self, cx: &LateContext<'_>, item: &It... method check_item_post (line 472) | fn check_item_post(&mut self, _: &LateContext<'_>, item: &Item<'_>) { method check_body (line 479) | fn check_body(&mut self, _: &LateContext<'_>, _: &Body<'_>) { method check_body_post (line 485) | fn check_body_post(&mut self, _: &LateContext<'_>, _: &Body<'_>) { method check_item (line 491) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { type ModInfo (line 177) | struct ModInfo { function have_no_extra_prefix (line 207) | fn have_no_extra_prefix(prefixes: &[&str]) -> bool { function check_enum_start (line 414) | fn check_enum_start(cx: &LateContext<'_>, item_name: &str, variant: &Var... function check_enum_end (line 433) | fn check_enum_end(cx: &LateContext<'_>, item_name: &str, variant: &Varia... function check_enum_tuple_path_match (line 452) | fn check_enum_tuple_path_match(variant_name: &str, variant_data: Variant... FILE: clippy_lints/src/items_after_statements.rs method check_block (line 53) | fn check_block(&mut self, cx: &LateContext<'_>, block: &Block<'_>) { FILE: clippy_lints/src/items_after_test_module.rs function cfg_test_module (line 46) | fn cfg_test_module<'tcx>(cx: &LateContext<'tcx>, item: &Item<'tcx>) -> b... method check_mod (line 60) | fn check_mod(&mut self, cx: &LateContext<'_>, module: &Mod<'_>, _: HirId) { FILE: clippy_lints/src/iter_not_returning_iterator.rs method check_trait_item (line 45) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Trait... method check_impl_item (line 53) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx ImplIt... function check_sig (line 66) | fn check_sig(cx: &LateContext<'_>, name: Symbol, sig: &FnSig<'_>, fn_id:... FILE: clippy_lints/src/iter_over_hash_type.rs method check_expr (line 41) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ rustc_hir::Expr... FILE: clippy_lints/src/iter_without_into_iter.rs function is_nameable_in_impl_trait (line 117) | fn is_nameable_in_impl_trait(ty: &rustc_hir::Ty<'_>) -> bool { function is_ty_exported (line 121) | fn is_ty_exported(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { method check_item (line 128) | fn check_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::Item<'_... method check_impl_item (line 195) | fn check_impl_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::Im... FILE: clippy_lints/src/large_const_arrays.rs type LargeConstArrays (line 37) | pub struct LargeConstArrays { method new (line 42) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 50) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/large_enum_variant.rs type LargeEnumVariant (line 63) | pub struct LargeEnumVariant { method new (line 68) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 76) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &Item<'tcx>) { function maybe_copy (line 161) | fn maybe_copy<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { FILE: clippy_lints/src/large_futures.rs type LargeFuture (line 45) | pub struct LargeFuture { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 58) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... FILE: clippy_lints/src/large_include_file.rs type LargeIncludeFile (line 43) | pub struct LargeIncludeFile { method new (line 48) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 56) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { method check_attribute (line 88) | fn check_attribute(&mut self, cx: &EarlyContext<'_>, attr: &Attribute) { FILE: clippy_lints/src/large_stack_arrays.rs type LargeStackArrays (line 34) | pub struct LargeStackArrays { method new (line 41) | pub fn new(conf: &'static Conf) -> Self { method is_from_vec_macro (line 50) | fn is_from_vec_macro(&mut self, cx: &LateContext<'_>, span: Span) -> b... method check_item (line 67) | fn check_item(&mut self, _: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { method check_item_post (line 73) | fn check_item_post(&mut self, _: &LateContext<'tcx>, item: &'tcx Item<... method check_expr (line 79) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { function might_be_expanded (line 128) | fn might_be_expanded<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) ->... FILE: clippy_lints/src/large_stack_frames.rs type LargeStackFrames (line 87) | pub struct LargeStackFrames { method new (line 93) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 140) | fn check_fn( type Space (line 102) | enum Space { method exceeds_limit (line 108) | pub fn exceeds_limit(self, limit: u64) -> bool { method fmt (line 117) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Output (line 127) | type Output = Self; method add (line 128) | fn add(self, rhs: u64) -> Self { FILE: clippy_lints/src/legacy_numeric_constants.rs type LegacyNumericConstants (line 40) | pub struct LegacyNumericConstants { method new (line 45) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 51) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_expr (line 106) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx rustc_hir... function is_integer_module (line 149) | fn is_integer_module(cx: &LateContext<'_>, did: DefId) -> bool { function is_numeric_const (line 169) | fn is_numeric_const(cx: &LateContext<'_>, did: DefId) -> bool { function is_numeric_const_path_canonical (line 230) | fn is_numeric_const_path_canonical(expr_path: &hir::Path<'_>, [mod_name,... function is_integer_method (line 246) | fn is_integer_method(cx: &LateContext<'_>, did: DefId) -> bool { FILE: clippy_lints/src/len_without_is_empty.rs method check_item (line 46) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_impl_item (line 54) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx ImplIt... function check_trait_items (line 94) | fn check_trait_items(cx: &LateContext<'_>, visited_trait: &Item<'_>, ide... function extract_future_output (line 139) | fn extract_future_output<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> ... function is_first_generic_integral (line 157) | fn is_first_generic_integral<'tcx>(segment: &'tcx PathSegment<'tcx>) -> ... type LenOutput (line 171) | enum LenOutput { method new (line 178) | fn new<'tcx>(cx: &LateContext<'tcx>, sig: FnSig<'tcx>) -> Option { method matches_is_empty_output (line 211) | fn matches_is_empty_output<'tcx>(self, cx: &LateContext<'tcx>, is_empt... function expected_is_empty_sig (line 231) | fn expected_is_empty_sig(len_output: LenOutput, len_self_kind: ImplicitS... function check_is_empty_sig (line 249) | fn check_is_empty_sig<'tcx>( function check_for_is_empty (line 275) | fn check_for_is_empty( FILE: clippy_lints/src/len_zero.rs type LenZero (line 94) | pub struct LenZero { method new (line 99) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 105) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_cmp (line 184) | fn check_cmp( method check_len (line 210) | fn check_len( method check_empty_expr (line 244) | fn check_empty_expr(&self, cx: &LateContext<'_>, span: Span, lit1: &Ex... function span_without_enclosing_paren (line 264) | fn span_without_enclosing_paren(cx: &LateContext<'_>, span: Span) -> Span { function is_empty_string (line 278) | fn is_empty_string(expr: &Expr<'_>) -> bool { function is_empty_array (line 288) | fn is_empty_array(expr: &Expr<'_>) -> bool { function has_is_empty (line 296) | fn has_is_empty(cx: &LateContext<'_>, expr: &Expr<'_>, msrv: Msrv) -> bo... FILE: clippy_lints/src/let_if_seq.rs method check_block (line 60) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx hir::Bloc... function check_block_inner (line 75) | fn check_block_inner<'tcx>(cx: &LateContext<'tcx>, stmt: &'tcx hir::Stmt... function check_assign (line 147) | fn check_assign<'tcx>( FILE: clippy_lints/src/let_underscore.rs method check_local (line 138) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &LetStmt<'tcx>) { FILE: clippy_lints/src/let_with_type_underscore.rs method check_local (line 31) | fn check_local(&mut self, cx: &EarlyContext<'_>, local: &Local) { FILE: clippy_lints/src/lib.rs function explain (line 416) | pub fn explain(name: &str) -> i32 { function register_lint_passes (line 442) | pub fn register_lint_passes(store: &mut rustc_lint::LintStore, conf: &'s... FILE: clippy_lints/src/lifetimes.rs type Lifetimes (line 133) | pub struct Lifetimes { method new (line 138) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 144) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_impl_item (line 163) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Impl... method check_trait_item (line 180) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Tra... function check_fn_inner (line 202) | fn check_fn_inner<'tcx>( function could_use_elision (line 287) | fn could_use_elision<'tcx>( function allowed_lts_from (line 397) | fn allowed_lts_from(named_generics: &[GenericParam<'_>]) -> FxIndexSet(cx: &LateContext<'tcx>, func: &FnDecl<'t... function named_lifetime_occurrences (line 430) | fn named_lifetime_occurrences(lts: &[Lifetime]) -> Vec<(LocalDefId, usiz... function named_lifetime (line 447) | fn named_lifetime(lt: &Lifetime) -> Option { type RefVisitor (line 454) | struct RefVisitor<'a, 'tcx> { function new (line 462) | fn new(cx: &'a LateContext<'tcx>) -> Self { function all_lts (line 471) | fn all_lts(&self) -> Vec { function abort (line 479) | fn abort(&self) -> bool { function visit_lifetime (line 486) | fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) { function visit_poly_trait_ref (line 490) | fn visit_poly_trait_ref(&mut self, poly_tref: &'tcx PolyTraitRef<'tcx>) { function visit_ty (line 505) | fn visit_ty(&mut self, ty: &'tcx Ty<'_, AmbigArg>) { function has_where_lifetimes (line 527) | fn has_where_lifetimes<'tcx>(cx: &LateContext<'tcx>, generics: &'tcx Gen... type Usage (line 568) | struct Usage { type LifetimeChecker (line 576) | struct LifetimeChecker<'cx, 'tcx, F> { function new (line 590) | fn new(cx: &'cx LateContext<'tcx>, generics: &'tcx Generics<'_>) -> Life... function visit_where_bound_predicate (line 614) | fn visit_where_bound_predicate( type MaybeTyCtxt (line 636) | type MaybeTyCtxt = TyCtxt<'tcx>; type NestedFilter (line 637) | type NestedFilter = F; function visit_lifetime (line 640) | fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) { function visit_where_predicate (line 654) | fn visit_where_predicate(&mut self, predicate: &'tcx WherePredicate<'tcx... function visit_generic_args (line 670) | fn visit_generic_args(&mut self, generic_args: &'tcx GenericArgs<'tcx>) ... function visit_fn_decl (line 676) | fn visit_fn_decl(&mut self, fd: &'tcx FnDecl<'tcx>) -> Self::Result { function maybe_tcx (line 682) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function is_candidate_for_elision (line 689) | fn is_candidate_for_elision(fd: &FnDecl<'_>) -> bool { function report_extra_lifetimes (line 714) | fn report_extra_lifetimes<'tcx>(cx: &LateContext<'tcx>, func: &'tcx FnDe... function report_extra_impl_lifetimes (line 735) | fn report_extra_impl_lifetimes<'tcx>(cx: &LateContext<'tcx>, impl_: &'tc... function report_elidable_impl_lifetimes (line 767) | fn report_elidable_impl_lifetimes<'tcx>( type ElidableUsage (line 799) | enum ElidableUsage { function report_elidable_lifetimes (line 808) | fn report_elidable_lifetimes( function elision_suggestions (line 871) | fn elision_suggestions( type BodyLifetimeChecker (line 947) | struct BodyLifetimeChecker<'tcx> { function new (line 952) | fn new(cx: &LateContext<'tcx>) -> Self { type Result (line 958) | type Result = ControlFlow<()>; type NestedFilter (line 959) | type NestedFilter = middle_nested_filter::OnlyBodies; function maybe_tcx (line 961) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_lifetime (line 965) | fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) -> ControlFlow<()> { FILE: clippy_lints/src/literal_representation.rs type WarningType (line 158) | enum WarningType { method lint_and_text (line 168) | fn lint_and_text(&self) -> (&'static Lint, &'static str, &'static str) { method display (line 195) | fn display(&self, num_lit: &NumericLiteral<'_>, cx: &EarlyContext<'_>,... type LiteralDigitGrouping (line 204) | pub struct LiteralDigitGrouping { method new (line 222) | pub fn new(conf: &'static Conf) -> Self { method check_lit (line 228) | fn check_lit(&self, cx: &EarlyContext<'_>, lit: token::Lit, span: Span) { method check_for_mistyped_suffix (line 277) | fn check_for_mistyped_suffix(cx: &EarlyContext<'_>, span: Span, num_li... method is_literal_uuid_formatted (line 341) | fn is_literal_uuid_formatted(num_lit: &NumericLiteral<'_>) -> bool { method parts_consistent (line 363) | fn parts_consistent( method get_group_size (line 383) | fn get_group_size<'a>( method check_expr (line 209) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { constant UUID_GROUP_LENS (line 219) | const UUID_GROUP_LENS: [usize; 5] = [8, 4, 4, 4, 12]; type DecimalLiteralRepresentation (line 415) | pub struct DecimalLiteralRepresentation { method new (line 430) | pub fn new(conf: &'static Conf) -> Self { method check_lit (line 435) | fn check_lit(&self, cx: &EarlyContext<'_>, lit: token::Lit, span: Span) { method do_lint (line 452) | fn do_lint(digits: &str) -> Result<(), WarningType> { method check_expr (line 420) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/literal_string_with_formatting_args.rs function emit_lint (line 43) | fn emit_lint(cx: &LateContext<'_>, expr: &Expr<'_>, spans: &[(Span, Opti... method check_expr (line 85) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/loops/char_indices_as_byte_indices.rs constant BYTE_INDEX_METHODS (line 19) | const BYTE_INDEX_METHODS: &[Symbol] = &[ constant CONTINUE (line 37) | const CONTINUE: ControlFlow = ControlFlow::Continue(()); function check (line 39) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, pat: &Pat<'_>, iterabl... function check_index_usage (line 72) | fn check_index_usage<'tcx>( function index_consumed_at (line 131) | fn index_consumed_at<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... FILE: clippy_lints/src/loops/empty_loop.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, loop_block: &... FILE: clippy_lints/src/loops/explicit_counter_loop.rs function check (line 17) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/loops/explicit_into_iter_loop.rs type AdjustKind (line 12) | enum AdjustKind { method borrow (line 20) | fn borrow(mutbl: AutoBorrowMutability) -> Self { method reborrow (line 27) | fn reborrow(mutbl: AutoBorrowMutability) -> Self { method display (line 34) | fn display(self) -> &'static str { function check (line 45) | pub(super) fn check(cx: &LateContext<'_>, self_arg: &Expr<'_>, call_expr... FILE: clippy_lints/src/loops/explicit_iter_loop.rs function check (line 17) | pub(super) fn check( type AdjustKind (line 54) | enum AdjustKind { method borrow (line 63) | fn borrow(mutbl: Mutability) -> Self { method auto_borrow (line 70) | fn auto_borrow(mutbl: AutoBorrowMutability) -> Self { method reborrow (line 77) | fn reborrow(mutbl: Mutability) -> Self { method auto_reborrow (line 84) | fn auto_reborrow(mutbl: AutoBorrowMutability) -> Self { method display (line 91) | fn display(self) -> &'static str { function is_ref_iterable (line 106) | fn is_ref_iterable<'tcx>( FILE: clippy_lints/src/loops/for_kv_map.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/loops/infinite_loop.rs function check (line 15) | pub(super) fn check<'tcx>( function is_inside_unawaited_async_block (line 75) | fn is_inside_unawaited_async_block(cx: &LateContext<'_>, expr: &Expr<'_>... function is_async_block_awaited (line 97) | fn is_async_block_awaited(cx: &LateContext<'_>, async_expr: &Expr<'_>) -... function get_parent_fn_ret_ty (line 110) | fn get_parent_fn_ret_ty<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>) -... type LoopVisitor (line 149) | struct LoopVisitor<'hir, 'tcx> { function visit_expr (line 158) | fn visit_expr(&mut self, ex: &'hir Expr<'_>) { function is_never_return (line 206) | fn is_never_return(ret_ty: FnRetTy<'_>) -> bool { FILE: clippy_lints/src/loops/iter_next_loop.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, arg: &Expr<'_>) { FILE: clippy_lints/src/loops/manual_find.rs function check (line 15) | pub(super) fn check<'tcx>( function get_binding (line 109) | fn get_binding(pat: &Pat<'_>) -> Option { function last_stmt_and_ret (line 126) | fn last_stmt_and_ret<'tcx>( FILE: clippy_lints/src/loops/manual_flatten.rs function check (line 18) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/loops/manual_memcpy.rs function check (line 20) | pub(super) fn check<'tcx>( function build_manual_memcpy_suggestion (line 113) | fn build_manual_memcpy_suggestion<'tcx>( type MinifyingSugg (line 221) | struct MinifyingSugg<'a>(Sugg<'a>); method fmt (line 224) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function into_sugg (line 230) | fn into_sugg(self) -> Sugg<'a> { function from (line 236) | fn from(sugg: Sugg<'a>) -> Self { type Output (line 242) | type Output = MinifyingSugg<'static>; function add (line 243) | fn add(self, rhs: &MinifyingSugg<'static>) -> MinifyingSugg<'static> { type Output (line 253) | type Output = MinifyingSugg<'static>; function sub (line 254) | fn sub(self, rhs: &MinifyingSugg<'static>) -> MinifyingSugg<'static> { type Output (line 265) | type Output = MinifyingSugg<'static>; function add (line 266) | fn add(self, rhs: &MinifyingSugg<'static>) -> MinifyingSugg<'static> { type Output (line 276) | type Output = MinifyingSugg<'static>; function sub (line 277) | fn sub(self, rhs: &MinifyingSugg<'static>) -> MinifyingSugg<'static> { type Offset (line 289) | struct Offset { method negative (line 301) | fn negative(value: Sugg<'static>) -> Self { method positive (line 308) | fn positive(value: Sugg<'static>) -> Self { method empty (line 315) | fn empty() -> Self { type OffsetSign (line 295) | enum OffsetSign { function apply_offset (line 320) | fn apply_offset(lhs: &MinifyingSugg<'static>, rhs: &Offset) -> Minifying... type StartKind (line 328) | enum StartKind<'hir> { type IndexExpr (line 333) | struct IndexExpr<'hir> { type Start (line 339) | struct Start<'hir> { function get_slice_like_element_ty (line 344) | fn get_slice_like_element_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>)... function fetch_cloned_expr (line 353) | fn fetch_cloned_expr<'tcx>(expr: &'tcx Expr<'tcx>) -> &'tcx Expr<'tcx> { function get_details_from_idx (line 363) | fn get_details_from_idx<'tcx>( function get_assignment (line 403) | fn get_assignment<'tcx>(e: &'tcx Expr<'tcx>) -> Option<(&'tcx Expr<'tcx>... function get_assignments (line 415) | fn get_assignments<'a, 'tcx>( function get_loop_counters (line 445) | fn get_loop_counters<'a, 'tcx>( function is_array_length_equal_to_range (line 472) | fn is_array_length_equal_to_range(cx: &LateContext<'_>, start: &Expr<'_>... FILE: clippy_lints/src/loops/manual_slice_fill.rs function check (line 21) | pub(super) fn check<'tcx>( function sugg (line 90) | fn sugg<'tcx>( FILE: clippy_lints/src/loops/manual_while_let_some.rs type PopStmt (line 17) | enum PopStmt<'hir> { function report_lint (line 28) | fn report_lint(cx: &LateContext<'_>, pop_span: Span, pop_stmt_kind: PopS... function match_method_call (line 50) | fn match_method_call(cx: &LateContext<'_>, expr... function is_vec_pop_unwrap (line 61) | fn is_vec_pop_unwrap(cx: &LateContext<'_>, expr: &Expr<'_>, is_empty_rec... function check_local (line 74) | fn check_local(cx: &LateContext<'_>, stmt: &Stmt<'_>, is_empty_recv: &Ex... function check_call_arguments (line 83) | fn check_call_arguments(cx: &LateContext<'_>, stmt: &Stmt<'_>, is_empty_... function check (line 97) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, full_cond: &'tcx Expr<... FILE: clippy_lints/src/loops/missing_spin_loop.rs function unpack_cond (line 10) | fn unpack_cond<'tcx>(cond: &'tcx Expr<'tcx>) -> &'tcx Expr<'tcx> { function check (line 33) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, cond: &'tcx Expr<'_>, ... FILE: clippy_lints/src/loops/mod.rs type Loops (line 815) | pub struct Loops { method new (line 820) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 829) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_for_loop (line 929) | fn check_for_loop<'tcx>( method check_for_loop_arg (line 956) | fn check_for_loop_arg(&self, cx: &LateContext<'_>, _: &Pat<'_>, arg: &... FILE: clippy_lints/src/loops/mut_range_bound.rs function check (line 14) | pub(super) fn check(cx: &LateContext<'_>, arg: &Expr<'_>, body: &Expr<'_... function mut_warn_with_span (line 29) | fn mut_warn_with_span(cx: &LateContext<'_>, span: Option) { function check_for_mutability (line 42) | fn check_for_mutability(cx: &LateContext<'_>, bound: &Expr<'_>) -> Optio... function check_for_mutation (line 52) | fn check_for_mutation( type MutatePairDelegate (line 72) | struct MutatePairDelegate<'a, 'tcx> { function consume (line 81) | fn consume(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function use_cloned (line 83) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function borrow (line 85) | fn borrow(&mut self, cmt: &PlaceWithHirId<'tcx>, diag_expr_id: HirId, bk... function mutate (line 98) | fn mutate(&mut self, cmt: &PlaceWithHirId<'tcx>, diag_expr_id: HirId) { function fake_read (line 109) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _: H... function mutation_span (line 113) | fn mutation_span(&self) -> (Option, Option) { type BreakAfterExprVisitor (line 118) | struct BreakAfterExprVisitor { method is_found (line 125) | pub fn is_found(cx: &LateContext<'_>, hir_id: HirId) -> bool { type Result (line 140) | type Result = ControlFlow<()>; method visit_expr (line 141) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> ControlFlow<()> { FILE: clippy_lints/src/loops/needless_range_loop.rs function check (line 22) | pub(super) fn check<'tcx>( function is_len_call (line 191) | fn is_len_call(expr: &Expr<'_>, var: Symbol) -> bool { function is_end_eq_array_len (line 204) | fn is_end_eq_array_len<'tcx>( type VarVisitor (line 225) | struct VarVisitor<'a, 'tcx> { function check (line 253) | fn check(&mut self, idx: &'tcx Expr<'_>, seqexpr: &'tcx Expr<'_>, expr: ... function visit_expr (line 337) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/loops/never_loop.rs function check (line 20) | pub(super) fn check<'tcx>( function check_iterator_reduction (line 78) | pub(super) fn check_iterator_reduction<'tcx>( function contains_any_break_or_continue (line 103) | fn contains_any_break_or_continue(block: &Block<'_>) -> bool { function contains_label (line 113) | fn contains_label(asm: &InlineAsm<'_>) -> bool { type NeverLoopResult (line 130) | enum NeverLoopResult { function absorb_break (line 145) | fn absorb_break(arg: &NeverLoopResult) -> NeverLoopResult { function combine_seq (line 154) | fn combine_seq(first: NeverLoopResult, second: impl FnOnce() -> NeverLoo... function combine_seq_many (line 163) | fn combine_seq_many(iter: impl IntoIterator) -> ... function combine_branches (line 174) | fn combine_branches(b1: NeverLoopResult, b2: NeverLoopResult) -> NeverLo... function never_loop_block (line 200) | fn never_loop_block<'tcx>( function stmt_to_expr (line 228) | fn stmt_to_expr<'tcx>(stmt: &Stmt<'tcx>) -> Option<(&'tcx Expr<'tcx>, Op... function stmt_source_span (line 237) | fn stmt_source_span(stmt: &Stmt<'_>) -> Span { function all_spans_after_expr (line 253) | fn all_spans_after_expr(cx: &LateContext<'_>, expr: &Expr<'_>) -> Vec, dest: &Destination) -> bool { function never_loop_expr (line 279) | fn never_loop_expr<'tcx>( function never_loop_expr_all (line 460) | fn never_loop_expr_all<'tcx, T: Iterator>>( function for_to_if_let_sugg (line 469) | fn for_to_if_let_sugg(cx: &LateContext<'_>, iterator: &Expr<'_>, pat: &P... function mark_block_as_reachable (line 476) | fn mark_block_as_reachable(expr: &Expr<'_>, local_labels: &mut [(HirId, ... FILE: clippy_lints/src/loops/same_item_push.rs function check (line 17) | pub(super) fn check<'tcx>( type SameItemPushVisitor (line 105) | struct SameItemPushVisitor<'a, 'tcx> { function new (line 115) | fn new(cx: &'a LateContext<'tcx>) -> Self { function should_lint (line 125) | fn should_lint(&self) -> bool { function visit_expr (line 139) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function visit_block (line 153) | fn visit_block(&mut self, b: &'tcx Block<'_>) { function visit_stmt (line 159) | fn visit_stmt(&mut self, s: &'tcx Stmt<'_>) { function get_vec_push (line 181) | fn get_vec_push<'tcx>( FILE: clippy_lints/src/loops/single_element_loop.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/loops/unused_enumerate_index.rs function check (line 11) | pub(super) fn check<'tcx>( function check_method (line 61) | pub(super) fn check_method<'tcx>( FILE: clippy_lints/src/loops/utils.rs type IncrementVisitorVarState (line 15) | enum IncrementVisitorVarState { type IncrementVisitor (line 22) | pub(super) struct IncrementVisitor<'a, 'tcx> { function new (line 29) | pub(super) fn new(cx: &'a LateContext<'tcx>) -> Self { function into_results (line 37) | pub(super) fn into_results(self) -> impl Iterator { function visit_expr (line 49) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { type InitializeVisitorState (line 97) | enum InitializeVisitorState<'hir> { type InitializeVisitor (line 110) | pub(super) struct InitializeVisitor<'a, 'tcx> { function new (line 120) | pub(super) fn new(cx: &'a LateContext<'tcx>, end_expr: &'tcx Expr<'tcx>,... function get_result (line 131) | pub(super) fn get_result(&self) -> Option<(Symbol, Option>, &'t... type NestedFilter (line 141) | type NestedFilter = nested_filter::OnlyBodies; function visit_local (line 143) | fn visit_local(&mut self, l: &'tcx LetStmt<'_>) { function visit_expr (line 162) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function maybe_tcx (line 242) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function is_loop (line 247) | fn is_loop(expr: &Expr<'_>) -> bool { function is_conditional (line 251) | fn is_conditional(expr: &Expr<'_>) -> bool { function make_iterator_snippet (line 257) | pub(super) fn make_iterator_snippet(cx: &LateContext<'_>, arg: &Expr<'_>... FILE: clippy_lints/src/loops/while_float.rs function check (line 4) | pub(super) fn check(cx: &rustc_lint::LateContext<'_>, condition: &rustc_... function is_float_type (line 18) | fn is_float_type(cx: &rustc_lint::LateContext<'_>, expr: &rustc_hir::Exp... FILE: clippy_lints/src/loops/while_immutable_condition.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, cond: &'tcx Expr<'_>, ... type HasBreakOrReturnVisitor (line 58) | struct HasBreakOrReturnVisitor; type Result (line 61) | type Result = ControlFlow<()>; method visit_expr (line 62) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) -> ControlFlow<()> { type VarCollectorVisitor (line 78) | struct VarCollectorVisitor<'a, 'tcx> { function insert_def_id (line 85) | fn insert_def_id(&mut self, ex: &'tcx Expr<'_>) { type Result (line 104) | type Result = ControlFlow<()>; function visit_expr (line 105) | fn visit_expr(&mut self, ex: &'tcx Expr<'_>) -> Self::Result { FILE: clippy_lints/src/loops/while_let_loop.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function is_simple_break_block (line 66) | fn is_simple_break_block(block: &Block<'_>) -> bool { function is_simple_break_expr (line 76) | fn is_simple_break_expr(expr: &Expr<'_>) -> bool { function could_be_while_let (line 84) | fn could_be_while_let<'tcx>( function is_trivial_assignment (line 139) | fn is_trivial_assignment(pat: &Pat<'_>, init: &Expr<'_>) -> bool { FILE: clippy_lints/src/loops/while_let_on_iterator.rs function check (line 19) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type IterExpr (line 72) | struct IterExpr { function try_parse_iter_expr (line 83) | fn try_parse_iter_expr(cx: &LateContext<'_>, mut e: &Expr<'_>) -> Option... function is_expr_same_field (line 132) | fn is_expr_same_field(cx: &LateContext<'_>, mut e: &Expr<'_>, mut fields... function is_expr_same_child_or_parent_field (line 152) | fn is_expr_same_child_or_parent_field(cx: &LateContext<'_>, expr: &Expr<... function skip_fields_and_path (line 192) | fn skip_fields_and_path<'tcx>(expr: &'tcx Expr<'_>) -> (Option<&'tcx Exp... function uses_iter (line 205) | fn uses_iter<'tcx>(cx: &LateContext<'tcx>, iter_expr: &IterExpr, contain... function needs_mutable_borrow (line 238) | fn needs_mutable_borrow(cx: &LateContext<'_>, iter_expr: &IterExpr, loop... function make_iterator_snippet (line 362) | fn make_iterator_snippet<'tcx>(cx: &LateContext<'tcx>, iter_expr: &Expr<... FILE: clippy_lints/src/macro_metavars_in_unsafe.rs type MetavarState (line 90) | pub enum MetavarState { type ExprMetavarsInUnsafe (line 95) | pub struct ExprMetavarsInUnsafe { method new (line 114) | pub fn new(conf: &'static Conf) -> Self { method check_body (line 216) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &rustc_hir::Bod... method check_crate_post (line 234) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type BodyVisitor (line 122) | struct BodyVisitor<'a, 'tcx> { function is_public_macro (line 149) | fn is_public_macro(cx: &LateContext<'_>, def_id: LocalDefId) -> bool { function visit_stmt (line 155) | fn visit_stmt(&mut self, s: &'tcx Stmt<'tcx>) { function visit_expr (line 166) | fn visit_expr(&mut self, e: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/macro_use.rs type MacroRefData (line 50) | pub struct MacroRefData { method new (line 55) | pub fn new(name: String) -> Self { type MacroUseImports (line 61) | pub struct MacroUseImports { method push_unique_macro (line 71) | fn push_unique_macro(&mut self, cx: &LateContext<'_>, span: Span) { method push_unique_macro_pat_ty (line 86) | fn push_unique_macro_pat_ty(&mut self, cx: &LateContext<'_>, span: Spa... method check_item (line 97) | fn check_item(&mut self, cx: &LateContext<'_>, item: &hir::Item<'_>) { method check_expr (line 116) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &hir::Expr<'_>) { method check_stmt (line 121) | fn check_stmt(&mut self, cx: &LateContext<'_>, stmt: &hir::Stmt<'_>) { method check_pat (line 126) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &hir::Pat<'_>) { method check_ty (line 131) | fn check_ty(&mut self, cx: &LateContext<'_>, ty: &hir::Ty<'_, AmbigArg... method check_crate_post (line 136) | fn check_crate_post(&mut self, cx: &LateContext<'_>) { FILE: clippy_lints/src/main_recursion.rs type MainRecursion (line 31) | pub struct MainRecursion { method check_crate (line 36) | fn check_crate(&mut self, cx: &LateContext<'_>) { method check_expr_post (line 40) | fn check_expr_post(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/manual_abs_diff.rs type ManualAbsDiff (line 46) | pub struct ManualAbsDiff { method new (line 51) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 57) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... method are_ty_eligible (line 100) | fn are_ty_eligible<'tcx>(&self, cx: &LateContext<'tcx>, a: &Expr<'_>, ... function is_sub_expr (line 117) | fn is_sub_expr( function is_unsuffixed_numeral_lit (line 149) | fn is_unsuffixed_numeral_lit(expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/manual_assert.rs method check_expr (line 38) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/manual_async_fn.rs method check_fn (line 42) | fn check_fn( function future_trait_ref (line 107) | fn future_trait_ref<'tcx>(cx: &LateContext<'tcx>, opaque: &'tcx OpaqueTy... function future_output_ty (line 122) | fn future_output_ty<'tcx>(trait_ref: &'tcx TraitRef<'tcx>) -> Option<&'t... function captures_all_lifetimes (line 135) | fn captures_all_lifetimes(cx: &LateContext<'_>, fn_def_id: LocalDefId, o... function desugared_async_block (line 168) | fn desugared_async_block<'tcx>(cx: &LateContext<'tcx>, block: &'tcx Bloc... function suggested_ret (line 182) | fn suggested_ret(cx: &LateContext<'_>, output: &Ty<'_>) -> Option<(&'sta... FILE: clippy_lints/src/manual_bits.rs type ManualBits (line 39) | pub struct ManualBits { method new (line 44) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 50) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function get_one_size_of_ty (line 80) | fn get_one_size_of_ty<'tcx>( function get_size_of_ty (line 92) | fn get_size_of_ty<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->... function create_sugg (line 112) | fn create_sugg(cx: &LateContext<'_>, expr: &Expr<'_>, base_sugg: String)... function is_ty_conversion (line 131) | fn is_ty_conversion(expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/manual_checked_ops.rs type NonZeroBranch (line 42) | enum NonZeroBranch { method check_expr (line 48) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { type UseKind (line 129) | enum UseKind { function divisor_from_condition (line 134) | fn divisor_from_condition<'tcx>(cond: &'tcx Expr<'tcx>) -> Option<(&'tcx... function branch_block (line 148) | fn branch_block<'tcx>( function is_zero (line 165) | fn is_zero(expr: &Expr<'_>) -> bool { function is_unsigned_integer (line 169) | fn is_unsigned_integer(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/manual_clamp.rs type ManualClamp (line 94) | pub struct ManualClamp { method new (line 99) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 142) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... method check_block (line 157) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'... type ClampSuggestion (line 105) | struct ClampSuggestion<'tcx> { function min_less_than_max (line 115) | fn min_less_than_max(&self, cx: &LateContext<'tcx>) -> bool { type InputMinMax (line 134) | struct InputMinMax<'tcx> { function maybe_emit_suggestion (line 167) | fn maybe_emit_suggestion<'tcx>(cx: &LateContext<'tcx>, suggestion: &Clam... type TypeClampability (line 211) | enum TypeClampability { method is_clampable (line 217) | fn is_clampable<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<... method is_float (line 231) | fn is_float(self) -> bool { function is_if_elseif_else_pattern (line 250) | fn is_if_elseif_else_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx E... function is_max_min_pattern (line 293) | fn is_max_min_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tc... function is_call_max_min_pattern (line 331) | fn is_call_max_min_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Exp... function is_match_pattern (line 422) | fn is_match_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>... function is_two_if_pattern (line 479) | fn is_two_if_pattern<'tcx>(cx: &LateContext<'tcx>, block: &'tcx Block<'t... function is_if_elseif_pattern (line 540) | fn is_if_elseif_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'... type BinaryOp (line 579) | struct BinaryOp<'tcx> { function new (line 586) | fn new(e: &'tcx Expr<'tcx>) -> Option> { function flip (line 597) | fn flip(&self) -> Self { function is_clamp_meta_pattern (line 632) | fn is_clamp_meta_pattern<'tcx>( function block_stmt_with_last (line 716) | fn block_stmt_with_last<'tcx>(block: &'tcx Block<'tcx>) -> impl Iterator... function is_ord_op (line 729) | fn is_ord_op(op: BinOpKind) -> bool { type MaybeBorrowedStmtKind (line 735) | enum MaybeBorrowedStmtKind<'a> { method clone (line 741) | fn clone(&self) -> Self { type Target (line 751) | type Target = StmtKind<'a>; method deref (line 753) | fn deref(&self) -> &Self::Target { FILE: clippy_lints/src/manual_float_methods.rs type Variant (line 69) | enum Variant { method lint (line 75) | pub fn lint(self) -> &'static Lint { method msg (line 82) | pub fn msg(self) -> &'static str { type ManualFloatMethods (line 90) | pub struct ManualFloatMethods { method new (line 95) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 137) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... function is_not_const (line 100) | fn is_not_const(tcx: TyCtxt<'_>, def_id: DefId) -> bool { FILE: clippy_lints/src/manual_hash_one.rs type ManualHashOne (line 52) | pub struct ManualHashOne { method new (line 57) | pub fn new(conf: &'static Conf) -> Self { method check_local (line 63) | fn check_local(&mut self, cx: &LateContext<'_>, local: &LetStmt<'_>) { FILE: clippy_lints/src/manual_ignore_case_cmp.rs type MatchType (line 44) | enum MatchType<'a> { function get_ascii_type (line 49) | fn get_ascii_type<'a>(cx: &LateContext<'a>, kind: rustc_hir::ExprKind<'_... function needs_ref_to_cmp (line 72) | fn needs_ref_to_cmp(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { method check_expr (line 80) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { FILE: clippy_lints/src/manual_ilog2.rs type ManualIlog2 (line 42) | pub struct ManualIlog2 { method new (line 47) | pub fn new(conf: &Conf) -> Self { method check_expr (line 53) | fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tc... function emit (line 103) | fn emit(cx: &LateContext<'_>, recv: &Expr<'_>, full_expr: &Expr<'_>) { FILE: clippy_lints/src/manual_is_ascii_check.rs type ManualIsAsciiCheck (line 63) | pub struct ManualIsAsciiCheck { method new (line 68) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 93) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type CharRange (line 74) | enum CharRange { function get_ty_sugg (line 130) | fn get_ty_sugg<'tcx>(cx: &LateContext<'tcx>, arg: &Expr<'_>) -> Option<(... function check_is_ascii (line 142) | fn check_is_ascii( function check_pat (line 175) | fn check_pat(pat_kind: &PatKind<'_>) -> CharRange { function check_expr_range (line 197) | fn check_expr_range(start: &Expr<'_>, end: &Expr<'_>) -> CharRange { function check_range (line 207) | fn check_range(start: &PatExpr<'_>, end: &PatExpr<'_>) -> CharRange { function check_lit_range (line 223) | fn check_lit_range(start_lit: &Lit, end_lit: &Lit) -> CharRange { FILE: clippy_lints/src/manual_is_power_of_two.rs type ManualIsPowerOfTwo (line 39) | pub struct ManualIsPowerOfTwo { method new (line 44) | pub fn new(conf: &'static Conf) -> Self { method build_sugg (line 48) | fn build_sugg(&self, cx: &LateContext<'_>, expr: &Expr<'_>, receiver: ... method check_expr (line 69) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { function count_ones_receiver (line 96) | fn count_ones_receiver<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) ... function is_one_less (line 110) | fn is_one_less<'tcx>( function is_and_minus_one (line 127) | fn is_and_minus_one<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) -> ... function unexpanded_binop_operands (line 134) | fn unexpanded_binop_operands<'hir>(expr: &Expr<'hir>, op: BinOpKind) -> ... FILE: clippy_lints/src/manual_let_else.rs method check_manual_let_else (line 52) | pub(crate) fn check_manual_let_else(&self, cx: &LateContext<'tcx>, stmt:... function is_arms_disjointed (line 120) | fn is_arms_disjointed(cx: &LateContext<'_>, arm1: &Arm<'_>, arm2: &Arm<'... function is_enum_variant (line 133) | pub fn is_enum_variant(cx: &LateContext<'_>, pat: &Pat<'_>) -> bool { function emit_manual_let_else (line 159) | fn emit_manual_let_else( function replace_in_pattern (line 223) | fn replace_in_pattern( function pat_allowed_for_else (line 344) | fn pat_allowed_for_else(cx: &LateContext<'_>, pat: &'_ Pat<'_>, check_ty... function expr_simple_identity_map (line 410) | fn expr_simple_identity_map<'a, 'hir>( FILE: clippy_lints/src/manual_main_separator_str.rs type ManualMainSeparatorStr (line 38) | pub struct ManualMainSeparatorStr { method new (line 43) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 49) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/manual_non_exhaustive.rs type ManualNonExhaustive (line 66) | pub struct ManualNonExhaustive { method new (line 73) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 83) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_expr (line 137) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { method check_crate_post (line 147) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { FILE: clippy_lints/src/manual_option_as_slice.rs type ManualOptionAsSlice (line 45) | pub struct ManualOptionAsSlice { method new (line 50) | pub fn new(conf: &Conf) -> Self { method check_expr (line 56) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function check_map (line 103) | fn check_map(cx: &LateContext<'_>, map: &Expr<'_>, span: Span, msrv: Msr... function check_as_ref (line 112) | fn check_as_ref(cx: &LateContext<'_>, expr: &Expr<'_>, span: Span, msrv:... function extract_ident_from_some_pat (line 144) | fn extract_ident_from_some_pat(cx: &LateContext<'_>, pat: &Pat<'_>) -> O... function check_some_body (line 155) | fn check_some_body(cx: &LateContext<'_>, name: Symbol, expr: &Expr<'_>) ... function check_arms (line 167) | fn check_arms(cx: &LateContext<'_>, none_arm: &Arm<'_>, some_arm: &Arm<'... function returns_empty_slice (line 179) | fn returns_empty_slice(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_empty_slice (line 192) | fn is_empty_slice(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_slice_from_ref (line 211) | fn is_slice_from_ref(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/manual_pop_if.rs type ManualPopIf (line 62) | pub struct ManualPopIf { method new (line 67) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 408) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type ManualPopIfKind (line 74) | enum ManualPopIfKind { method check_method (line 81) | fn check_method(self) -> Symbol { method pop_method (line 89) | fn pop_method(self) -> Symbol { method pop_if_method (line 97) | fn pop_if_method(self) -> Symbol { method is_diag_item (line 105) | fn is_diag_item(self, cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { method msrv (line 113) | fn msrv(self) -> RustcVersion { method fmt (line 123) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type ManualPopIfPattern (line 132) | struct ManualPopIfPattern<'tcx> { function emit_lint (line 149) | fn emit_lint(&self, cx: &LateContext<'_>) { function pop_value_is_used (line 171) | fn pop_value_is_used(then_block: &Expr<'_>) -> bool { function check_is_some_and_pattern (line 193) | fn check_is_some_and_pattern<'tcx>( function check_if_let_pattern (line 239) | fn check_if_let_pattern<'tcx>( function check_let_chain_pattern (line 298) | fn check_let_chain_pattern<'tcx>( function check_map_unwrap_or_pattern (line 349) | fn check_map_unwrap_or_pattern<'tcx>( function check_pop_unwrap (line 393) | fn check_pop_unwrap<'tcx>(expr: &'tcx Expr<'_>, pop_method: Symbol) -> O... FILE: clippy_lints/src/manual_range_patterns.rs function expr_as_i128 (line 41) | fn expr_as_i128(expr: &PatExpr<'_>) -> Option { type Num (line 54) | struct Num { method new (line 60) | fn new(expr: &PatExpr<'_>) -> Option { method dummy (line 67) | fn dummy(val: i128) -> Self { method min (line 71) | fn min(self, other: Self) -> Self { method check_pat (line 77) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &'_ rustc_hir::Pat<'_... FILE: clippy_lints/src/manual_rem_euclid.rs type ManualRemEuclid (line 40) | pub struct ManualRemEuclid { method new (line 45) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 51) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_for_either_unsigned_int_constant (line 106) | fn check_for_either_unsigned_int_constant<'a>( function check_for_unsigned_int_constant (line 117) | fn check_for_unsigned_int_constant<'a>( FILE: clippy_lints/src/manual_retain.rs constant ACCEPTABLE_METHODS (line 16) | const ACCEPTABLE_METHODS: [Symbol; 5] = [ type ManualRetain (line 49) | pub struct ManualRetain { method new (line 54) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 60) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... function check_into_iter (line 74) | fn check_into_iter( function check_iter (line 117) | fn check_iter( function check_to_owned (line 175) | fn check_to_owned( function make_sugg (line 216) | fn make_sugg( function match_acceptable_sym (line 245) | fn match_acceptable_sym(cx: &LateContext<'_>, collect_def_id: DefId) -> ... function match_acceptable_type (line 251) | fn match_acceptable_type(cx: &LateContext<'_>, expr: &hir::Expr<'_>, msr... function match_map_type (line 265) | fn match_map_type(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool { function make_span_lint_and_sugg (line 270) | fn make_span_lint_and_sugg(cx: &LateContext<'_>, span: Span, sugg: Strin... FILE: clippy_lints/src/manual_rotate.rs type ShiftDirection (line 45) | enum ShiftDirection { method fmt (line 51) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function parse_shift (line 59) | fn parse_shift<'tcx>(expr: &'tcx Expr<'tcx>) -> Option<(ShiftDirection, ... method check_expr (line 72) | fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/manual_slice_size_calculation.rs type ManualSliceSizeCalculation (line 44) | pub struct ManualSliceSizeCalculation { method new (line 49) | pub fn new(conf: &Conf) -> Self { method check_expr (line 55) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... function simplify (line 85) | fn simplify<'tcx>( function simplify_half (line 96) | fn simplify_half<'tcx>( FILE: clippy_lints/src/manual_string_new.rs method check_expr (line 41) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function is_expr_kind_empty_str (line 69) | fn is_expr_kind_empty_str(expr_kind: &ExprKind<'_>) -> bool { function warn_then_suggest (line 80) | fn warn_then_suggest(cx: &LateContext<'_>, span: Span) { function parse_method_call (line 93) | fn parse_method_call(cx: &LateContext<'_>, span: Span, path_segment: &Pa... function parse_call (line 107) | fn parse_call(cx: &LateContext<'_>, span: Span, func: &Expr<'_>, arg: &E... FILE: clippy_lints/src/manual_strip.rs type ManualStrip (line 55) | pub struct ManualStrip { method new (line 60) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 72) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type StripKind (line 66) | enum StripKind { function len_arg (line 157) | fn len_arg<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) -> Option... function constant_length (line 169) | fn constant_length(cx: &LateContext<'_>, expr: &Expr<'_>, ctxt: SyntaxCo... function eq_pattern_length (line 179) | fn eq_pattern_length<'tcx>( function is_ref_str (line 197) | fn is_ref_str(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function peel_ref (line 205) | fn peel_ref<'a>(expr: &'a Expr<'_>) -> &'a Expr<'a> { function find_stripping (line 217) | fn find_stripping<'tcx>( FILE: clippy_lints/src/manual_take.rs type ManualTake (line 44) | pub struct ManualTake { method new (line 49) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 55) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function as_const_bool (line 107) | fn as_const_bool(e: &Expr<'_>) -> Option { FILE: clippy_lints/src/map_unit_fn.rs function is_unit_type (line 97) | fn is_unit_type(ty: Ty<'_>) -> bool { function is_unit_function (line 101) | fn is_unit_function(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool { function is_unit_expression (line 112) | fn is_unit_expression(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool { function reduce_unit_expression (line 122) | fn reduce_unit_expression(cx: &LateContext<'_>, expr: &hir::Expr<'_>) ->... function unit_closure (line 165) | fn unit_closure<'tcx>( function let_binding_name (line 187) | fn let_binding_name(cx: &LateContext<'_>, var_arg: &hir::Expr<'_>) -> St... function suggestion_msg (line 196) | fn suggestion_msg(function_type: &str, article: &str, map_type: &str) ->... function lint_map_unit_fn (line 202) | fn lint_map_unit_fn( method check_stmt (line 265) | fn check_stmt(&mut self, cx: &LateContext<'_>, stmt: &hir::Stmt<'_>) { FILE: clippy_lints/src/match_result_ok.rs method check_expr (line 47) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/matches/collapsible_match.rs function check_match (line 20) | pub(super) fn check_match<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr... function check_if_let (line 28) | pub(super) fn check_if_let<'tcx>( function check_arm (line 40) | fn check_arm<'tcx>( function arm_is_wild_like (line 193) | fn arm_is_wild_like(cx: &LateContext<'_>, arm: &Arm<'_>) -> bool { function find_pat_binding_and_is_innermost_parent_pat_struct (line 211) | fn find_pat_binding_and_is_innermost_parent_pat_struct(pat: &Pat<'_>, hi... function build_ref_method_chain (line 234) | fn build_ref_method_chain(expr: Vec<&Expr<'_>>) -> Option { FILE: clippy_lints/src/matches/infallible_destructuring_match.rs function check (line 11) | pub(crate) fn check(cx: &LateContext<'_>, local: &LetStmt<'_>) -> bool { FILE: clippy_lints/src/matches/manual_filter.rs function get_cond_expr (line 18) | fn get_cond_expr<'tcx>( function peels_blocks_incl_unsafe_opt (line 41) | fn peels_blocks_incl_unsafe_opt<'a>(expr: &'a Expr<'a>) -> Option<&'a Ex... function peels_blocks_incl_unsafe (line 52) | fn peels_blocks_incl_unsafe<'a>(expr: &'a Expr<'a>) -> &'a Expr<'a> { function is_some_expr (line 63) | fn is_some_expr(cx: &LateContext<'_>, target: HirId, ctxt: SyntaxContext... function is_none_expr (line 73) | fn is_none_expr(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function add_ampersand_if_copy (line 82) | fn add_ampersand_if_copy(body_str: String, has_copy_trait: bool) -> Stri... function check_match (line 92) | pub(super) fn check_match<'tcx>( function check_if_let (line 116) | pub(super) fn check_if_let<'tcx>( function check (line 127) | fn check<'tcx>( FILE: clippy_lints/src/matches/manual_map.rs function check_match (line 11) | pub(super) fn check_match<'tcx>( function check_if_let (line 25) | pub(super) fn check_if_let<'tcx>( function check (line 36) | fn check<'tcx>( function get_some_expr (line 78) | fn get_some_expr<'tcx>( FILE: clippy_lints/src/matches/manual_ok_err.rs function check_if_let (line 18) | pub(crate) fn check_if_let( function check_match (line 35) | pub(crate) fn check_match(cx: &LateContext<'_>, expr: &Expr<'_>, scrutin... function is_variant_or_wildcard (line 63) | fn is_variant_or_wildcard(cx: &LateContext<'_>, pat: &Pat<'_>, can_be_wi... function is_ok_or_err (line 90) | fn is_ok_or_err<'hir>(cx: &LateContext<'_>, pat: &Pat<'hir>) -> Option<(... function is_some_ident (line 108) | fn is_some_ident<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, ident: &... function is_none (line 125) | fn is_none(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function apply_lint (line 131) | fn apply_lint(cx: &LateContext<'_>, expr: &Expr<'_>, scrutinee: &Expr<'_... FILE: clippy_lints/src/matches/manual_unwrap_or.rs function get_some (line 20) | fn get_some(cx: &LateContext<'_>, pat: &Pat<'_>) -> Option { function get_none (line 36) | fn get_none<'tcx>(cx: &LateContext<'_>, arm: &Arm<'tcx>, allow_wildcard:... function get_some_and_none_bodies (line 63) | fn get_some_and_none_bodies<'tcx>( function handle (line 81) | fn handle( function find_type_name (line 183) | fn find_type_name<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<... function safe_to_move_scrutinee (line 201) | fn safe_to_move_scrutinee(cx: &LateContext<'_>, expr: &Expr<'_>, scrutin... function check_match (line 214) | pub fn check_match<'tcx>( function check_if_let (line 231) | pub fn check_if_let<'tcx>( FILE: clippy_lints/src/matches/manual_utils.rs function check_with (line 20) | pub(super) fn check_with<'tcx, F>( type SuggInfo (line 178) | pub struct SuggInfo<'a> { function can_pass_as_func (line 189) | fn can_pass_as_func<'tcx>(cx: &LateContext<'tcx>, binding: HirId, expr: ... type OptionPat (line 203) | pub(super) enum OptionPat<'a> { type SomeExpr (line 215) | pub(super) struct SomeExpr<'tcx> { function new_no_negated (line 222) | pub fn new_no_negated(expr: &'tcx Expr<'tcx>, needs_unsafe_block: bool) ... function to_snippet_with_context (line 230) | pub fn to_snippet_with_context( function try_parse_pattern (line 243) | pub(super) fn try_parse_pattern<'tcx>( function is_none_arm_body (line 270) | fn is_none_arm_body(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/matches/match_as_ref.rs function check (line 12) | pub(crate) fn check(cx: &LateContext<'_>, ex: &Expr<'_>, arms: &[Arm<'_>... function as_ref_some_arm (line 84) | fn as_ref_some_arm(cx: &LateContext<'_>, arm: &Arm<'_>) -> Option, scrutinee: &Expr<'_>, arms: &[... FILE: clippy_lints/src/matches/match_like_matches.rs function check_if_let (line 17) | pub(crate) fn check_if_let<'tcx>( function check_match (line 66) | pub(super) fn check_match<'tcx>( function find_bool_lit (line 202) | fn find_bool_lit(ex: &Expr<'_>) -> Option { function is_some_wild (line 229) | fn is_some_wild(pat_kind: PatKind<'_>) -> bool { FILE: clippy_lints/src/matches/match_ref_pats.rs function check (line 11) | pub(crate) fn check<'a, 'b, I>(cx: &LateContext<'_>, scrutinee: &Expr<'_... function has_multiple_ref_pats (line 71) | fn has_multiple_ref_pats<'a, 'b, I>(pats: I) -> bool FILE: clippy_lints/src/matches/match_same_arms.rs function check (line 21) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, arms: &'tcx [Arm<'_>]) { function adjusted_arm_span (line 177) | fn adjusted_arm_span(cx: &LateContext<'_>, span: Span) -> Span { type NormalizedPat (line 185) | enum NormalizedPat<'a> { type PatRange (line 207) | struct PatRange { method contains (line 213) | fn contains(&self, x: u128) -> bool { method overlaps (line 221) | fn overlaps(&self, other: &Self) -> bool { function iter_matching_struct_fields (line 235) | fn iter_matching_struct_fields<'a>( function from_pat (line 263) | fn from_pat(cx: &LateContext<'_>, arena: &'a DroplessArena, pat: &'a Pat... function has_overlapping_values (line 380) | fn has_overlapping_values(&self, other: &Self) -> bool { function pat_contains_local (line 439) | fn pat_contains_local(pat: &Pat<'_>, id: HirId) -> bool { function bindings_eq (line 449) | fn bindings_eq(pat: &Pat<'_>, mut ids: HirIdSet) -> bool { function is_wildcard_arm (line 456) | fn is_wildcard_arm(pat: &Pat<'_>) -> bool { FILE: clippy_lints/src/matches/match_single_binding.rs type AssignmentExpr (line 18) | enum AssignmentExpr { function check (line 24) | pub(crate) fn check<'a>(cx: &LateContext<'a>, ex: &Expr<'a>, arms: &[Arm... type VarBindingVisitor (line 160) | struct VarBindingVisitor<'a, 'tcx> { type Result (line 166) | type Result = ControlFlow<()>; function visit_path (line 168) | fn visit_path(&mut self, path: &Path<'tcx>, _: HirId) -> Self::Result { function visit_block (line 179) | fn visit_block(&mut self, block: &'tcx Block<'tcx>) -> Self::Result { function visit_stmt (line 186) | fn visit_stmt(&mut self, stmt: &'tcx Stmt<'tcx>) -> Self::Result { function visit_expr (line 199) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> Self::Result { function is_var_binding_used_later (line 254) | fn is_var_binding_used_later(cx: &LateContext<'_>, expr: &Expr<'_>, arm:... function opt_parent_assign_span (line 280) | fn opt_parent_assign_span<'a>(cx: &LateContext<'a>, ex: &Expr<'a>) -> Op... function expr_in_nested_block (line 301) | fn expr_in_nested_block(cx: &LateContext<'_>, match_expr: &Expr<'_>) -> ... function indent_of_nth_line (line 310) | fn indent_of_nth_line(snippet: &str, nth: usize) -> Option { function reindent_snippet_if_in_block (line 317) | fn reindent_snippet_if_in_block(snippet_body: &str, has_assignment: bool... function sugg_with_curlies (line 331) | fn sugg_with_curlies<'a>( FILE: clippy_lints/src/matches/match_str_case_mismatch.rs type CaseMethod (line 18) | enum CaseMethod { function check (line 25) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, scrutinee: &'tcx Expr<... type MatchExprVisitor (line 38) | struct MatchExprVisitor<'a, 'tcx> { type Result (line 43) | type Result = ControlFlow; function visit_expr (line 44) | fn visit_expr(&mut self, ex: &'tcx Expr<'_>) -> Self::Result { function case_altered (line 57) | fn case_altered(&self, segment_ident: Symbol, receiver: &Expr<'_>) -> Co... function get_case_method (line 70) | fn get_case_method(segment_ident: Symbol) -> Option { function verify_case (line 80) | fn verify_case<'a>(case_method: &'a CaseMethod, arms: &'a [Arm<'_>]) -> ... function lint (line 104) | fn lint(cx: &LateContext<'_>, case_method: &CaseMethod, bad_case_span: S... FILE: clippy_lints/src/matches/match_wild_enum.rs function check (line 15) | pub(crate) fn check(cx: &LateContext<'_>, ex: &Expr<'_>, arms: &[Arm<'_>... type CommonPrefixSearcher (line 184) | enum CommonPrefixSearcher<'a> { function with_path (line 190) | fn with_path(&mut self, path: &'a [PathSegment<'a>]) { function with_prefix (line 196) | fn with_prefix(&mut self, path: &'a [PathSegment<'a>]) { function is_hidden (line 210) | fn is_hidden(cx: &LateContext<'_>, variant_def: &VariantDef) -> bool { FILE: clippy_lints/src/matches/match_wild_err_arm.rs function check (line 12) | pub(crate) fn check<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms:... FILE: clippy_lints/src/matches/mod.rs type Matches (line 1039) | pub struct Matches { method new (line 1045) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 1055) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_local (line 1208) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt... method check_pat (line 1213) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>) { function contains_cfg_arm (line 1219) | fn contains_cfg_arm(cx: &LateContext<'_>, e: &Expr<'_>, scrutinee: &Expr... function pat_contains_disallowed_or (line 1280) | fn pat_contains_disallowed_or(cx: &LateContext<'_>, pat: &Pat<'_>, msrv:... FILE: clippy_lints/src/matches/needless_match.rs function check_match (line 17) | pub(crate) fn check_match(cx: &LateContext<'_>, ex: &Expr<'_>, arms: &[A... function check_if_let (line 51) | pub(crate) fn check_if_let<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'_>, ... function check_all_arms (line 66) | fn check_all_arms(cx: &LateContext<'_>, match_expr: &Expr<'_>, arms: &[A... function check_if_let_inner (line 88) | fn check_if_let_inner(cx: &LateContext<'_>, if_let: &higher::IfLet<'_>) ... function expr_ty_matches_p_ty (line 120) | fn expr_ty_matches_p_ty(cx: &LateContext<'_>, expr: &Expr<'_>, p_expr: &... function pat_same_as_expr (line 154) | fn pat_same_as_expr(pat: &Pat<'_>, expr: &Expr<'_>) -> bool { function same_non_ref_symbols (line 205) | fn same_non_ref_symbols(pats: &[Pat<'_>], exprs: &[Expr<'_>]) -> bool { FILE: clippy_lints/src/matches/overlapping_arms.rs function check (line 11) | pub(crate) fn check<'tcx>(cx: &LateContext<'tcx>, ex: &'tcx Expr<'_>, ar... function all_ranges (line 30) | fn all_ranges<'tcx>(cx: &LateContext<'tcx>, arms: &'tcx [Arm<'_>], ty: T... type EndBound (line 73) | pub enum EndBound { type SpannedRange (line 79) | struct SpannedRange { function overlapping (line 84) | fn overlapping(ranges: &[SpannedRange]) -> Option<(&SpannedRange(cx: &LateContext<'tcx>, arms: &'tcx [Arm<'tcx>... function check_method_calls (line 104) | fn check_method_calls<'tcx>( type PatBindingInfo (line 157) | struct PatBindingInfo { function get_pat_binding (line 163) | fn get_pat_binding<'tcx>( function emit_redundant_guards (line 204) | fn emit_redundant_guards<'tcx>( function expr_can_be_pat (line 247) | fn expr_can_be_pat(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/matches/redundant_pattern_match.rs function check (line 19) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_if_let (line 32) | pub(super) fn check_if_let<'tcx>( function check_matches_true (line 46) | pub fn check_matches_true<'tcx>( function find_if_let_true (line 65) | fn find_if_let_true<'tcx>(cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>, sc... function find_match_true (line 70) | fn find_match_true<'tcx>( function try_get_generic_ty (line 108) | fn try_get_generic_ty(ty: Ty<'_>, index: usize) -> Option> { function find_method_and_type (line 119) | fn find_method_and_type<'tcx>( function find_method_sugg_for_if_let (line 177) | fn find_method_sugg_for_if_let<'tcx>( function check_match (line 266) | pub(super) fn check_match<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr... function found_good_method (line 316) | fn found_good_method<'tcx>( function get_ident (line 408) | fn get_ident(path: &QPath<'_>) -> Option { function get_good_method (line 418) | fn get_good_method<'tcx>( type Item (line 440) | enum Item { function is_pat_variant (line 445) | fn is_pat_variant(cx: &LateContext<'_>, pat: &Pat<'_>, path: &QPath<'_>,... function find_good_method_for_match (line 474) | fn find_good_method_for_match<'a, 'tcx>( function find_good_method_for_matches_macro (line 509) | fn find_good_method_for_matches_macro<'a, 'tcx>( FILE: clippy_lints/src/matches/rest_pat_in_fully_bound_struct.rs function check (line 8) | pub(crate) fn check(cx: &LateContext<'_>, pat: &Pat<'_>) { FILE: clippy_lints/src/matches/significant_drop_in_scrutinee.rs function check_match (line 20) | pub(super) fn check_match<'tcx>( function check_if_let (line 47) | pub(super) fn check_if_let<'tcx>( function check_while_let (line 68) | pub(super) fn check_while_let<'tcx>( type Suggestion (line 91) | enum Suggestion { function check (line 96) | fn check<'tcx>( function set_suggestion (line 124) | fn set_suggestion<'tcx>(diag: &mut Diag<'_, ()>, cx: &LateContext<'tcx>,... type SigDropChecker (line 162) | struct SigDropChecker<'a, 'tcx> { function new (line 168) | fn new(cx: &'a LateContext<'tcx>) -> SigDropChecker<'a, 'tcx> { function is_sig_drop_expr (line 175) | fn is_sig_drop_expr(&mut self, ex: &'tcx Expr<'_>) -> bool { function has_sig_drop_attr (line 179) | fn has_sig_drop_attr(&mut self, ty: Ty<'tcx>) -> bool { function has_sig_drop_attr_impl (line 184) | fn has_sig_drop_attr_impl(&mut self, ty: Ty<'tcx>) -> bool { type SigDropHolder (line 231) | enum SigDropHolder { type SigDropHelper (line 249) | struct SigDropHelper<'a, 'tcx> { type FoundSigDrop (line 258) | struct FoundSigDrop { function new (line 265) | fn new(cx: &'a LateContext<'tcx>) -> SigDropHelper<'a, 'tcx> { function find_sig_drop (line 275) | fn find_sig_drop(&mut self, match_expr: &'tcx Expr<'_>) -> Vec, parent_expr: &'tcx... function try_move_sig_drop_direct_ref (line 320) | fn try_move_sig_drop_direct_ref(&mut self, expr: &'tcx Expr<'_>, parent_... function ty_peel_refs (line 394) | fn ty_peel_refs(mut ty: Ty<'_>) -> (Ty<'_>, usize) { function visit_expr (line 404) | fn visit_expr(&mut self, ex: &'tcx Expr<'_>) { type ArmSigDropHelper (line 453) | struct ArmSigDropHelper<'a, 'tcx> { function new (line 459) | fn new(cx: &'a LateContext<'tcx>) -> ArmSigDropHelper<'a, 'tcx> { function has_significant_drop_in_arms (line 467) | fn has_significant_drop_in_arms<'tcx>(cx: &LateContext<'tcx>, arms: &[&'... function visit_expr (line 476) | fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/matches/single_match.rs function empty_arm_has_comment (line 24) | fn empty_arm_has_comment(cx: &LateContext<'_>, span: Span) -> bool { function check (line 28) | pub(crate) fn check<'tcx>( function report_single_pattern (line 83) | fn report_single_pattern( type PatVisitor (line 191) | struct PatVisitor<'tcx> { type Result (line 196) | type Result = ControlFlow<()>; function visit_pat (line 197) | fn visit_pat(&mut self, pat: &'tcx Pat<'_>) -> Self::Result { type PatCtxt (line 208) | struct PatCtxt<'tcx> { type PatState (line 218) | enum PatState<'a> { function add_product_pat (line 242) | fn add_product_pat<'tcx>( function get_std_enum_variant (line 263) | fn get_std_enum_variant<'tcx>( function check_all_wild_enum (line 292) | fn check_all_wild_enum(&mut self) -> bool { function add_struct_pats (line 304) | fn add_struct_pats<'tcx>( function add_pat (line 355) | fn add_pat<'tcx>(&mut self, cx: &'a PatCtxt<'tcx>, pat: &'tcx Pat<'_>) -... FILE: clippy_lints/src/matches/try_err.rs function check (line 15) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function find_return_type (line 69) | fn find_return_type<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx ExprKind<'... function result_error_type (line 81) | fn result_error_type<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Opti... function poll_result_error_type (line 92) | fn poll_result_error_type<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) ->... function poll_option_result_error_type (line 104) | fn poll_option_result_error_type<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'t... FILE: clippy_lints/src/matches/wild_in_or_pats.rs function check (line 9) | pub(crate) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, arms: &[Arm<'... FILE: clippy_lints/src/mem_replace.rs function check_replace_option_with_none (line 134) | fn check_replace_option_with_none(cx: &LateContext<'_>, src: &Expr<'_>, ... function check_replace_option_with_some (line 161) | fn check_replace_option_with_some( function check_replace_with_uninit (line 194) | fn check_replace_with_uninit(cx: &LateContext<'_>, src: &Expr<'_>, dest:... function check_replace_with_default (line 249) | fn check_replace_with_default( type MemReplace (line 288) | pub struct MemReplace { method new (line 293) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 299) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/methods/bind_instead_of_map.rs function check_and_then_some (line 13) | pub(super) fn check_and_then_some( function check_and_then_ok (line 27) | pub(super) fn check_and_then_ok( function check_or_else_err (line 41) | pub(super) fn check_or_else_err( type BindInsteadOfMap (line 55) | struct BindInsteadOfMap { method no_op_msg (line 62) | fn no_op_msg(&self, cx: &LateContext<'_>) -> Option { method lint_msg (line 73) | fn lint_msg(&self, cx: &LateContext<'_>) -> Option { method lint_closure_autofixable (line 85) | fn lint_closure_autofixable( method lint_closure (line 115) | fn lint_closure(&self, cx: &LateContext<'_>, expr: &hir::Expr<'_>, clo... method check (line 155) | fn check(&self, cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &hir... method is_variant (line 194) | fn is_variant(&self, cx: &LateContext<'_>, res: Res) -> bool { FILE: clippy_lints/src/methods/bytecount.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/bytes_count_to_len.rs function check (line 10) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/bytes_nth.rs function check (line 13) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, recv:... FILE: clippy_lints/src/methods/case_sensitive_file_extension_comparisons.rs function check (line 15) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/chars_cmp.rs function check (line 12) | pub(super) fn check( FILE: clippy_lints/src/methods/chars_cmp_with_unwrap.rs function check (line 11) | pub(super) fn check( FILE: clippy_lints/src/methods/chars_last_cmp.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryE... FILE: clippy_lints/src/methods/chars_last_cmp_with_unwrap.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryE... FILE: clippy_lints/src/methods/chars_next_cmp.rs function check (line 7) | pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryE... FILE: clippy_lints/src/methods/chars_next_cmp_with_unwrap.rs function check (line 7) | pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryE... FILE: clippy_lints/src/methods/clear_with_drain.rs constant ACCEPTABLE_TYPES_WITH_ARG (line 12) | const ACCEPTABLE_TYPES_WITH_ARG: [rustc_span::Symbol; 2] = [sym::Vec, sy... constant ACCEPTABLE_TYPES_WITHOUT_ARG (line 14) | const ACCEPTABLE_TYPES_WITHOUT_ARG: [rustc_span::Symbol; 3] = [sym::Bina... function check (line 16) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... function match_acceptable_type (line 29) | fn match_acceptable_type(cx: &LateContext<'_>, expr: &Expr<'_>, types: &... function suggest (line 36) | fn suggest(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, span:... FILE: clippy_lints/src/methods/clone_on_copy.rs function check (line 14) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... FILE: clippy_lints/src/methods/clone_on_ref_ptr.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, receiver... FILE: clippy_lints/src/methods/cloned_instead_of_copied.rs function check (line 13) | pub fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, spa... FILE: clippy_lints/src/methods/collapsible_str_replace.rs function check (line 13) | pub(super) fn check<'tcx>( type ReplaceMethods (line 36) | struct ReplaceMethods<'tcx> { function collect_replace_calls (line 41) | fn collect_replace_calls<'tcx>( function check_consecutive_replace_calls (line 67) | fn check_consecutive_replace_calls<'tcx>( FILE: clippy_lints/src/methods/double_ended_iterator_last.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &'_ Expr<'_>, self_expr:... FILE: clippy_lints/src/methods/drain_collect.rs function types_match_diagnostic_item (line 19) | fn types_match_diagnostic_item(cx: &LateContext<'_>, expr: Ty<'_>, recv:... function check_vec (line 30) | fn check_vec(cx: &LateContext<'_>, args: &[Expr<'_>], expr: Ty<'_>, recv... function check_string (line 37) | fn check_string(cx: &LateContext<'_>, args: &[Expr<'_>], expr: Ty<'_>, r... function check_collections (line 44) | fn check_collections(cx: &LateContext<'_>, expr: Ty<'_>, recv: Ty<'_>) -... function check (line 51) | pub(super) fn check(cx: &LateContext<'_>, args: &[Expr<'_>], expr: &Expr... FILE: clippy_lints/src/methods/err_expect.rs function check (line 11) | pub(super) fn check( function get_data_type (line 39) | fn get_data_type<'a>(cx: &LateContext<'_>, ty: Ty<'a>) -> Option> { FILE: clippy_lints/src/methods/expect_fun_call.rs function check (line 17) | pub(super) fn check<'tcx>( function get_arg_root (line 74) | fn get_arg_root<'a>(cx: &LateContext<'_>, arg: &'a hir::Expr<'a>) -> &'a... function contains_call (line 96) | fn contains_call<'a>(cx: &LateContext<'a>, arg: &'a hir::Expr<'a>) -> bo... FILE: clippy_lints/src/methods/extend_with_drain.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... FILE: clippy_lints/src/methods/filetype_is_file.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/filter_map.rs function is_method (line 19) | fn is_method(cx: &LateContext<'_>, expr: &Expr<'_>, method_name: Symbol)... function is_option_filter_map (line 46) | fn is_option_filter_map(cx: &LateContext<'_>, filter_arg: &Expr<'_>, map... function is_ok_filter_map (line 49) | fn is_ok_filter_map(cx: &LateContext<'_>, filter_arg: &Expr<'_>, map_arg... type OffendingFilterExpr (line 54) | enum OffendingFilterExpr<'tcx> { type CalledMethod (line 82) | enum CalledMethod { type CheckResult (line 89) | enum CheckResult<'tcx> { function check_map_call (line 109) | pub fn check_map_call( function hir (line 226) | fn hir(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, filter_param_id: ... function is_filter_some_map_unwrap (line 265) | fn is_filter_some_map_unwrap( function is_filter_ok_map_unwrap (line 279) | fn is_filter_ok_map_unwrap(cx: &LateContext<'_>, expr: &Expr<'_>, filter... function check (line 287) | pub(super) fn check( function is_find_or_filter (line 398) | fn is_find_or_filter<'a>( function acceptable_methods (line 432) | fn acceptable_methods(method: &PathSegment<'_>) -> bool { FILE: clippy_lints/src/methods/filter_map_bool_then.rs function check (line 16) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>... function find_bindings_from_pat (line 77) | fn find_bindings_from_pat(pat: &Pat<'_>) -> FxHashSet { function can_filter_and_then_move_to_closure (line 93) | fn can_filter_and_then_move_to_closure<'tcx>( FILE: clippy_lints/src/methods/filter_map_identity.rs function is_identity (line 12) | fn is_identity(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> Option, expr: &hir::Expr<'_>, filter_m... FILE: clippy_lints/src/methods/filter_map_next.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/filter_next.rs type Direction (line 13) | pub(super) enum Direction { function check (line 20) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/flat_map_identity.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/flat_map_option.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<... FILE: clippy_lints/src/methods/format_collect.rs function peel_non_expn_blocks (line 12) | fn peel_non_expn_blocks<'tcx>(expr: &'tcx Expr<'tcx>) -> Option<&'tcx Ex... function check (line 19) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, map_arg: &Exp... FILE: clippy_lints/src/methods/from_iter_instead_of_collect.rs function check (line 17) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, args: &[Expr<... function build_full_type (line 46) | fn build_full_type(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, app: &mut... FILE: clippy_lints/src/methods/get_first.rs function check (line 14) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/get_last_with_len.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... FILE: clippy_lints/src/methods/get_unwrap.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/implicit_clone.rs function check (line 13) | pub fn check(cx: &LateContext<'_>, method_name: Symbol, expr: &hir::Expr... function is_clone_like (line 44) | pub fn is_clone_like(cx: &LateContext<'_>, method_name: Symbol, method_p... FILE: clippy_lints/src/methods/inefficient_to_string.rs function check (line 14) | pub fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, receiver: &hir:... function specializes_tostring (line 50) | fn specializes_tostring(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { FILE: clippy_lints/src/methods/inspect_for_each.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<... FILE: clippy_lints/src/methods/into_iter_on_ref.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, method_s... function ty_has_iter_method (line 31) | fn ty_has_iter_method(cx: &LateContext<'_>, self_ref_ty: Ty<'_>) -> Opti... FILE: clippy_lints/src/methods/io_other_error.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, path: &Expr<'... FILE: clippy_lints/src/methods/ip_constant.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, func: &Expr<'... FILE: clippy_lints/src/methods/is_digit_ascii_radix.rs function check (line 10) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/is_empty.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, expr: &'_ Expr<'_>, receiver: ... function is_under_cfg (line 39) | fn is_under_cfg(cx: &LateContext<'_>, id: HirId) -> bool { function expr_or_init (line 47) | fn expr_or_init<'a, 'b, 'tcx: 'b>(cx: &LateContext<'tcx>, mut expr: &'a ... FILE: clippy_lints/src/methods/iter_cloned_collect.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/iter_count.rs function check (line 13) | pub(crate) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, recv:... FILE: clippy_lints/src/methods/iter_filter.rs function is_method (line 43) | fn is_method( function parent_is_map (line 107) | fn parent_is_map(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> bool { type FilterType (line 118) | enum FilterType { function expression_type (line 139) | fn expression_type( function check (line 174) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, filter_a... FILE: clippy_lints/src/methods/iter_kv_map.rs function check (line 17) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/iter_next_slice.rs function check (line 15) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<... function is_vec_or_array (line 78) | fn is_vec_or_array<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... FILE: clippy_lints/src/methods/iter_nth.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/iter_nth_zero.rs function check (line 14) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/iter_on_single_or_empty_collections.rs type IterType (line 17) | enum IterType { method ref_prefix (line 24) | fn ref_prefix(&self) -> &'static str { function is_arg_ty_unified_in_fn (line 33) | fn is_arg_ty_unified_in_fn<'tcx>( function check (line 65) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>... FILE: clippy_lints/src/methods/iter_out_of_bounds.rs function expr_as_u128 (line 12) | fn expr_as_u128(cx: &LateContext<'_>, e: &Expr<'_>) -> Option { function get_iterator_length (line 23) | fn get_iterator_length<'tcx>(cx: &LateContext<'tcx>, iter: &'tcx Expr<'t... function check (line 53) | fn check<'tcx>( function check_skip (line 70) | pub(super) fn check_skip<'tcx>( function check_take (line 86) | pub(super) fn check_take<'tcx>( FILE: clippy_lints/src/methods/iter_overeager_cloned.rs type Op (line 18) | pub(super) enum Op<'a> { function check (line 37) | pub(super) fn check<'tcx>( type MoveDelegate (line 146) | struct MoveDelegate { method consume (line 179) | fn consume(&mut self, place_with_id: &PlaceWithHirId<'tcx>, _: HirId) { method use_cloned (line 185) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} method borrow (line 187) | fn borrow(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId, _: BorrowKind... method mutate (line 189) | fn mutate(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} method fake_read (line 191) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _:... function param_captured_by_move_block (line 152) | fn param_captured_by_move_block(cx: &LateContext<'_>, expr: &Expr<'_>, p... FILE: clippy_lints/src/methods/iter_skip_next.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/iter_skip_zero.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>... FILE: clippy_lints/src/methods/iter_with_drain.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... FILE: clippy_lints/src/methods/iterator_step_by_zero.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &hir::Expr<'_>, ... FILE: clippy_lints/src/methods/join_absolute_paths.rs function check (line 13) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, recv: &'tcx Expr<'tcx>... FILE: clippy_lints/src/methods/lib.rs type SelfKind (line 8) | pub(super) enum SelfKind { method matches (line 16) | pub(super) fn matches<'a>(self, cx: &LateContext<'a>, parent_ty: Ty<'a... method description (line 62) | pub(super) fn description(self) -> &'static str { FILE: clippy_lints/src/methods/lines_filter_map_ok.rs function check_flatten (line 12) | pub(super) fn check_flatten(cx: &LateContext<'_>, expr: &Expr<'_>, recv:... function check_filter_or_flat_map (line 24) | pub(super) fn check_filter_or_flat_map( function emit (line 65) | fn emit(cx: &LateContext<'_>, recv: &Expr<'_>, method_name: &'static str... FILE: clippy_lints/src/methods/manual_c_str_literals.rs function check_as_ptr (line 21) | pub(super) fn check_as_ptr<'tcx>( function is_c_str_function (line 53) | fn is_c_str_function(cx: &LateContext<'_>, func: &Expr<'_>) -> Option, expr: &Expr<'_>, func: &Expr<'... function check_from_ptr (line 89) | fn check_from_ptr(cx: &LateContext<'_>, expr: &Expr<'_>, arg: &Expr<'_>) { function check_from_bytes (line 109) | fn check_from_bytes(cx: &LateContext<'_>, expr: &Expr<'_>, arg: &Expr<'_... function rewrite_as_cstr (line 142) | fn rewrite_as_cstr(cx: &LateContext<'_>, span: Span) -> Option { function get_cast_target (line 169) | fn get_cast_target<'tcx>(e: &'tcx Expr<'tcx>) -> Option<&'tcx Expr<'tcx>> { function peel_ptr_cast (line 180) | fn peel_ptr_cast<'tcx>(e: &'tcx Expr<'tcx>) -> &'tcx Expr<'tcx> { function peel_ptr_cast_ancestors (line 188) | fn peel_ptr_cast_ancestors<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'... FILE: clippy_lints/src/methods/manual_contains.rs function check (line 16) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... type EligibleArg (line 47) | enum EligibleArg { function try_get_eligible_arg (line 52) | fn try_get_eligible_arg<'tcx>( function can_replace_with_contains (line 92) | fn can_replace_with_contains<'tcx>( FILE: clippy_lints/src/methods/manual_inspect.rs function check (line 18) | pub(crate) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, arg: &Expr<'_... type UseKind (line 202) | enum UseKind<'tcx> { function check_use (line 212) | fn check_use<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) -> (UseKin... FILE: clippy_lints/src/methods/manual_is_variant_and.rs type Flavor (line 19) | enum Flavor { method new (line 25) | fn new(cx: &LateContext<'_>, def_id: DefId) -> Option { method diag_sym (line 33) | const fn diag_sym(self) -> Symbol { method positive_variant_name (line 40) | const fn positive_variant_name(self) -> Symbol { function check_map_unwrap_or_default (line 48) | pub(super) fn check_map_unwrap_or_default( type Op (line 102) | enum Op { method fmt (line 108) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Error (line 117) | type Error = (); method try_from (line 118) | fn try_from(op: BinOpKind) -> Result { type MapFunc (line 129) | enum MapFunc<'hir> { type Error (line 135) | type Error = (); function try_from (line 137) | fn try_from(expr: &'hir Expr<'hir>) -> Result { function sugg (line 149) | fn sugg(self, cx: &LateContext<'hir>, invert: bool, app: &mut Applicabil... function emit_lint (line 171) | fn emit_lint<'tcx>( function check_map (line 204) | pub(super) fn check_map(cx: &LateContext<'_>, expr: &Expr<'_>) { function check_or (line 232) | pub(super) fn check_or<'tcx>( function check_is_some_is_none (line 294) | pub(super) fn check_is_some_is_none<'tcx>( FILE: clippy_lints/src/methods/manual_next_back.rs function check (line 9) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/manual_ok_or.rs function check (line 12) | pub(super) fn check<'tcx>( function is_ok_wrapping (line 46) | fn is_ok_wrapping(cx: &LateContext<'_>, map_expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/methods/manual_repeat_n.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/manual_saturating_arithmetic.rs function check_unwrap_or (line 14) | pub fn check_unwrap_or( function check_sub_unwrap_or_default (line 38) | pub(super) fn check_sub_unwrap_or_default( function check (line 60) | fn check( type CheckedArith (line 108) | enum CheckedArith { method new (line 115) | fn new(sym: Symbol) -> Option { method as_saturating (line 125) | fn as_saturating(self) -> &'static str { type MinMax (line 135) | enum MinMax { function is_min_or_max (line 140) | fn is_min_or_max(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option { type Sign (line 208) | enum Sign { function lit_sign (line 213) | fn lit_sign(expr: &Expr<'_>) -> Option { FILE: clippy_lints/src/methods/manual_str_repeat.rs type RepeatKind (line 15) | enum RepeatKind { function get_ty_param (line 20) | fn get_ty_param(ty: Ty<'_>) -> Option> { function parse_repeat_arg (line 28) | fn parse_repeat_arg(cx: &LateContext<'_>, e: &Expr<'_>) -> Option( FILE: clippy_lints/src/methods/map_all_any_identity.rs function check (line 13) | pub(super) fn check( FILE: clippy_lints/src/methods/map_clone.rs function should_run_lint (line 22) | fn should_run_lint(cx: &LateContext<'_>, e: &hir::Expr<'_>, method_paren... function check (line 44) | pub(super) fn check(cx: &LateContext<'_>, e: &hir::Expr<'_>, recv: &hir:... function handle_path (line 108) | fn handle_path( function ident_eq (line 131) | fn ident_eq(name: Ident, path: &hir::Expr<'_>) -> bool { function lint_needless_cloning (line 139) | fn lint_needless_cloning(cx: &LateContext<'_>, root: Span, receiver: Spa... function lint_path (line 151) | fn lint_path(cx: &LateContext<'_>, replace: Span, root: Span, is_copy: b... function lint_explicit_closure (line 170) | fn lint_explicit_closure(cx: &LateContext<'_>, replace: Span, root: Span... FILE: clippy_lints/src/methods/map_collect_result_unit.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, iter: &h... FILE: clippy_lints/src/methods/map_err_ignore.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, e: &Expr<'_>, arg: &Expr<'_>) { FILE: clippy_lints/src/methods/map_flatten.rs function check (line 15) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... function try_get_caller_ty_name_and_method_name (line 37) | fn try_get_caller_ty_name_and_method_name( function is_map_to_option (line 63) | fn is_map_to_option(cx: &LateContext<'_>, map_arg: &Expr<'_>) -> bool { FILE: clippy_lints/src/methods/map_identity.rs constant MSG (line 13) | const MSG: &str = "unnecessary map of the identity function"; function check (line 15) | pub(super) fn check( FILE: clippy_lints/src/methods/map_unwrap_or.rs function check (line 20) | pub(super) fn check<'tcx>( type SuggestedKind (line 152) | enum SuggestedKind { type UnwrapVisitor (line 158) | struct UnwrapVisitor<'a, 'tcx> { type NestedFilter (line 164) | type NestedFilter = nested_filter::All; function visit_path (line 166) | fn visit_path(&mut self, path: &Path<'tcx>, _: HirId) { function maybe_tcx (line 176) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { type ReferenceVisitor (line 181) | struct ReferenceVisitor<'a, 'tcx> { type NestedFilter (line 188) | type NestedFilter = nested_filter::All; type Result (line 189) | type Result = ControlFlow<()>; function visit_expr (line 190) | fn visit_expr(&mut self, expr: &'tcx rustc_hir::Expr<'_>) -> ControlFlow... function maybe_tcx (line 207) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/methods/map_unwrap_or_else.rs function check (line 16) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/map_with_unused_argument_over_ranges.rs function extract_count_with_applicability (line 15) | fn extract_count_with_applicability( function check (line 60) | pub(super) fn check( FILE: clippy_lints/src/methods/mod.rs type Methods (line 4910) | pub struct Methods { method new (line 4925) | pub fn new(conf: &'static Conf, format_args: FormatArgsStorage) -> Self { method check_crate (line 4960) | fn check_crate(&mut self, cx: &LateContext<'tcx>) { method check_expr (line 4973) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_impl_item (line 5019) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &'tcx... method check_trait_item (line 5056) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Tra... method check_methods (line 5091) | fn check_methods<'tcx>(&self, cx: &LateContext<'tcx>, expr: &'tcx Expr... function method_call (line 4948) | pub fn method_call<'tcx>(recv: &'tcx Expr<'tcx>) -> Option<(Symbol, &'tc... function check_is_some_is_none (line 5810) | fn check_is_some_is_none<'tcx>( type BinaryExprInfo (line 5837) | struct BinaryExprInfo<'a> { function lint_binary_expr_with_method_call (line 5845) | fn lint_binary_expr_with_method_call(cx: &LateContext<'_>, info: &mut Bi... FILE: clippy_lints/src/methods/mut_mutex_lock.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, ex: &'tcx Expr<'tcx>, ... FILE: clippy_lints/src/methods/needless_as_bytes.rs function check (line 11) | pub fn check(cx: &LateContext<'_>, prev_method: Symbol, method: Symbol, ... FILE: clippy_lints/src/methods/needless_character_iteration.rs function peels_expr_ref (line 14) | fn peels_expr_ref<'a, 'tcx>(mut expr: &'a Expr<'tcx>) -> &'a Expr<'tcx> { function handle_expr (line 21) | fn handle_expr( function check (line 98) | pub(super) fn check(cx: &LateContext<'_>, call_expr: &Expr<'_>, recv: &E... FILE: clippy_lints/src/methods/needless_collect.rs constant NEEDLESS_COLLECT_MSG (line 23) | const NEEDLESS_COLLECT_MSG: &str = "avoid using `collect()` when not nee... function check (line 26) | pub(super) fn check<'tcx>( function check_collect_into_intoiterator (line 172) | fn check_collect_into_intoiterator<'tcx>( function is_is_empty_sig (line 234) | fn is_is_empty_sig(cx: &LateContext<'_>, call_id: HirId) -> bool { function iterates_same_ty (line 242) | fn iterates_same_ty<'tcx>(cx: &LateContext<'tcx>, iter_ty: Ty<'tcx>, col... function is_contains_sig (line 261) | fn is_contains_sig(cx: &LateContext<'_>, call_id: HirId, iter_expr: &Exp... type IterFunction (line 288) | struct IterFunction { method get_iter_method (line 294) | fn get_iter_method(&self, cx: &LateContext<'_>) -> String { method get_suggestion_text (line 310) | fn get_suggestion_text(&self) -> &'static str { type IterFunctionKind (line 328) | enum IterFunctionKind { type ExtraFunctionSpan (line 335) | struct ExtraFunctionSpan { type ExtraFunction (line 342) | enum ExtraFunction { method apply_iter_method (line 351) | fn apply_iter_method(&self, cx: &LateContext<'_>, inner: &str) -> Stri... method span (line 378) | fn span(&self) -> Box + '_> { type ExtraFunctionPushSpec (line 391) | struct ExtraFunctionPushSpec { type ExtraFunctionSpec (line 397) | struct ExtraFunctionSpec { method new (line 403) | fn new(target: Symbol) -> Option { method is_extra_function (line 430) | fn is_extra_function(self, name: Symbol) -> bool { type IterFunctionVisitor (line 435) | struct IterFunctionVisitor<'a, 'tcx> { function visit_block (line 449) | fn visit_block(&mut self, block: &'tcx Block<'tcx>) { function visit_expr (line 468) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) { function get_span_of_expr_or_parent_stmt (line 597) | fn get_span_of_expr_or_parent_stmt<'tcx>(cx: &LateContext<'tcx>, expr: &... type LoopKind (line 605) | enum LoopKind<'tcx> { function check_loop_kind (line 610) | fn check_loop_kind<'tcx>(expr: &Expr<'tcx>) -> Option> { function visit_block_expr (line 628) | fn visit_block_expr(&mut self, expr: &'tcx Expr<'tcx>, hir_id: Option(stmt: &'v Stmt<'v>) -> Option<(&'v ... type UsedCountVisitor (line 649) | struct UsedCountVisitor<'a, 'tcx> { type NestedFilter (line 657) | type NestedFilter = nested_filter::OnlyBodies; function visit_expr (line 659) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function maybe_tcx (line 676) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function detect_iter_and_into_iters (line 683) | fn detect_iter_and_into_iters<'tcx: 'a, 'a>( function get_captured_ids (line 710) | fn get_captured_ids(cx: &LateContext<'_>, ty: Ty<'_>) -> HirIdSet { type IteratorMethodCheckVisitor (line 744) | struct IteratorMethodCheckVisitor<'a, 'tcx> { type Result (line 751) | type Result = ControlFlow<()>; function visit_expr (line 752) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> ControlFlow<()> { function visit_stmt (line 774) | fn visit_stmt(&mut self, stmt: &'tcx Stmt<'tcx>) -> ControlFlow<()> { function check_iter_expr_used_only_as_iterator (line 793) | fn check_iter_expr_used_only_as_iterator<'tcx>( FILE: clippy_lints/src/methods/needless_option_as_deref.rs function check (line 14) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... FILE: clippy_lints/src/methods/needless_option_take.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function is_expr_option (line 36) | fn is_expr_option(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function source_of_temporary_value (line 45) | fn source_of_temporary_value(expr: &Expr<'_>) -> Option { FILE: clippy_lints/src/methods/new_ret_no_self.rs function check_impl_item (line 11) | pub(super) fn check_impl_item<'tcx>( function check_trait_item (line 33) | pub(super) fn check_trait_item<'tcx>(cx: &LateContext<'tcx>, trait_item:... FILE: clippy_lints/src/methods/no_effect_replace.rs function check (line 10) | pub(super) fn check<'tcx>( function lit_string_value (line 36) | fn lit_string_value(node: &LitKind) -> Option { FILE: clippy_lints/src/methods/obfuscated_if_else.rs function check (line 13) | pub(super) fn check<'tcx>( type Unwrap (line 87) | pub(super) enum Unwrap<'tcx> { function arg (line 94) | fn arg(&self) -> Option<&'tcx Expr<'tcx>> { FILE: clippy_lints/src/methods/ok_expect.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... function get_error_type (line 38) | fn get_error_type<'a>(cx: &LateContext<'_>, ty: Ty<'a>) -> Option> { FILE: clippy_lints/src/methods/open_options.rs function is_open_options (line 15) | fn is_open_options(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function check (line 19) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, rec... type Argument (line 32) | enum Argument { type OpenOption (line 38) | enum OpenOption { method fmt (line 47) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function get_open_options (line 62) | fn get_open_options( function check_open_options (line 142) | fn check_open_options(cx: &LateContext<'_>, settings: &[(OpenOption, Arg... FILE: clippy_lints/src/methods/option_as_ref_cloned.rs function check (line 11) | pub(super) fn check( FILE: clippy_lints/src/methods/option_as_ref_deref.rs function check (line 15) | pub(super) fn check( FILE: clippy_lints/src/methods/option_map_or_none.rs function reduce_unit_expression (line 15) | fn reduce_unit_expression<'a>(expr: &'a hir::Expr<'_>) -> Option<(&'a hi... function check (line 33) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/or_fun_call.rs function check (line 24) | pub(super) fn check<'tcx>( function check_unwrap_or_default (line 105) | fn check_unwrap_or_default( function check_or_fn_call (line 210) | fn check_or_fn_call<'tcx>( function closure_body_returns_empty_to_string (line 285) | fn closure_body_returns_empty_to_string(cx: &LateContext<'_>, e: &hir::E... FILE: clippy_lints/src/methods/or_then_unwrap.rs function check (line 12) | pub(super) fn check<'tcx>( function get_content_if_ctor_matches (line 64) | fn get_content_if_ctor_matches(cx: &LateContext<'_>, expr: &Expr<'_>, it... FILE: clippy_lints/src/methods/path_buf_push_overwrite.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/methods/path_ends_with_ext.rs constant DEFAULT_ALLOWED_DOTFILES (line 14) | pub const DEFAULT_ALLOWED_DOTFILES: &[&str] = &[ function check (line 18) | pub(super) fn check( FILE: clippy_lints/src/methods/ptr_offset_by_literal.rs function check (line 14) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function get_literal_bits (line 68) | fn get_literal_bits<'tcx>(expr: &'tcx Expr<'tcx>) -> Option { function expr_as_literal (line 79) | fn expr_as_literal<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>)... function format_isize_literal (line 94) | fn format_isize_literal<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'... function peel_parens_str (line 100) | fn peel_parens_str(snippet: &str) -> &str { type Method (line 109) | enum Method { method suggestion (line 115) | fn suggestion(self, literal: i128) -> Option<&'static str> { method fmt (line 132) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { FILE: clippy_lints/src/methods/ptr_offset_with_cast.rs function check (line 12) | pub(super) fn check( type Method (line 60) | enum Method { method suggestion (line 67) | fn suggestion(self) -> &'static str { method fmt (line 76) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { FILE: clippy_lints/src/methods/range_zip_with_len.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function for_loop_pattern (line 69) | fn for_loop_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ... function methods_pattern (line 84) | fn methods_pattern<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) -... FILE: clippy_lints/src/methods/read_line_without_trim.rs function expr_is_string_literal_without_trailing_newline (line 17) | fn expr_is_string_literal_without_trailing_newline(expr: &Expr<'_>) -> b... function parse_fails_on_trailing_newline (line 28) | fn parse_fails_on_trailing_newline(ty: Ty<'_>) -> bool { function check (line 33) | pub fn check(cx: &LateContext<'_>, call: &Expr<'_>, recv: &Expr<'_>, arg... FILE: clippy_lints/src/methods/readonly_write_lock.rs function is_unwrap_call (line 12) | fn is_unwrap_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function check (line 25) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/methods/redundant_as_str.rs function check (line 9) | pub(super) fn check( FILE: clippy_lints/src/methods/repeat_once.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/result_map_or_else_none.rs function check (line 14) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/return_and_then.rs function check (line 18) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/search_is_some.rs function check (line 18) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/seek_from_current.rs function check (line 14) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function arg_is_seek_from_current (line 36) | fn arg_is_seek_from_current<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Ex... FILE: clippy_lints/src/methods/seek_to_start_instead_of_rewind.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/should_implement_trait.rs function check_impl_item (line 13) | pub(super) fn check_impl_item<'tcx>( type ShouldImplTraitCase (line 55) | struct ShouldImplTraitCase { method new (line 69) | const fn new( method lifetime_param_cond (line 89) | fn lifetime_param_cond(&self, impl_item: &ImplItem<'_>) -> bool { constant TRAIT_METHODS (line 103) | const TRAIT_METHODS: [ShouldImplTraitCase; 30] = [ type OutType (line 137) | enum OutType { method matches (line 145) | fn matches(self, ty: &FnRetTy<'_>) -> bool { FILE: clippy_lints/src/methods/single_char_add_str.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, receiver: &Ex... function is_ref_char (line 74) | fn is_ref_char(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_char (line 78) | fn is_char(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/methods/skip_while_next.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<... FILE: clippy_lints/src/methods/sliced_string_as_bytes.rs function is_bounded_range_literal (line 12) | fn is_bounded_range_literal(cx: &LateContext<'_>, index: &Expr<'_>) -> b... function check (line 16) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'... FILE: clippy_lints/src/methods/stable_sort_primitive.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, rec... FILE: clippy_lints/src/methods/str_split.rs function check (line 12) | pub(super) fn check<'a>( FILE: clippy_lints/src/methods/str_splitn.rs function check (line 20) | pub(super) fn check( function lint_needless (line 49) | fn lint_needless(cx: &LateContext<'_>, method_name: Symbol, expr: &Expr<... function check_manual_split_once (line 68) | fn check_manual_split_once( function check_manual_split_once_indirect (line 123) | fn check_manual_split_once_indirect( type IndirectUsage (line 187) | struct IndirectUsage<'a> { function indirect_usage (line 200) | fn indirect_usage<'tcx>( type IterUsageKind (line 257) | enum IterUsageKind { type UnwrapKind (line 263) | enum UnwrapKind { type IterUsage (line 269) | struct IterUsage { function parse_iter_usage (line 275) | fn parse_iter_usage<'tcx>( FILE: clippy_lints/src/methods/string_extend_chars.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/string_lit_chars_any.rs function check (line 15) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/suspicious_command_arg_space.rs function check (line 12) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, recv: &'tcx hir::Expr<... FILE: clippy_lints/src/methods/suspicious_map.rs function check (line 11) | pub fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, count_recv: &hi... FILE: clippy_lints/src/methods/suspicious_splitn.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, method_name: Symbol, expr: &Ex... FILE: clippy_lints/src/methods/suspicious_to_owned.rs function check (line 12) | pub fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, method_span: Sp... FILE: clippy_lints/src/methods/swap_with_temporary.rs constant MSG_TEMPORARY (line 12) | const MSG_TEMPORARY: &str = "this expression returns a temporary value"; constant MSG_TEMPORARY_REFMUT (line 13) | const MSG_TEMPORARY_REFMUT: &str = "this is a mutable reference to a tem... function check (line 15) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, func:... type ArgKind (line 31) | enum ArgKind<'tcx> { function new (line 45) | fn new(cx: &LateContext<'tcx>, arg: &'tcx Expr<'tcx>) -> Self { function emit_note (line 79) | fn emit_note(diag: &mut Diag<'_, ()>, base: &Expr<'_>, expr: &Expr<'_>, ... function emit_lint_useless (line 89) | fn emit_lint_useless( function emit_lint_assign (line 109) | fn emit_lint_assign(cx: &LateContext<'_>, expr: &Expr<'_>, target: &ArgK... FILE: clippy_lints/src/methods/type_id_on_box.rs function is_subtrait_of_any (line 21) | fn is_subtrait_of_any(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function check (line 42) | pub(super) fn check(cx: &LateContext<'_>, receiver: &Expr<'_>, call_span... FILE: clippy_lints/src/methods/unbuffered_bytes.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/uninit_assumed_init.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/methods/unit_hash.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/methods/unnecessary_fallible_conversions.rs type SpansKind (line 14) | enum SpansKind { type FunctionKind (line 23) | enum FunctionKind { method appl_sugg (line 33) | fn appl_sugg(&self, parent_unwrap_call: Option, primary_span: Sp... method default_sugg (line 49) | fn default_sugg(&self, primary_span: Span) -> Vec<(Span, String)> { method machine_applicable_sugg (line 59) | fn machine_applicable_sugg(&self, primary_span: Span, unwrap_span: Spa... function check (line 80) | fn check<'tcx>( function check_method (line 150) | pub(super) fn check_method(cx: &LateContext<'_>, expr: &Expr<'_>) { function check_function (line 165) | pub(super) fn check_function(cx: &LateContext<'_>, expr: &Expr<'_>, call... FILE: clippy_lints/src/methods/unnecessary_filter_map.rs function check (line 17) | pub(super) fn check<'tcx>( type Kind (line 91) | pub(super) enum Kind { method is_filter_map (line 97) | fn is_filter_map(self) -> bool { method fmt (line 103) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function check_expression (line 112) | fn check_expression<'tcx>(cx: &LateContext<'tcx>, arg_id: hir::HirId, ex... FILE: clippy_lints/src/methods/unnecessary_first_then_check.rs function check (line 11) | pub(super) fn check( FILE: clippy_lints/src/methods/unnecessary_fold.rs function needs_turbofish (line 20) | fn needs_turbofish<'tcx>(cx: &LateContext<'tcx>, expr: &hir::Expr<'tcx>)... type Replacement (line 58) | struct Replacement { method default_applicability (line 66) | fn default_applicability(&self) -> Applicability { method maybe_add_note (line 74) | fn maybe_add_note(&self, diag: &mut Diag<'_, ()>) { method maybe_turbofish (line 83) | fn maybe_turbofish(&self, ty: Ty<'_>) -> String { function get_triggered_expr_span (line 92) | fn get_triggered_expr_span( function check_fold_with_op (line 114) | fn check_fold_with_op( function check_fold_with_method (line 174) | fn check_fold_with_method( function check (line 210) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/unnecessary_get_then_check.rs function is_a_std_set_type (line 14) | fn is_a_std_set_type(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function is_a_std_map_type (line 18) | fn is_a_std_map_type(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function check (line 22) | pub(super) fn check( FILE: clippy_lints/src/methods/unnecessary_iter_cloned.rs function check (line 19) | pub fn check(cx: &LateContext<'_>, expr: &Expr<'_>, method_name: Symbol,... function check_for_loop_iter (line 34) | pub fn check_for_loop_iter( function is_into_iter (line 142) | pub fn is_into_iter(cx: &LateContext<'_>, callee_def_id: DefId) -> bool { FILE: clippy_lints/src/methods/unnecessary_join.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/unnecessary_lazy_eval.rs function check (line 15) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/unnecessary_literal_unwrap.rs function get_ty_from_args (line 13) | fn get_ty_from_args<'a>(args: Option<&'a [hir::GenericArg<'a>]>, index: ... function check (line 27) | pub(super) fn check( FILE: clippy_lints/src/methods/unnecessary_map_or.rs type Variant (line 19) | pub(super) enum Variant { method variant_name (line 24) | pub fn variant_name(&self) -> &'static str { method method_name (line 31) | pub fn method_name(&self) -> &'static str { function check (line 39) | pub(super) fn check<'a>( FILE: clippy_lints/src/methods/unnecessary_map_or_else.rs function check (line 14) | pub(super) fn check( FILE: clippy_lints/src/methods/unnecessary_min_or_max.rs function check (line 15) | pub(super) fn check<'tcx>( function lint (line 53) | fn lint(cx: &LateContext<'_>, expr: &Expr<'_>, name: Symbol, lhs: Span, ... type Extrema (line 79) | enum Extrema { function detect_extrema (line 83) | fn detect_extrema<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->... FILE: clippy_lints/src/methods/unnecessary_sort_by.rs type LintTrigger (line 19) | enum LintTrigger { type SortByKeyDetection (line 24) | struct SortByKeyDetection { function mirrored_exprs (line 33) | fn mirrored_exprs( type BindingSource (line 135) | enum BindingSource { type Output (line 141) | type Output = BindingSource; method not (line 143) | fn not(self) -> Self::Output { type BindingKey (line 152) | struct BindingKey { type BindingValue (line 159) | struct BindingValue { type BindingMap (line 167) | type BindingMap = FxHashMap; function mapping_of_mirrored_pats (line 170) | fn mapping_of_mirrored_pats(a_pat: &Pat<'_>, b_pat: &Pat<'_>) -> Option<... function detect_lint (line 243) | fn detect_lint(cx: &LateContext<'_>, expr: &Expr<'_>, arg: &Expr<'_>) ->... function expr_borrows (line 331) | fn expr_borrows(ty: Ty<'_>) -> bool { function expr_is_field_access (line 335) | fn expr_is_field_access(expr: &Expr<'_>) -> bool { function check (line 343) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/unnecessary_to_owned.rs function check (line 27) | pub fn check<'tcx>( function check_addr_of_expr (line 67) | fn check_addr_of_expr( function check_into_iter_call_arg (line 206) | fn check_into_iter_call_arg( function check_string_from_utf8 (line 254) | fn check_string_from_utf8<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr... function check_split_call_arg (line 313) | fn check_split_call_arg(cx: &LateContext<'_>, expr: &Expr<'_>, method_na... function get_fn_name_and_arg (line 349) | fn get_fn_name_and_arg<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) ... function check_other_call_arg (line 377) | fn check_other_call_arg<'tcx>( function skip_addr_of_ancestors (line 434) | fn skip_addr_of_ancestors<'tcx>( function get_callee_generic_args_and_args (line 450) | fn get_callee_generic_args_and_args<'tcx>( function get_input_traits_and_projections (line 476) | fn get_input_traits_and_projections<'tcx>( function can_change_type (line 498) | fn can_change_type<'a>(cx: &LateContext<'a>, mut expr: &'a Expr<'a>, mut... function has_lifetime (line 610) | fn has_lifetime(ty: Ty<'_>) -> bool { function is_cloned_or_copied (line 615) | fn is_cloned_or_copied(cx: &LateContext<'_>, method_name: Symbol, method... function is_to_owned_like (line 621) | fn is_to_owned_like<'a>( function is_cow_into_owned (line 633) | fn is_cow_into_owned(cx: &LateContext<'_>, method_name: Symbol, method_p... function is_to_string_on_string_like (line 639) | fn is_to_string_on_string_like<'a>( function std_map_key (line 663) | fn std_map_key<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option, arg_ty: Ty<'_>, original_arg_... function is_slice_and_vec (line 681) | fn is_slice_and_vec(cx: &LateContext<'_>, arg_ty: Ty<'_>, original_arg_t... function check_if_applicable_to_argument (line 690) | fn check_if_applicable_to_argument<'tcx>(cx: &LateContext<'tcx>, arg: &E... function check_borrow_predicate (line 736) | fn check_borrow_predicate<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx... FILE: clippy_lints/src/methods/unwrap_expect_used.rs type Variant (line 14) | pub(super) enum Variant { method method_name (line 20) | fn method_name(self, is_err: bool) -> &'static str { method lint (line 29) | fn lint(self) -> &'static Lint { function check (line 40) | pub(super) fn check( function check_call (line 132) | pub(super) fn check_call( FILE: clippy_lints/src/methods/useless_asref.rs function get_enum_ty (line 19) | fn get_enum_ty(enum_ty: Ty<'_>) -> Option> { function check (line 44) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, call_nam... function check_qpath (line 137) | fn check_qpath(cx: &LateContext<'_>, qpath: hir::QPath<'_>, hir_id: hir:... function is_calling_clone (line 146) | fn is_calling_clone(cx: &LateContext<'_>, arg: &hir::Expr<'_>) -> bool { function lint_as_ref_clone (line 189) | fn lint_as_ref_clone(cx: &LateContext<'_>, span: Span, recvr: &hir::Expr... FILE: clippy_lints/src/methods/useless_nonzero_new_unchecked.rs function check (line 13) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, func:... FILE: clippy_lints/src/methods/utils.rs function derefs_to_slice (line 14) | pub(super) fn derefs_to_slice<'tcx>( function clone_or_copy_needed (line 54) | pub(super) fn clone_or_copy_needed<'tcx>( function pat_bindings (line 70) | fn pat_bindings(pat: &Pat<'_>) -> Vec { type CloneOrCopyVisitor (line 85) | struct CloneOrCopyVisitor<'cx, 'tcx> { type NestedFilter (line 93) | type NestedFilter = nested_filter::OnlyBodies; function maybe_tcx (line 95) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_expr (line 99) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) { function is_binding (line 130) | fn is_binding(&self, expr: &Expr<'tcx>) -> bool { function get_last_chain_binding_hir_id (line 137) | pub(super) fn get_last_chain_binding_hir_id(mut hir_id: HirId, statement... FILE: clippy_lints/src/methods/vec_resize_to_zero.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/verbose_file_reads.rs constant READ_TO_END_MSG (line 9) | pub(super) const READ_TO_END_MSG: (&str, &str) = ("use of `File::read_to... constant READ_TO_STRING_MSG (line 10) | pub(super) const READ_TO_STRING_MSG: (&str, &str) = ( function check (line 15) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/waker_clone_wake.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/methods/wrong_self_convention.rs constant CONVENTIONS (line 13) | const CONVENTIONS: [(&[Convention], &[SelfKind]); 9] = [ type Convention (line 30) | enum Convention { method check (line 42) | fn check<'tcx>( method fmt (line 63) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { function check (line 84) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/methods/zst_offset.rs function check (line 8) | pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &h... FILE: clippy_lints/src/min_ident_chars.rs type MinIdentChars (line 51) | pub struct MinIdentChars { method new (line 57) | pub fn new(conf: &'static Conf) -> Self { method is_ident_too_short (line 65) | fn is_ident_too_short(&self, cx: &LateContext<'_>, str: &str, span: Sp... method check_item (line 75) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { method check_trait_item (line 83) | fn check_trait_item(&mut self, cx: &LateContext<'_>, item: &TraitItem<... method check_pat (line 104) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &Pat<'_>) { type IdentVisitor (line 115) | struct IdentVisitor<'cx, 'tcx> { function visit_id (line 121) | fn visit_id(&mut self, hir_id: HirId) { function emit_min_ident_chars (line 206) | fn emit_min_ident_chars(conf: &MinIdentChars, cx: &impl LintContext, ide... function opt_as_use_node (line 222) | fn opt_as_use_node(node: Node<'_>) -> Option<&'_ UsePath<'_>> { function is_not_in_trait_impl (line 234) | fn is_not_in_trait_impl(cx: &LateContext<'_>, pat: &Pat<'_>, ident: Iden... function get_param_name (line 259) | fn get_param_name(impl_item: &ImplItem<'_>, cx: &LateContext<'_>, ident:... FILE: clippy_lints/src/minmax.rs method check_expr (line 39) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type MinMax (line 60) | enum MinMax { function min_max (line 65) | fn min_max<'a>(cx: &LateContext<'_>, expr: &'a Expr<'a>) -> Option<(MinM... function fetch_const (line 98) | fn fetch_const<'a>( FILE: clippy_lints/src/misc.rs method check_stmt (line 103) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_expr (line 127) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function used_underscore_items (line 140) | fn used_underscore_items<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<... function used_underscore_binding (line 191) | fn used_underscore_binding<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Exp... function is_used (line 239) | fn is_used(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/misc_early/builtin_type_shadow.rs function check (line 8) | pub(super) fn check(cx: &EarlyContext<'_>, param: &GenericParam) { FILE: clippy_lints/src/misc_early/literal_suffix.rs function check (line 8) | pub(super) fn check(cx: &EarlyContext<'_>, lit_span: Span, lit_snip: &st... FILE: clippy_lints/src/misc_early/mixed_case_hex_literals.rs function check (line 7) | pub(super) fn check(cx: &EarlyContext<'_>, lit_span: Span, suffix: &str,... FILE: clippy_lints/src/misc_early/mod.rs method check_generics (line 318) | fn check_generics(&mut self, cx: &EarlyContext<'_>, generics: &Generics) { method check_pat (line 324) | fn check_pat(&mut self, cx: &EarlyContext<'_>, pat: &Pat) { method check_expr (line 335) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { method check_lit (line 347) | fn check_lit(cx: &EarlyContext<'_>, lit: token::Lit, span: Span) { FILE: clippy_lints/src/misc_early/redundant_at_rest_pattern.rs function check (line 8) | pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) { FILE: clippy_lints/src/misc_early/redundant_pattern.rs function check (line 8) | pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) { FILE: clippy_lints/src/misc_early/unneeded_field_pattern.rs function check (line 9) | pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) { FILE: clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs function check (line 9) | pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) { function span_lint (line 38) | fn span_lint(cx: &EarlyContext<'_>, span: Span, only_one: bool) { FILE: clippy_lints/src/misc_early/zero_prefixed_literal.rs function check (line 8) | pub(super) fn check(cx: &EarlyContext<'_>, lit_span: Span, lit_snip: &st... FILE: clippy_lints/src/mismatching_type_param_order.rs method check_item (line 52) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function mismatch_param_name (line 114) | fn mismatch_param_name(i: usize, impl_param_name: &String, type_param_na... FILE: clippy_lints/src/missing_assert_message.rs method check_expr (line 52) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/missing_asserts_for_indexing.rs function report_lint (line 71) | fn report_lint(cx: &LateContext<'_>, index_spans: Vec, msg: &'s... type LengthComparison (line 82) | enum LengthComparison { function len_comparison (line 99) | fn len_comparison<'hir>( function assert_len_expr (line 133) | fn assert_len_expr<'hir>( type IndexEntry (line 174) | enum IndexEntry<'hir> { function slice (line 207) | pub fn slice(&self) -> &'hir Expr<'hir> { function upper_index_expr (line 220) | fn upper_index_expr(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option(cx: &LateContext<'_>, expr: &'hir Expr<'hir>, map: ... function check_assert (line 304) | fn check_assert<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'hir>, map:... function report_indexes (line 346) | fn report_indexes(cx: &LateContext<'_>, map: UnindexMap, body: &Body<'_>) { FILE: clippy_lints/src/missing_const_for_fn.rs type MissingConstForFn (line 77) | pub struct MissingConstForFn { method new (line 82) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 88) | fn check_fn( function already_const (line 189) | fn already_const(header: hir::FnHeader) -> bool { function could_be_const_with_abi (line 193) | fn could_be_const_with_abi(cx: &LateContext<'_>, msrv: Msrv, abi: Extern... function fn_inputs_has_impl_trait_ty (line 205) | fn fn_inputs_has_impl_trait_ty(cx: &LateContext<'_>, def_id: LocalDefId)... FILE: clippy_lints/src/missing_const_for_thread_local.rs type MissingConstForThreadLocal (line 47) | pub struct MissingConstForThreadLocal { method new (line 52) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 103) | fn check_fn( function is_thread_local_initializer (line 58) | fn is_thread_local_initializer( function is_unreachable (line 70) | fn is_unreachable(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function initializer_can_be_made_const (line 91) | fn initializer_can_be_made_const(cx: &LateContext<'_>, defid: rustc_span... FILE: clippy_lints/src/missing_doc.rs type MissingDoc (line 34) | pub struct MissingDoc { method new (line 58) | pub fn new(conf: &'static Conf) -> Self { method is_missing_docs (line 72) | fn is_missing_docs(&self, cx: &LateContext<'_>, def_id: LocalDefId, hi... method check_attributes (line 105) | fn check_attributes(&mut self, _: &LateContext<'tcx>, attrs: &'tcx [At... method check_attributes_post (line 112) | fn check_attributes_post(&mut self, _: &LateContext<'tcx>, _: &'tcx [A... method check_item (line 122) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_item_post (line 185) | fn check_item_post(&mut self, _: &LateContext<'tcx>, item: &'tcx Item<... method check_trait_item (line 198) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Tra... method check_impl_item (line 216) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Impl... method check_body (line 237) | fn check_body(&mut self, _: &LateContext<'tcx>, body: &Body<'tcx>) { method check_body_post (line 243) | fn check_body_post(&mut self, _: &LateContext<'tcx>, body: &Body<'tcx>) { method check_field_def (line 249) | fn check_field_def(&mut self, cx: &LateContext<'tcx>, field: &'tcx Fie... method check_variant (line 268) | fn check_variant(&mut self, cx: &LateContext<'tcx>, variant: &'tcx Var... function is_doc_attr (line 286) | fn is_doc_attr(attr: &Attribute) -> bool { FILE: clippy_lints/src/missing_enforced_import_rename.rs type ImportRename (line 51) | pub struct ImportRename { method new (line 56) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_item (line 73) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/missing_fields_in_debug.rs function report_lints (line 82) | fn report_lints(cx: &LateContext<'_>, span: Span, span_notes: Vec<(Span,... function should_lint (line 102) | fn should_lint<'tcx>( function as_field_call (line 136) | fn as_field_call<'tcx>( function check_struct (line 155) | fn check_struct<'tcx>( method check_item (line 204) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { FILE: clippy_lints/src/missing_inline.rs function check_missing_inline_attrs (line 69) | fn check_missing_inline_attrs( method check_item (line 87) | fn check_item(&mut self, cx: &LateContext<'tcx>, it: &'tcx hir::Item<'_>) { method check_impl_item (line 151) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &'tcx h... function fn_is_externally_exported (line 196) | fn fn_is_externally_exported(cx: &LateContext<'_>, def_id: DefId) -> bool { FILE: clippy_lints/src/missing_trait_methods.rs method check_item (line 62) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { FILE: clippy_lints/src/mixed_read_write_in_expression.rs method check_expr (line 88) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_stmt (line 106) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { type DivergenceVisitor (line 119) | struct DivergenceVisitor<'a, 'tcx> { function maybe_walk_expr (line 124) | fn maybe_walk_expr(&mut self, e: &'tcx Expr<'_>) { function report_diverging_sub_expr (line 141) | fn report_diverging_sub_expr(&self, e: &Expr<'_>) { function stmt_might_diverge (line 151) | fn stmt_might_diverge(stmt: &Stmt<'_>) -> bool { function visit_expr (line 156) | fn visit_expr(&mut self, e: &'tcx Expr<'_>) { function visit_block (line 195) | fn visit_block(&mut self, _: &'tcx Block<'_>) { function check_for_unsequenced_reads (line 214) | fn check_for_unsequenced_reads(vis: &mut ReadVisitor<'_, '_>) { type StopEarly (line 243) | enum StopEarly { function check_expr (line 248) | fn check_expr<'tcx>(vis: &mut ReadVisitor<'_, 'tcx>, expr: &'tcx Expr<'_... function check_stmt (line 296) | fn check_stmt<'tcx>(vis: &mut ReadVisitor<'_, 'tcx>, stmt: &'tcx Stmt<'_... type ReadVisitor (line 310) | struct ReadVisitor<'a, 'tcx> { function visit_expr (line 323) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function is_in_assignment_position (line 372) | fn is_in_assignment_position(cx: &LateContext<'_>, expr: &Expr<'_>) -> b... FILE: clippy_lints/src/module_style.rs type ModState (line 70) | pub struct ModState { type ModStyle (line 77) | pub struct ModStyle { method check_crate (line 83) | fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) { method check_item (line 87) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) { method check_item_post (line 107) | fn check_item_post(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) { function check_self_named_module (line 133) | fn check_self_named_module(cx: &EarlyContext<'_>, path: &Path, file: &So... function check_mod_module (line 152) | fn check_mod_module(cx: &EarlyContext<'_>, path: &Path, file: &SourceFil... function try_trim_file_path_prefix (line 176) | fn try_trim_file_path_prefix<'a>(file: &'a SourceFile, prefix: &'a Path)... FILE: clippy_lints/src/multi_assignments.rs function strip_paren_blocks (line 34) | fn strip_paren_blocks(expr: &Expr) -> &Expr { method check_expr (line 55) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/multiple_bound_locations.rs method check_fn (line 41) | fn check_fn(&mut self, cx: &EarlyContext<'_>, kind: FnKind<'_>, _: Span,... function emit_lint (line 79) | fn emit_lint(cx: &EarlyContext<'_>, bound_span: Span, where_span: Span) { FILE: clippy_lints/src/multiple_unsafe_ops_per_block.rs method check_block (line 79) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx hir::Bloc... type UnsafeExprCollector (line 103) | struct UnsafeExprCollector<'tcx> { function collect_unsafe_exprs (line 110) | fn collect_unsafe_exprs(cx: &LateContext<'tcx>, block: &'tcx hir::Block<... function insert_span (line 132) | fn insert_span(&mut self, span: Span, message: &'static str) { type NestedFilter (line 145) | type NestedFilter = nested_filter::OnlyBodies; function visit_expr (line 147) | fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) { function visit_body (line 243) | fn visit_body(&mut self, body: &hir::Body<'tcx>) { function maybe_tcx (line 250) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/mut_key.rs type MutableKeyType (line 72) | pub struct MutableKeyType<'tcx> { function check_item (line 77) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'... function check_impl_item (line 83) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::I... function check_trait_item (line 91) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::... function check_local (line 97) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &hir::LetStmt<'... function new (line 106) | pub fn new(tcx: TyCtxt<'tcx>, conf: &'static Conf) -> Self { function check_sig (line 112) | fn check_sig(&mut self, cx: &LateContext<'tcx>, fn_def_id: LocalDefId, d... function check_ty_ (line 126) | fn check_ty_(&mut self, cx: &LateContext<'tcx>, span: Span, ty: Ty<'tcx>) { FILE: clippy_lints/src/mut_mut.rs type MutMut (line 46) | pub(crate) struct MutMut { method check_block (line 51) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx hir::Bl... method check_ty (line 55) | fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx hir::Ty<'_, A... type MutVisitor (line 103) | pub struct MutVisitor<'a, 'tcx> { function visit_expr (line 108) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/mutable_debug_assertion.rs method check_expr (line 42) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function check_arg (line 63) | fn check_arg<'tcx>(cx: &LateContext<'tcx>, arg: &'tcx Expr<'tcx>, macro_... type MutArgVisitor (line 79) | struct MutArgVisitor<'a, 'tcx> { function new (line 86) | fn new(cx: &'a LateContext<'tcx>) -> Self { function expr_span (line 94) | fn expr_span(&self) -> Option { type NestedFilter (line 100) | type NestedFilter = nested_filter::OnlyBodies; function visit_expr (line 102) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function maybe_tcx (line 126) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/mutex_atomic.rs method check_item (line 99) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_local (line 108) | fn check_local(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx LetStmt<'_... type TypeAscriptionKind (line 120) | enum TypeAscriptionKind<'tcx> { function check_expr (line 132) | fn check_expr<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>, ty_ascrip... function get_atomic_name (line 177) | fn get_atomic_name(ty: Ty<'_>) -> Option<&'static str> { FILE: clippy_lints/src/needless_arbitrary_self_type.rs type Mode (line 62) | enum Mode { method check_param (line 68) | fn check_param(&mut self, cx: &EarlyContext<'_>, p: &Param) { FILE: clippy_lints/src/needless_bool.rs function condition_needs_parentheses (line 86) | fn condition_needs_parentheses(e: &Expr<'_>) -> bool { method check_expr (line 103) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { type Expression (line 201) | enum Expression { function fetch_bool_block (line 206) | fn fetch_bool_block(expr: &Expr<'_>) -> Option { function fetch_bool_expr (line 213) | fn fetch_bool_expr(expr: &Expr<'_>) -> Option { function fetch_assign (line 222) | fn fetch_assign<'tcx>(expr: &'tcx Expr<'tcx>) -> Option<(&'tcx Expr<'tcx... function is_as_argument (line 230) | fn is_as_argument(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { FILE: clippy_lints/src/needless_borrowed_ref.rs method check_pat (line 39) | fn check_pat(&mut self, cx: &LateContext<'tcx>, ref_pat: &'tcx Pat<'_>) { function check_subpatterns (line 111) | fn check_subpatterns<'tcx>( FILE: clippy_lints/src/needless_borrows_for_generic_args.rs type NeedlessBorrowsForGenericArgs (line 63) | pub struct NeedlessBorrowsForGenericArgs<'tcx> { function new (line 73) | pub fn new(conf: &'static Conf) -> Self { function check_expr (line 82) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_body_post (line 137) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, body: &Body<'_>) { function path_has_args (line 148) | fn path_has_args(p: &QPath<'_>) -> bool { function needless_borrow_count (line 166) | fn needless_borrow_count<'tcx>( function has_ref_mut_self_method (line 300) | fn has_ref_mut_self_method(cx: &LateContext<'_>, trait_def_id: DefId) ->... function is_mixed_projection_predicate (line 319) | fn is_mixed_projection_predicate<'tcx>( function referent_used_exactly_once (line 350) | fn referent_used_exactly_once<'tcx>( function replace_types (line 385) | fn replace_types<'tcx>( FILE: clippy_lints/src/needless_continue.rs method check_expr (line 134) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function needless_continue_in_else (line 196) | fn needless_continue_in_else(else_expr: &Expr<'_>, label: Option<&Label>... function is_first_block_stmt_continue (line 204) | fn is_first_block_stmt_continue(block: &Block<'_>, label: Option<&Label>... function compare_labels (line 218) | fn compare_labels(loop_label: Option<&Label>, continue_label: Option<&La... function with_loop_block (line 231) | fn with_loop_block(expr: &Expr<'_>, mut func: F) function with_if_expr (line 269) | fn with_if_expr(expr: &Expr<'_>, mut func: F) type LintType (line 286) | enum LintType { type LintData (line 293) | struct LintData<'hir> { constant MSG_REDUNDANT_CONTINUE_EXPRESSION (line 309) | const MSG_REDUNDANT_CONTINUE_EXPRESSION: &str = "this `continue` express... constant MSG_REDUNDANT_ELSE_BLOCK (line 311) | const MSG_REDUNDANT_ELSE_BLOCK: &str = "this `else` block is redundant"; constant MSG_ELSE_BLOCK_NOT_NEEDED (line 313) | const MSG_ELSE_BLOCK_NOT_NEEDED: &str = "there is no need for an explici... constant DROP_ELSE_BLOCK_AND_MERGE_MSG (line 316) | const DROP_ELSE_BLOCK_AND_MERGE_MSG: &str = "consider dropping the `else... constant DROP_ELSE_BLOCK_MSG (line 319) | const DROP_ELSE_BLOCK_MSG: &str = "consider dropping the `else` clause"; constant DROP_CONTINUE_EXPRESSION_MSG (line 321) | const DROP_CONTINUE_EXPRESSION_MSG: &str = "consider dropping the `conti... function emit_warning (line 323) | fn emit_warning(cx: &LateContext<'_>, data: &LintData<'_>, header: &str,... function suggestion_snippet_for_continue_inside_if (line 344) | fn suggestion_snippet_for_continue_inside_if(cx: &LateContext<'_>, data:... function suggestion_snippet_for_continue_inside_else (line 365) | fn suggestion_snippet_for_continue_inside_else(cx: &LateContext<'_>, dat... function check_last_stmt_in_expr (line 420) | fn check_last_stmt_in_expr(cx: &LateContext<'_>, inner_expr: &Expr<'_... function check_last_stmt_in_block (line 450) | fn check_last_stmt_in_block(cx: &LateContext<'_>, b: &Block<'_>, func... function check_and_warn (line 466) | fn check_and_warn(cx: &LateContext<'_>, expr: &Expr<'_>) { function erode_from_back (line 570) | fn erode_from_back(s: &str) -> String { function span_of_first_expr_in_block (line 582) | fn span_of_first_expr_in_block(block: &Block<'_>) -> Option { function test_erode_from_back (line 596) | fn test_erode_from_back() { function test_erode_from_back_no_brace (line 614) | fn test_erode_from_back_no_brace() { FILE: clippy_lints/src/needless_else.rs method check_expr (line 39) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/needless_for_each.rs method check_stmt (line 58) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_block (line 64) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'_>) { function check_expr (line 71) | fn check_expr(cx: &LateContext<'_>, expr: &Expr<'_>, outer_span: Span) { function is_let_desugar (line 163) | fn is_let_desugar(block: &Block<'_>) -> bool { type RetCollector (line 187) | struct RetCollector { method visit_expr (line 194) | fn visit_expr(&mut self, expr: &Expr<'_>) { FILE: clippy_lints/src/needless_ifs.rs method check_stmt (line 40) | fn check_stmt<'tcx>(&mut self, cx: &LateContext<'tcx>, stmt: &Stmt<'tcx>) { FILE: clippy_lints/src/needless_late_init.rs function contains_assign_expr (line 66) | fn contains_assign_expr<'tcx>(cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'... function contains_let (line 77) | fn contains_let(cond: &Expr<'_>) -> bool { function stmt_needs_ordered_drop (line 88) | fn stmt_needs_ordered_drop(cx: &LateContext<'_>, stmt: &Stmt<'_>) -> bool { type LocalAssign (line 102) | struct LocalAssign { method from_expr (line 109) | fn from_expr(expr: &Expr<'_>, span: Span) -> Option { method new (line 129) | fn new<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, binding_i... function assignment_suggestions (line 159) | fn assignment_suggestions<'tcx>( type Usage (line 206) | struct Usage<'tcx> { function first_usage (line 212) | fn first_usage<'tcx>( function local_snippet_without_semicolon (line 242) | fn local_snippet_without_semicolon(cx: &LateContext<'_>, local: &LetStmt... function check (line 255) | fn check<'tcx>( method check_local (line 351) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt<'... FILE: clippy_lints/src/needless_maybe_sized.rs type Bound (line 40) | struct Bound<'tcx> { function type_param_bounds (line 52) | fn type_param_bounds<'tcx>(generics: &'tcx Generics<'tcx>) -> impl Itera... function path_to_sized_bound (line 87) | fn path_to_sized_bound(cx: &LateContext<'_>, trait_bound: &PolyTraitRef<... method check_generics (line 116) | fn check_generics(&mut self, cx: &LateContext<'_>, generics: &Generics<'... FILE: clippy_lints/src/needless_parens_on_range_literals.rs function snippet_enclosed_in_parenthesis (line 45) | fn snippet_enclosed_in_parenthesis(snippet: &str) -> bool { function check_for_parens (line 49) | fn check_for_parens(cx: &LateContext<'_>, e: &Expr<'_>, is_start: bool) { method check_expr (line 78) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/needless_pass_by_ref_mut.rs type NeedlessPassByRefMut (line 56) | pub struct NeedlessPassByRefMut<'tcx> { function new (line 63) | pub fn new(conf: &'static Conf) -> Self { function should_skip (line 72) | fn should_skip<'tcx>( function check_closures (line 100) | fn check_closures<'tcx>( function check_fn (line 126) | fn check_fn( function check_expr (line 240) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function check_crate_post (line 261) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type MutablyUsedVariablesCtxt (line 309) | struct MutablyUsedVariablesCtxt<'tcx> { function add_mutably_used_var (line 323) | fn add_mutably_used_var(&mut self, used_id: HirId) { function generate_mutably_used_ids_from_aliases (line 329) | fn generate_mutably_used_ids_from_aliases(mut self) -> HirIdSet { function would_be_alias_cycle (line 341) | fn would_be_alias_cycle(&self, alias: HirId, mut target: HirId) -> bool { function add_alias (line 351) | fn add_alias(&mut self, alias: HirId, target: HirId) { function is_in_unsafe_block (line 361) | fn is_in_unsafe_block(&self, item: HirId) -> bool { function consume (line 376) | fn consume(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, id: HirId) { function use_cloned (line 407) | fn use_cloned(&mut self, _: &euv::PlaceWithHirId<'tcx>, _: HirId) {} function borrow (line 409) | fn borrow(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, id: HirId, borrow:... function mutate (line 457) | fn mutate(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, _id: HirId) { function copy (line 475) | fn copy(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, id: HirId) { function fake_read (line 492) | fn fake_read( function bind (line 517) | fn bind(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, id: HirId) { FILE: clippy_lints/src/needless_pass_by_value.rs method check_fn (line 76) | fn check_fn( function requires_exact_signature (line 311) | pub(crate) fn requires_exact_signature(attrs: &[Attribute]) -> bool { type MovedVariablesCtxt (line 316) | struct MovedVariablesCtxt { method move_common (line 321) | fn move_common(&mut self, cmt: &euv::PlaceWithHirId<'_>) { method consume (line 329) | fn consume(&mut self, cmt: &euv::PlaceWithHirId<'tcx>, _: HirId) { method use_cloned (line 333) | fn use_cloned(&mut self, _: &euv::PlaceWithHirId<'tcx>, _: HirId) {} method borrow (line 335) | fn borrow(&mut self, _: &euv::PlaceWithHirId<'tcx>, _: HirId, _: ty::B... method mutate (line 337) | fn mutate(&mut self, _: &euv::PlaceWithHirId<'tcx>, _: HirId) {} method fake_read (line 339) | fn fake_read(&mut self, _: &rustc_hir_typeck::expr_use_visitor::PlaceW... function get_spans (line 342) | fn get_spans<'tcx>( function extract_clone_suggestions (line 355) | fn extract_clone_suggestions<'tcx>( FILE: clippy_lints/src/needless_question_mark.rs method check_expr (line 67) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { method check_body (line 73) | fn check_body(&mut self, cx: &LateContext<'_>, body: &'_ Body<'_>) { function check (line 95) | fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/needless_update.rs method check_expr (line 53) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/neg_cmp_op_on_partial_ord.rs method check_expr (line 46) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/neg_multiply.rs function is_in_parens_with_postfix (line 36) | fn is_in_parens_with_postfix(cx: &LateContext<'_>, mul_expr: &Expr<'_>) ... method check_expr (line 50) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function check_mul (line 64) | fn check_mul(cx: &LateContext<'_>, mul_expr: &Expr<'_>, lit: &Expr<'_>, ... FILE: clippy_lints/src/new_without_default.rs type NewWithoutDefault (line 56) | pub struct NewWithoutDefault { method check_item (line 62) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item... function create_new_without_default_suggest_msg (line 201) | fn create_new_without_default_suggest_msg( FILE: clippy_lints/src/no_effect.rs type NoEffect (line 83) | pub struct NoEffect { method check_stmt (line 89) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_block (line 96) | fn check_block(&mut self, _: &LateContext<'tcx>, _: &'tcx rustc_hir::B... method check_block_post (line 100) | fn check_block_post(&mut self, cx: &LateContext<'tcx>, _: &'tcx rustc_... method check_expr (line 114) | fn check_expr(&mut self, _: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { method check_no_effect (line 122) | fn check_no_effect(&mut self, cx: &LateContext<'_>, stmt: &Stmt<'_>) -... function is_operator_overridden (line 209) | fn is_operator_overridden(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function expr_ty_has_significant_drop (line 228) | fn expr_ty_has_significant_drop(cx: &LateContext<'_>, expr: &Expr<'_>) -... function has_no_effect (line 233) | fn has_no_effect(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function check_unnecessary_operation (line 276) | fn check_unnecessary_operation(cx: &LateContext<'_>, stmt: &Stmt<'_>) { function reduce_expression (line 336) | fn reduce_expression<'a>(cx: &LateContext<'_>, expr: &'a Expr<'a>) -> Op... FILE: clippy_lints/src/no_mangle_with_rust_abi.rs method check_item (line 41) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { FILE: clippy_lints/src/non_canonical_impls.rs type NonCanonicalImpls (line 123) | pub(crate) struct NonCanonicalImpls { method new (line 131) | pub(crate) fn new(tcx: TyCtxt<'_>) -> Self { method check_item (line 149) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { type Trait (line 143) | enum Trait { function check_clone_on_copy (line 211) | fn check_clone_on_copy(cx: &LateContext<'_>, impl_item: &ImplItem<'_>, b... function check_partial_ord_on_ord (line 251) | fn check_partial_ord_on_ord<'tcx>( function expr_is_cmp (line 323) | fn expr_is_cmp<'tcx>( function self_cmp_call (line 355) | fn self_cmp_call<'tcx>( FILE: clippy_lints/src/non_copy_const.rs type IsFreeze (line 169) | enum IsFreeze { method from_variants (line 179) | fn from_variants(iter: impl Iterator) -> Self { method from_fields (line 188) | fn from_fields(mut iter: impl Iterator) -> Self { method is_freeze (line 198) | fn is_freeze(self) -> bool { method is_not_freeze (line 203) | fn is_not_freeze(self) -> bool { type BorrowCause (line 210) | enum BorrowCause { method note (line 219) | fn note(self) -> Option<&'static str> { type BorrowSource (line 234) | struct BorrowSource<'tcx> { function new (line 239) | fn new(tcx: TyCtxt<'tcx>, expr: &'tcx Expr<'tcx>, cause: BorrowCause) ->... type NonCopyConst (line 258) | pub struct NonCopyConst<'tcx> { function new (line 266) | pub fn new(tcx: TyCtxt<'tcx>, conf: &'static Conf) -> Self { function is_ty_freeze (line 278) | fn is_ty_freeze(&mut self, tcx: TyCtxt<'tcx>, typing_env: TypingEnv<'tcx... function is_value_freeze (line 341) | fn is_value_freeze( function is_init_expr_freeze (line 374) | fn is_init_expr_freeze( function is_non_freeze_expr_borrowed (line 439) | fn is_non_freeze_expr_borrowed( function is_non_freeze_val_borrowed (line 479) | fn is_non_freeze_val_borrowed( function is_non_freeze_init_borrowed (line 558) | fn is_non_freeze_init_borrowed( function check_item (line 702) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { function check_trait_item (line 744) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Trait... function check_impl_item (line 779) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx ImplIt... function check_expr (line 834) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { type ReplaceAssocFolder (line 876) | struct ReplaceAssocFolder<'tcx> { function cx (line 882) | fn cx(&self) -> TyCtxt<'tcx> { function fold_ty (line 886) | fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> { function is_thread_local (line 898) | fn is_thread_local(cx: &LateContext<'_>, it: &Item<'_>) -> bool { function does_adjust_borrow (line 909) | fn does_adjust_borrow(adjust: &Adjustment<'_>) -> Option { function get_const_hir_value (line 921) | fn get_const_hir_value<'tcx>( FILE: clippy_lints/src/non_expressive_names.rs type NonExpressiveNames (line 82) | pub struct NonExpressiveNames { method new (line 87) | pub fn new(conf: &'static Conf) -> Self { type ExistingName (line 94) | struct ExistingName { type SimilarNamesLocalVisitor (line 101) | struct SimilarNamesLocalVisitor<'a, 'tcx> { function check_single_char_names (line 111) | fn check_single_char_names(&self) { constant ALLOWED_TO_BE_SIMILAR (line 136) | const ALLOWED_TO_BE_SIMILAR: &[&[&str]] = &[ constant SIMILAR_CHARS (line 149) | const SIMILAR_CHARS: &[(char, char)] = &[('l', 'i'), ('l', '1'), ('i', '... function chars_are_similar (line 152) | fn chars_are_similar(a: char, b: char) -> bool { type SimilarNamesNameVisitor (line 156) | struct SimilarNamesNameVisitor<'a, 'tcx, 'b>(&'b mut SimilarNamesLocalVi... function visit_pat (line 159) | fn visit_pat(&mut self, pat: &'tcx Pat) { function get_exemptions (line 182) | fn get_exemptions(interned_name: &str) -> Option<&'static [&'static str]> { function allowed_to_be_similar (line 190) | fn allowed_to_be_similar(interned_name: &str, list: &[&str]) -> bool { function check_short_ident (line 196) | fn check_short_ident(&mut self, ident: Ident) { function check_ident (line 213) | fn check_ident(&mut self, ident: Ident) { function equal_length_strs_not_similar (line 289) | fn equal_length_strs_not_similar(interned_name: &str, existing_name: &st... function apply (line 343) | fn apply Fn(&'c mut Self)>(&mut self, f: F) { function visit_local (line 353) | fn visit_local(&mut self, local: &'tcx Local) { function visit_block (line 365) | fn visit_block(&mut self, blk: &'tcx Block) { function visit_arm (line 373) | fn visit_arm(&mut self, arm: &'tcx Arm) { function visit_item (line 386) | fn visit_item(&mut self, _: &Item) { method check_item (line 392) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { method check_impl_item (line 407) | fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &AssocItem) { function do_check (line 423) | fn do_check(lint: &NonExpressiveNames, cx: &EarlyContext<'_>, attrs: &[A... function levenstein_not_1 (line 445) | fn levenstein_not_1(a_name: &str, b_name: &str) -> bool { FILE: clippy_lints/src/non_octal_unix_permissions.rs method check_expr (line 42) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function show_error (line 78) | fn show_error(cx: &LateContext<'_>, param: &Expr<'_>) { FILE: clippy_lints/src/non_send_fields_in_send_ty.rs type NonSendFieldInSendTy (line 59) | pub struct NonSendFieldInSendTy { method new (line 64) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 72) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { type NonSendField (line 155) | struct NonSendField<'tcx> { function generic_params_string (line 162) | fn generic_params_string(&self) -> String { function collect_generic_params (line 173) | fn collect_generic_params(ty: Ty<'_>) -> Vec> { function ty_allowed_without_raw_pointer_heuristic (line 184) | fn ty_allowed_without_raw_pointer_heuristic<'tcx>(cx: &LateContext<'tcx>... function ty_allowed_with_raw_pointer_heuristic (line 197) | fn ty_allowed_with_raw_pointer_heuristic<'tcx>(cx: &LateContext<'tcx>, t... function contains_pointer_like (line 223) | fn contains_pointer_like<'tcx>(cx: &LateContext<'tcx>, target_ty: Ty<'tc... function is_ty_param (line 242) | fn is_ty_param(target_ty: Ty<'_>) -> bool { FILE: clippy_lints/src/non_std_lazy_statics.rs type NonStdLazyStatic (line 67) | pub struct NonStdLazyStatic { method new (line 77) | pub fn new(conf: &'static Conf) -> Self { method check_crate (line 93) | fn check_crate(&mut self, cx: &LateContext<'hir>) { method check_item (line 108) | fn check_item(&mut self, cx: &LateContext<'hir>, item: &Item<'hir>) { method check_expr (line 134) | fn check_expr(&mut self, cx: &LateContext<'hir>, expr: &Expr<'hir>) { method check_ty (line 147) | fn check_ty(&mut self, cx: &LateContext<'hir>, ty: &'hir rustc_hir::Ty... method check_crate_post (line 160) | fn check_crate_post(&mut self, cx: &LateContext<'hir>) { function can_use_lazy_cell (line 88) | fn can_use_lazy_cell(cx: &LateContext<'_>, msrv: Msrv) -> bool { type LazyInfo (line 169) | struct LazyInfo { method from_item (line 189) | fn from_item(cx: &LateContext<'_>, item: &Item<'_>) -> Option { method lint (line 220) | fn lint(&self, cx: &LateContext<'_>, sugg_map: &FxIndexMap) -> Span { function fn_def_id_and_span_from_body (line 262) | fn fn_def_id_and_span_from_body(cx: &LateContext<'_>, expr: &Expr<'_>, b... FILE: clippy_lints/src/non_zero_suggestions.rs method check_expr (line 51) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function check_non_zero_conversion (line 69) | fn check_non_zero_conversion(cx: &LateContext<'_>, expr: &Expr<'_>, appl... function get_arg_snippet (line 93) | fn get_arg_snippet(cx: &LateContext<'_>, arg: &Expr<'_>, rcv_path: &rust... function suggest_non_zero_conversion (line 102) | fn suggest_non_zero_conversion( function get_target_non_zero_type (line 122) | fn get_target_non_zero_type(ty: Ty<'_>) -> Option<&'static str> { FILE: clippy_lints/src/nonstandard_macro_braces.rs type MacroInfo (line 38) | struct MacroInfo { type MacroBraces (line 45) | pub struct MacroBraces { method new (line 51) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 60) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) { method check_stmt (line 73) | fn check_stmt(&mut self, cx: &EarlyContext<'_>, stmt: &ast::Stmt) { method check_expr (line 90) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &ast::Expr) { method check_ty (line 103) | fn check_ty(&mut self, cx: &EarlyContext<'_>, ty: &ast::Ty) { function is_offending_macro (line 117) | fn is_offending_macro(cx: &EarlyContext<'_>, span: Span, mac_braces: &Ma... function emit_help (line 155) | fn emit_help(cx: &EarlyContext<'_>, snip: &str, (open, close): (char, ch... function macro_braces (line 174) | fn macro_braces(conf: &[MacroMatcher]) -> FxHashMap { FILE: clippy_lints/src/octal_escapes.rs method check_expr (line 53) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/only_used_in_recursion.rs type FnKind (line 174) | enum FnKind { type Param (line 183) | struct Param { method new (line 196) | fn new(fn_id: DefId, fn_kind: FnKind, idx: usize, ident: Ident) -> Self { type Usage (line 209) | struct Usage { method new (line 214) | fn new(span: Span, idx: usize) -> Self { type Params (line 223) | struct Params { method insert (line 229) | fn insert(&mut self, param: Param, id: HirId) { method remove_by_id (line 236) | fn remove_by_id(&mut self, id: HirId) { method get_by_id_mut (line 246) | fn get_by_id_mut(&mut self, id: HirId) -> Option<&mut Param> { method get_by_fn (line 250) | fn get_by_fn(&self, id: DefId, idx: usize) -> Option<&Param> { method clear (line 254) | fn clear(&mut self) { method flag_for_linting (line 261) | fn flag_for_linting(&self) { method try_disable_lint_for_param (line 270) | fn try_disable_lint_for_param(&self, param: &Param, eval_stack: &mut V... type OnlyUsedInRecursion (line 302) | pub struct OnlyUsedInRecursion { method check_body (line 309) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx>) { method check_expr (line 366) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>) { method check_body_post (line 438) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx... function has_matching_args (line 484) | fn has_matching_args(kind: FnKind, args: GenericArgsRef<'_>) -> bool { FILE: clippy_lints/src/operators/absurd_extreme_comparisons.rs function check (line 14) | pub(super) fn check<'tcx>( type ExtremeType (line 49) | enum ExtremeType { type ExtremeExpr (line 54) | struct ExtremeExpr<'a> { type AbsurdComparisonResult (line 59) | enum AbsurdComparisonResult { function is_cast_between_fixed_and_target (line 65) | fn is_cast_between_fixed_and_target<'tcx>(cx: &LateContext<'tcx>, expr: ... function detect_absurd_comparison (line 76) | fn detect_absurd_comparison<'tcx>( function detect_extreme_expr (line 121) | fn detect_extreme_expr<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_... FILE: clippy_lints/src/operators/arithmetic_side_effects.rs type ArithmeticSideEffects (line 16) | pub struct ArithmeticSideEffects { method new (line 28) | pub fn new(conf: &'static Conf) -> Self { method has_allowed_binary (line 69) | fn has_allowed_binary(&self, lhs_ty: Ty<'_>, rhs_ty: Ty<'_>) -> bool { method has_allowed_unary (line 90) | fn has_allowed_unary(&self, ty: Ty<'_>) -> bool { method issue_lint (line 97) | fn issue_lint<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir... method manage_sugar_methods (line 107) | fn manage_sugar_methods<'tcx>( method manage_bin_ops (line 130) | fn manage_bin_ops<'tcx>( method manage_method_call (line 214) | fn manage_method_call<'tcx>( method manage_unary_ops (line 243) | fn manage_unary_ops<'tcx>( method should_skip_expr (line 267) | fn should_skip_expr<'tcx>(&self, cx: &LateContext<'tcx>, expr: &hir::E... method check_expr (line 275) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... method check_body (line 296) | fn check_body(&mut self, cx: &LateContext<'_>, body: &hir::Body<'_>) { method check_body_post (line 312) | fn check_body_post(&mut self, cx: &LateContext<'_>, body: &hir::Body<'... method check_expr_post (line 323) | fn check_expr_post(&mut self, _: &LateContext<'tcx>, expr: &'tcx hir::... function find_original_primitive_ty (line 332) | fn find_original_primitive_ty<'tcx>(cx: &LateContext<'tcx>, expr: &hir::... function has_specific_allowed_type_and_operation (line 343) | fn has_specific_allowed_type_and_operation<'tcx>( function is_integer (line 366) | fn is_integer(ty: Ty<'_>) -> bool { function is_non_zero_u (line 370) | fn is_non_zero_u(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function is_safe_due_to_smaller_source_type (line 386) | fn is_safe_due_to_smaller_source_type( function literal_integer (line 422) | fn literal_integer(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> Option... function max_int_num (line 435) | fn max_int_num(ty: Ty<'_>) -> Option { FILE: clippy_lints/src/operators/assign_op_pattern.rs function check (line 19) | pub(super) fn check<'tcx>( function imm_borrows_in_expr (line 129) | fn imm_borrows_in_expr(cx: &LateContext<'_>, e: &hir::Expr<'_>) -> HirId... function mut_borrows_in_expr (line 155) | fn mut_borrows_in_expr(cx: &LateContext<'_>, e: &hir::Expr<'_>) -> HirId... FILE: clippy_lints/src/operators/bit_mask.rs function check (line 10) | pub(super) fn check<'tcx>( function invert_cmp (line 27) | fn invert_cmp(cmp: BinOpKind) -> BinOpKind { function check_compare (line 39) | fn check_compare<'a>(cx: &LateContext<'a>, bit_op: &Expr<'a>, cmp_op: Bi... function check_bit_mask (line 50) | fn check_bit_mask( function check_ineffective_lt (line 144) | fn check_ineffective_lt(cx: &LateContext<'_>, span: Span, m: u128, c: u1... function check_ineffective_gt (line 155) | fn check_ineffective_gt(cx: &LateContext<'_>, span: Span, m: u128, c: u1... function fetch_int_literal (line 166) | fn fetch_int_literal(cx: &LateContext<'_>, lit: &Expr<'_>) -> Option, e: &Expr<'_>, op: BinOpKind, l... type EqImpl (line 21) | struct EqImpl { method is_implemented (line 26) | fn is_implemented(&self) -> bool { function symmetric_partial_eq (line 31) | fn symmetric_partial_eq<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, othe... function check_op (line 38) | fn check_op(cx: &LateContext<'_>, outer: &Expr<'_>, expr: &Expr<'_>, oth... FILE: clippy_lints/src/operators/const_comparisons.rs function comparison_to_const (line 21) | fn comparison_to_const<'tcx>( function check (line 41) | pub(super) fn check<'tcx>( function left_side_is_useless (line 134) | fn left_side_is_useless(left_cmp_op: CmpOp, ordering: Ordering) -> bool { function comparison_is_possible (line 153) | fn comparison_is_possible(left_cmp_direction: CmpOpDirection, ordering: ... type CmpOpDirection (line 163) | enum CmpOpDirection { type CmpOp (line 169) | enum CmpOp { method reverse (line 177) | fn reverse(self) -> Self { method direction (line 186) | fn direction(self) -> CmpOpDirection { type Error (line 197) | type Error = (); method try_from (line 199) | fn try_from(bin_op: BinOpKind) -> Result { FILE: clippy_lints/src/operators/decimal_bitwise_operands.rs function check (line 13) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, op: BinOpKind, left: &... function check_expr (line 23) | fn check_expr(cx: &LateContext<'_>, expr: &Expr<'_>) { function is_power_of_twoish (line 54) | fn is_power_of_twoish(val: u128) -> bool { function is_single_digit (line 58) | fn is_single_digit(val: u128) -> bool { function emit_lint (line 62) | fn emit_lint(cx: &LateContext<'_>, span: Span, suffix: Option<&str>, val... FILE: clippy_lints/src/operators/double_comparison.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, op: BinOpKind, lhs: &Expr<'_>,... FILE: clippy_lints/src/operators/duration_subsec.rs function check (line 12) | pub(crate) fn check<'tcx>( FILE: clippy_lints/src/operators/eq_op.rs function check_assert (line 10) | pub(crate) fn check_assert<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'... function check (line 33) | pub(crate) fn check<'tcx>( FILE: clippy_lints/src/operators/erasing_op.rs function check (line 11) | pub(super) fn check<'tcx>( function different_types (line 29) | fn different_types(tck: &TypeckResults<'_>, input: &Expr<'_>, output: &E... function check_op (line 35) | fn check_op<'tcx>( FILE: clippy_lints/src/operators/float_cmp.rs function check (line 12) | pub(crate) fn check<'tcx>( function get_lint_and_message (line 66) | fn get_lint_and_message(is_local: bool, is_comparing_arrays: bool) -> (&... function is_allowed (line 88) | fn is_allowed(val: &Constant) -> bool { function is_signum (line 103) | fn is_signum(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_float (line 119) | fn is_float(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function is_array (line 129) | fn is_array(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/operators/float_equality_without_abs.rs function check (line 13) | pub(crate) fn check<'tcx>( FILE: clippy_lints/src/operators/identity_op.rs function check (line 14) | pub(crate) fn check<'tcx>( function expr_is_erased_ref (line 86) | fn expr_is_erased_ref(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { type Parens (line 94) | enum Parens { function needs_parenthesis (line 114) | fn needs_parenthesis(cx: &LateContext<'_>, binary: &Expr<'_>, child: &Ex... function is_allowed (line 166) | fn is_allowed<'tcx>( function check_remainder (line 191) | fn check_remainder(cx: &LateContext<'_>, left: &Expr<'_>, right: &Expr<'... function is_redundant_op (line 203) | fn is_redundant_op(cx: &LateContext<'_>, e: &Expr<'_>, m: i8, ctxt: Synt... function span_ineffective_operation (line 222) | fn span_ineffective_operation( function is_expr_used_with_type_annotation (line 252) | fn is_expr_used_with_type_annotation<'tcx>(cx: &LateContext<'tcx>, expr:... function is_assoc_fn_without_type_instance (line 276) | fn is_assoc_fn_without_type_instance<'tcx>(cx: &LateContext<'tcx>, expr:... FILE: clippy_lints/src/operators/integer_division.rs function check (line 9) | pub(crate) fn check<'tcx>( FILE: clippy_lints/src/operators/integer_division_remainder_used.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, op: BinOpKind, lhs: &Expr<'_>,... FILE: clippy_lints/src/operators/invalid_upcast_comparisons.rs function check (line 16) | pub(super) fn check<'tcx>( function numeric_cast_precast_bounds (line 35) | fn numeric_cast_precast_bounds(cx: &LateContext<'_>, expr: &Expr<'_>) ->... function upcast_comparison_bounds_err (line 67) | fn upcast_comparison_bounds_err<'tcx>( function err_upcast_comparison (line 108) | fn err_upcast_comparison(cx: &LateContext<'_>, span: Span, expr: &Expr<'... FILE: clippy_lints/src/operators/manual_div_ceil.rs function check (line 16) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, op: BinOpKind... function differ_by_one (line 103) | fn differ_by_one(small_expr: &Expr<'_>, large_expr: &Expr<'_>) -> bool { function check_int_ty (line 119) | fn check_int_ty(expr_ty: Ty<'_>) -> bool { function check_int_ty_and_feature (line 123) | fn check_int_ty_and_feature(cx: &LateContext<'_>, expr_ty: Ty<'_>) -> bo... function check_literal (line 131) | fn check_literal(expr: &Expr<'_>) -> bool { function check_eq_expr (line 140) | fn check_eq_expr(cx: &LateContext<'_>, lhs: &Expr<'_>, rhs: &Expr<'_>) -... function build_suggestion (line 144) | fn build_suggestion( FILE: clippy_lints/src/operators/manual_is_multiple_of.rs function check (line 14) | pub(super) fn check<'tcx>( function uint_compare_to_zero (line 58) | fn uint_compare_to_zero<'tcx>( function deref_sugg (line 82) | fn deref_sugg<'a>(sugg: Sugg<'a>, ty: Ty<'_>) -> Sugg<'a> { FILE: clippy_lints/src/operators/manual_midpoint.rs function check (line 13) | pub(super) fn check<'tcx>( function add_operands (line 51) | fn add_operands<'e, 'tcx>(expr: &'e Expr<'tcx>) -> Option<(&'e Expr<'tcx... function is_midpoint_implemented (line 58) | fn is_midpoint_implemented(cx: &LateContext<'_>, ty: Ty<'_>, msrv: Msrv)... FILE: clippy_lints/src/operators/misrefactored_assign_op.rs function check (line 10) | pub(super) fn check<'tcx>( function lint_misrefactored_assign_op (line 31) | fn lint_misrefactored_assign_op( function is_commutative (line 72) | fn is_commutative(op: hir::BinOpKind) -> bool { FILE: clippy_lints/src/operators/mod.rs type Operators (line 995) | pub struct Operators { method new (line 1003) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 1014) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { method check_expr_post (line 1078) | fn check_expr_post(&mut self, _: &LateContext<'_>, e: &Expr<'_>) { method check_body (line 1082) | fn check_body(&mut self, cx: &LateContext<'tcx>, b: &Body<'_>) { method check_body_post (line 1086) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, b: &Body<'_>) { function macro_with_not_op (line 1091) | fn macro_with_not_op(e: &Expr<'_>) -> bool { FILE: clippy_lints/src/operators/modulo_arithmetic.rs function check (line 11) | pub(super) fn check<'tcx>( function used_in_comparison_with_zero (line 36) | fn used_in_comparison_with_zero(cx: &LateContext<'_>, expr: &Expr<'_>) -... type OperandInfo (line 50) | struct OperandInfo { function analyze_operand (line 56) | fn analyze_operand(operand: &Expr<'_>, cx: &LateContext<'_>, expr: &Expr... function floating_point_operand_info (line 81) | fn floating_point_operand_info>(f: &... function might_have_negative_value (line 89) | fn might_have_negative_value(t: Ty<'_>) -> bool { function check_const_operands (line 93) | fn check_const_operands<'tcx>( function check_non_const_operands (line 119) | fn check_non_const_operands<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Ex... FILE: clippy_lints/src/operators/modulo_one.rs function check (line 9) | pub(crate) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, op: BinOpKind... FILE: clippy_lints/src/operators/needless_bitwise_bool.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, e: &Expr<'_>, op: BinOpKind, l... FILE: clippy_lints/src/operators/numeric_arithmetic.rs type Context (line 9) | pub struct Context { method skip_expr (line 16) | fn skip_expr(&self, e: &hir::Expr<'_>) -> bool { method check_binary (line 20) | pub fn check_binary<'tcx>( method check_negate (line 53) | pub fn check_negate<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &'t... method expr_post (line 64) | pub fn expr_post(&mut self, id: hir::HirId) { method enter_body (line 70) | pub fn enter_body(&mut self, cx: &LateContext<'_>, body: &hir::Body<'_... method body_post (line 89) | pub fn body_post(&mut self, cx: &LateContext<'_>, body: &hir::Body<'_>) { FILE: clippy_lints/src/operators/op_ref.rs function check (line 15) | pub(crate) fn check<'tcx>( function in_impl (line 176) | fn in_impl<'tcx>( function are_equal (line 199) | fn are_equal(cx: &LateContext<'_>, middle_ty: Ty<'_>, hir_ty: &rustc_hir... FILE: clippy_lints/src/operators/self_assignment.rs function check (line 9) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, lhs... FILE: clippy_lints/src/operators/verbose_bit_mask.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/option_env_unwrap.rs method check_expr (line 37) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/option_if_let_else.rs type OptionOccurrence (line 99) | struct OptionOccurrence { function format_option_in_sugg (line 106) | fn format_option_in_sugg(cond_sugg: Sugg<'_>, as_ref: bool, as_mut: bool... function try_get_option_occurrence (line 121) | fn try_get_option_occurrence<'tcx>( type ConditionVisitor (line 263) | struct ConditionVisitor<'a, 'tcx> { type NestedFilter (line 269) | type NestedFilter = nested_filter::All; function visit_path (line 271) | fn visit_path(&mut self, path: &Path<'tcx>, _: HirId) { function maybe_tcx (line 281) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { type ReferenceVisitor (line 288) | struct ReferenceVisitor<'a, 'tcx> { type NestedFilter (line 294) | type NestedFilter = nested_filter::All; type Result (line 295) | type Result = ControlFlow<()>; function visit_expr (line 296) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) -> ControlFlow<()> { function maybe_tcx (line 309) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function try_get_inner_pat_and_is_result (line 314) | fn try_get_inner_pat_and_is_result<'tcx>(cx: &LateContext<'tcx>, pat: &P... function detect_option_if_let_else (line 332) | fn detect_option_if_let_else<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'... function detect_option_match (line 349) | fn detect_option_match<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) ... function try_convert_match (line 360) | fn try_convert_match<'tcx>( function is_none_or_err_arm (line 379) | fn is_none_or_err_arm(cx: &LateContext<'_>, arm: &Arm<'_>) -> bool { method check_expr (line 394) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/panic_in_result_fn.rs method check_fn (line 46) | fn check_fn( function lint_impl_body (line 65) | fn lint_impl_body<'tcx>(cx: &LateContext<'tcx>, impl_span: Span, body: &... FILE: clippy_lints/src/panic_unimplemented.rs type PanicUnimplemented (line 10) | pub struct PanicUnimplemented { method new (line 15) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 98) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/panicking_overflow_checks.rs method check_expr (line 52) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/partial_pub_fields.rs method check_item (line 44) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/partialeq_ne_impl.rs method check_item (line 35) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/partialeq_to_none.rs method check_expr (line 44) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { FILE: clippy_lints/src/pass_by_ref_or_value.rs type PassByRefOrValue (line 109) | pub struct PassByRefOrValue { method new (line 116) | pub fn new(tcx: TyCtxt<'_>, conf: &'static Conf) -> Self { method check_poly_fn (line 128) | fn check_poly_fn(&self, cx: &LateContext<'_>, def_id: LocalDefId, decl... method check_trait_item (line 246) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir... method check_fn (line 256) | fn check_fn( FILE: clippy_lints/src/pathbuf_init_then_push.rs type PathbufThenPush (line 48) | pub struct PathbufThenPush<'tcx> { type PathbufPushSearcher (line 52) | struct PathbufPushSearcher<'tcx> { function gen_pathbuf_from (line 65) | fn gen_pathbuf_from(&self, cx: &LateContext<'_>) -> Option { function gen_pathbuf_join (line 84) | fn gen_pathbuf_join(&self, cx: &LateContext<'_>) -> Option { function display_err (line 91) | fn display_err(&self, cx: &LateContext<'_>) { function check_block (line 131) | fn check_block(&mut self, _: &LateContext<'tcx>, _: &'tcx Block<'tcx>) { function check_local (line 135) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt<'... function check_expr (line 154) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_stmt (line 175) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { function check_block_post (line 188) | fn check_block_post(&mut self, _: &LateContext<'tcx>, _: &'tcx Block<'tc... FILE: clippy_lints/src/pattern_type_mismatch.rs method check_stmt (line 84) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_expr (line 97) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_fn (line 117) | fn check_fn( type DerefPossible (line 133) | enum DerefPossible { function apply_lint (line 138) | fn apply_lint(cx: &LateContext<'_>, pat: &Pat<'_>, deref_possible: Deref... type Level (line 168) | enum Level { function find_first_mismatch (line 173) | fn find_first_mismatch(cx: &LateContext<'_>, pat: &Pat<'_>) -> Option<(S... FILE: clippy_lints/src/permissions_set_readonly_false.rs method check_expr (line 35) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/pointers_in_nomem_asm_block.rs method check_expr (line 37) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { function check_asm (line 44) | fn check_asm(cx: &LateContext<'_>, asm: &InlineAsm<'_>) { function has_in_operand_pointer (line 69) | fn has_in_operand_pointer(cx: &LateContext<'_>, asm_op: &InlineAsmOperan... function additional_notes (line 85) | fn additional_notes(diag: &mut rustc_errors::Diag<'_, ()>) { FILE: clippy_lints/src/precedence.rs method check_expr (line 50) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function get_bin_opt (line 130) | fn get_bin_opt(expr: &Expr) -> Option { function is_bit_op (line 138) | fn is_bit_op(op: BinOpKind) -> bool { function lint_for (line 142) | fn lint_for(ops: &[BinOpKind]) -> &'static Lint { FILE: clippy_lints/src/ptr/cmp_null.rs function check (line 10) | pub(super) fn check<'tcx>( function is_null_path (line 41) | fn is_null_path(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/ptr/mod.rs method check_trait_item (line 141) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Trait... method check_body (line 153) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx>) { method check_expr (line 189) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/ptr/mut_from_ref.rs function check (line 10) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, sig: &FnSig<'_>, body:... type LifetimeVisitor (line 45) | struct LifetimeVisitor<'tcx> { function visit_ty (line 50) | fn visit_ty(&mut self, ty: &'tcx hir::Ty<'tcx, hir::AmbigArg>) { function visit_generic_arg (line 57) | fn visit_generic_arg(&mut self, generic_arg: &'tcx GenericArg<'tcx>) { function get_lifetimes (line 69) | fn get_lifetimes<'tcx>(ty: &'tcx hir::Ty<'tcx>) -> Vec<(&'tcx Lifetime, ... FILE: clippy_lints/src/ptr/ptr_arg.rs function check_body (line 26) | pub(super) fn check_body<'tcx>( function check_trait_item (line 63) | pub(super) fn check_trait_item<'tcx>(cx: &LateContext<'tcx>, item_id: Ow... type PtrArgResult (line 89) | struct PtrArgResult { type PtrArgReplacement (line 94) | struct PtrArgReplacement { type PtrArg (line 100) | struct PtrArg<'tcx> { function build_msg (line 110) | fn build_msg(&self) -> String { function mutability (line 120) | fn mutability(&self) -> Mutability { type RefPrefix (line 125) | struct RefPrefix { method fmt (line 130) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type DerefTyDisplay (line 141) | struct DerefTyDisplay<'a, 'tcx>(&'a LateContext<'tcx>, &'a DerefTy<'tcx>); function fmt (line 143) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type DerefTy (line 160) | enum DerefTy<'tcx> { function ty (line 166) | fn ty(&self, cx: &LateContext<'tcx>) -> Ty<'tcx> { function argless_str (line 178) | fn argless_str(&self) -> &'static str { function display (line 186) | fn display<'a>(&'a self, cx: &'a LateContext<'tcx>) -> DerefTyDisplay<'a... function check_fn_args (line 191) | fn check_fn_args<'cx, 'tcx: 'cx>( function check_ptr_arg_usage (line 301) | fn check_ptr_arg_usage<'tcx>(cx: &LateContext<'tcx>, body: &Body<'tcx>, ... function matches_preds (line 448) | fn matches_preds<'tcx>( FILE: clippy_lints/src/ptr/ptr_eq.rs function check (line 11) | pub(super) fn check<'tcx>( function expr_as_cast_to_usize (line 62) | fn expr_as_cast_to_usize<'tcx>(cx: &LateContext<'tcx>, cast_expr: &'tcx ... function peel_raw_casts (line 75) | fn peel_raw_casts<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, ... FILE: clippy_lints/src/pub_underscore_fields.rs type PubUnderscoreFields (line 47) | pub struct PubUnderscoreFields { method new (line 51) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 59) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/pub_use.rs method check_item (line 42) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/question_mark.rs type QuestionMark (line 56) | pub struct QuestionMark { method new (line 71) | pub fn new(conf: &'static Conf) -> Self { method inside_try_block (line 533) | fn inside_try_block(&self) -> bool { method check_stmt (line 562) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_expr (line 574) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_expr_post (line 594) | fn check_expr_post(&mut self, _: &LateContext<'tcx>, expr: &'tcx Expr<... method check_block (line 600) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'... method check_body (line 609) | fn check_body(&mut self, _: &LateContext<'tcx>, _: &Body<'tcx>) { method check_body_post (line 613) | fn check_body_post(&mut self, _: &LateContext<'tcx>, _: &Body<'tcx>) { method check_block_post (line 617) | fn check_block_post(&mut self, cx: &LateContext<'tcx>, block: &'tcx Bl... type IfBlockType (line 81) | enum IfBlockType<'hir> { function find_let_else_ret_expression (line 100) | fn find_let_else_ret_expression<'hir>(block: &'hir Block<'hir>) -> Optio... function check_let_some_else_return_none (line 118) | fn check_let_some_else_return_none(cx: &LateContext<'_>, stmt: &Stmt<'_>) { function is_early_return (line 205) | fn is_early_return(smbl: Symbol, cx: &LateContext<'_>, if_block: &IfBloc... function expr_return_none_or_err (line 242) | fn expr_return_none_or_err( function check_is_none_or_err_and_early_return (line 290) | fn check_is_none_or_err_and_early_return<'tcx>(cx: &LateContext<'tcx>, e... type TryMode (line 325) | enum TryMode { function find_try_mode (line 330) | fn find_try_mode<'tcx>(cx: &LateContext<'tcx>, scrutinee: &Expr<'tcx>) -... function extract_ctor_call (line 344) | fn extract_ctor_call<'a, 'tcx>( function extract_binding_pat (line 362) | fn extract_binding_pat(pat: &Pat<'_>) -> Option { function check_arm_is_some_or_ok (line 370) | fn check_arm_is_some_or_ok<'tcx>(cx: &LateContext<'tcx>, mode: TryMode, ... function check_arm_is_none_or_err (line 390) | fn check_arm_is_none_or_err<'tcx>(cx: &LateContext<'tcx>, mode: TryMode,... function is_local_or_local_into (line 430) | fn is_local_or_local_into(cx: &LateContext<'_>, expr: &Expr<'_>, val: Hi... function check_arms_are_try (line 442) | fn check_arms_are_try<'tcx>(cx: &LateContext<'tcx>, mode: TryMode, arm1:... function check_if_try_match (line 447) | fn check_if_try_match<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { function check_if_let_some_or_err_and_early_return (line 469) | fn check_if_let_some_or_err_and_early_return<'tcx>(cx: &LateContext<'tcx... function is_try_block (line 538) | fn is_try_block(cx: &LateContext<'_>, bl: &Block<'_>) -> bool { function is_inferred_ret_closure (line 550) | fn is_inferred_ret_closure(expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/question_mark_used.rs method check_expr (line 35) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/ranges.rs type Ranges (line 174) | pub struct Ranges { method new (line 179) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 185) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_possible_range_contains (line 198) | fn check_possible_range_contains( type RangeBounds (line 300) | struct RangeBounds<'a> { function check_range_bounds (line 313) | fn check_range_bounds<'a>(cx: &'a LateContext<'_>, ex: &'a Expr<'_>) -> ... function can_switch_ranges (line 357) | fn can_switch_ranges<'tcx>( function check_exclusive_range_plus_one (line 470) | fn check_exclusive_range_plus_one<'tcx>(cx: &LateContext<'tcx>, expr: &'... function check_inclusive_range_minus_one (line 483) | fn check_inclusive_range_minus_one<'tcx>(cx: &LateContext<'tcx>, expr: &... function check_range_switch (line 497) | fn check_range_switch<'tcx>( function check_reversed_empty_range (line 539) | fn check_reversed_empty_range(cx: &LateContext<'_>, expr: &Expr<'_>) { function y_plus_one (line 623) | fn y_plus_one<'tcx>(cx: &LateContext<'_>, expr: &Expr<'tcx>) -> Option<&... function y_minus_one (line 644) | fn y_minus_one<'tcx>(cx: &LateContext<'_>, expr: &Expr<'tcx>) -> Option<... FILE: clippy_lints/src/raw_strings.rs type RawStrings (line 61) | pub struct RawStrings { method new (line 66) | pub fn new(conf: &'static Conf) -> Self { method check_raw_string (line 108) | fn check_raw_string(&self, cx: &EarlyContext<'_>, str: &str, lit_span:... method check_expr (line 74) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function hash_spans (line 203) | fn hash_spans(literal_span: Span, prefix_len: usize, req: u8, max: u8) -... FILE: clippy_lints/src/rc_clone_in_vec_init.rs method check_expr (line 52) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function loop_init_suggestion (line 67) | fn loop_init_suggestion(elem: &str, len: &str, indent: &str) -> String { function extract_suggestion (line 77) | fn extract_suggestion(elem: &str, len: &str, indent: &str) -> String { function emit_lint (line 86) | fn emit_lint(cx: &LateContext<'_>, symbol: Symbol, lint_span: Span, elem... function ref_init (line 121) | fn ref_init(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<(Symbol, Sp... FILE: clippy_lints/src/read_zero_byte_vec.rs method check_block (line 53) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &hir::Block<'tc... function first_stmt_containing_expr (line 137) | fn first_stmt_containing_expr<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx ... type ReadVecVisitor (line 147) | struct ReadVecVisitor<'tcx> { function visit_expr (line 154) | fn visit_expr(&mut self, e: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/redundant_async_block.rs method check_expr (line 43) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function desugar_async_block (line 72) | fn desugar_async_block<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_... FILE: clippy_lints/src/redundant_clone.rs method check_fn (line 67) | fn check_fn( function is_call_with_ref_arg (line 253) | fn is_call_with_ref_arg<'tcx>( type CannotMoveOut (line 276) | type CannotMoveOut = bool; function find_stmt_assigns_to (line 280) | fn find_stmt_assigns_to<'tcx>( function base_local_and_movability (line 314) | fn base_local_and_movability<'tcx>( type MirLocalUsage (line 338) | enum MirLocalUsage { method maybe_used (line 349) | fn maybe_used(&self) -> bool { method from (line 355) | fn from(loc: Option) -> Self { type CloneUsage (line 361) | struct CloneUsage { function visit_clone_usage (line 370) | fn visit_clone_usage(cloned: mir::Local, clone: mir::Local, mir: &mir::B... FILE: clippy_lints/src/redundant_closure_call.rs type ReturnVisitor (line 43) | struct ReturnVisitor; type Result (line 46) | type Result = ControlFlow<()>; method visit_expr (line 47) | fn visit_expr(&mut self, ex: &'tcx hir::Expr<'tcx>) -> ControlFlow<()> { function is_async_closure (line 58) | fn is_async_closure(body: &hir::Body<'_>) -> bool { function find_innermost_closure (line 78) | fn find_innermost_closure<'tcx>( function get_parent_call_exprs (line 121) | fn get_parent_call_exprs<'tcx>( method check_expr (line 137) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... method check_block (line 217) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx hir::Bloc... FILE: clippy_lints/src/redundant_else.rs method check_stmt (line 50) | fn check_stmt(&mut self, cx: &EarlyContext<'_>, stmt: &Stmt) { type BreakVisitor (line 108) | struct BreakVisitor { method visit_block (line 113) | fn visit_block(&mut self, block: &'ast Block) { method visit_expr (line 120) | fn visit_expr(&mut self, expr: &'ast Expr) { method check (line 139) | fn check(&mut self, item: T, visit: fn(&mut Self, T)) -> bool { method check_block (line 144) | fn check_block(&mut self, block: &Block) -> bool { method check_expr (line 148) | fn check_expr(&mut self, expr: &Expr) -> bool { method check_stmt (line 152) | fn check_stmt(&mut self, stmt: &Stmt) -> bool { function extract_else_block (line 159) | fn extract_else_block(mut block: &str) -> String { function make_sugg (line 165) | fn make_sugg(cx: &EarlyContext<'_>, els_span: Span, default: &str, inden... FILE: clippy_lints/src/redundant_field_names.rs type RedundantFieldNames (line 40) | pub struct RedundantFieldNames { method new (line 45) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 53) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/redundant_locals.rs method check_local (line 50) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt<'... function is_by_value_closure_capture (line 101) | fn is_by_value_closure_capture(cx: &LateContext<'_>, redefinition: HirId... function find_binding (line 112) | fn find_binding(pat: &Pat<'_>, name: Ident) -> Option { function affects_assignments (line 125) | fn affects_assignments(cx: &LateContext<'_>, mutability: Mutability, bin... FILE: clippy_lints/src/redundant_pub_crate.rs type RedundantPubCrate (line 42) | pub struct RedundantPubCrate { method check_item (line 47) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_item_post (line 81) | fn check_item_post(&mut self, _cx: &LateContext<'tcx>, item: &'tcx Ite... function is_ignorable_export (line 89) | fn is_ignorable_export<'tcx>(item: &'tcx Item<'tcx>) -> bool { FILE: clippy_lints/src/redundant_slicing.rs method check_expr (line 75) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/redundant_static_lifetimes.rs type RedundantStaticLifetimes (line 39) | pub struct RedundantStaticLifetimes { method new (line 44) | pub fn new(conf: &'static Conf) -> Self { method visit_type (line 53) | fn visit_type(ty: &Ty, cx: &EarlyContext<'_>, reason: &'static str) { method check_item (line 94) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/redundant_test_prefix.rs method check_fn (line 63) | fn check_fn( function name_conflicts (line 130) | fn name_conflicts<'tcx>(cx: &LateContext<'tcx>, body: &'tcx Body<'_>, fn... function is_invalid_ident (line 162) | fn is_invalid_ident(ident: Symbol) -> bool { FILE: clippy_lints/src/redundant_type_annotations.rs function is_same_type (line 42) | fn is_same_type<'tcx>(cx: &LateContext<'tcx>, ty_resolved_path: hir::def... function func_hir_id_to_func_ty (line 61) | fn func_hir_id_to_func_ty<'tcx>(cx: &LateContext<'tcx>, hir_id: hir::hir... function func_ty_to_return_type (line 72) | fn func_ty_to_return_type<'tcx>(cx: &LateContext<'tcx>, func_ty: Ty<'tcx... function extract_fn_ty (line 81) | fn extract_fn_ty<'tcx>( function is_redundant_in_func_call (line 104) | fn is_redundant_in_func_call<'tcx>( function extract_primty (line 122) | fn extract_primty(ty_kind: &hir::TyKind<'_>) -> Option { method check_local (line 134) | fn check_local<'tcx>(&mut self, cx: &LateContext<'tcx>, local: &'tcx rus... FILE: clippy_lints/src/ref_option_ref.rs method check_ty (line 39) | fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx, AmbigA... FILE: clippy_lints/src/ref_patterns.rs method check_pat (line 33) | fn check_pat(&mut self, cx: &EarlyContext<'_>, pat: &Pat) { FILE: clippy_lints/src/reference.rs method check_expr (line 42) | fn check_expr(&mut self, cx: &LateContext<'_>, e: &Expr<'_>) { type ManuallyDropThroughUnion (line 85) | enum ManuallyDropThroughUnion { function is_manually_drop_through_union (line 96) | fn is_manually_drop_through_union( function is_reached_through_union (line 124) | fn is_reached_through_union(cx: &LateContext<'_>, mut expr: &Expr<'_>) -... FILE: clippy_lints/src/regex.rs type RegexKind (line 111) | enum RegexKind { type Regex (line 119) | pub struct Regex { method check_crate (line 125) | fn check_crate(&mut self, cx: &LateContext<'tcx>) { method check_expr (line 140) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_expr_post (line 170) | fn check_expr_post(&mut self, _: &LateContext<'tcx>, expr: &'tcx Expr<... function lint_syntax_error (line 177) | fn lint_syntax_error(cx: &LateContext<'_>, error: ®ex_syntax::Error, ... function const_str (line 218) | fn const_str<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) -> Option<... function is_trivial_regex (line 225) | fn is_trivial_regex(s: ®ex_syntax::hir::Hir) -> Option<&'static str> { function check_set (line 261) | fn check_set<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, utf8: b... function check_regex (line 271) | fn check_regex<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, utf8:... FILE: clippy_lints/src/repeat_vec_with_capacity.rs type RepeatVecWithCapacity (line 15) | pub struct RepeatVecWithCapacity { method new (line 20) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 126) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function emit_lint (line 65) | fn emit_lint(cx: &LateContext<'_>, span: Span, kind: &str, note: &'stati... function check_vec_macro (line 79) | fn check_vec_macro(cx: &LateContext<'_>, expr: &Expr<'_>) { function check_repeat_fn (line 102) | fn check_repeat_fn(cx: &LateContext<'_>, expr: &Expr<'_>, msrv: Msrv) { FILE: clippy_lints/src/replace_box.rs type ReplaceBox (line 46) | pub struct ReplaceBox { method get_consumed_locals (line 52) | fn get_consumed_locals(&mut self, cx: &LateContext<'_>) -> &FxHashSet<... method check_body_post (line 73) | fn check_body_post(&mut self, _: &LateContext<'_>, body: &Body<'_>) { method check_expr (line 80) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { function is_default_call (line 143) | fn is_default_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function get_box_new_payload (line 147) | fn get_box_new_payload<'tcx>(cx: &LateContext<'_>, expr: &Expr<'tcx>) ->... type MovedVariablesCtxt (line 159) | struct MovedVariablesCtxt<'a> { function consume (line 164) | fn consume(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId) { function use_cloned (line 178) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function borrow (line 180) | fn borrow(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId, _: ty::BorrowKi... function mutate (line 182) | fn mutate(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function fake_read (line 184) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _: H... type IdFields (line 188) | type IdFields = (HirId, Vec); function local_base (line 191) | fn local_base(expr: &Expr<'_>) -> Option { FILE: clippy_lints/src/reserve_after_initialization.rs type ReserveAfterInitialization (line 38) | pub struct ReserveAfterInitialization { method check_block (line 69) | fn check_block(&mut self, _: &LateContext<'tcx>, _: &'tcx Block<'tcx>) { method check_local (line 73) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt... method check_expr (line 100) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_stmt (line 126) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_block_post (line 145) | fn check_block_post(&mut self, cx: &LateContext<'tcx>, _: &'tcx Block<... type VecReserveSearcher (line 42) | struct VecReserveSearcher { method display_err (line 49) | fn display_err(&self, cx: &LateContext<'_>) { FILE: clippy_lints/src/return_self_not_must_use.rs function check_method (line 70) | fn check_method(cx: &LateContext<'_>, decl: &FnDecl<'_>, fn_def: LocalDe... method check_fn (line 104) | fn check_fn( method check_trait_item (line 124) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Trait... FILE: clippy_lints/src/returns/let_and_return.rs function check_block (line 16) | pub(super) fn check_block<'tcx>(cx: &LateContext<'tcx>, block: &'tcx Blo... function last_statement_borrows (line 69) | fn last_statement_borrows<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr... FILE: clippy_lints/src/returns/mod.rs method check_stmt (line 125) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_block (line 129) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'_>) { method check_fn (line 133) | fn check_fn( FILE: clippy_lints/src/returns/needless_return.rs type RetReplacement (line 20) | enum RetReplacement<'tcx> { function sugg_help (line 29) | fn sugg_help(&self) -> &'static str { function applicability (line 38) | fn applicability(&self) -> Applicability { method fmt (line 47) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function check_fn (line 58) | pub(super) fn check_fn<'tcx>(cx: &LateContext<'tcx>, kind: FnKind<'tcx>,... function check_block_return (line 81) | fn check_block_return<'tcx>(cx: &LateContext<'tcx>, expr_kind: &ExprKind... function check_final_expr (line 115) | fn check_final_expr<'tcx>( function emit_return_lint (line 235) | fn emit_return_lint( function extend_span_to_previous_non_ws (line 260) | fn extend_span_to_previous_non_ws(cx: &LateContext<'_>, sp: Span) -> Span { FILE: clippy_lints/src/returns/needless_return_with_question_mark.rs function check_stmt (line 12) | pub(super) fn check_stmt<'tcx>(cx: &LateContext<'tcx>, stmt: &'tcx Stmt<... function stmt_needs_never_type (line 51) | fn stmt_needs_never_type(cx: &LateContext<'_>, stmt_hir_id: HirId) -> bo... FILE: clippy_lints/src/same_length_and_capacity.rs method check_expr (line 77) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/same_name_method.rs type ExistingName (line 44) | struct ExistingName { method check_crate_post (line 50) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { FILE: clippy_lints/src/self_named_constructors.rs method check_impl_item (line 44) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &'tcx I... FILE: clippy_lints/src/semicolon_block.rs type SemicolonBlock (line 71) | pub struct SemicolonBlock { method new (line 77) | pub fn new(conf: &'static Conf) -> Self { method semicolon_inside_block (line 84) | fn semicolon_inside_block(&self, cx: &LateContext<'_>, block: &Block<'... method semicolon_outside_block (line 120) | fn semicolon_outside_block(&self, cx: &LateContext<'_>, block: &Block<... method check_stmt (line 157) | fn check_stmt(&mut self, cx: &LateContext<'_>, stmt: &Stmt<'_>) { function get_line (line 188) | fn get_line(cx: &LateContext<'_>, span: Span) -> Option { FILE: clippy_lints/src/semicolon_if_nothing_returned.rs method check_block (line 39) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'tc... function from_attr_macro (line 68) | fn from_attr_macro(span: Span) -> bool { FILE: clippy_lints/src/serde_api.rs method check_item (line 27) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { FILE: clippy_lints/src/set_contains_or_insert.rs method check_expr (line 54) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type OpExpr (line 74) | struct OpExpr<'tcx> { function try_parse_op_call (line 80) | fn try_parse_op_call<'tcx>( function is_set_mutated (line 115) | fn is_set_mutated<'tcx>(cx: &LateContext<'tcx>, contains_expr: &OpExpr<'... function find_insert_calls (line 125) | fn find_insert_calls<'tcx>( FILE: clippy_lints/src/shadow.rs type Shadow (line 112) | pub(crate) struct Shadow { method check_pat (line 117) | fn check_pat(&mut self, cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>) { method check_body (line 164) | fn check_body(&mut self, cx: &LateContext<'_>, body: &Body<'_>) { method check_body_post (line 171) | fn check_body_post(&mut self, cx: &LateContext<'_>, body: &Body<'_>) { function is_shadow (line 181) | fn is_shadow(cx: &LateContext<'_>, owner: LocalDefId, first: ItemLocalId... function is_local_used_except (line 196) | pub fn is_local_used_except<'tcx>( function lint_shadow (line 214) | fn lint_shadow(cx: &LateContext<'_>, pat: &Pat<'_>, shadowed: HirId, spa... function is_self_shadow (line 239) | fn is_self_shadow(cx: &LateContext<'_>, pat: &Pat<'_>, mut expr: &Expr<'... function find_init (line 274) | fn find_init<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) -> Option<(&'t... FILE: clippy_lints/src/significant_drop_tightening.rs type SignificantDropTightening (line 60) | pub struct SignificantDropTightening<'tcx> { function check_fn (line 67) | fn check_fn( type AttrChecker (line 140) | struct AttrChecker<'cx, 'others, 'tcx> { function new (line 146) | pub(crate) fn new(cx: &'cx LateContext<'tcx>, type_cache: &'others mut F... function has_sig_drop_attr (line 150) | fn has_sig_drop_attr(&mut self, ty: Ty<'tcx>, depth: usize) -> bool { function has_sig_drop_attr_uncached (line 170) | fn has_sig_drop_attr_uncached(&mut self, ty: Ty<'tcx>, depth: usize) -> ... type StmtsChecker (line 208) | struct StmtsChecker<'ap, 'lc, 'others, 'stmt, 'tcx> { function new (line 215) | fn new( function manage_has_expensive_expr_after_last_attr (line 223) | fn manage_has_expensive_expr_after_last_attr(&mut self) { function visit_block (line 253) | fn visit_block(&mut self, block: &'tcx hir::Block<'tcx>) { function visit_expr (line 272) | fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) { type AuxParams (line 346) | struct AuxParams<'others, 'stmt, 'tcx> { function new (line 358) | fn new(apas: &'others mut FxIndexMap, curr_stmt: &... type AuxParamsAttr (line 370) | struct AuxParamsAttr { method default (line 399) | fn default() -> Self { function dummy_stmt_expr (line 415) | fn dummy_stmt_expr<'any>(expr: &'any hir::Expr<'any>) -> hir::Stmt<'any> { function has_drop (line 423) | fn has_drop(cx: &LateContext<'_>, expr: &hir::Expr<'_>, first_bind_ident... function is_inexpensive_expr (line 452) | fn is_inexpensive_expr(expr: &hir::Expr<'_>) -> bool { FILE: clippy_lints/src/single_call_fn.rs type CallState (line 65) | pub enum CallState { type SingleCallFn (line 70) | pub struct SingleCallFn { method new (line 76) | pub fn new(conf: &'static Conf) -> Self { method is_function_allowed (line 83) | fn is_function_allowed( method check_expr (line 116) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'tcx Expr<'tcx>) { method check_crate_post (line 137) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { function is_valid_item_kind (line 108) | fn is_valid_item_kind(cx: &LateContext<'_>, def_id: LocalDefId) -> bool { FILE: clippy_lints/src/single_char_lifetime_names.rs method check_generic_param (line 43) | fn check_generic_param(&mut self, cx: &EarlyContext<'_>, param: &Generic... FILE: clippy_lints/src/single_component_path_imports.rs type SingleComponentPathImports (line 43) | pub struct SingleComponentPathImports { method check_mod (line 126) | fn check_mod(&mut self, items: &[Box]) { method track_uses (line 164) | fn track_uses( type SingleUse (line 48) | struct SingleUse { method check_crate (line 56) | fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &Crate) { method check_item (line 64) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { type ImportUsageVisitor (line 91) | struct ImportUsageVisitor { method visit_expr (line 105) | fn visit_expr(&mut self, expr: &Expr) { method visit_ty (line 115) | fn visit_ty(&mut self, ty: &Ty) { FILE: clippy_lints/src/single_option_map.rs method check_fn (line 42) | fn check_fn( FILE: clippy_lints/src/single_range_in_vec_init.rs type SuggestedType (line 43) | enum SuggestedType { method starts_with (line 49) | fn starts_with(&self) -> &'static str { method ends_with (line 57) | fn ends_with(&self) -> &'static str { method fmt (line 63) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { method check_expr (line 73) | fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/size_of_in_element_count.rs function get_size_of_ty (line 35) | fn get_size_of_ty<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, in... function get_pointee_ty_and_count_expr (line 62) | fn get_pointee_ty_and_count_expr<'tcx>( method check_expr (line 114) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/size_of_ref.rs method check_expr (line 59) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { FILE: clippy_lints/src/slow_vector_initialization.rs type VecAllocation (line 61) | struct VecAllocation<'tcx> { type InitializedSize (line 85) | enum InitializedSize<'tcx> { type InitializationType (line 91) | enum InitializationType<'tcx> { method check_expr (line 100) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_stmt (line 116) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method as_vec_initializer (line 141) | fn as_vec_initializer<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'tcx>... method search_initialization (line 163) | fn search_initialization<'tcx>(cx: &LateContext<'tcx>, vec_alloc: VecAll... method lint_initialization (line 184) | fn lint_initialization<'tcx>( method emit_lint (line 196) | fn emit_lint(cx: &LateContext<'_>, slow_fill: &Expr<'_>, vec_alloc: &Vec... type VectorInitializationVisitor (line 231) | struct VectorInitializationVisitor<'a, 'tcx> { function search_slow_extend_filling (line 246) | fn search_slow_extend_filling(&mut self, expr: &'tcx Expr<'_>) { function search_slow_resize_filling (line 258) | fn search_slow_resize_filling(&mut self, expr: &'tcx Expr<'tcx>) { function is_repeat_take (line 282) | fn is_repeat_take(&mut self, expr: &'tcx Expr<'tcx>) -> bool { function is_repeat_zero (line 302) | fn is_repeat_zero(&self, expr: &Expr<'_>) -> bool { function visit_stmt (line 315) | fn visit_stmt(&mut self, stmt: &'tcx Stmt<'_>) { function visit_block (line 331) | fn visit_block(&mut self, block: &'tcx Block<'_>) { function visit_expr (line 343) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/std_instead_of_core.rs type StdReexports (line 95) | pub struct StdReexports { method new (line 101) | pub fn new(conf: &'static Conf) -> Self { method lint_if_finish (line 108) | fn lint_if_finish(&mut self, cx: &LateContext<'_>, krate: Span, lint_p... method check_path (line 125) | fn check_path(&mut self, cx: &LateContext<'tcx>, path: &Path<'tcx>, _:... method check_block_post (line 160) | fn check_block_post(&mut self, cx: &LateContext<'tcx>, _: &Block<'tcx>) { method check_body_post (line 164) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, _: &Body<'tcx>) { method check_crate_post (line 168) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type LintPoint (line 119) | enum LintPoint { function emit_lints (line 173) | fn emit_lints(cx: &LateContext<'_>, lint_points: Option<(Span, Vec(path: &Path<'tcx>) -> Option<&'tcx PathSegmen... function is_stable (line 239) | fn is_stable(cx: &LateContext<'_>, mut def_id: DefId, msrv: Msrv) -> bool { FILE: clippy_lints/src/string_patterns.rs type StringPatterns (line 80) | pub struct StringPatterns { method new (line 85) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 230) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { constant PATTERN_METHODS (line 90) | const PATTERN_METHODS: [(Symbol, usize); 22] = [ function check_single_char_pattern_lint (line 115) | fn check_single_char_pattern_lint(cx: &LateContext<'_>, arg: &Expr<'_>) { function get_char_span (line 130) | fn get_char_span<'tcx>(cx: &'_ LateContext<'tcx>, expr: &'tcx Expr<'_>) ... function check_manual_pattern_char_comparison (line 141) | fn check_manual_pattern_char_comparison(cx: &LateContext<'_>, method_arg... FILE: clippy_lints/src/strings.rs method check_expr (line 222) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function is_string (line 276) | fn is_string(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { function is_add (line 283) | fn is_add(cx: &LateContext<'_>, src: &Expr<'_>, target: &Expr<'_>) -> bo... constant MAX_LENGTH_BYTE_STRING_LIT (line 297) | const MAX_LENGTH_BYTE_STRING_LIT: usize = 32; method check_expr (line 300) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { method check_expr (line 413) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'_>) { method check_expr (line 460) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'_>) { function is_one_of_trim_diagnostic_items (line 484) | fn is_one_of_trim_diagnostic_items(cx: &LateContext<'_>, trim_def_id: De... FILE: clippy_lints/src/strlen_on_c_strings.rs type StrlenOnCStrings (line 42) | pub struct StrlenOnCStrings { method new (line 47) | pub fn new(conf: &Conf) -> Self { method check_expr (line 53) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/suspicious_operation_groupings.rs method check_expr (line 72) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { function check_binops (line 100) | fn check_binops(cx: &EarlyContext<'_>, binops: &[&BinaryOp<'_>]) { function attempt_to_emit_no_difference_lint (line 183) | fn attempt_to_emit_no_difference_lint( function emit_suggestion (line 235) | fn emit_suggestion(cx: &EarlyContext<'_>, span: Span, sugg: String, appl... function ident_swap_sugg (line 247) | fn ident_swap_sugg( function replace_left_sugg (line 295) | fn replace_left_sugg( function replace_right_sugg (line 308) | fn replace_right_sugg( type BinaryOp (line 322) | struct BinaryOp<'exprs> { function new (line 330) | fn new(op: BinOpKind, span: Span, (left, right): (&'exprs Expr, &'exprs ... function strip_non_ident_wrappers (line 335) | fn strip_non_ident_wrappers(expr: &Expr) -> &Expr { function extract_related_binops (line 347) | fn extract_related_binops(kind: &ExprKind) -> Option>> { function if_statement_binops (line 351) | fn if_statement_binops(kind: &ExprKind) -> Option>> { function append_opt_vecs (line 371) | fn append_opt_vecs(target_opt: Option>, source_opt: Option Option>> { function chained_binops_helper (line 393) | fn chained_binops_helper<'expr>(left_outer: &'expr Expr, right_outer: &'... type IdentLocation (line 433) | struct IdentLocation { type Output (line 438) | type Output = IdentLocation; method add (line 440) | fn add(self, other: Self) -> Self::Output { method add_assign (line 448) | fn add_assign(&mut self, other: Self) { type IdentDifference (line 454) | enum IdentDifference { method is_complete (line 487) | fn is_complete(&self) -> bool { type Output (line 463) | type Output = IdentDifference; method add (line 465) | fn add(self, other: Self) -> Self::Output { method add_assign (line 479) | fn add_assign(&mut self, other: Self) { function ident_difference_expr (line 495) | fn ident_difference_expr(left: &Expr, right: &Expr) -> IdentDifference { function ident_difference_expr_with_base_location (line 499) | fn ident_difference_expr_with_base_location( function ident_difference_via_ident_iter_with_base_location (line 597) | fn ident_difference_via_ident_iter_with_base_location Option { function suggestion_with_swapped_ident (line 633) | fn suggestion_with_swapped_ident( function skip_index (line 654) | fn skip_index(iter: Iter, index: usize) -> impl Iterator FILE: clippy_lints/src/suspicious_trait_impl.rs method check_expr (line 62) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... function check_expr_inner (line 75) | fn check_expr_inner<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<... function count_binops (line 111) | fn count_binops(expr: &hir::Expr<'_>) -> u32 { FILE: clippy_lints/src/suspicious_xor_used_as_pow.rs method check_expr (line 34) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/swap.rs method check_block (line 81) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'_>) { function generate_swap_warning (line 89) | fn generate_swap_warning<'tcx>( function check_manual_swap (line 171) | fn check_manual_swap<'tcx>(cx: &LateContext<'tcx>, block: &'tcx Block<'t... function check_suspicious_swap (line 209) | fn check_suspicious_swap(cx: &LateContext<'_>, block: &Block<'_>) { function is_same (line 245) | fn is_same(cx: &LateContext<'_>, lhs: ExprOrIdent<'_>, rhs: &Expr<'_>) -... type ExprOrIdent (line 262) | enum ExprOrIdent<'a> { function parse (line 267) | fn parse<'a, 'hir>(stmt: &'a Stmt<'hir>) -> Option<(ExprOrIdent<'hir>, &... function check_xor_swap (line 282) | fn check_xor_swap<'tcx>(cx: &LateContext<'tcx>, block: &'tcx Block<'tcx>) { function extract_sides_of_xor_assign (line 302) | fn extract_sides_of_xor_assign<'a, 'hir>( type IndexBinding (line 323) | struct IndexBinding<'a, 'tcx> { function snippet_index_bindings (line 334) | fn snippet_index_bindings(&mut self, exprs: &[&'tcx Expr<'tcx>]) -> Stri... function snippet_index_binding (line 342) | fn snippet_index_binding(&mut self, expr: &'tcx Expr<'tcx>) -> String { function is_used_other_than_swapping (line 384) | fn is_used_other_than_swapping(&self, idx_ident: Ident) -> bool { function is_used_after_swap (line 393) | fn is_used_after_swap(&self, idx_ident: Ident) -> bool { function is_used_slice_indexed (line 415) | fn is_used_slice_indexed(swap_index: &Expr<'_>, idx_ident: Ident) -> bool { type IndexBindingVisitor (line 429) | struct IndexBindingVisitor { method visit_path_segment (line 436) | fn visit_path_segment(&mut self, path_segment: &'tcx rustc_hir::PathSe... method visit_expr (line 442) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> Self::Result { FILE: clippy_lints/src/swap_ptr_to_ref.rs method check_expr (line 43) | fn check_expr(&mut self, cx: &LateContext<'_>, e: &Expr<'_>) { function is_ptr_to_ref (line 76) | fn is_ptr_to_ref(cx: &LateContext<'_>, e: &Expr<'_>, ctxt: SyntaxContext... FILE: clippy_lints/src/tabs_in_doc_comments.rs method warn_if_tabs_in_doc (line 62) | fn warn_if_tabs_in_doc(cx: &EarlyContext<'_>, attr: &ast::Attribute) { method check_attribute (line 89) | fn check_attribute(&mut self, cx: &EarlyContext<'_>, attribute: &ast::At... function get_chunks_of_tabs (line 100) | fn get_chunks_of_tabs(the_str: &str) -> Vec<(u32, u32)> { function test_unicode_han_string (line 155) | fn test_unicode_han_string() { function test_empty_string (line 162) | fn test_empty_string() { function test_simple (line 169) | fn test_simple() { function test_only_t (line 176) | fn test_only_t() { function test_only_one_t (line 183) | fn test_only_one_t() { function test_double (line 190) | fn test_double() { function test_start (line 197) | fn test_start() { function test_end (line 204) | fn test_end() { function test_start_single (line 211) | fn test_start_single() { function test_end_single (line 218) | fn test_end_single() { function test_no_tabs (line 225) | fn test_no_tabs() { FILE: clippy_lints/src/temporary_assignment.rs function is_temporary (line 28) | fn is_temporary(expr: &Expr<'_>) -> bool { method check_expr (line 33) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/tests_outside_test_module.rs method check_fn (line 51) | fn check_fn( FILE: clippy_lints/src/time_subtraction.rs type UncheckedTimeSubtraction (line 81) | pub struct UncheckedTimeSubtraction { method new (line 86) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 92) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { function is_instant_now_call (line 147) | fn is_instant_now_call(cx: &LateContext<'_>, expr_block: &'_ Expr<'_>) -... function is_chained_time_subtraction (line 158) | fn is_chained_time_subtraction(cx: &LateContext<'_>, lhs: &Expr<'_>) -> ... function is_time_type (line 172) | fn is_time_type(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function print_manual_instant_elapsed_sugg (line 176) | fn print_manual_instant_elapsed_sugg(cx: &LateContext<'_>, expr: &Expr<'... function print_unchecked_duration_subtraction_sugg (line 190) | fn print_unchecked_duration_subtraction_sugg( function const_eval_duration (line 221) | fn const_eval_duration(const_eval: &ConstEvalCtxt<'_>, expr: &Expr<'_>, ... FILE: clippy_lints/src/to_digit_is_some.rs type ToDigitIsSome (line 40) | pub(crate) struct ToDigitIsSome { method new (line 45) | pub(crate) fn new(conf: &'static Conf) -> Self { method check_expr (line 51) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr... FILE: clippy_lints/src/to_string_trait_impl.rs method check_item (line 49) | fn check_item(&mut self, cx: &LateContext<'tcx>, it: &'tcx Item<'tcx>) { FILE: clippy_lints/src/toplevel_ref_arg.rs method check_fn (line 53) | fn check_fn( method check_stmt (line 81) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { FILE: clippy_lints/src/trailing_empty_array.rs method check_item (line 40) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function is_struct_with_trailing_zero_sized_array (line 60) | fn is_struct_with_trailing_zero_sized_array<'tcx>(cx: &LateContext<'tcx>... FILE: clippy_lints/src/trait_bounds.rs type TraitBounds (line 94) | pub struct TraitBounds { method new (line 100) | pub fn new(conf: &'static Conf) -> Self { method check_generics (line 109) | fn check_generics(&mut self, cx: &LateContext<'tcx>, generics: &'tcx G... method check_item (line 114) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_trait_item (line 126) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Tra... method check_ty (line 176) | fn check_ty(&mut self, cx: &LateContext<'tcx>, ty: &'tcx Ty<'tcx, Ambi... method cannot_combine_maybe_bound (line 233) | fn cannot_combine_maybe_bound(&self, cx: &LateContext<'_>, bound: &Gen... method check_type_repetition (line 245) | fn check_type_repetition<'tcx>(&self, cx: &LateContext<'tcx>, generics... function check_trait_bound_duplication (line 308) | fn check_trait_bound_duplication<'tcx>(cx: &LateContext<'tcx>, generics:... type ComparableTraitRef (line 374) | struct ComparableTraitRef<'a, 'tcx> { method eq (line 381) | fn eq(&self, other: &Self) -> bool { method hash (line 390) | fn hash(&self, state: &mut H) { function get_trait_info_from_bound (line 398) | fn get_trait_info_from_bound<'a>(bound: &'a GenericBound<'_>) -> Option<... function rollup_traits (line 407) | fn rollup_traits<'cx, 'tcx>( FILE: clippy_lints/src/transmute/crosspointer_transmute.rs function check (line 9) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, fro... FILE: clippy_lints/src/transmute/eager_transmute.rs function peel_parent_unsafe_blocks (line 11) | fn peel_parent_unsafe_blocks<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx E... function range_fully_contained (line 23) | fn range_fully_contained(from: WrappingRange, to: WrappingRange) -> bool { function binops_with_local (line 39) | fn binops_with_local(cx: &LateContext<'_>, local_expr: &Expr<'_>, expr: ... function is_local_with_projections (line 65) | fn is_local_with_projections(expr: &Expr<'_>) -> bool { function check (line 69) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/missing_transmute_annotations.rs function get_parent_local_binding_ty (line 13) | fn get_parent_local_binding_ty<'tcx>(cx: &LateContext<'tcx>, expr_hir_id... function is_function_block (line 34) | fn is_function_block(cx: &LateContext<'_>, expr_hir_id: HirId) -> bool { function check (line 42) | pub(super) fn check<'tcx>( function ty_cannot_be_named (line 107) | fn ty_cannot_be_named(ty: Ty<'_>) -> bool { function maybe_name_by_expr (line 114) | fn maybe_name_by_expr<'a>(sess: &impl HasSession, span: Span, default: &... FILE: clippy_lints/src/transmute/mod.rs type Transmute (line 491) | pub struct Transmute { method new (line 495) | pub fn new(conf: &'static Conf) -> Self { method extract_struct_field (line 501) | fn extract_struct_field<'tcx>( method check_expr (line 526) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { FILE: clippy_lints/src/transmute/transmute_int_to_bool.rs function check (line 13) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/transmute_int_to_non_zero.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/transmute_null_to_fn.rs function lint_expr (line 12) | fn lint_expr(cx: &LateContext<'_>, expr: &Expr<'_>) { function check (line 27) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... function peel_casts (line 63) | fn peel_casts<'tcx>(expr: &'tcx Expr<'tcx>) -> &'tcx Expr<'tcx> { FILE: clippy_lints/src/transmute/transmute_ptr_to_ptr.rs function check (line 12) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/transmute_ptr_to_ref.rs function check (line 13) | pub(super) fn check<'tcx>( function get_explicit_type (line 89) | fn get_explicit_type<'tcx>(path: &'tcx Path<'tcx>) -> Option<&'tcx hir::... FILE: clippy_lints/src/transmute/transmute_ref_to_ref.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/transmute_undefined_repr.rs function check (line 9) | pub(super) fn check<'tcx>( type ReducedTys (line 179) | struct ReducedTys<'tcx> { function reduce_refs (line 189) | fn reduce_refs<'tcx>(cx: &LateContext<'tcx>, mut from_ty: Ty<'tcx>, mut ... type ReducedTy (line 227) | enum ReducedTy<'tcx> { function reduce_ty (line 241) | fn reduce_ty<'tcx>(cx: &LateContext<'tcx>, mut ty: Ty<'tcx>) -> ReducedT... function is_zero_sized_ty (line 295) | fn is_zero_sized_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_size_pair (line 305) | fn is_size_pair(ty: Ty<'_>) -> bool { function same_except_params (line 316) | fn same_except_params<'tcx>(subs1: GenericArgsRef<'tcx>, subs2: GenericA... FILE: clippy_lints/src/transmute/transmutes_expressible_as_ptr_casts.rs function check (line 14) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/transmuting_null.rs constant LINT_MSG (line 11) | const LINT_MSG: &str = "transmuting a known null pointer into a reference"; function check (line 13) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, ... FILE: clippy_lints/src/transmute/unsound_collection_transmute.rs function check (line 11) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, fro... FILE: clippy_lints/src/transmute/useless_transmute.rs function check (line 11) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/transmute/utils.rs function is_layout_incompatible (line 6) | pub(super) fn is_layout_incompatible<'tcx>(cx: &LateContext<'tcx>, from:... FILE: clippy_lints/src/transmute/wrong_transmute.rs function check (line 9) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, fro... FILE: clippy_lints/src/tuple_array_conversions.rs type TupleArrayConversions (line 46) | pub struct TupleArrayConversions { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method check_expr (line 56) | fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Exp... function check_array (line 69) | fn check_array<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, ele... function check_tuple (line 103) | fn check_tuple<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, ele... function all_bindings_are_for_conv (line 148) | fn all_bindings_are_for_conv<'tcx>( type ToType (line 216) | enum ToType { method eq (line 222) | fn eq(&self, other: &PatKind<'_>) -> bool { FILE: clippy_lints/src/types/borrowed_box.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, lt: &Lif... function is_any_trait (line 82) | fn is_any_trait(cx: &LateContext<'_>, t: &hir::Ty<'_>) -> bool { function get_bounds_if_impl_trait (line 97) | fn get_bounds_if_impl_trait<'tcx>(cx: &LateContext<'tcx>, qpath: &QPath<... FILE: clippy_lints/src/types/box_collection.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, qpath: &... function get_std_collection (line 35) | fn get_std_collection(cx: &LateContext<'_>, qpath: &QPath<'_>) -> Option... FILE: clippy_lints/src/types/linked_list.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, def_id: ... FILE: clippy_lints/src/types/mod.rs type Types (line 407) | pub struct Types { method check_fn (line 414) | fn check_fn( method check_item (line 446) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_impl_item (line 463) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Impl... method check_field_def (line 491) | fn check_field_def(&mut self, cx: &LateContext<'tcx>, field: &hir::Fie... method check_trait_item (line 508) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &TraitIte... method check_local (line 531) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &LetStmt<'tcx... method new (line 546) | pub fn new(conf: &'static Conf) -> Self { method check_fn_decl (line 554) | fn check_fn_decl<'tcx>(&mut self, cx: &LateContext<'tcx>, decl: &FnDec... method check_ty (line 576) | fn check_ty<'tcx>(&mut self, cx: &LateContext<'tcx>, hir_ty: &hir::Ty<... method is_type_change_allowed (line 690) | fn is_type_change_allowed(&self, context: CheckTyContext) -> bool { type CheckTyContext (line 697) | struct CheckTyContext { FILE: clippy_lints/src/types/option_option.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, qpath: &... FILE: clippy_lints/src/types/owned_cow.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, qpath: &hir::QPath<'_>, def_id... function replacement (line 34) | fn replacement(cx: &LateContext<'_>, cty: &hir::Ty<'_>) -> Option<(Span,... FILE: clippy_lints/src/types/rc_buffer.rs function check (line 13) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &Ty<'_>, qpath: &QPath... function match_buffer_type (line 38) | fn match_buffer_type( FILE: clippy_lints/src/types/rc_mutex.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, qpath: &... FILE: clippy_lints/src/types/redundant_allocation.rs function check (line 15) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, hir_ty: &hir::Ty<'tcx>... FILE: clippy_lints/src/types/type_complexity.rs function check (line 10) | pub(super) fn check(cx: &LateContext<'_>, ty: &hir::Ty<'_>, type_complex... type TypeComplexityVisitor (line 31) | struct TypeComplexityVisitor { method visit_infer (line 39) | fn visit_infer(&mut self, inf_id: hir::HirId, _inf_span: Span, _kind: ... method visit_ty (line 44) | fn visit_ty(&mut self, ty: &'tcx hir::Ty<'_, AmbigArg>) { FILE: clippy_lints/src/types/utils.rs function match_borrows_parameter (line 6) | pub(super) fn match_borrows_parameter(_cx: &LateContext<'_>, qpath: &QPa... FILE: clippy_lints/src/types/vec_box.rs function check (line 15) | pub(super) fn check<'tcx>( FILE: clippy_lints/src/unconditional_recursion.rs type UnconditionalRecursion (line 77) | pub struct UnconditionalRecursion { method init_default_impl_for_type_if_needed (line 331) | fn init_default_impl_for_type_if_needed(&mut self, cx: &LateContext<'_... method check_default_new (line 367) | fn check_default_new<'tcx>( method check_fn (line 439) | fn check_fn( function span_error (line 83) | fn span_error(cx: &LateContext<'_>, method_span: Span, expr: &Expr<'_>) { function get_hir_ty_def_id (line 95) | fn get_hir_ty_def_id<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: rustc_hir::Ty<'tcx... function get_return_calls_in_body (line 112) | fn get_return_calls_in_body<'tcx>(body: &'tcx Body<'tcx>) -> Vec<&'tcx E... function has_conditional_return (line 119) | fn has_conditional_return(body: &Body<'_>, expr: &Expr<'_>) -> bool { function get_impl_trait_def_id (line 127) | fn get_impl_trait_def_id(cx: &LateContext<'_>, method_def_id: LocalDefId... function matches_ty (line 158) | fn matches_ty<'tcx>( function check_partial_eq (line 174) | fn check_partial_eq(cx: &LateContext<'_>, method_span: Span, method_def_... function check_to_string (line 226) | fn check_to_string(cx: &LateContext<'_>, method_span: Span, method_def_i... function is_default_method_on_current_ty (line 269) | fn is_default_method_on_current_ty<'tcx>(tcx: TyCtxt<'tcx>, qpath: QPath... type CheckCalls (line 296) | struct CheckCalls<'a, 'tcx> { type NestedFilter (line 306) | type NestedFilter = nested_filter::OnlyBodies; type Result (line 307) | type Result = ControlFlow<()>; function maybe_tcx (line 309) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_expr (line 313) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> ControlFlow<()> { function check_from (line 410) | fn check_from(cx: &LateContext<'_>, method_span: Span, method_def_id: Lo... FILE: clippy_lints/src/undocumented_unsafe_blocks.rs type UndocumentedUnsafeBlocks (line 101) | pub struct UndocumentedUnsafeBlocks { method new (line 107) | pub fn new(conf: &'static Conf) -> Self { method check_block (line 116) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'... method check_stmt (line 168) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &hir::Stmt<'tcx... method check_item (line 193) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &hir::Item<'tcx... function check_has_safety_comment (line 224) | fn check_has_safety_comment<'tcx>( function check_has_no_safety_comment (line 350) | fn check_has_no_safety_comment(cx: &LateContext<'_>, item: &hir::Item<'_... function expr_has_unnecessary_safety_comment (line 378) | fn expr_has_unnecessary_safety_comment<'tcx>( function is_unsafe_from_proc_macro (line 439) | fn is_unsafe_from_proc_macro(cx: &LateContext<'_>, span: Span) -> bool { function find_unsafe_block_parent_in_expr (line 450) | fn find_unsafe_block_parent_in_expr<'tcx>( function block_parents_have_safety_comment (line 479) | fn block_parents_have_safety_comment( function is_branchy (line 511) | fn is_branchy(expr: &hir::Expr<'_>) -> bool { function block_has_safety_comment (line 519) | fn block_has_safety_comment(cx: &LateContext<'_>, span: Span, accept_com... type HasSafetyComment (line 535) | enum HasSafetyComment { function item_has_safety_comment (line 542) | fn item_has_safety_comment( function stmt_has_safety_comment (line 605) | fn stmt_has_safety_comment( type CommentStartBeforeItem (line 647) | enum CommentStartBeforeItem { method from (line 653) | fn from(value: CommentStartBeforeItem) -> Self { function comment_start_before_item_in_mod (line 661) | fn comment_start_before_item_in_mod( function span_from_macro_expansion_has_safety_comment (line 693) | fn span_from_macro_expansion_has_safety_comment( function get_body_search_span (line 728) | fn get_body_search_span(cx: &LateContext<'_>) -> Option { function span_has_safety_comment (line 761) | fn span_has_safety_comment(cx: &LateContext<'_>, span: Span, accept_comm... function text_has_safety_comment (line 799) | fn text_has_safety_comment( function is_attribute (line 893) | fn is_attribute(text: &str) -> bool { function span_and_hid_of_item_alike_node (line 897) | fn span_and_hid_of_item_alike_node(node: &Node<'_>) -> Option<(Span, Hir... function is_const_or_static (line 906) | fn is_const_or_static(node: &Node<'_>) -> bool { function block_has_inner_safety_comment (line 922) | fn block_has_inner_safety_comment(cx: &LateContext<'_>, span: Span) -> b... FILE: clippy_lints/src/unicode.rs method check_expr (line 82) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { function escape (line 91) | fn escape>(s: T) -> String { function check_str (line 105) | fn check_str(cx: &LateContext<'_>, span: Span, id: HirId) { FILE: clippy_lints/src/uninhabited_references.rs method check_expr (line 41) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { method check_fn (line 59) | fn check_fn<'tcx>( FILE: clippy_lints/src/uninit_vec.rs method check_block (line 66) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'_>) { function handle_uninit_vec_pair (line 81) | fn handle_uninit_vec_pair<'tcx>( type TargetVec (line 122) | struct TargetVec<'tcx> { function has_capacity (line 129) | pub fn has_capacity(self) -> bool { type VecLocation (line 135) | enum VecLocation<'tcx> { function eq_expr (line 141) | pub fn eq_expr(self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) -> ... function extract_init_or_reserve_target (line 151) | fn extract_init_or_reserve_target<'tcx>(cx: &LateContext<'tcx>, stmt: &'... function is_reserve (line 186) | fn is_reserve(cx: &LateContext<'_>, path: &PathSegment<'_>, self_expr: &... function extract_set_len_self (line 195) | fn extract_set_len_self<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'_>... FILE: clippy_lints/src/unit_return_expecting_ord.rs function get_trait_predicates_for_trait_ids (line 40) | fn get_trait_predicates_for_trait_ids<'tcx>( function get_projection_pred (line 64) | fn get_projection_pred<'tcx>( function get_args_to_check (line 82) | fn get_args_to_check<'tcx>( function check_arg (line 139) | fn check_arg<'tcx>(cx: &LateContext<'tcx>, arg: &'tcx Expr<'tcx>) -> Opt... method check_expr (line 164) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/unit_types/let_unit_value.rs function check (line 17) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, format_args: &FormatAr... type UnitVariableCollector (line 141) | struct UnitVariableCollector<'a, 'tcx> { type VariableUsage (line 150) | enum VariableUsage { function new (line 172) | fn new(cx: &'a LateContext<'tcx>, format_args: &'a FormatArgsStorage, id... function visit_expr (line 187) | fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>) -> Self::Result { function expr_needs_inferred_result (line 238) | fn expr_needs_inferred_result<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Exp... function each_value_source_needs_inference (line 272) | fn each_value_source_needs_inference( function needs_inferred_result_ty (line 288) | fn needs_inferred_result_ty( FILE: clippy_lints/src/unit_types/mod.rs type UnitTypes (line 102) | pub struct UnitTypes { method new (line 107) | pub fn new(format_args: FormatArgsStorage) -> Self { method check_local (line 113) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt... method check_expr (line 117) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx... FILE: clippy_lints/src/unit_types/unit_arg.rs function check (line 15) | pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { function is_questionmark_desugar_marked_call (line 58) | fn is_questionmark_desugar_marked_call(expr: &Expr<'_>) -> bool { function lint_unit_args (line 67) | fn lint_unit_args<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, ... function is_expr_default_nested (line 159) | fn is_expr_default_nested<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr... type MaybeTypeUncertain (line 165) | enum MaybeTypeUncertain<'tcx> { method from (line 171) | fn from(value: MaybeTypeUncertain<'_>) -> Self { function get_expr_snippet (line 179) | fn get_expr_snippet<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>... function get_expr_snippet_with_type_certainty (line 189) | fn get_expr_snippet_with_type_certainty<'tcx>( function is_block_with_no_expr (line 204) | fn is_block_with_no_expr(expr: &Expr<'_>) -> bool { function is_empty_block (line 208) | fn is_empty_block(expr: &Expr<'_>) -> bool { function fmt_stmts_and_call (line 222) | fn fmt_stmts_and_call( FILE: clippy_lints/src/unit_types/unit_cmp.rs function check (line 9) | pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/unit_types/utils.rs function is_unit_literal (line 3) | pub(super) fn is_unit_literal(expr: &Expr<'_>) -> bool { FILE: clippy_lints/src/unnecessary_box_returns.rs type UnnecessaryBoxReturns (line 45) | pub struct UnnecessaryBoxReturns { method new (line 51) | pub fn new(conf: &'static Conf) -> Self { method check_fn_item (line 58) | fn check_fn_item(&self, cx: &LateContext<'_>, decl: &FnDecl<'_>, def_i... method check_trait_item (line 108) | fn check_trait_item(&mut self, cx: &LateContext<'_>, item: &TraitItem<... method check_impl_item (line 115) | fn check_impl_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::... method check_item (line 132) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { FILE: clippy_lints/src/unnecessary_literal_bound.rs function extract_anonymous_ref (line 58) | fn extract_anonymous_ref<'tcx>(hir_ty: &Ty<'tcx>) -> Option<&'tcx Ty<'tc... function is_str_literal (line 70) | fn is_str_literal(expr: &Expr<'_>) -> bool { type FindNonLiteralReturn (line 80) | struct FindNonLiteralReturn; type Result (line 83) | type Result = std::ops::ControlFlow<()>; type NestedFilter (line 84) | type NestedFilter = intravisit::nested_filter::None; method visit_expr (line 86) | fn visit_expr(&mut self, expr: &'hir Expr<'hir>) -> Self::Result { function check_implicit_returns_static_str (line 97) | fn check_implicit_returns_static_str(body: &Body<'_>) -> bool { function check_explicit_returns_static_str (line 108) | fn check_explicit_returns_static_str(expr: &Expr<'_>) -> bool { method check_fn (line 114) | fn check_fn( FILE: clippy_lints/src/unnecessary_map_on_constructor.rs method check_expr (line 40) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx rustc_hir::... FILE: clippy_lints/src/unnecessary_mut_passed.rs method check_expr (line 41) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { function check_arguments (line 77) | fn check_arguments<'tcx>( FILE: clippy_lints/src/unnecessary_owned_empty_strings.rs method check_expr (line 39) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { FILE: clippy_lints/src/unnecessary_self_imports.rs method check_item (line 37) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { FILE: clippy_lints/src/unnecessary_semicolon.rs type UnnecessarySemicolon (line 41) | pub struct UnnecessarySemicolon { method handle_block (line 47) | fn handle_block(&mut self, cx: &LateContext<'_>, block: &Block<'_>, en... method is_last_in_block (line 63) | fn is_last_in_block(&self, stmt: &Stmt<'_>) -> Option { method check_block (line 71) | fn check_block(&mut self, cx: &LateContext<'_>, block: &Block<'_>) { method check_block_post (line 75) | fn check_block_post(&mut self, cx: &LateContext<'_>, block: &Block<'_>) { method check_stmt (line 79) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &Stmt<'tcx>) { FILE: clippy_lints/src/unnecessary_struct_initialization.rs method check_expr (line 52) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function base_is_suitable (line 95) | fn base_is_suitable(cx: &LateContext<'_>, expr: &Expr<'_>, base: &Expr<'... function same_path_in_all_fields (line 121) | fn same_path_in_all_fields<'tcx>( function check_references (line 164) | fn check_references(cx: &LateContext<'_>, expr_a: &Expr<'_>, expr_b: &Ex... function path_matches_base (line 189) | fn path_matches_base(path: &Path<'_>, base: &Expr<'_>) -> bool { function ident_without_range_desugaring (line 204) | fn ident_without_range_desugaring(ident: Ident) -> Ident { FILE: clippy_lints/src/unnecessary_wraps.rs type UnnecessaryWraps (line 65) | pub struct UnnecessaryWraps { method new (line 70) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 78) | fn check_fn( FILE: clippy_lints/src/unneeded_struct_pattern.rs method check_pat (line 44) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &Pat<'_>) { FILE: clippy_lints/src/unnested_or_patterns.rs type UnnestedOrPatterns (line 54) | pub struct UnnestedOrPatterns { method new (line 59) | pub fn new(conf: &'static Conf) -> Self { method check_arm (line 67) | fn check_arm(&mut self, cx: &EarlyContext<'_>, a: &ast::Arm) { method check_expr (line 73) | fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) { method check_param (line 81) | fn check_param(&mut self, cx: &EarlyContext<'_>, p: &ast::Param) { method check_local (line 87) | fn check_local(&mut self, cx: &EarlyContext<'_>, l: &ast::Local) { function lint_unnested_or_patterns (line 96) | fn lint_unnested_or_patterns(cx: &EarlyContext<'_>, pat: &Pat) { function remove_all_parens (line 124) | fn remove_all_parens(pat: &mut Pat) { function insert_necessary_parens (line 147) | fn insert_necessary_parens(pat: &mut Pat) { function unnest_or_patterns (line 173) | fn unnest_or_patterns(pat: &mut Pat) -> bool { function transform_with_focus_on_idx (line 233) | fn transform_with_focus_on_idx(alternatives: &mut ThinVec, focus_id... function extend_with_struct_pat (line 314) | fn extend_with_struct_pat( function extend_with_matching_product (line 361) | fn extend_with_matching_product( function take_pat (line 381) | fn take_pat(from: &mut Pat) -> Pat { function extend_with_tail_or (line 393) | fn extend_with_tail_or(target: &mut Pat, tail_or: ThinVec) -> bool { function drain_matching (line 416) | fn drain_matching( function extend_with_matching (line 438) | fn extend_with_matching( function eq_pre_post (line 449) | fn eq_pre_post(ps1: &[Pat], ps2: &[Pat], idx: usize) -> bool { FILE: clippy_lints/src/unsafe_removed_from_name.rs method check_item (line 33) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { function check_use_tree (line 40) | fn check_use_tree(use_tree: &UseTree, cx: &EarlyContext<'_>, span: Span) { function unsafe_to_safe_check (line 60) | fn unsafe_to_safe_check(old_name: Ident, new_name: Ident, cx: &EarlyCont... function contains_unsafe (line 74) | fn contains_unsafe(name: &str) -> bool { FILE: clippy_lints/src/unused_async.rs type UnusedAsync (line 49) | pub struct UnusedAsync { method check_fn (line 111) | fn check_fn( method check_path (line 146) | fn check_path(&mut self, cx: &LateContext<'tcx>, path: &rustc_hir::Pat... method check_crate_post (line 170) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type UnusedAsyncFn (line 59) | struct UnusedAsyncFn { type AsyncFnVisitor (line 65) | struct AsyncFnVisitor<'a, 'tcx> { type NestedFilter (line 75) | type NestedFilter = nested_filter::OnlyBodies; function visit_expr (line 77) | fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>) { function maybe_tcx (line 105) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function is_default_trait_impl (line 199) | fn is_default_trait_impl(cx: &LateContext<'_>, def_id: LocalDefId) -> bo... function async_fn_contains_todo_unimplemented_macro (line 209) | fn async_fn_contains_todo_unimplemented_macro(cx: &LateContext<'_>, body... FILE: clippy_lints/src/unused_io_amount.rs type IoOp (line 59) | enum IoOp { method check_block (line 86) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx hir::Bloc... function non_consuming_err_arm (line 127) | fn non_consuming_err_arm<'a>(cx: &LateContext<'a>, arm: &hir::Arm<'a>) -... function non_consuming_ok_arm (line 148) | fn non_consuming_ok_arm<'a>(cx: &LateContext<'a>, arm: &hir::Arm<'a>) ->... function check_expr (line 165) | fn check_expr<'a>(cx: &LateContext<'a>, expr: &'a hir::Expr<'a>) { function should_lint (line 193) | fn should_lint<'a>(cx: &LateContext<'a>, mut inner: &'a hir::Expr<'a>) -... function is_ok_wild_or_dotdot_pattern (line 203) | fn is_ok_wild_or_dotdot_pattern<'a>(cx: &LateContext<'a>, pat: &hir::Pat... function is_unreachable_or_panic (line 226) | fn is_unreachable_or_panic(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -... function unpack_call_chain (line 237) | fn unpack_call_chain<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'... function unpack_try (line 259) | fn unpack_try<'a>(cx: &LateContext<'_>, mut expr: &'a hir::Expr<'a>) -> ... function unpack_match (line 269) | fn unpack_match<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> { function unpack_await (line 278) | fn unpack_await<'a>(cx: &LateContext<'_>, expr: &'a hir::Expr<'a>) -> &'... function check_io_mode (line 290) | fn check_io_mode(cx: &LateContext<'_>, call: &hir::Expr<'_>) -> Option, span: Span, at: HirId, op: IoOp, wild... FILE: clippy_lints/src/unused_peekable.rs method check_block (line 49) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &Block<'tcx>) { type PeekableVisitor (line 100) | struct PeekableVisitor<'a, 'tcx> { function new (line 106) | fn new(cx: &'a LateContext<'tcx>, expected_hir_id: HirId) -> Self { type NestedFilter (line 112) | type NestedFilter = OnlyBodies; type Result (line 113) | type Result = ControlFlow<()>; function maybe_tcx (line 115) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function visit_expr (line 119) | fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>) -> ControlFlow<()> { function arg_is_mut_peekable (line 217) | fn arg_is_mut_peekable(cx: &LateContext<'_>, arg: &Expr<'_>) -> bool { FILE: clippy_lints/src/unused_result_ok.rs method check_stmt (line 37) | fn check_stmt(&mut self, cx: &LateContext<'_>, stmt: &Stmt<'_>) { FILE: clippy_lints/src/unused_rounding.rs function is_useless_rounding (line 36) | fn is_useless_rounding(cx: &EarlyContext<'_>, expr: &Expr) -> Option<(Sy... method check_expr (line 56) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { FILE: clippy_lints/src/unused_self.rs type UnusedSelf (line 41) | pub struct UnusedSelf { method new (line 46) | pub fn new(conf: &'static Conf) -> Self { method check_impl_item (line 54) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &Impl... FILE: clippy_lints/src/unused_trait_names.rs type UnusedTraitNames (line 50) | pub struct UnusedTraitNames { method new (line 55) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 61) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... FILE: clippy_lints/src/unused_unit.rs method check_fn (line 45) | fn check_fn( method check_expr (line 85) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { method check_poly_trait_ref (line 102) | fn check_poly_trait_ref(&mut self, cx: &LateContext<'tcx>, poly: &'tcx P... method check_block (line 123) | fn check_block(&mut self, cx: &EarlyContext<'_>, block: &Block) { function is_unit_ty (line 147) | fn is_unit_ty(ty: &Ty<'_>) -> bool { function get_def (line 153) | fn get_def(span: Span) -> Option { function lint_unneeded_unit_return (line 161) | fn lint_unneeded_unit_return(cx: &LateContext<'_>, ty_span: Span, span: ... FILE: clippy_lints/src/unwrap.rs type Unwrap (line 85) | pub(crate) struct Unwrap { method new (line 90) | pub fn new(conf: &'static Conf) -> Self { method check_fn (line 530) | fn check_fn( type UnwrappableVariablesVisitor (line 96) | struct UnwrappableVariablesVisitor<'a, 'tcx> { type UnwrappableKind (line 104) | enum UnwrappableKind { method success_variant_pattern (line 110) | fn success_variant_pattern(self) -> &'static str { method error_variant_pattern (line 117) | fn error_variant_pattern(self) -> &'static str { type Local (line 126) | enum Local { method snippet (line 171) | fn snippet(&self, cx: &LateContext<'_>) -> Cow<'static, str> { method is_potentially_local_place (line 178) | fn is_potentially_local_place(&self, place: &Place<'_>) -> bool { method eq (line 143) | fn eq(&self, other: &Self) -> bool { type UnwrapInfo (line 212) | struct UnwrapInfo<'tcx> { function collect_unwrap_info (line 234) | fn collect_unwrap_info<'tcx>( function extract_local (line 302) | fn extract_local(cx: &LateContext<'_>, mut expr: &Expr<'_>) -> Option { function is_as_mut_use (line 346) | fn is_as_mut_use(tcx: TyCtxt<'_>, expr_id: HirId) -> bool { function borrow (line 357) | fn borrow(&mut self, cat: &PlaceWithHirId<'tcx>, diag_expr_id: HirId, bk... function mutate (line 366) | fn mutate(&mut self, cat: &PlaceWithHirId<'tcx>, _: HirId) { function consume (line 372) | fn consume(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function use_cloned (line 374) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function fake_read (line 376) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _: H... function visit_branch (line 380) | fn visit_branch( type AsRefKind (line 411) | enum AsRefKind { function consume_option_as_ref (line 418) | fn consume_option_as_ref<'tcx>(expr: &'tcx Expr<'tcx>) -> (&'tcx Expr<'t... type NestedFilter (line 431) | type NestedFilter = nested_filter::OnlyBodies; function visit_expr (line 433) | fn visit_expr(&mut self, expr: &'tcx Expr<'_>) { function maybe_tcx (line 524) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints/src/unwrap_in_result.rs type OptionOrResult (line 62) | enum OptionOrResult { method with_article (line 68) | fn with_article(self) -> &'static str { type OptionOrResultFn (line 76) | struct OptionOrResultFn { type UnwrapInResult (line 82) | pub struct UnwrapInResult { method enter_item (line 88) | fn enter_item(&mut self, cx: &LateContext<'_>, fn_def_id: OwnerId, sig... method leave_item (line 96) | fn leave_item(&mut self) { method check_impl_item (line 102) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, impl_item: &'tcx... method check_impl_item_post (line 108) | fn check_impl_item_post(&mut self, _: &LateContext<'tcx>, impl_item: &... method check_item (line 114) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx... method check_item_post (line 123) | fn check_item_post(&mut self, _: &LateContext<'tcx>, item: &'tcx Item<... method check_expr (line 129) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'_>) { method check_body (line 162) | fn check_body(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx>) { method check_body_post (line 171) | fn check_body_post(&mut self, cx: &LateContext<'tcx>, body: &Body<'tcx... function is_option_or_result (line 180) | fn is_option_or_result(cx: &LateContext<'_>, ty: Ty<'_>) -> Option, expr: &Expr<'_>) -> Op... FILE: clippy_lints/src/upper_case_acronyms.rs type UpperCaseAcronyms (line 44) | pub struct UpperCaseAcronyms { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 126) | fn check_item(&mut self, cx: &LateContext<'_>, it: &Item<'_>) { function contains_acronym (line 58) | fn contains_acronym(s: &str) -> bool { function check_ident (line 73) | fn check_ident(cx: &LateContext<'_>, ident: &Ident, hir_id: HirId, be_ag... FILE: clippy_lints/src/use_self.rs type UseSelf (line 61) | pub struct UseSelf { method new (line 68) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 89) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &Item<'tcx>) { method check_item_post (line 133) | fn check_item_post(&mut self, _: &LateContext<'_>, _: &Item<'_>) { method check_impl_item (line 137) | fn check_impl_item(&mut self, cx: &LateContext<'_>, impl_item: &hir::I... method check_impl_item_post (line 198) | fn check_impl_item_post(&mut self, _: &LateContext<'_>, impl_item: &hi... method check_ty (line 206) | fn check_ty(&mut self, cx: &LateContext<'tcx>, hir_ty: &Ty<'tcx, Ambig... method check_expr (line 232) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { method check_pat (line 251) | fn check_pat(&mut self, cx: &LateContext<'_>, pat: &Pat<'_>) { type StackItem (line 78) | enum StackItem { constant SEGMENTS_MSG (line 86) | const SEGMENTS_MSG: &str = "segments should be composed of at least 1 el... type SkipTyCollector (line 267) | struct SkipTyCollector { method visit_infer (line 272) | fn visit_infer(&mut self, inf_id: HirId, _inf_span: Span, kind: InferK... method visit_ty (line 279) | fn visit_ty(&mut self, hir_ty: &Ty<'_, AmbigArg>) { function span_lint (line 286) | fn span_lint(cx: &LateContext<'_>, span: Span) { function check_path (line 298) | fn check_path(cx: &LateContext<'_>, path: &Path<'_>) { function lint_path_to_variant (line 308) | fn lint_path_to_variant(cx: &LateContext<'_>, path: &Path<'_>) { function ty_is_in_generic_args (line 317) | fn ty_is_in_generic_args<'tcx>(cx: &LateContext<'tcx>, hir_ty: &Ty<'tcx,... function ty_contains_ty (line 328) | fn ty_contains_ty<'tcx>(outer: &Ty<'tcx>, inner: &Ty<'tcx, AmbigArg>) ->... function same_lifetimes (line 352) | fn same_lifetimes<'tcx>(a: MiddleTy<'tcx>, b: MiddleTy<'tcx>) -> bool { FILE: clippy_lints/src/useless_concat.rs method check_expr (line 36) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { FILE: clippy_lints/src/useless_conversion.rs type UselessConversion (line 47) | pub struct UselessConversion { method check_expr (line 158) | fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) { method check_expr_post (line 438) | fn check_expr_post(&mut self, _: &LateContext<'tcx>, e: &'tcx Expr<'_>) { type MethodOrFunction (line 52) | enum MethodOrFunction { method param_pos (line 60) | fn param_pos(self, pos: usize) -> usize { function into_iter_bound (line 83) | fn into_iter_bound<'tcx>( function into_iter_call (line 133) | fn into_iter_call<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'hir>) ->... function into_iter_deep_call (line 147) | fn into_iter_deep_call<'hir>(cx: &LateContext<'_>, mut expr: &'hir Expr<... function has_eligible_receiver (line 448) | fn has_eligible_receiver(cx: &LateContext<'_>, recv: &Expr<'_>, expr: &E... function adjustments (line 459) | fn adjustments(cx: &LateContext<'_>, expr: &Expr<'_>) -> String { FILE: clippy_lints/src/useless_vec.rs type UselessVec (line 22) | pub struct UselessVec { method new (line 50) | pub fn new(conf: &'static Conf) -> Self { method expr_usage_requires_vec (line 109) | fn expr_usage_requires_vec(&mut self, cx: &LateContext<'_>, expr: &Exp... method check_expr (line 174) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_crate_post (line 242) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { type VecState (line 89) | enum VecState { type VecToArray (line 98) | enum VecToArray { type SuggestedType (line 267) | pub(crate) enum SuggestedType { method desc (line 275) | fn desc(self) -> &'static str { method snippet (line 282) | fn snippet(self, cx: &LateContext<'_>, args_span: Option, len_sp... function size_of (line 303) | fn size_of(cx: &LateContext<'_>, expr: &Expr<'_>) -> u64 { function adjusts_to_slice (line 308) | fn adjusts_to_slice(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { function suggest_type (line 312) | fn suggest_type(expr: &Expr<'_>) -> SuggestedType { FILE: clippy_lints/src/utils/attr_collector.rs type AttrStorage (line 10) | pub struct AttrStorage(pub Arc>>); type AttrCollector (line 12) | pub struct AttrCollector { method new (line 18) | pub fn new(storage: AttrStorage) -> Self { method check_attribute (line 29) | fn check_attribute(&mut self, _cx: &EarlyContext<'_>, attr: &Attribute) { method check_crate_post (line 33) | fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate) { FILE: clippy_lints/src/utils/author.rs method check_item (line 103) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'... method check_impl_item (line 107) | fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::I... method check_trait_item (line 111) | fn check_trait_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::... method check_arm (line 115) | fn check_arm(&mut self, cx: &LateContext<'tcx>, arm: &'tcx hir::Arm<'_>) { method check_expr (line 121) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... method check_stmt (line 127) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx hir::Stmt<'... function check_item (line 138) | fn check_item(cx: &LateContext<'_>, hir_id: HirId) { function check_node (line 146) | fn check_node(cx: &LateContext<'_>, hir_id: HirId, f: impl Fn(&PrintVisi... function paths_static_name (line 155) | fn paths_static_name(cx: &LateContext<'_>, id: DefId) -> String { type Binding (line 164) | struct Binding { method fmt (line 170) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { type OptionPat (line 175) | struct OptionPat { function new (line 180) | fn new(opt: Option) -> Self { function if_some (line 184) | fn if_some(&self, f: impl Fn(&T)) { method fmt (line 192) | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { type PrintVisitor (line 200) | struct PrintVisitor<'a, 'tcx> { function new (line 210) | fn new(cx: &'a LateContext<'tcx>) -> Self { function next (line 218) | fn next(&self, s: &'static str) -> String { function bind (line 230) | fn bind(&self, name: &'static str, value: T) -> Binding { function option (line 235) | fn option(&self, option: &Binding>, name: &'static st... function slice (line 246) | fn slice(&self, slice: &Binding<&[T]>, f: impl Fn(&Binding<&T>)) { function destination (line 258) | fn destination(&self, destination: &Binding) { function ident (line 264) | fn ident(&self, ident: &Binding) { function symbol (line 268) | fn symbol(&self, symbol: &Binding) { function qpath (line 272) | fn qpath(&self, qpath: &Binding<&QPath<'_>>, hir_id_binding: &str, hir_i... function maybe_path (line 293) | fn maybe_path<'p>(&self, path: &Binding>) { function const_arg (line 311) | fn const_arg(&self, const_arg: &Binding<&ConstArg<'_>>) { function lit (line 332) | fn lit(&self, lit: &Binding) { function arm (line 404) | fn arm(&self, arm: &Binding<&hir::Arm<'_>>) { function expr (line 418) | fn expr(&self, expr: &Binding<&hir::Expr<'_>>) { function block (line 705) | fn block(&self, block: &Binding<&hir::Block<'_>>) { function body (line 712) | fn body(&self, body_id: &Binding) { function pat_expr (line 719) | fn pat_expr(&self, lit: &Binding<&hir::PatExpr<'_>>, pat: &Binding<&hir:... function pat (line 735) | fn pat(&self, pat: &Binding<&hir::Pat<'_>>) { function stmt (line 834) | fn stmt(&self, stmt: &Binding<&hir::Stmt<'_>>) { function has_attr (line 864) | fn has_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool { FILE: clippy_lints/src/utils/dump_hir.rs method check_item (line 26) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'... method check_expr (line 32) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... method check_stmt (line 38) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx hir::Stmt<'... method check_trait_item (line 48) | fn check_trait_item(&mut self, cx: &LateContext<'_>, item: &TraitItem<'_... method check_impl_item (line 54) | fn check_impl_item(&mut self, cx: &LateContext<'_>, item: &hir::ImplItem... function has_attr (line 61) | fn has_attr(cx: &LateContext<'_>, hir_id: hir::HirId) -> bool { FILE: clippy_lints/src/utils/format_args_collector.rs type FormatArgsCollector (line 14) | pub struct FormatArgsCollector { method new (line 20) | pub fn new(storage: FormatArgsStorage) -> Self { method check_expr (line 31) | fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) { method check_crate_post (line 41) | fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate) { function has_span_from_proc_macro (line 65) | fn has_span_from_proc_macro(cx: &EarlyContext<'_>, args: &FormatArgs) ->... FILE: clippy_lints/src/vec_init_then_push.rs type VecInitThenPush (line 50) | pub struct VecInitThenPush { method check_block (line 154) | fn check_block(&mut self, _: &LateContext<'tcx>, _: &'tcx Block<'tcx>) { method check_local (line 158) | fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx LetStmt... method check_expr (line 178) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { method check_stmt (line 201) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_block_post (line 220) | fn check_block_post(&mut self, cx: &LateContext<'tcx>, _: &'tcx Block<... type VecPushSearcher (line 54) | struct VecPushSearcher { method display_err (line 65) | fn display_err(&self, cx: &LateContext<'_>) { FILE: clippy_lints/src/visibility.rs method check_item (line 87) | fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) { function is_from_proc_macro (line 154) | fn is_from_proc_macro(cx: &EarlyContext<'_>, span: Span) -> bool { FILE: clippy_lints/src/volatile_composites.rs function is_zero_sized_ty (line 66) | fn is_zero_sized_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_narrow_ptr (line 71) | fn is_narrow_ptr<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_enum_repr_c (line 79) | fn is_enum_repr_c<'tcx>(_cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_struct_repr_transparent (line 87) | fn is_struct_repr_transparent<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>... function is_simd_repr (line 108) | fn is_simd_repr<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_volatile_safe_ty (line 121) | fn is_volatile_safe_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bo... function report_volatile_safe (line 133) | fn report_volatile_safe<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>,... method check_expr (line 145) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &Expr<'tcx>) { FILE: clippy_lints/src/wildcard_imports.rs type WildcardImports (line 105) | pub struct WildcardImports { method new (line 111) | pub fn new(conf: &'static Conf) -> Self { method check_item (line 120) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { method check_exceptions (line 185) | fn check_exceptions(&self, cx: &LateContext<'_>, item: &Item<'_>, segm... function is_prelude_import (line 195) | fn is_prelude_import(segments: &[PathSegment<'_>]) -> bool { function is_super_only_import (line 200) | fn is_super_only_import(segments: &[PathSegment<'_>]) -> bool { function is_allowed_via_config (line 206) | fn is_allowed_via_config(segments: &[PathSegment<'_>], allowed_segments:... FILE: clippy_lints/src/write/empty_string.rs function check (line 11) | pub(super) fn check(cx: &LateContext<'_>, format_args: &FormatArgs, macr... FILE: clippy_lints/src/write/literal.rs function check (line 16) | pub(super) fn check(cx: &LateContext<'_>, format_args: &FormatArgs, name... function format_arg_piece_span (line 131) | fn format_arg_piece_span(piece: &FormatArgsPiece) -> Option<(Span, usize... function relocalize_format_args_indexes (line 143) | fn relocalize_format_args_indexes( function extract_str_literal (line 198) | fn extract_str_literal(literal: &str) -> Option<(String, bool)> { type UnescapeErr (line 207) | enum UnescapeErr { function conservative_unescape (line 223) | fn conservative_unescape(literal: &str) -> Result { function escape_braces (line 246) | fn escape_braces(literal: &str, preserve_unicode_escapes: bool) -> String { FILE: clippy_lints/src/write/mod.rs type Write (line 250) | pub struct Write { method new (line 258) | pub fn new(conf: &'static Conf, format_args: FormatArgsStorage) -> Self { method in_debug_impl (line 266) | fn in_debug_impl(&self) -> bool { method check_item (line 272) | fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) { method check_item_post (line 279) | fn check_item_post(&mut self, _cx: &LateContext<'_>, item: &Item<'_>) { method check_expr (line 286) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function is_debug_impl (line 343) | fn is_debug_impl(cx: &LateContext<'_>, item: &Item<'_>) -> bool { FILE: clippy_lints/src/write/use_debug.rs function check (line 7) | pub(super) fn check(cx: &LateContext<'_>, format_args: &FormatArgs) { FILE: clippy_lints/src/write/with_newline.rs function check (line 12) | pub(super) fn check(cx: &LateContext<'_>, format_args: &FormatArgs, macr... FILE: clippy_lints/src/zero_div_zero.rs method check_expr (line 32) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { FILE: clippy_lints/src/zero_repeat_side_effects.rs method check_expr (line 48) | fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { function inner_check (line 73) | fn inner_check(cx: &LateContext<'_>, expr: &'_ Expr<'_>, inner_expr: &'_... function let_stmt_suggestion (line 139) | fn let_stmt_suggestion( function assign_expr_suggestion (line 154) | fn assign_expr_suggestion( FILE: clippy_lints/src/zero_sized_map_values.rs method check_ty (line 47) | fn check_ty<'tcx>(&mut self, cx: &LateContext<'tcx>, hir_ty: &hir::Ty<'t... function in_trait_impl (line 78) | fn in_trait_impl(cx: &LateContext<'_>, hir_id: HirId) -> bool { FILE: clippy_lints/src/zombie_processes.rs method check_expr (line 61) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { type MaybeWait (line 121) | struct MaybeWait(Span); type WaitFinder (line 134) | struct WaitFinder<'a, 'tcx> { type VisitorState (line 147) | enum VisitorState { type MissingWaitBranch (line 153) | enum MissingWaitBranch { type NestedFilter (line 159) | type NestedFilter = nested_filter::OnlyBodies; type Result (line 160) | type Result = ControlFlow; function visit_expr (line 162) | fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>) -> Self::Result { function maybe_tcx (line 253) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { type Cause (line 259) | enum Cause { method message (line 272) | fn message(self) -> &'static str { method fallback_help (line 281) | fn fallback_help(self) -> &'static str { function check (line 298) | fn check<'tcx>(cx: &LateContext<'tcx>, spawn_expr: &'tcx Expr<'tcx>, cau... function is_exit_expression (line 355) | fn is_exit_expression(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { type ExitPointState (line 367) | enum ExitPointState { function expr_enters_control_flow (line 398) | fn expr_enters_control_flow(expr: &Expr<'_>) -> bool { type ExitPointFinder (line 402) | struct ExitPointFinder<'a, 'tcx> { type ExitCallFound (line 407) | struct ExitCallFound; type Result (line 410) | type Result = ControlFlow; function visit_expr (line 412) | fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> Self::Result { FILE: clippy_lints_internal/src/almost_standard_lint_formulation.rs type AlmostStandardFormulation (line 27) | pub struct AlmostStandardFormulation { method new (line 38) | pub fn new() -> Self { method check_item (line 48) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { type StandardFormulations (line 32) | struct StandardFormulations<'a> { function doc_attr (line 84) | fn doc_attr(attr: &Attribute) -> Option<(Symbol, Span)> { FILE: clippy_lints_internal/src/collapsible_span_lint_calls.rs method check_expr (line 78) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { type AndThenSnippets (line 134) | struct AndThenSnippets { function get_and_then_snippets (line 141) | fn get_and_then_snippets( type SpanSuggestionSnippets (line 163) | struct SpanSuggestionSnippets { function span_suggestion_snippets (line 169) | fn span_suggestion_snippets<'hir>( function suggest_suggestion (line 187) | fn suggest_suggestion( function suggest_help (line 214) | fn suggest_help( function suggest_note (line 242) | fn suggest_note( FILE: clippy_lints_internal/src/derive_deserialize_allowing_unknown.rs method check_item (line 55) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { function has_variant_with_named_fields (line 129) | fn has_variant_with_named_fields(tcx: TyCtxt<'_>, def_id: LocalDefId) ->... function find_serde_attr_item (line 139) | fn find_serde_attr_item(tcx: TyCtxt<'_>, hir_id: HirId) -> Option<&Token... function is_deny_unknown_fields_token (line 158) | fn is_deny_unknown_fields_token(tt: &TokenTree) -> bool { FILE: clippy_lints_internal/src/lib.rs function register_lints (line 65) | pub fn register_lints(store: &mut LintStore) { FILE: clippy_lints_internal/src/lint_without_lint_pass.rs type LintWithoutLintPass (line 94) | pub struct LintWithoutLintPass { method check_item (line 107) | fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) { method check_crate_post (line 173) | fn check_crate_post(&mut self, cx: &LateContext<'tcx>) { function is_lint_ref_type (line 200) | pub(super) fn is_lint_ref_type(cx: &LateContext<'_>, ty: &hir::Ty<'_>) -... function check_invalid_clippy_version_attribute (line 217) | fn check_invalid_clippy_version_attribute(cx: &LateContext<'_>, item: &'... function extract_clippy_version_value (line 247) | pub(super) fn extract_clippy_version_value(cx: &LateContext<'_>, item: &... type LintCollector (line 264) | struct LintCollector<'a, 'tcx> { type NestedFilter (line 270) | type NestedFilter = nested_filter::All; function visit_path (line 272) | fn visit_path(&mut self, path: &Path<'_>, _: HirId) { function maybe_tcx (line 278) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { FILE: clippy_lints_internal/src/msrv_attr_impl.rs method check_item (line 23) | fn check_item(&mut self, cx: &LateContext<'_>, item: &hir::Item<'_>) { FILE: clippy_lints_internal/src/outer_expn_data_pass.rs method check_expr (line 36) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'... FILE: clippy_lints_internal/src/produce_ice.rs method check_fn (line 28) | fn check_fn(&mut self, cx: &EarlyContext<'_>, fn_kind: FnKind<'_>, span:... function is_trigger_fn (line 37) | fn is_trigger_fn(fn_kind: FnKind<'_>) -> bool { FILE: clippy_lints_internal/src/repeated_is_diagnostic_item.rs constant NOTE (line 121) | const NOTE: &str = "each call performs the same compiler query -- it's f... method check_block (line 125) | fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'_>) { method check_expr (line 248) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function check_ors (line 266) | fn check_ors(cx: &LateContext<'_>, span: Span, left: &Expr<'_>, right: &... function check_ands (line 330) | fn check_ands(cx: &LateContext<'_>, span: Span, left: &Expr<'_>, right: ... function check_if_chains (line 394) | fn check_if_chains<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, conds:... function extract_is_diag_item (line 498) | fn extract_is_diag_item<'tcx>( function extract_is_diagnostic_item (line 514) | fn extract_is_diagnostic_item<'tcx>( function extract_nested_is_diag_item (line 533) | fn extract_nested_is_diag_item<'tcx>( function extract_nested_is_diagnostic_item (line 546) | fn extract_nested_is_diagnostic_item<'tcx>( FILE: clippy_lints_internal/src/symbols.rs type Symbols (line 60) | pub struct Symbols { method lit_suggestion (line 68) | fn lit_suggestion(&self, lit: Lit) -> Option<(Span, String)> { method expr_suggestion (line 81) | fn expr_suggestion(&self, expr: &Expr<'_>) -> Option<(Span, String)> { method pat_suggestions (line 89) | fn pat_suggestions(&self, pat: &Pat<'_>, suggestions: &mut Vec<(Span, ... method check_crate (line 101) | fn check_crate(&mut self, cx: &LateContext<'_>) { method check_expr (line 129) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function as_str_span (line 197) | fn as_str_span(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option { FILE: clippy_lints_internal/src/unnecessary_def_path.rs method check_expr (line 41) | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { function get_lang_item_name (line 99) | fn get_lang_item_name(cx: &LateContext<'_>, def_id: DefId) -> Option<&'s... FILE: clippy_lints_internal/src/unsorted_clippy_utils_paths.rs method check_crate (line 25) | fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &Crate) { FILE: clippy_lints_internal/src/unusual_names.rs constant USUAL_NAMES (line 36) | const USUAL_NAMES: [(&PathLookup, &str, &[Symbol]); 4] = [ method check_stmt (line 48) | fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx Stmt<'_>) { method check_fn (line 56) | fn check_fn( function check_pat_name_for_ty (line 78) | fn check_pat_name_for_ty(cx: &LateContext<'_>, pat: &Pat<'_>, ty: Ty<'_>... FILE: clippy_test_deps/src/main.rs function main (line 1) | fn main() {} FILE: clippy_utils/src/ast_utils/ident_iter.rs type IdentIter (line 6) | pub struct IdentIter(std::vec::IntoIter); method from (line 19) | fn from(expr: &Expr) -> Self { method from (line 29) | fn from(attr: &Attribute) -> Self { type Item (line 9) | type Item = Ident; method next (line 11) | fn next(&mut self) -> Option { type IdentCollector (line 39) | struct IdentCollector(Vec); method visit_ident (line 42) | fn visit_ident(&mut self, ident: &Ident) { FILE: clippy_utils/src/ast_utils/mod.rs function is_useless_with_eq_exprs (line 15) | pub fn is_useless_with_eq_exprs(kind: BinOpKind) -> bool { function unordered_over (line 24) | pub fn unordered_over(left: &[X], right: &[Y], mut eq_fn: impl FnM... function eq_id (line 28) | pub fn eq_id(l: Ident, r: Ident) -> bool { function eq_pat (line 32) | pub fn eq_pat(l: &Pat, r: &Pat) -> bool { function eq_range_end (line 67) | pub fn eq_range_end(l: RangeEnd, r: RangeEnd) -> bool { function eq_field_pat (line 77) | pub fn eq_field_pat(l: &PatField, r: &PatField) -> bool { function eq_qself (line 84) | pub fn eq_qself(l: &QSelf, r: &QSelf) -> bool { function eq_maybe_qself (line 88) | pub fn eq_maybe_qself(l: Option<&QSelf>, r: Option<&QSelf>) -> bool { function eq_path (line 96) | pub fn eq_path(l: &Path, r: &Path) -> bool { function eq_path_seg (line 100) | pub fn eq_path_seg(l: &PathSegment, r: &PathSegment) -> bool { function eq_generic_args (line 104) | pub fn eq_generic_args(l: &GenericArgs, r: &GenericArgs) -> bool { function eq_angle_arg (line 114) | pub fn eq_angle_arg(l: &AngleBracketedArg, r: &AngleBracketedArg) -> bool { function eq_generic_arg (line 122) | pub fn eq_generic_arg(l: &GenericArg, r: &GenericArg) -> bool { function eq_expr_opt (line 131) | pub fn eq_expr_opt(l: Option<&Expr>, r: Option<&Expr>) -> bool { function eq_struct_rest (line 135) | pub fn eq_struct_rest(l: &StructRest, r: &StructRest) -> bool { function eq_expr (line 144) | pub fn eq_expr(l: &Expr, r: &Expr) -> bool { function eq_coroutine_kind (line 259) | fn eq_coroutine_kind(a: Option, b: Option)... function eq_field (line 272) | pub fn eq_field(l: &ExprField, r: &ExprField) -> bool { function eq_arm (line 279) | pub fn eq_arm(l: &Arm, r: &Arm) -> bool { function eq_label (line 287) | pub fn eq_label(l: Option<&Label>, r: Option<&Label>) -> bool { function eq_block (line 291) | pub fn eq_block(l: &Block, r: &Block) -> bool { function eq_stmt (line 295) | pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool { function eq_local_kind (line 314) | pub fn eq_local_kind(l: &LocalKind, r: &LocalKind) -> bool { function eq_item (line 324) | pub fn eq_item(l: &Item, r: &Item, mut eq_kind: impl FnMut(&K, ... function eq_item_kind (line 329) | pub fn eq_item_kind(l: &ItemKind, r: &ItemKind) -> bool { function eq_foreign_item_kind (line 532) | pub fn eq_foreign_item_kind(l: &ForeignItemKind, r: &ForeignItemKind) ->... function eq_assoc_item_kind (line 612) | pub fn eq_assoc_item_kind(l: &AssocItemKind, r: &AssocItemKind) -> bool { function eq_variant (line 698) | pub fn eq_variant(l: &Variant, r: &Variant) -> bool { function eq_variant_data (line 709) | pub fn eq_variant_data(l: &VariantData, r: &VariantData) -> bool { function eq_struct_field (line 720) | pub fn eq_struct_field(l: &FieldDef, r: &FieldDef) -> bool { function eq_fn_sig (line 728) | pub fn eq_fn_sig(l: &FnSig, r: &FnSig) -> bool { function eq_opt_coroutine_kind (line 732) | fn eq_opt_coroutine_kind(l: Option, r: Option bool { function eq_opt_fn_contract (line 753) | pub fn eq_opt_fn_contract(l: &Option>, r: &Option bool { function eq_where_predicate (line 771) | pub fn eq_where_predicate(l: &WherePredicate, r: &WherePredicate) -> bool { function eq_use_tree (line 789) | pub fn eq_use_tree(l: &UseTree, r: &UseTree) -> bool { function eq_anon_const (line 793) | pub fn eq_anon_const(l: &AnonConst, r: &AnonConst) -> bool { function eq_const_item_rhs (line 797) | pub fn eq_const_item_rhs(l: &ConstItemRhsKind, r: &ConstItemRhsKind) -> ... function eq_use_tree_kind (line 812) | pub fn eq_use_tree_kind(l: &UseTreeKind, r: &UseTreeKind) -> bool { function eq_defaultness (line 822) | pub fn eq_defaultness(l: Defaultness, r: Defaultness) -> bool { function eq_vis (line 831) | pub fn eq_vis(l: &Visibility, r: &Visibility) -> bool { function eq_impl_restriction (line 840) | pub fn eq_impl_restriction(l: &ImplRestriction, r: &ImplRestriction) -> ... function eq_restriction_kind (line 844) | fn eq_restriction_kind(l: &RestrictionKind, r: &RestrictionKind) -> bool { function eq_fn_decl (line 863) | pub fn eq_fn_decl(l: &FnDecl, r: &FnDecl) -> bool { function eq_closure_binder (line 873) | pub fn eq_closure_binder(l: &ClosureBinder, r: &ClosureBinder) -> bool { function eq_fn_ret_ty (line 883) | pub fn eq_fn_ret_ty(l: &FnRetTy, r: &FnRetTy) -> bool { function eq_ty (line 891) | pub fn eq_ty(l: &Ty, r: &Ty) -> bool { function eq_ext (line 923) | pub fn eq_ext(l: &Extern, r: &Extern) -> bool { function eq_str_lit (line 932) | pub fn eq_str_lit(l: &StrLit, r: &StrLit) -> bool { function eq_poly_ref_trait (line 936) | pub fn eq_poly_ref_trait(l: &PolyTraitRef, r: &PolyTraitRef) -> bool { function eq_generic_param (line 944) | pub fn eq_generic_param(l: &GenericParam, r: &GenericParam) -> bool { function eq_generic_bound (line 969) | pub fn eq_generic_bound(l: &GenericBound, r: &GenericBound) -> bool { function eq_precise_capture (line 978) | pub fn eq_precise_capture(l: &PreciseCapturingArg, r: &PreciseCapturingA... function eq_term (line 986) | fn eq_term(l: &Term, r: &Term) -> bool { function eq_assoc_item_constraint (line 994) | pub fn eq_assoc_item_constraint(l: &AssocItemConstraint, r: &AssocItemCo... function eq_mac_call (line 1004) | pub fn eq_mac_call(l: &MacCall, r: &MacCall) -> bool { function eq_attr (line 1008) | pub fn eq_attr(l: &Attribute, r: &Attribute) -> bool { function eq_attr_item_kind (line 1020) | pub fn eq_attr_item_kind(l: &AttrItemKind, r: &AttrItemKind) -> bool { function eq_attr_args (line 1028) | pub fn eq_attr_args(l: &AttrArgs, r: &AttrArgs) -> bool { function eq_delim_args (line 1038) | pub fn eq_delim_args(l: &DelimArgs, r: &DelimArgs) -> bool { FILE: clippy_utils/src/attrs.rs function get_builtin_attr (line 16) | pub fn get_builtin_attr<'a, A: AttributeExt + 'a>( function get_unique_builtin_attr (line 68) | pub fn get_unique_builtin_attr<'a, A: AttributeExt>(sess: &'a Session, a... function is_proc_macro (line 85) | pub fn is_proc_macro(attrs: &[impl AttributeExt]) -> bool { function is_doc_hidden (line 90) | pub fn is_doc_hidden(attrs: &[impl AttributeExt]) -> bool { function has_non_exhaustive_attr (line 95) | pub fn has_non_exhaustive_attr(tcx: TyCtxt<'_>, adt: AdtDef<'_>) -> bool { function span_contains_cfg (line 107) | pub fn span_contains_cfg(cx: &LateContext<'_>, s: Span) -> bool { type LimitStack (line 130) | pub struct LimitStack { method new (line 145) | pub fn new(limit: u64) -> Self { method limit (line 151) | pub fn limit(&self) -> u64 { method push_attrs (line 154) | pub fn push_attrs(&mut self, sess: &Session, attrs: &[impl AttributeEx... method pop_attrs (line 158) | pub fn pop_attrs(&mut self, sess: &Session, attrs: &[impl AttributeExt... method drop (line 136) | fn drop(&mut self) { function parse_attrs (line 167) | fn parse_attrs(sess: &Session, attrs: &[impl AttributeExt... FILE: clippy_utils/src/check_proc_macro.rs type Pat (line 37) | pub enum Pat { function span_matches_pat (line 54) | fn span_matches_pat(sess: &Session, span: Span, start_pat: Pat, end_pat:... function lit_search_pat (line 89) | fn lit_search_pat(lit: &LitKind) -> (Pat, Pat) { function qpath_search_pat (line 110) | fn qpath_search_pat(path: &QPath<'_>) -> (Pat, Pat) { function path_search_pat (line 137) | fn path_search_pat(path: &Path<'_>) -> (Pat, Pat) { function expr_search_pat (line 156) | fn expr_search_pat(tcx: TyCtxt<'_>, e: &Expr<'_>) -> (Pat, Pat) { function fn_header_search_pat (line 242) | fn fn_header_search_pat(header: FnHeader) -> Pat { function item_search_pat (line 256) | fn item_search_pat(item: &Item<'_>) -> (Pat, Pat) { function trait_item_search_pat (line 294) | fn trait_item_search_pat(item: &TraitItem<'_>) -> (Pat, Pat) { function impl_item_search_pat (line 302) | fn impl_item_search_pat(item: &ImplItem<'_>) -> (Pat, Pat) { function field_def_search_pat (line 316) | fn field_def_search_pat(def: &FieldDef<'_>) -> (Pat, Pat) { function variant_search_pat (line 328) | fn variant_search_pat(v: &Variant<'_>) -> (Pat, Pat) { function fn_kind_pat (line 336) | fn fn_kind_pat(tcx: TyCtxt<'_>, kind: &FnKind<'_>, body: &Body<'_>, hir_... function attr_search_pat (line 358) | fn attr_search_pat(attr: &Attribute) -> (Pat, Pat) { function ty_search_pat (line 385) | fn ty_search_pat(ty: &Ty<'_>) -> (Pat, Pat) { function ast_ty_search_pat (line 427) | fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) { function trait_ref_search_pat (line 547) | fn trait_ref_search_pat(trait_ref: &TraitRef<'_>) -> (Pat, Pat) { function poly_trait_ref_search_pat (line 551) | fn poly_trait_ref_search_pat(poly_trait_ref: &PolyTraitRef<'_>) -> (Pat,... function ident_search_pat (line 583) | fn ident_search_pat(ident: Ident) -> (Pat, Pat) { type WithSearchPat (line 587) | pub trait WithSearchPat<'cx> { method search_pat (line 589) | fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat); method span (line 590) | fn span(&self) -> Span; type Context (line 621) | type Context = LateContext<'cx>; function search_pat (line 623) | fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat) { function span (line 627) | fn span(&self) -> Span { function is_from_proc_macro (line 636) | pub fn is_from_proc_macro<'cx, T: WithSearchPat<'cx>>(cx: &T::Context, i... function is_span_match (line 642) | pub fn is_span_match(cx: &impl LintContext, span: Span) -> bool { function is_span_if (line 647) | pub fn is_span_if(cx: &impl LintContext, span: Span) -> bool { FILE: clippy_utils/src/comparisons.rs type Rel (line 9) | pub enum Rel { function normalize_comparison (line 22) | pub fn normalize_comparison<'a>( FILE: clippy_utils/src/consts.rs type Constant (line 34) | pub enum Constant { method partial_cmp (line 209) | pub fn partial_cmp(tcx: TyCtxt<'_>, cmp_type: Ty<'_>, left: &Self, rig... method int_value (line 267) | pub fn int_value(&self, tcx: TyCtxt<'_>, val_type: Ty<'_>) -> Option Self { method parse_f16 (line 287) | fn parse_f16(s: &str) -> Self { method parse_f128 (line 292) | fn parse_f128(s: &str) -> Self { method new_numeric_min (line 297) | pub fn new_numeric_min<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Optio... method new_numeric_max (line 318) | pub fn new_numeric_max<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Optio... method is_numeric_min (line 346) | pub fn is_numeric_min<'tcx>(&self, tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) ->... method is_numeric_max (line 367) | pub fn is_numeric_max<'tcx>(&self, tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) ->... method is_pos_infinity (line 398) | pub fn is_pos_infinity(&self) -> bool { method is_neg_infinity (line 407) | pub fn is_neg_infinity(&self) -> bool { type IntTypeBounds (line 70) | trait IntTypeBounds: Sized { method min_max (line 73) | fn min_max(self) -> Option<(Self::Output, Self::Output)>; method bits (line 74) | fn bits(self) -> Self::Output; method ensure_fits (line 75) | fn ensure_fits(self, val: Self::Output) -> Option { type Output (line 81) | type Output = u128; method min_max (line 82) | fn min_max(self) -> Option<(Self::Output, Self::Output)> { method bits (line 92) | fn bits(self) -> Self::Output { type Output (line 104) | type Output = i128; method min_max (line 105) | fn min_max(self) -> Option<(Self::Output, Self::Output)> { method bits (line 115) | fn bits(self) -> Self::Output { method eq (line 128) | fn eq(&self, other: &Self) -> bool { method hash (line 153) | fn hash(&self, state: &mut H) function lit_to_mir_constant (line 418) | pub fn lit_to_mir_constant(lit: &LitKind, ty: Option>) -> Constant { type ConstantSource (line 446) | pub enum ConstantSource { method is_local (line 454) | pub fn is_local(self) -> bool { type FullInt (line 460) | pub enum FullInt { method eq (line 466) | fn eq(&self, other: &Self) -> bool { method partial_cmp (line 472) | fn partial_cmp(&self, other: &Self) -> Option { method cmp (line 478) | fn cmp(&self, other: &Self) -> Ordering { type ConstEvalCtxt (line 499) | pub struct ConstEvalCtxt<'tcx> { function new (line 510) | pub fn new(cx: &LateContext<'tcx>) -> Self { function with_env (line 521) | pub fn with_env(tcx: TyCtxt<'tcx>, typing_env: ty::TypingEnv<'tcx>, type... function eval_with_source (line 533) | pub fn eval_with_source(&self, e: &Expr<'_>, ctxt: SyntaxContext) -> Opt... function eval (line 540) | pub fn eval(&self, e: &Expr<'_>) -> Option { function eval_local (line 550) | pub fn eval_local(&self, e: &Expr<'_>, ctxt: SyntaxContext) -> Option, ctxt: SyntaxContext) -> Option... function eval_pat_expr (line 570) | pub fn eval_pat_expr(&self, pat_expr: &PatExpr<'_>) -> Option { function check_ctxt (line 585) | fn check_ctxt(&self, ctxt: SyntaxContext) { function qpath (line 591) | fn qpath(&self, qpath: &QPath<'_>, hir_id: HirId) -> Option { function expr (line 597) | fn expr(&self, e: &Expr<'_>) -> Option { function eval_is_empty (line 671) | pub fn eval_is_empty(&self, e: &Expr<'_>) -> Option { function constant_not (line 699) | fn constant_not(&self, o: &Constant, ty: Ty<'_>) -> Option { function constant_negate (line 715) | fn constant_negate(&self, o: &Constant, ty: Ty<'_>) -> Option { function multi (line 741) | fn multi(&self, vec: &[Expr<'_>]) -> Option> { function fetch_path (line 747) | fn fetch_path(&self, qpath: &QPath<'_>, id: HirId) -> Option { function index (line 872) | fn index(&self, lhs: &'_ Expr<'_>, index: &'_ Expr<'_>) -> Option) -> Option { function ifthenelse (line 935) | fn ifthenelse(&self, cond: &Expr<'_>, then: &Expr<'_>, otherwise: Option... function binop (line 947) | fn binop(&self, op: BinOpKind, left: &Expr<'_>, right: &Expr<'_>) -> Opt... function mir_to_const (line 1062) | pub fn mir_to_const<'tcx>(tcx: TyCtxt<'tcx>, val: ConstValue, ty: Ty<'tc... function field_of_struct (line 1103) | fn field_of_struct<'tcx>( function integer_const (line 1127) | pub fn integer_const(cx: &LateContext<'_>, expr: &Expr<'_>, ctxt: Syntax... function is_zero_integer_const (line 1142) | pub fn is_zero_integer_const(cx: &LateContext<'_>, expr: &Expr<'_>, ctxt... function const_item_rhs_to_expr (line 1146) | pub fn const_item_rhs_to_expr<'tcx>(tcx: TyCtxt<'tcx>, ct_rhs: ConstItem... FILE: clippy_utils/src/diagnostics.rs function docs_link (line 19) | fn docs_link(diag: &mut Diag<'_, ()>, lint: &'static Lint) { function validate_diag (line 46) | fn validate_diag(diag: &Diag<'_, impl EmissionGuarantee>) { function span_lint (line 106) | pub fn span_lint(cx: &T, lint: &'static Lint, sp: impl I... function span_lint_and_help (line 145) | pub fn span_lint_and_help( function span_lint_and_note (line 200) | pub fn span_lint_and_note( function span_lint_and_then (line 236) | pub fn span_lint_and_then(cx: &C, lint: &'static Lint, sp: S... function span_lint_hir (line 279) | pub fn span_lint_hir(cx: &LateContext<'_>, lint: &'static Lint, hir_id: ... function span_lint_hir_and_then (line 308) | pub fn span_lint_hir_and_then( function span_lint_and_sugg (line 361) | pub fn span_lint_and_sugg( FILE: clippy_utils/src/eager_or_lazy.rs type EagernessSuggestion (line 27) | enum EagernessSuggestion { type Output (line 39) | type Output = Self; method bitor (line 40) | fn bitor(self, rhs: Self) -> Self { method bitor_assign (line 45) | fn bitor_assign(&mut self, rhs: Self) { function fn_eagerness (line 51) | fn fn_eagerness(cx: &LateContext<'_>, fn_id: DefId, name: Symbol, have_o... function res_has_significant_drop (line 101) | fn res_has_significant_drop(res: Res, cx: &LateContext<'_>, e: &Expr<'_>... function expr_eagerness (line 115) | fn expr_eagerness<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) -> Ea... function switch_to_eager_eval (line 327) | pub fn switch_to_eager_eval<'tcx>(cx: &'_ LateContext<'tcx>, expr: &'tcx... function switch_to_lazy_eval (line 332) | pub fn switch_to_lazy_eval<'tcx>(cx: &'_ LateContext<'tcx>, expr: &'tcx ... FILE: clippy_utils/src/higher.rs type ForLoop (line 18) | pub struct ForLoop<'tcx> { function hir (line 35) | pub fn hir(expr: &Expr<'tcx>) -> Option { type If (line 59) | pub struct If<'hir> { function hir (line 71) | pub const fn hir(expr: &Expr<'hir>) -> Option { type IfLet (line 83) | pub struct IfLet<'hir> { function hir (line 99) | pub fn hir(cx: &LateContext<'_>, expr: &Expr<'hir>) -> Option { type IfLetOrMatch (line 142) | pub enum IfLetOrMatch<'hir> { function parse (line 159) | pub fn parse(cx: &LateContext<'_>, expr: &Expr<'hir>) -> Option { function scrutinee (line 174) | pub fn scrutinee(&self) -> &'hir Expr<'hir> { type IfOrIfLet (line 182) | pub struct IfOrIfLet<'hir> { function hir (line 194) | pub const fn hir(expr: &Expr<'hir>) -> Option { type Range (line 205) | pub struct Range<'a> { function hir (line 218) | pub fn hir(cx: &LateContext<'_>, expr: &'a Expr<'_>) -> Option> { type VecArgs (line 278) | pub enum VecArgs<'a> { function hir (line 288) | pub fn hir(cx: &LateContext<'_>, expr: &'a Expr<'_>) -> Option { function hir (line 330) | pub const fn hir(expr: &Expr<'hir>) -> Option { type WhileLet (line 358) | pub struct WhileLet<'hir> { function hir (line 374) | pub const fn hir(expr: &Expr<'hir>) -> Option { function binop (line 417) | pub fn binop(op: hir::BinOpKind) -> ast::BinOpKind { type VecInitKind (line 442) | pub enum VecInitKind { function get_vec_init_kind (line 454) | pub fn get_vec_init_kind<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<... function has_let_expr (line 486) | pub const fn has_let_expr<'tcx>(cond: &'tcx Expr<'tcx>) -> bool { FILE: clippy_utils/src/hir_utils.rs type SpanlessEqCallback (line 29) | type SpanlessEqCallback<'a, 'tcx> = type PathCheck (line 34) | pub enum PathCheck { type SpanlessEq (line 58) | pub struct SpanlessEq<'a, 'tcx> { function new (line 68) | pub fn new(cx: &'a LateContext<'tcx>) -> Self { function deny_side_effects (line 80) | pub fn deny_side_effects(self) -> Self { function paths_by_resolution (line 90) | pub fn paths_by_resolution(self) -> Self { function expr_fallback (line 98) | pub fn expr_fallback( function inter_expr (line 110) | pub fn inter_expr(&mut self) -> HirEqInterExpr<'_, 'a, 'tcx> { function eq_block (line 120) | pub fn eq_block(&mut self, left: &Block<'_>, right: &Block<'_>) -> bool { function eq_expr (line 124) | pub fn eq_expr(&mut self, left: &Expr<'_>, right: &Expr<'_>) -> bool { function eq_path (line 128) | pub fn eq_path(&mut self, left: &Path<'_>, right: &Path<'_>) -> bool { function eq_path_segment (line 132) | pub fn eq_path_segment(&mut self, left: &PathSegment<'_>, right: &PathSe... function eq_path_segments (line 136) | pub fn eq_path_segments(&mut self, left: &[PathSegment<'_>], right: &[Pa... function eq_modifiers (line 140) | pub fn eq_modifiers(left: TraitBoundModifiers, right: TraitBoundModifier... type HirEqInterExpr (line 146) | pub struct HirEqInterExpr<'a, 'b, 'tcx> { function eq_stmt (line 159) | pub fn eq_stmt(&mut self, left: &Stmt<'_>, right: &Stmt<'_>) -> bool { function eq_item (line 185) | pub fn eq_item(&mut self, l: ItemId, r: ItemId) -> bool { function eq_fn_sig (line 245) | fn eq_fn_sig(&mut self, left: &FnSig<'_>, right: &FnSig<'_>) -> bool { function eq_fn_decl (line 253) | fn eq_fn_decl(&mut self, left: &FnDecl<'_>, right: &FnDecl<'_>) -> bool { function eq_generics (line 265) | fn eq_generics(&mut self, left: &Generics<'_>, right: &Generics<'_>) -> ... function eq_generics_predicate (line 270) | fn eq_generics_predicate(&mut self, left: &[WherePredicate<'_>], right: ... function eq_generics_bound (line 289) | fn eq_generics_bound(&mut self, left: GenericBounds<'_>, right: GenericB... function eq_generics_param (line 314) | fn eq_generics_param(&mut self, left: &[GenericParam<'_>], right: &[Gene... function eq_generics_param_kind (line 331) | fn eq_generics_param_kind(&mut self, left: &GenericParamKind<'_>, right:... function eq_block (line 368) | fn eq_block(&mut self, left: &Block<'_>, right: &Block<'_>) -> bool { function should_ignore (line 453) | fn should_ignore(&self, expr: &Expr<'_>) -> bool { function eq_body (line 462) | pub fn eq_body(&mut self, left: BodyId, right: BodyId) -> bool { function eq_expr (line 477) | pub fn eq_expr(&mut self, left: &Expr<'_>, right: &Expr<'_>) -> bool { function eq_exprs (line 657) | fn eq_exprs(&mut self, left: &[Expr<'_>], right: &[Expr<'_>]) -> bool { function eq_expr_field (line 661) | fn eq_expr_field(&mut self, left: &ExprField<'_>, right: &ExprField<'_>)... function eq_generic_arg (line 665) | fn eq_generic_arg(&mut self, left: &GenericArg<'_>, right: &GenericArg<'... function eq_const_arg (line 675) | fn eq_const_arg(&mut self, left: &ConstArg<'_>, right: &ConstArg<'_>) ->... function eq_lifetime (line 735) | fn eq_lifetime(left: &Lifetime, right: &Lifetime) -> bool { function eq_pat_field (line 739) | fn eq_pat_field(&mut self, left: &PatField<'_>, right: &PatField<'_>) ->... function eq_pat_expr (line 744) | fn eq_pat_expr(&mut self, left: &PatExpr<'_>, right: &PatExpr<'_>) -> bo... function eq_pat (line 762) | fn eq_pat(&mut self, left: &Pat<'_>, right: &Pat<'_>) -> bool { function eq_qpath (line 796) | fn eq_qpath(&mut self, left: &QPath<'_>, right: &QPath<'_>) -> bool { function eq_path (line 808) | pub fn eq_path(&mut self, left: &Path<'_>, right: &Path<'_>) -> bool { function eq_path_parameters (line 827) | fn eq_path_parameters(&mut self, left: &GenericArgs<'_>, right: &Generic... function eq_path_segments (line 836) | pub fn eq_path_segments<'tcx>( function eq_path_segment (line 854) | pub fn eq_path_segment(&mut self, left: &PathSegment<'_>, right: &PathSe... function eq_ty (line 871) | pub fn eq_ty(&mut self, left: &Ty<'_>, right: &Ty<'_>) -> bool { function eq_assoc_eq_constraint (line 888) | fn eq_assoc_eq_constraint(&mut self, left: &AssocItemConstraint<'_>, rig... function check_ctxt (line 895) | fn check_ctxt(&mut self, left: SyntaxContext, right: SyntaxContext) -> b... function swap_binop (line 937) | fn swap_binop<'a>( function reduce_exprkind (line 973) | fn reduce_exprkind<'hir>(cx: &LateContext<'_>, kind: &'hir ExprKind<'hir... function both (line 1017) | pub fn both(l: Option<&X>, r: Option<&X>, mut eq_fn: impl FnMut(&X, &... function both_some_and (line 1023) | pub fn both_some_and(l: Option, r: Option, mut pred: impl Fn... function over (line 1028) | pub fn over(left: &[X], right: &[Y], mut eq_fn: impl FnMut(&X, &Y)... function count_eq (line 1033) | pub fn count_eq( function eq_expr_value (line 1042) | pub fn eq_expr_value(cx: &LateContext<'_>, left: &Expr<'_>, right: &Expr... function generic_path_segments (line 1049) | fn generic_path_segments<'tcx>(segments: &'tcx [PathSegment<'tcx>]) -> O... type SpanlessHash (line 1066) | pub struct SpanlessHash<'a, 'tcx> { function new (line 1075) | pub fn new(cx: &'a LateContext<'tcx>) -> Self { function paths_by_resolution (line 1087) | pub fn paths_by_resolution(self) -> Self { function finish (line 1094) | pub fn finish(self) -> u64 { function hash_block (line 1098) | pub fn hash_block(&mut self, b: &Block<'_>) { function hash_expr (line 1111) | pub fn hash_expr(&mut self, e: &Expr<'_>) { function hash_exprs (line 1343) | pub fn hash_exprs(&mut self, e: &[Expr<'_>]) { function hash_name (line 1349) | pub fn hash_name(&mut self, n: Symbol) { function hash_qpath (line 1353) | pub fn hash_qpath(&mut self, p: &QPath<'_>) { function hash_pat_expr (line 1365) | pub fn hash_pat_expr(&mut self, lit: &PatExpr<'_>) { function hash_ty_pat (line 1376) | pub fn hash_ty_pat(&mut self, pat: &TyPat<'_>) { function hash_pat (line 1392) | pub fn hash_pat(&mut self, pat: &Pat<'_>) { function hash_path (line 1468) | pub fn hash_path(&mut self, path: &Path<'_>) { function hash_modifiers (line 1493) | pub fn hash_modifiers(&mut self, modifiers: TraitBoundModifiers) { function hash_stmt (line 1499) | pub fn hash_stmt(&mut self, b: &Stmt<'_>) { function hash_lifetime (line 1519) | pub fn hash_lifetime(&mut self, lifetime: &Lifetime) { function hash_ty (line 1527) | pub fn hash_ty(&mut self, ty: &Ty<'_>) { function hash_tykind (line 1532) | pub fn hash_tykind(&mut self, ty: &TyKind<'_>) { function hash_body (line 1597) | pub fn hash_body(&mut self, body_id: BodyId) { function hash_const_arg (line 1604) | fn hash_const_arg(&mut self, const_arg: &ConstArg<'_>) { function hash_generic_args (line 1638) | fn hash_generic_args(&mut self, arg_list: &[GenericArg<'_>]) { function hash_stmt (line 1650) | pub fn hash_stmt(cx: &LateContext<'_>, s: &Stmt<'_>) -> u64 { function is_bool (line 1656) | pub fn is_bool(ty: &Ty<'_>) -> bool { function hash_expr (line 1664) | pub fn hash_expr(cx: &LateContext<'_>, e: &Expr<'_>) -> u64 { function eq_span_tokens (line 1670) | fn eq_span_tokens( function has_ambiguous_literal_in_expr (line 1698) | pub fn has_ambiguous_literal_in_expr(cx: &LateContext<'_>, expr: &Expr<'... FILE: clippy_utils/src/lib.rs constant VEC_METHODS_SHADOWING_SLICE_METHODS (line 133) | pub const VEC_METHODS_SHADOWING_SLICE_METHODS: [Symbol; 3] = [sym::as_pt... function expr_or_init (line 172) | pub fn expr_or_init<'a, 'b, 'tcx: 'b>(cx: &LateContext<'tcx>, mut expr: ... function find_binding_init (line 191) | pub fn find_binding_init<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) ->... function local_is_initialized (line 204) | pub fn local_is_initialized(cx: &LateContext<'_>, local: HirId) -> bool { function is_in_const_context (line 226) | pub fn is_in_const_context(cx: &LateContext<'_>) -> bool { function is_inside_always_const_context (line 241) | pub fn is_inside_always_const_context(tcx: TyCtxt<'_>, hir_id: HirId) ->... function is_enum_variant_ctor (line 253) | pub fn is_enum_variant_ctor( function is_diagnostic_item_or_ctor (line 271) | pub fn is_diagnostic_item_or_ctor(cx: &LateContext<'_>, did: DefId, item... function is_lang_item_or_ctor (line 286) | pub fn is_lang_item_or_ctor(cx: &LateContext<'_>, did: DefId, item: Lang... function is_none_expr (line 301) | pub fn is_none_expr(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function as_some_expr (line 306) | pub fn as_some_expr<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'tcx>) ... function is_unit_expr (line 317) | pub fn is_unit_expr(expr: &Expr<'_>) -> bool { function is_wild (line 332) | pub fn is_wild(pat: &Pat<'_>) -> bool { function as_some_pattern (line 342) | pub fn as_some_pattern<'a, 'hir>(cx: &LateContext<'_>, pat: &'a Pat<'hir... function is_none_pattern (line 356) | pub fn is_none_pattern(cx: &LateContext<'_>, pat: &Pat<'_>) -> bool { function is_none_arm (line 363) | pub fn is_none_arm(cx: &LateContext<'_>, arm: &Arm<'_>) -> bool { function is_ty_alias (line 373) | pub fn is_ty_alias(qpath: &QPath<'_>) -> bool { function is_def_id_trait_method (line 382) | pub fn is_def_id_trait_method(cx: &LateContext<'_>, def_id: LocalDefId) ... function last_path_segment (line 392) | pub fn last_path_segment<'tcx>(path: &QPath<'tcx>) -> &'tcx PathSegment<... function qpath_generic_tys (line 399) | pub fn qpath_generic_tys<'tcx>(qpath: &QPath<'tcx>) -> impl Iterator) -> Option { function trait_ref_of_method (line 442) | pub fn trait_ref_of_method<'tcx>(cx: &LateContext<'tcx>, owner: OwnerId)... function projection_stack (line 459) | fn projection_stack<'a, 'hir>(mut e: &'a Expr<'hir>) -> (Vec<&'a Expr<'h... function expr_custom_deref_adjustment (line 475) | pub fn expr_custom_deref_adjustment(cx: &LateContext<'_>, e: &Expr<'_>) ... function can_mut_borrow_both (line 489) | pub fn can_mut_borrow_both(cx: &LateContext<'_>, e1: &Expr<'_>, e2: &Exp... function is_default_equivalent_ctor (line 523) | fn is_default_equivalent_ctor(cx: &LateContext<'_>, def_id: DefId, path:... function is_default_equivalent_call (line 547) | pub fn is_default_equivalent_call( function is_default_equivalent (line 642) | pub fn is_default_equivalent(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { function is_default_equivalent_from (line 674) | fn is_default_equivalent_from(cx: &LateContext<'_>, from_func: &Expr<'_>... function can_move_expr_to_closure_no_visit (line 729) | pub fn can_move_expr_to_closure_no_visit<'tcx>( type CaptureKind (line 773) | pub enum CaptureKind { method is_imm_ref (line 779) | pub fn is_imm_ref(self) -> bool { type Output (line 784) | type Output = Self; method bitor (line 785) | fn bitor(self, rhs: Self) -> Self::Output { method bitor_assign (line 796) | fn bitor_assign(&mut self, rhs: Self) { function capture_local_usage (line 806) | pub fn capture_local_usage(cx: &LateContext<'_>, e: &Expr<'_>) -> Captur... function can_move_expr_to_closure (line 904) | pub fn can_move_expr_to_closure<'tcx>(cx: &LateContext<'tcx>, expr: &'tc... type MethodArguments (line 986) | pub type MethodArguments<'tcx> = Vec<(&'tcx Expr<'tcx>, &'tcx [Expr<'tcx... function method_calls (line 990) | pub fn method_calls<'tcx>(expr: &'tcx Expr<'tcx>, max_depth: usize) -> (... function method_chain_args (line 1019) | pub fn method_chain_args<'a>(expr: &'a Expr<'_>, methods: &[Symbol]) -> ... function is_entrypoint_fn (line 1044) | pub fn is_entrypoint_fn(cx: &LateContext<'_>, def_id: DefId) -> bool { function is_in_panic_handler (line 1051) | pub fn is_in_panic_handler(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { function parent_item_name (line 1057) | pub fn parent_item_name(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option... type ContainsName (line 1066) | pub struct ContainsName<'a, 'tcx> { type Result (line 1072) | type Result = ControlFlow<()>; type NestedFilter (line 1073) | type NestedFilter = nested_filter::OnlyBodies; function visit_name (line 1075) | fn visit_name(&mut self, name: Symbol) -> Self::Result { function maybe_tcx (line 1083) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function contains_name (line 1089) | pub fn contains_name<'tcx>(name: Symbol, expr: &'tcx Expr<'_>, cx: &Late... function contains_return (line 1095) | pub fn contains_return<'tcx>(expr: impl Visitable<'tcx>) -> bool { function get_parent_expr (line 1107) | pub fn get_parent_expr<'tcx>(cx: &LateContext<'tcx>, e: &Expr<'_>) -> Op... function get_parent_expr_for_hir (line 1113) | pub fn get_parent_expr_for_hir<'tcx>(cx: &LateContext<'tcx>, hir_id: Hir... function get_enclosing_block (line 1121) | pub fn get_enclosing_block<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) ... function get_enclosing_closure (line 1148) | pub fn get_enclosing_closure<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId... function is_upvar_in_closure (line 1161) | pub fn is_upvar_in_closure(cx: &LateContext<'_>, closure: &Closure<'_>, ... function get_enclosing_loop_or_multi_call_closure (line 1169) | pub fn get_enclosing_loop_or_multi_call_closure<'tcx>( function get_parent_as_impl (line 1192) | pub fn get_parent_as_impl(tcx: TyCtxt<'_>, id: HirId) -> Option<&Impl<'_... function peel_blocks (line 1215) | pub fn peel_blocks<'a>(mut expr: &'a Expr<'a>) -> &'a Expr<'a> { function peel_blocks_with_stmt (line 1241) | pub fn peel_blocks_with_stmt<'a>(mut expr: &'a Expr<'a>) -> &'a Expr<'a> { function is_else_clause (line 1270) | pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool { function is_inside_let_else (line 1286) | pub fn is_inside_let_else(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool { function is_else_clause_in_let_else (line 1306) | pub fn is_else_clause_in_let_else(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> b... function is_range_full (line 1335) | pub fn is_range_full(cx: &LateContext<'_>, expr: &Expr<'_>, container_pa... function is_integer_const (line 1378) | pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128)... function is_integer_literal (line 1392) | pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> bool { function is_integer_literal_untyped (line 1403) | pub fn is_integer_literal_untyped(expr: &Expr<'_>) -> bool { function is_float_literal (line 1414) | pub fn is_float_literal(expr: &Expr<'_>, value: f64) -> bool { function is_adjusted (line 1431) | pub fn is_adjusted(cx: &LateContext<'_>, e: &Expr<'_>) -> bool { function is_expn_of (line 1439) | pub fn is_expn_of(mut span: Span, name: Symbol) -> Option { function is_direct_expn_of (line 1469) | pub fn is_direct_expn_of(span: Span, name: Symbol) -> Option { function return_ty (line 1485) | pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_def_id: OwnerId) -> Ty... function nth_arg (line 1491) | pub fn nth_arg<'tcx>(cx: &LateContext<'tcx>, fn_def_id: OwnerId, nth: us... function is_ctor_or_promotable_const_function (line 1497) | pub fn is_ctor_or_promotable_const_function(cx: &LateContext<'_>, expr: ... function is_refutable (line 1513) | pub fn is_refutable(cx: &LateContext<'_>, pat: &Pat<'_>) -> bool { function recurse_or_patterns (line 1565) | pub fn recurse_or_patterns<'tcx, F: FnMut(&'tcx Pat<'tcx>)>(pat: &'tcx P... function is_self (line 1573) | pub fn is_self(slf: &Param<'_>) -> bool { function is_self_ty (line 1581) | pub fn is_self_ty(slf: &hir::Ty<'_>) -> bool { function iter_input_pats (line 1590) | pub fn iter_input_pats<'tcx>(decl: &FnDecl<'_>, body: &'tcx Body<'_>) ->... function is_try (line 1596) | pub fn is_try<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'tcx>) -> Opt... function fulfill_or_allowed (line 1649) | pub fn fulfill_or_allowed(cx: &LateContext<'_>, lint: &'static Lint, ids... function is_lint_allowed (line 1674) | pub fn is_lint_allowed(cx: &LateContext<'_>, lint: &'static Lint, id: Hi... function strip_pat_refs (line 1678) | pub fn strip_pat_refs<'hir>(mut pat: &'hir Pat<'hir>) -> &'hir Pat<'hir> { function int_bits (line 1685) | pub fn int_bits(tcx: TyCtxt<'_>, ity: IntTy) -> u64 { function sext (line 1691) | pub fn sext(tcx: TyCtxt<'_>, u: u128, ity: IntTy) -> i128 { function unsext (line 1698) | pub fn unsext(tcx: TyCtxt<'_>, u: i128, ity: IntTy) -> u128 { function clip (line 1704) | pub fn clip(tcx: TyCtxt<'_>, u: u128, ity: UintTy) -> u128 { function has_attr (line 1710) | pub fn has_attr(attrs: &[hir::Attribute], symbol: Symbol) -> bool { function has_repr_attr (line 1714) | pub fn has_repr_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool { function any_parent_has_attr (line 1718) | pub fn any_parent_has_attr(tcx: TyCtxt<'_>, node: HirId, symbol: Symbol)... function in_automatically_derived (line 1734) | pub fn in_automatically_derived(tcx: TyCtxt<'_>, id: HirId) -> bool { function match_libc_symbol (line 1746) | pub fn match_libc_symbol(cx: &LateContext<'_>, did: DefId, name: Symbol)... function if_sequence (line 1756) | pub fn if_sequence<'tcx>(mut expr: &'tcx Expr<'tcx>) -> (Vec<&'tcx Expr<... function get_async_closure_expr (line 1786) | pub fn get_async_closure_expr<'tcx>(tcx: TyCtxt<'tcx>, expr: &Expr<'_>) ... function get_async_fn_body (line 1811) | pub fn get_async_fn_body<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'_>) -> Op... function is_must_use_func_call (line 1816) | pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> b... function is_body_identity_function (line 1847) | fn is_body_identity_function<'hir>(cx: &LateContext<'_>, func: &Body<'hi... function is_expr_identity_of_pat (line 1940) | pub fn is_expr_identity_of_pat(cx: &LateContext<'_>, pat: &Pat<'_>, expr... function is_expr_untyped_identity_function (line 2003) | pub fn is_expr_untyped_identity_function(cx: &LateContext<'_>, expr: &Ex... function is_expr_identity_function (line 2028) | pub fn is_expr_identity_function(cx: &LateContext<'_>, expr: &Expr<'_>) ... function get_expr_use_or_unification_node (line 2037) | pub fn get_expr_use_or_unification_node<'tcx>(tcx: TyCtxt<'tcx>, expr: &... function is_expr_used_or_unified (line 2057) | pub fn is_expr_used_or_unified(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool { function is_expr_final_block_expr (line 2079) | pub fn is_expr_final_block_expr(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool { function is_expr_temporary_value (line 2086) | pub fn is_expr_temporary_value(cx: &LateContext<'_>, expr: &Expr<'_>) ->... function std_or_core (line 2095) | pub fn std_or_core(cx: &LateContext<'_>) -> Option<&'static str> { function is_no_std_crate (line 2105) | pub fn is_no_std_crate(cx: &LateContext<'_>) -> bool { function is_no_core_crate (line 2109) | pub fn is_no_core_crate(cx: &LateContext<'_>) -> bool { function is_trait_impl_item (line 2122) | pub fn is_trait_impl_item(cx: &LateContext<'_>, hir_id: HirId) -> bool { function fn_has_unsatisfiable_preds (line 2139) | pub fn fn_has_unsatisfiable_preds(cx: &LateContext<'_>, did: DefId) -> b... function fn_def_id (line 2151) | pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option { function fn_def_id_with_node_args (line 2157) | pub fn fn_def_id_with_node_args<'tcx>( function is_slice_of_primitives (line 2193) | pub fn is_slice_of_primitives(cx: &LateContext<'_>, expr: &Expr<'_>) -> ... function search_same (line 2233) | pub fn search_same(exprs: &[T], mut hash: Hash, mut eq: Eq)... function peel_hir_pat_refs (line 2270) | pub fn peel_hir_pat_refs<'a>(pat: &'a Pat<'a>) -> (&'a Pat<'a>, usize) { function peel_hir_expr_while (line 2282) | pub fn peel_hir_expr_while<'tcx>( function peel_n_hir_expr_refs (line 2294) | pub fn peel_n_hir_expr_refs<'a>(expr: &'a Expr<'a>, count: usize) -> (&'... function peel_hir_expr_unary (line 2308) | pub fn peel_hir_expr_unary<'a>(expr: &'a Expr<'a>) -> (&'a Expr<'a>, usi... function peel_hir_expr_refs (line 2320) | pub fn peel_hir_expr_refs<'a>(expr: &'a Expr<'a>) -> (&'a Expr<'a>, usiz... function peel_hir_ty_refs (line 2334) | pub fn peel_hir_ty_refs<'a>(mut ty: &'a hir::Ty<'a>) -> (&'a hir::Ty<'a>... function peel_hir_ty_refs_and_ptrs (line 2348) | pub fn peel_hir_ty_refs_and_ptrs<'tcx>(ty: &'tcx hir::Ty<'tcx>) -> &'tcx... function peel_ref_operators (line 2357) | pub fn peel_ref_operators<'hir>(cx: &LateContext<'_>, mut expr: &'hir Ex... function get_ref_operators (line 2370) | pub fn get_ref_operators<'hir>(cx: &LateContext<'_>, expr: &'hir Expr<'h... function is_hir_ty_cfg_dependant (line 2386) | pub fn is_hir_ty_cfg_dependant(cx: &LateContext<'_>, ty: &hir::Ty<'_>) -... function with_test_item_names (line 2400) | fn with_test_item_names(tcx: TyCtxt<'_>, module: LocalModDefId, f: impl ... function is_in_test_function (line 2429) | pub fn is_in_test_function(tcx: TyCtxt<'_>, id: HirId) -> bool { function is_test_function (line 2455) | pub fn is_test_function(tcx: TyCtxt<'_>, fn_def_id: LocalDefId) -> bool { function is_cfg_test (line 2472) | pub fn is_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> bool { function is_in_cfg_test (line 2485) | pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> bool { function is_in_test (line 2490) | pub fn is_in_test(tcx: TyCtxt<'_>, hir_id: HirId) -> bool { function inherits_cfg (line 2495) | pub fn inherits_cfg(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool { function walk_to_expr_usage (line 2514) | pub fn walk_to_expr_usage<'tcx, T>( type DefinedTy (line 2554) | pub enum DefinedTy<'tcx> { type ExprUseCtxt (line 2571) | pub struct ExprUseCtxt<'tcx> { function use_node (line 2586) | pub fn use_node(&self, cx: &LateContext<'tcx>) -> ExprUseNode<'tcx> { type ExprUseNode (line 2650) | pub enum ExprUseNode<'tcx> { function is_return (line 2673) | pub fn is_return(&self) -> bool { function is_recv (line 2678) | pub fn is_recv(&self) -> bool { function defined_ty (line 2683) | pub fn defined_ty(&self, cx: &LateContext<'tcx>) -> Option(cx: &LateContext<'tcx>, e: &Expr<'tcx>) -> Ex... function tokenize_with_text (line 2802) | pub fn tokenize_with_text(s: &str) -> impl Iterator... function span_extract_comments (line 2849) | pub fn span_extract_comments(cx: &impl source::HasSession, span: Span) -... function span_find_starting_semi (line 2859) | pub fn span_find_starting_semi(sm: &SourceMap, span: Span) -> Span { function pat_and_expr_can_be_question_mark (line 2887) | pub fn pat_and_expr_can_be_question_mark<'a, 'hir>( function pat_is_wild (line 2941) | pub fn pat_is_wild<'tcx>(cx: &LateContext<'tcx>, pat: &'tcx PatKind<'_>,... type RequiresSemi (line 2952) | pub enum RequiresSemi { method requires_semi (line 2957) | pub fn requires_semi(self) -> bool { function is_never_expr (line 2965) | pub fn is_never_expr<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) ->... function get_path_from_caller_to_method_type (line 3201) | pub fn get_path_from_caller_to_method_type<'tcx>( function get_path_to_ty (line 3218) | fn get_path_to_ty<'tcx>(tcx: TyCtxt<'tcx>, from: LocalDefId, ty: Ty<'tcx... function get_path_to_callee (line 3234) | fn get_path_to_callee(tcx: TyCtxt<'_>, from: LocalDefId, callee: DefId) ... function maybe_get_relative_path (line 3257) | fn maybe_get_relative_path(from: &DefPath, to: &DefPath, max_super: usiz... function is_parent_stmt (line 3326) | pub fn is_parent_stmt(cx: &LateContext<'_>, id: HirId) -> bool { function is_block_like (line 3335) | pub fn is_block_like(expr: &Expr<'_>) -> bool { function binary_expr_needs_parentheses (line 3343) | pub fn binary_expr_needs_parentheses(expr: &Expr<'_>) -> bool { function is_receiver_of_method_call (line 3356) | pub fn is_receiver_of_method_call(cx: &LateContext<'_>, expr: &Expr<'_>)... function leaks_droppable_temporary_with_limited_lifetime (line 3368) | pub fn leaks_droppable_temporary_with_limited_lifetime<'tcx>(cx: &LateCo... function expr_requires_coercion (line 3393) | pub fn expr_requires_coercion<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<... function is_mutable (line 3475) | pub fn is_mutable(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { function peel_hir_ty_options (line 3496) | pub fn peel_hir_ty_options<'tcx>(cx: &LateContext<'tcx>, mut hir_ty: &'t... function desugar_await (line 3514) | pub fn desugar_await<'tcx>(expr: &'tcx Expr<'_>) -> Option<&'tcx Expr<'t... function is_expr_default (line 3530) | pub fn is_expr_default<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'t... function potential_return_of_enclosing_body (line 3557) | pub fn potential_return_of_enclosing_body(cx: &LateContext<'_>, expr: &E... function expr_adjustment_requires_coercion (line 3604) | pub fn expr_adjustment_requires_coercion(cx: &LateContext<'_>, expr: &Ex... function is_expr_async_block (line 3616) | pub fn is_expr_async_block(expr: &Expr<'_>) -> bool { function can_use_if_let_chains (line 3630) | pub fn can_use_if_let_chains(cx: &LateContext<'_>, msrv: Msrv) -> bool { FILE: clippy_utils/src/macros.rs constant FORMAT_MACRO_DIAG_ITEMS (line 18) | const FORMAT_MACRO_DIAG_ITEMS: &[Symbol] = &[ function is_format_macro (line 40) | pub fn is_format_macro(cx: &LateContext<'_>, macro_def_id: DefId) -> bool { type MacroCall (line 63) | pub struct MacroCall { method is_local (line 75) | pub fn is_local(&self) -> bool { function expn_backtrace (line 81) | pub fn expn_backtrace(mut span: Span) -> impl Iterator bool { function expn_is_local (line 100) | pub fn expn_is_local(expn: ExpnId) -> bool { function macro_backtrace (line 114) | pub fn macro_backtrace(span: Span) -> impl Iterator { function root_macro_call (line 136) | pub fn root_macro_call(span: Span) -> Option { function matching_root_macro_call (line 143) | pub fn matching_root_macro_call(cx: &LateContext<'_>, span: Span, name: ... function root_macro_call_first_node (line 149) | pub fn root_macro_call_first_node(cx: &LateContext<'_>, node: &impl HirN... function first_node_macro_backtrace (line 158) | pub fn first_node_macro_backtrace(cx: &LateContext<'_>, node: &impl HirN... function first_node_in_macro (line 181) | pub fn first_node_in_macro(cx: &LateContext<'_>, node: &impl HirNode) ->... function is_panic (line 216) | pub fn is_panic(cx: &LateContext<'_>, def_id: DefId) -> bool { function is_assert_macro (line 231) | pub fn is_assert_macro(cx: &LateContext<'_>, def_id: DefId) -> bool { type PanicCall (line 242) | pub enum PanicCall<'a> { function parse (line 262) | pub fn parse(expr: &'a Expr<'a>) -> Option { function is_default_message (line 309) | pub fn is_default_message(&self) -> bool { function find_assert_args (line 315) | pub fn find_assert_args<'a>( function find_assert_eq_args (line 325) | pub fn find_assert_eq_args<'a>( function find_assert_args_inner (line 333) | fn find_assert_args_inner<'a, const N: usize>( function find_assert_within_debug_assert (line 361) | fn find_assert_within_debug_assert<'a>( function is_assert_arg (line 382) | fn is_assert_arg(cx: &LateContext<'_>, expr: &Expr<'_>, assert_expn: Exp... type FormatArgsStorage (line 407) | pub struct FormatArgsStorage(Arc>>); method get (line 414) | pub fn get(&self, cx: &LateContext<'_>, start: &Expr<'_>, expn_id: Exp... method set (line 437) | pub fn set(&self, format_args: FxHashMap) { function find_format_arg_expr (line 445) | pub fn find_format_arg_expr<'hir>(start: &'hir Expr<'hir>, target: &Form... function format_placeholder_format_span (line 471) | pub fn format_placeholder_format_span(placeholder: &FormatPlaceholder) -... function format_args_inputs_span (line 490) | pub fn format_args_inputs_span(format_args: &FormatArgs) -> Span { function format_arg_removal_span (line 506) | pub fn format_arg_removal_span(format_args: &FormatArgs, index: usize) -... type FormatParamUsage (line 522) | pub enum FormatParamUsage { type HirNode (line 532) | pub trait HirNode { method hir_id (line 533) | fn hir_id(&self) -> HirId; method span (line 534) | fn span(&self) -> Span; method hir_id (line 553) | fn hir_id(&self) -> HirId { method span (line 557) | fn span(&self) -> Span { FILE: clippy_utils/src/mir/mod.rs type LocalUsage (line 20) | pub struct LocalUsage { function visit_local_usage (line 27) | pub fn visit_local_usage( type V (line 61) | struct V<'a, const N: usize> { function visit_place (line 68) | fn visit_place(&mut self, place: &Place<'tcx>, ctx: PlaceContext, loc: L... function block_in_cycle (line 96) | pub fn block_in_cycle(body: &Body<'_>, block: BasicBlock) -> bool { function used_exactly_once (line 120) | pub fn used_exactly_once(mir: &Body<'_>, local: Local) -> Option { function enclosing_mir (line 144) | pub fn enclosing_mir(tcx: TyCtxt<'_>, hir_id: HirId) -> Option<&Body<'_>> { function expr_local (line 155) | pub fn expr_local(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> Option { function local_assignments (line 168) | pub fn local_assignments(mir: &Body<'_>, local: Local) -> Vec { function is_local_assignment (line 183) | fn is_local_assignment(mir: &Body<'_>, local: Local, location: Location)... FILE: clippy_utils/src/mir/possible_borrower.rs type PossibleBorrowerVisitor (line 18) | struct PossibleBorrowerVisitor<'a, 'b, 'tcx> { function new (line 26) | fn new( function into_map (line 39) | fn into_map( function visit_assign (line 67) | fn visit_assign(&mut self, place: &mir::Place<'tcx>, rvalue: &mir::Rvalu... function visit_terminator (line 89) | fn visit_terminator(&mut self, terminator: &mir::Terminator<'_>, _loc: m... type ContainsRegion (line 139) | struct ContainsRegion; type Result (line 142) | type Result = ControlFlow<()>; method visit_region (line 144) | fn visit_region(&mut self, _: ty::Region<'_>) -> Self::Result { function rvalue_locals (line 149) | fn rvalue_locals(rvalue: &mir::Rvalue<'_>, mut visit: impl FnMut(mir::Lo... type PossibleBorrowerMap (line 169) | pub struct PossibleBorrowerMap<'b, 'tcx> { function new (line 178) | pub fn new(cx: &LateContext<'tcx>, mir: &'b mir::Body<'tcx>) -> Self { function only_borrowers (line 194) | pub fn only_borrowers(&mut self, borrowers: &[mir::Local], borrowed: mir... function bounded_borrowers (line 200) | pub fn bounded_borrowers( function local_is_alive_at (line 235) | pub fn local_is_alive_at(&mut self, local: mir::Local, at: mir::Location... FILE: clippy_utils/src/mir/possible_origin.rs type PossibleOriginVisitor (line 11) | pub(super) struct PossibleOriginVisitor<'a, 'tcx> { function new (line 17) | pub fn new(body: &'a mir::Body<'tcx>) -> Self { function into_map (line 24) | pub fn into_map(self, cx: &LateContext<'tcx>) -> FxHashMap, rvalue: &mir::Rvalu... FILE: clippy_utils/src/mir/transitive_relation.rs type TransitiveRelation (line 6) | pub(super) struct TransitiveRelation { method add (line 11) | pub fn add(&mut self, a: mir::Local, b: mir::Local) { method reachable_from (line 15) | pub fn reachable_from(&self, a: mir::Local, domain_size: usize) -> Den... FILE: clippy_utils/src/msrvs.rs type Msrv (line 99) | pub struct Msrv(Option); method deserialize (line 102) | fn deserialize(deserializer: D) -> Result method current (line 118) | pub fn current(self, cx: &LateContext<'_>) -> Option { method meets (line 136) | pub fn meets(self, cx: &LateContext<'_>, required: RustcVersion) -> bo... method read_cargo (line 140) | pub fn read_cargo(&mut self, sess: &Session) { type MsrvStack (line 160) | pub struct MsrvStack { method new (line 165) | pub fn new(initial: Msrv) -> Self { method current (line 171) | pub fn current(&self) -> Option { method meets (line 175) | pub fn meets(&self, required: RustcVersion) -> bool { method check_attributes (line 179) | pub fn check_attributes(&mut self, sess: &Session, attrs: &[Attribute]) { method check_attributes_post (line 186) | pub fn check_attributes_post(&mut self, sess: &Session, attrs: &[Attri... function parse_attrs (line 193) | fn parse_attrs(sess: &Session, attrs: &[impl AttributeExt]) -> Option usize { function format (line 30) | pub fn format(lit: &str, type_suffix: Option<&str>, float: bool) -> Stri... type NumericLiteral (line 35) | pub struct NumericLiteral<'a> { function from_lit_kind (line 55) | pub fn from_lit_kind(src: &'a str, lit_kind: &LitKind) -> Option, float: bool) -> Self { function is_decimal (line 113) | pub fn is_decimal(&self) -> bool { function split_digit_parts (line 117) | fn split_digit_parts(digits: &str, float: bool) -> (&str, Option<&str>, ... function format (line 149) | pub fn format(&self) -> String { function group_digits (line 191) | fn group_digits(output: &mut String, input: &str, group_size: usize, par... function split_suffix (line 231) | fn split_suffix<'a>(src: &'a str, lit_kind: &LitKind) -> (&'a str, Optio... function lit_suffix_length (line 241) | fn lit_suffix_length(lit_kind: &LitKind) -> Option { FILE: clippy_utils/src/paths.rs type PathNS (line 25) | pub enum PathNS { method matches (line 40) | fn matches(self, ns: Option) -> bool { type PathLookup (line 63) | pub struct PathLookup { method new (line 72) | pub const fn new(ns: PathNS, path: &'static [Symbol]) -> Self { method get (line 81) | pub fn get<'tcx>(&self, tcx: &impl HasTyCtxt<'tcx>) -> &[DefId] { method only (line 89) | pub fn only(&self, cx: &LateContext<'_>) -> Option { method matches (line 97) | pub fn matches<'tcx>(&self, tcx: &impl HasTyCtxt<'tcx>, def_id: DefId)... method matches_path (line 102) | pub fn matches_path<'tcx>(&self, cx: &LateContext<'_>, maybe_path: imp... method matches_ty (line 110) | pub fn matches_ty<'tcx>(&self, tcx: &impl HasTyCtxt<'tcx>, ty: Ty<'_>)... function lookup_path_str (line 167) | pub fn lookup_path_str(tcx: TyCtxt<'_>, ns: PathNS, path: &str) -> Vec, ns: PathNS, path: &[Symbol]) -> Vec<... function find_crates (line 198) | pub fn find_crates(tcx: TyCtxt<'_>, name: Symbol) -> &'static [DefId] { function find_primitive_impls (line 214) | fn find_primitive_impls(tcx: TyCtxt<'_>, name: Symbol) -> &[DefId] { function lookup_with_base (line 247) | fn lookup_with_base(tcx: TyCtxt<'_>, mut base: DefId, ns: PathNS, mut pa... function item_child_by_name (line 275) | fn item_child_by_name(tcx: TyCtxt<'_>, def_id: DefId, ns: PathNS, name: ... function local_item_child_by_name (line 283) | fn local_item_child_by_name(tcx: TyCtxt<'_>, local_id: LocalDefId, ns: P... function non_local_item_child_by_name (line 360) | fn non_local_item_child_by_name(tcx: TyCtxt<'_>, def_id: DefId, ns: Path... FILE: clippy_utils/src/qualify_min_const_fn.rs type McfResult (line 27) | type McfResult = Result<(), (Span, Cow<'static, str>)>; function is_min_const_fn (line 29) | pub fn is_min_const_fn<'tcx>(cx: &LateContext<'tcx>, body: &Body<'tcx>, ... function check_ty (line 71) | fn check_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, span: Span, msrv... function check_rvalue (line 119) | fn check_rvalue<'tcx>( function check_statement (line 214) | fn check_statement<'tcx>( function check_operand (line 254) | fn check_operand<'tcx>( function check_place (line 283) | fn check_place<'tcx>( function check_terminator (line 318) | fn check_terminator<'tcx>( function is_stable_const_fn (line 410) | pub fn is_stable_const_fn(cx: &LateContext<'_>, def_id: DefId, msrv: Msr... function is_ty_const_destruct (line 440) | fn is_ty_const_destruct<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, body: &Bo... FILE: clippy_utils/src/res.rs type HasHirId (line 12) | pub trait HasHirId: Copy { method hir_id (line 13) | fn hir_id(self) -> HirId; method hir_id (line 17) | fn hir_id(self) -> HirId { method hir_id (line 23) | fn hir_id(self) -> HirId { type DefRes (line 28) | type DefRes = (DefKind, DefId); type MaybeTypeckRes (line 30) | pub trait MaybeTypeckRes<'tcx> { method typeck_res (line 36) | fn typeck_res(&self) -> Option<&TypeckResults<'tcx>>; method ty_based_def (line 45) | fn ty_based_def(&self, node: impl HasHirId) -> Option { function typeck_res (line 74) | fn typeck_res(&self) -> Option<&TypeckResults<'tcx>> { function typeck_res (line 88) | fn typeck_res(&self) -> Option<&TypeckResults<'tcx>> { type QPathId (line 94) | type QPathId<'tcx> = (&'tcx QPath<'tcx>, HirId); type MaybeQPath (line 97) | pub trait MaybeQPath<'a>: Copy { method opt_qpath (line 100) | fn opt_qpath(self) -> Option>; method res (line 105) | fn res<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>) -> Res { method res_if_named (line 124) | fn res_if_named<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>, name: ... method res_with_seg (line 152) | fn res_with_seg<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>) -> (Re... method typeless_res (line 175) | fn typeless_res<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>) -> Res { method typeless_res_if_named (line 209) | fn typeless_res_if_named<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx... method ty_rel_def (line 250) | fn ty_rel_def<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>) -> Optio... method ty_rel_def_if_named (line 263) | fn ty_rel_def_if_named<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>,... method ty_rel_def_with_seg (line 276) | fn ty_rel_def_with_seg<'tcx>(self, typeck: &impl MaybeTypeckRes<'tcx>)... function opt_qpath (line 286) | fn opt_qpath(self) -> Option> { function opt_qpath (line 292) | fn opt_qpath(self) -> Option> { function opt_qpath (line 301) | fn opt_qpath(self) -> Option> { function opt_qpath (line 310) | fn opt_qpath(self) -> Option> { function opt_qpath (line 319) | fn opt_qpath(self) -> Option> { function opt_qpath (line 328) | fn opt_qpath(self) -> Option> { function opt_qpath (line 334) | fn opt_qpath(self) -> Option> { type OptResPath (line 340) | type OptResPath<'tcx> = (Option<&'tcx hir::Ty<'tcx>>, Option<&'tcx Path<... type MaybeResPath (line 352) | pub trait MaybeResPath<'a>: Copy { method opt_res_path (line 355) | fn opt_res_path(self) -> OptResPath<'a>; method basic_res (line 360) | fn basic_res(self) -> &'a Res { method res_local_id (line 366) | fn res_local_id(self) -> Option { method res_local_id_and_ident (line 377) | fn res_local_id_and_ident(self) -> Option<(HirId, &'a Ident)> { function opt_res_path (line 390) | fn opt_res_path(self) -> OptResPath<'a> { function basic_res (line 395) | fn basic_res(self) -> &'a Res { function opt_res_path (line 401) | fn opt_res_path(self) -> OptResPath<'a> { function opt_res_path (line 410) | fn opt_res_path(self) -> OptResPath<'a> { function opt_res_path (line 419) | fn opt_res_path(self) -> OptResPath<'a> { function opt_res_path (line 428) | fn opt_res_path(self) -> OptResPath<'a> { function opt_res_path (line 437) | fn opt_res_path(self) -> OptResPath<'a> { function opt_res_path (line 446) | fn opt_res_path(self) -> OptResPath<'a> { function basic_res (line 454) | fn basic_res(self) -> &'a Res { type MaybeDef (line 460) | pub trait MaybeDef: Copy { method opt_def_id (line 461) | fn opt_def_id(self) -> Option; method opt_def (line 465) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... method opt_diag_name (line 469) | fn opt_diag_name<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option(self, tcx: &impl HasTyCtxt<'tcx>, name: Symbol) ... method is_lang_item (line 482) | fn is_lang_item<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>, item: LangItem... method opt_impl_ty (line 489) | fn opt_impl_ty<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option(self, tcx: &impl HasTyCtxt<'tcx>) -> Option { method is_impl (line 504) | fn is_impl<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> bool { method ctor_parent (line 510) | fn ctor_parent<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option { method assoc_parent (line 520) | fn assoc_parent<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option(self, tcx: &impl HasTyCtxt<'tcx>) -> Option Option { method opt_def (line 544) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... method opt_def_id (line 550) | fn opt_def_id(self) -> Option { method opt_def (line 555) | fn opt_def<'tcx>(self, _: &impl HasTyCtxt<'tcx>) -> Option<(DefKind, D... method opt_def_id (line 561) | fn opt_def_id(self) -> Option { method opt_def (line 566) | fn opt_def<'tcx>(self, _: &impl HasTyCtxt<'tcx>) -> Option<(DefKind, D... method opt_def_id (line 577) | fn opt_def_id(self) -> Option { method opt_def (line 582) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... method opt_def_id (line 588) | fn opt_def_id(self) -> Option { method opt_def (line 593) | fn opt_def<'tcx>(self, _: &impl HasTyCtxt<'tcx>) -> Option<(DefKind, D... method opt_def_id (line 602) | fn opt_def_id(self) -> Option { method opt_def (line 607) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... method opt_def_id (line 613) | fn opt_def_id(self) -> Option { method opt_def (line 618) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... method opt_def_id (line 624) | fn opt_def_id(self) -> Option { method opt_def (line 629) | fn opt_def<'tcx>(self, tcx: &impl HasTyCtxt<'tcx>) -> Option<(DefKind,... FILE: clippy_utils/src/source.rs type HasSession (line 23) | pub trait HasSession { method sess (line 24) | fn sess(&self) -> &Session; method sess (line 27) | fn sess(&self) -> &Session { method sess (line 32) | fn sess(&self) -> &Session { method sess (line 37) | fn sess(&self) -> &Session { method sess (line 42) | fn sess(&self) -> &Session { type SpanRange (line 48) | pub trait SpanRange: Sized { method into_range (line 49) | fn into_range(self) -> Range; method into_range (line 52) | fn into_range(self) -> Range { method into_range (line 58) | fn into_range(self) -> Range { method into_range (line 63) | fn into_range(self) -> Range { type IntoSpan (line 69) | pub trait IntoSpan: Sized { method into_span (line 70) | fn into_span(self) -> Span; method with_ctxt (line 71) | fn with_ctxt(self, ctxt: SyntaxContext) -> Span; method into_span (line 74) | fn into_span(self) -> Span { method with_ctxt (line 77) | fn with_ctxt(self, ctxt: SyntaxContext) -> Span { method into_span (line 82) | fn into_span(self) -> Span { method with_ctxt (line 85) | fn with_ctxt(self, ctxt: SyntaxContext) -> Span { method into_span (line 90) | fn into_span(self) -> Span { method with_ctxt (line 93) | fn with_ctxt(self, ctxt: SyntaxContext) -> Span { type SpanRangeExt (line 98) | pub trait SpanRangeExt: SpanRange { method get_source_text (line 101) | fn get_source_text(self, cx: &impl HasSession) -> Option { method get_source_range (line 107) | fn get_source_range(self, cx: &impl HasSession) -> Option(self, cx: &impl HasSession, f: impl for<'a> FnO... method check_source_text (line 119) | fn check_source_text(self, cx: &impl HasSession, pred: impl for<'a> Fn... method with_source_text_and_range (line 125) | fn with_source_text_and_range( method map_range (line 138) | fn map_range( method with_leading_whitespace (line 159) | fn with_leading_whitespace(self, cx: &impl HasSession) -> Range Range { type SourceText (line 171) | pub struct SourceText(SourceFileRange); method new (line 174) | pub fn new(text: SourceFileRange) -> Option { method as_str (line 183) | pub fn as_str(&self) -> &str { method to_owned (line 188) | pub fn to_owned(&self) -> String { method as_ref (line 199) | fn as_ref(&self) -> &str { type Output (line 207) | type Output = >::Output; method index (line 208) | fn index(&self, idx: T) -> &Self::Output { method fmt (line 213) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method fmt (line 218) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Target (line 193) | type Target = str; method deref (line 194) | fn deref(&self) -> &Self::Target { function get_source_range (line 223) | fn get_source_range(sm: &SourceMap, sp: Range) -> Option(sm: &SourceMap, sp: Range, f: impl for<'... function with_source_text_and_range (line 244) | fn with_source_text_and_range( function map_range (line 259) | fn map_range( function ends_with_line_comment_or_broken (line 283) | fn ends_with_line_comment_or_broken(text: &str) -> bool { function with_leading_whitespace_inner (line 306) | fn with_leading_whitespace_inner(lines: &[RelativeBytePos], src: &str, r... function with_leading_whitespace (line 326) | fn with_leading_whitespace(sm: &SourceMap, sp: Range) -> Range<... function trim_start (line 333) | fn trim_start(sm: &SourceMap, sp: Range) -> Range { type SourceFileRange (line 341) | pub struct SourceFileRange { method as_str (line 348) | pub fn as_str(&self) -> Option<&str> { function expr_block (line 356) | pub fn expr_block( function first_line_of_span (line 389) | pub fn first_line_of_span(sess: &impl HasSession, span: Span) -> Span { function first_char_in_first_line (line 393) | fn first_char_in_first_line(sess: &impl HasSession, span: Span) -> Optio... function line_span (line 410) | fn line_span(sess: &impl HasSession, span: Span) -> Span { function indent_of (line 426) | pub fn indent_of(sess: &impl HasSession, span: Span) -> Option { function snippet_indent (line 431) | pub fn snippet_indent(sess: &impl HasSession, span: Span) -> Option bool { function position_before_rarrow (line 464) | pub fn position_before_rarrow(s: &str) -> Option { function reindent_multiline (line 482) | pub fn reindent_multiline(s: &str, ignore_first: bool, indent: Option(sess: &impl HasSession, span: Span, default: &'a str)... function snippet_with_applicability (line 545) | pub fn snippet_with_applicability<'a>( function snippet_with_applicability_sess (line 554) | fn snippet_with_applicability_sess<'a>( function snippet_opt (line 575) | pub fn snippet_opt(sess: &impl HasSession, span: Span) -> Option { function snippet_block (line 613) | pub fn snippet_block(sess: &impl HasSession, span: Span, default: &str, ... function snippet_block_with_applicability (line 621) | pub fn snippet_block_with_applicability( function snippet_block_with_context (line 633) | pub fn snippet_block_with_context( function snippet_with_context (line 656) | pub fn snippet_with_context<'a>( function snippet_with_context_sess (line 666) | fn snippet_with_context_sess<'a>( function walk_span_to_context (line 726) | pub fn walk_span_to_context(span: Span, outer: SyntaxContext) -> Option<... function trim_span (line 732) | pub fn trim_span(sm: &SourceMap, span: Span) -> Span { function expand_past_previous_comma (line 757) | pub fn expand_past_previous_comma(sess: &impl HasSession, span: Span) ->... function str_literal_to_char_literal (line 764) | pub fn str_literal_to_char_literal( function test_reindent_multiline_single_line (line 811) | fn test_reindent_multiline_single_line() { function test_reindent_multiline_block (line 821) | fn test_reindent_multiline_block() { function test_reindent_multiline_empty_line (line 846) | fn test_reindent_multiline_empty_line() { function test_reindent_multiline_lines_deeper (line 863) | fn test_reindent_multiline_lines_deeper() { FILE: clippy_utils/src/str_utils.rs type StrIndex (line 4) | pub struct StrIndex { method new (line 10) | pub fn new(char_index: usize, byte_index: usize) -> Self { function camel_case_until (line 25) | pub fn camel_case_until(s: &str) -> StrIndex { function camel_case_start (line 70) | pub fn camel_case_start(s: &str) -> StrIndex { function camel_case_start_from_idx (line 84) | pub fn camel_case_start_from_idx(s: &str, start_idx: usize) -> StrIndex { function camel_case_indices (line 136) | pub fn camel_case_indices(s: &str) -> Vec { function camel_case_split (line 156) | pub fn camel_case_split(s: &str) -> Vec<&str> { type StrCount (line 171) | pub struct StrCount { method new (line 177) | pub fn new(char_count: usize, byte_count: usize) -> Self { function count_match_start (line 192) | pub fn count_match_start(str1: &str, str2: &str) -> StrCount { function count_match_end (line 218) | pub fn count_match_end(str1: &str, str2: &str) -> StrCount { function to_snake_case (line 247) | pub fn to_snake_case(name: &str) -> String { function to_camel_case (line 270) | pub fn to_camel_case(item_name: &str) -> String { function camel_case_start_full (line 297) | fn camel_case_start_full() { function camel_case_start_partial (line 306) | fn camel_case_start_partial() { function camel_case_start_not (line 314) | fn camel_case_start_not() { function camel_case_start_caps (line 322) | fn camel_case_start_caps() { function camel_case_until_full (line 327) | fn camel_case_until_full() { function camel_case_until_not (line 334) | fn camel_case_until_not() { function camel_case_until_partial (line 340) | fn camel_case_until_partial() { function until_caps (line 348) | fn until_caps() { function camel_case_start_from_idx_full (line 353) | fn camel_case_start_from_idx_full() { function camel_case_indices_full (line 363) | fn camel_case_indices_full() { function camel_case_split_full (line 368) | fn camel_case_split_full() { FILE: clippy_utils/src/sugg.rs type Sugg (line 24) | pub enum Sugg<'a> { constant ZERO (line 40) | pub const ZERO: Sugg<'static> = Sugg::NonParen(Cow::Borrowed("0")); constant ONE (line 42) | pub const ONE: Sugg<'static> = Sugg::NonParen(Cow::Borrowed("1")); constant EMPTY (line 44) | pub const EMPTY: Sugg<'static> = Sugg::NonParen(Cow::Borrowed("")); method fmt (line 47) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { function hir_opt (line 59) | pub fn hir_opt(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> Option, expr: &hir::Expr<'_>, default: &'a str)... function hir_with_applicability (line 77) | pub fn hir_with_applicability( function hir_with_context (line 101) | pub fn hir_with_context( function hir_from_snippet (line 130) | pub fn hir_from_snippet( function ast (line 197) | pub fn ast( function and (line 284) | pub fn and(self, rhs: &Self) -> Sugg<'static> { function bit_and (line 289) | pub fn bit_and(self, rhs: &Self) -> Sugg<'static> { function as_ty (line 294) | pub fn as_ty(self, rhs: R) -> Sugg<'static> { function addr (line 299) | pub fn addr(self) -> Sugg<'static> { function mut_addr (line 304) | pub fn mut_addr(self) -> Sugg<'static> { function deref (line 309) | pub fn deref(self) -> Sugg<'static> { function addr_deref (line 316) | pub fn addr_deref(self) -> Sugg<'static> { function mut_addr_deref (line 323) | pub fn mut_addr_deref(self) -> Sugg<'static> { function make_return (line 328) | pub fn make_return(self) -> Sugg<'static> { function blockify (line 334) | pub fn blockify(self) -> Sugg<'static> { function asyncify (line 340) | pub fn asyncify(self) -> Sugg<'static> { function range (line 346) | pub fn range(self, end: &Self, limits: ast::RangeLimits) -> Sugg<'static> { function maybe_paren (line 354) | pub fn maybe_paren(self) -> Self { function strip_paren (line 380) | pub fn strip_paren(self) -> Self { function into_string (line 387) | pub fn into_string(self) -> String { function starts_with_unary_op (line 396) | fn starts_with_unary_op(&self) -> bool { function maybe_inner_paren (line 406) | fn maybe_inner_paren(self) -> Self { function binop_to_string (line 416) | fn binop_to_string(op: AssocOp, lhs: &str, rhs: &str) -> String { function has_enclosing_paren (line 427) | pub fn has_enclosing_paren(sugg: impl AsRef) -> bool { function strip_enclosing_paren (line 448) | fn strip_enclosing_paren(snippet: Cow<'_, str>) -> Cow<'_, str> { type Output (line 493) | type Output = Sugg<'static>; method add (line 494) | fn add(self, rhs: &Sugg<'_>) -> Sugg<'static> { type Output (line 500) | type Output = Sugg<'static>; method sub (line 501) | fn sub(self, rhs: &Sugg<'_>) -> Sugg<'static> { type Output (line 510) | type Output = Sugg<'a>; method neg (line 511) | fn neg(self) -> Self::Output { type Output (line 521) | type Output = Sugg<'a>; method not (line 522) | fn not(self) -> Sugg<'a> { type ParenHelper (line 546) | struct ParenHelper { function new (line 555) | fn new(paren: bool, wrapped: T) -> Self { method fmt (line 561) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { function make_unop (line 574) | pub fn make_unop(op: &str, expr: Sugg<'_>) -> Sugg<'static> { function make_assoc (line 585) | pub fn make_assoc(op: AssocOp, lhs: &Sugg<'_>, rhs: &Sugg<'_>) -> Sugg<'... function make_binop (line 635) | pub fn make_binop(op: ast::BinOpKind, lhs: &Sugg<'_>, rhs: &Sugg<'_>) ->... type Associativity (line 641) | enum Associativity { function associativity (line 660) | fn associativity(op: AssocOp) -> Associativity { function indentation (line 674) | fn indentation(cx: &T, span: Span) -> Option { type DiagExt (line 693) | pub trait DiagExt { method suggest_item_with_attr (line 703) | fn suggest_item_with_attr( method suggest_prepend_item (line 724) | fn suggest_prepend_item(&mut self, cx: &T, item: Span, msg: &str, new_... method suggest_remove_item (line 737) | fn suggest_remove_item(&mut self, cx: &T, item: Span, msg: &str, appli... function suggest_item_with_attr (line 741) | fn suggest_item_with_attr( function suggest_prepend_item (line 756) | fn suggest_prepend_item(&mut self, cx: &T, item: Span, msg: &str, new_it... function suggest_remove_item (line 777) | fn suggest_remove_item(&mut self, cx: &T, item: Span, msg: &str, applica... type DerefClosure (line 796) | pub struct DerefClosure { function deref_closure_args (line 808) | pub fn deref_closure_args(cx: &LateContext<'_>, closure: &hir::Expr<'_>)... type DerefDelegate (line 850) | struct DerefDelegate<'a, 'tcx> { function finish (line 875) | pub fn finish(&mut self) -> String { function func_takes_arg_by_double_ref (line 887) | fn func_takes_arg_by_double_ref(&self, parent_expr: &'tcx hir::Expr<'_>,... function consume (line 923) | fn consume(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function use_cloned (line 925) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function borrow (line 928) | fn borrow(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId, _: ty::Borrow... function mutate (line 1084) | fn mutate(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} function fake_read (line 1086) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _: H... constant SUGGESTION (line 1097) | const SUGGESTION: Sugg<'static> = Sugg::NonParen(Cow::Borrowed("function... function make_return_transform_sugg_into_a_return_call (line 1100) | fn make_return_transform_sugg_into_a_return_call() { function blockify_transforms_sugg_into_a_block (line 1105) | fn blockify_transforms_sugg_into_a_block() { function binop_maybe_paren (line 1110) | fn binop_maybe_paren() { function unop_parenthesize (line 1119) | fn unop_parenthesize() { function not_op (line 1128) | fn not_op() { FILE: clippy_utils/src/ty/mod.rs function ty_from_hir_ty (line 46) | pub fn ty_from_hir_ty<'tcx>(cx: &LateContext<'tcx>, hir_ty: &hir::Ty<'tc... function is_copy (line 54) | pub fn is_copy<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function has_debug_impl (line 59) | pub fn has_debug_impl<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function can_partially_move_ty (line 66) | pub fn can_partially_move_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>)... function contains_adt_constructor (line 79) | pub fn contains_adt_constructor<'tcx>(ty: Ty<'tcx>, adt: AdtDef<'tcx>) -... function contains_ty_adt_constructor_opaque (line 91) | pub fn contains_ty_adt_constructor_opaque<'tcx>(cx: &LateContext<'tcx>, ... function get_iterator_item_ty (line 155) | pub fn get_iterator_item_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) ... function should_call_clone_as_function (line 166) | pub fn should_call_clone_as_function(cx: &LateContext<'_>, ty: Ty<'_>) -... function has_iter_method (line 174) | pub fn has_iter_method(cx: &LateContext<'_>, probably_ref_ty: Ty<'_>) ->... function implements_trait (line 220) | pub fn implements_trait<'tcx>( function implements_trait_with_env (line 240) | pub fn implements_trait_with_env<'tcx>( function implements_trait_with_env_from_iter (line 252) | pub fn implements_trait_with_env_from_iter<'tcx>( function has_drop (line 303) | pub fn has_drop<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_must_use_ty (line 313) | pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function is_non_aggregate_primitive_type (line 360) | pub fn is_non_aggregate_primitive_type(ty: Ty<'_>) -> bool { function is_recursively_primitive_type (line 366) | pub fn is_recursively_primitive_type(ty: Ty<'_>) -> bool { function is_isize_or_usize (line 377) | pub fn is_isize_or_usize(typ: Ty<'_>) -> bool { function needs_ordered_drop (line 385) | pub fn needs_ordered_drop<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) ->... function is_unsafe_fn (line 432) | pub fn is_unsafe_fn<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function peel_and_count_ty_refs (line 439) | pub fn peel_and_count_ty_refs(mut ty: Ty<'_>) -> (Ty<'_>, usize, Option<... function peel_n_ty_refs (line 452) | pub fn peel_n_ty_refs(mut ty: Ty<'_>, n: usize) -> (Ty<'_>, Option(a: Ty<'tcx>, b: Ty<'tcx>) -> bool { function is_uninit_value_valid_for_ty (line 496) | pub fn is_uninit_value_valid_for_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty... function is_uninit_value_valid_for_ty_fallback (line 504) | fn is_uninit_value_valid_for_ty_fallback<'tcx>(cx: &LateContext<'tcx>, t... function all_predicates_of (line 525) | pub fn all_predicates_of(tcx: TyCtxt<'_>, id: DefId) -> impl Iterator { function input (line 547) | pub fn input(self, i: usize) -> Option>> { function input_with_hir (line 564) | pub fn input_with_hir(self, i: usize) -> Option<(Option<&'tcx hir::Ty<'t... function output (line 586) | pub fn output(self) -> Option>> { function predicates_id (line 593) | pub fn predicates_id(&self) -> Option { function expr_sig (line 603) | pub fn expr_sig<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>) -> Option... function ty_sig (line 612) | pub fn ty_sig<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option( function sig_for_projection (line 699) | fn sig_for_projection<'tcx>(cx: &LateContext<'tcx>, ty: AliasTy<'tcx>) -... type EnumValue (line 738) | pub enum EnumValue { type Output (line 743) | type Output = Self; method add (line 744) | fn add(self, n: u32) -> Self::Output { function read_explicit_enum_value (line 753) | pub fn read_explicit_enum_value(tcx: TyCtxt<'_>, id: DefId) -> Option, adt: AdtDef<'_>, i: Varia... function is_c_void (line 779) | pub fn is_c_void(cx: &LateContext<'_>, ty: Ty<'_>) -> bool { function for_each_top_level_late_bound_region (line 791) | pub fn for_each_top_level_late_bound_region<'cx, B>( type AdtVariantInfo (line 820) | pub struct AdtVariantInfo { method new (line 830) | pub fn new<'tcx>(cx: &LateContext<'tcx>, adt: AdtDef<'tcx>, subst: Gen... function adt_and_variant_of_res (line 857) | pub fn adt_and_variant_of_res<'tcx>(cx: &LateContext<'tcx>, res: Res) ->... function approx_ty_size (line 886) | pub fn approx_ty_size<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> u64 { function assert_generic_args_match (line 931) | fn assert_generic_args_match<'tcx>(tcx: TyCtxt<'tcx>, did: DefId, args: ... function is_never_like (line 979) | pub fn is_never_like(ty: Ty<'_>) -> bool { function make_projection (line 990) | pub fn make_projection<'tcx>( function make_normalized_projection (line 1030) | pub fn make_normalized_projection<'tcx>( type InteriorMut (line 1067) | pub struct InteriorMut<'tcx> { function new (line 1074) | pub fn new(tcx: TyCtxt<'tcx>, ignore_interior_mutability: &[String]) -> ... function without_pointers (line 1086) | pub fn without_pointers(tcx: TyCtxt<'tcx>, ignore_interior_mutability: &... function interior_mut_ty_chain (line 1097) | pub fn interior_mut_ty_chain(&mut self, cx: &LateContext<'tcx>, ty: Ty<'... function interior_mut_ty_chain_inner (line 1101) | fn interior_mut_ty_chain_inner( function is_interior_mut_ty (line 1171) | pub fn is_interior_mut_ty(&mut self, cx: &LateContext<'tcx>, ty: Ty<'tcx... function make_normalized_projection_with_regions (line 1176) | pub fn make_normalized_projection_with_regions<'tcx>( function normalize_with_regions (line 1215) | pub fn normalize_with_regions<'tcx>(tcx: TyCtxt<'tcx>, typing_env: ty::T... function is_manually_drop (line 1225) | pub fn is_manually_drop(ty: Ty<'_>) -> bool { function deref_chain (line 1230) | pub fn deref_chain<'cx, 'tcx>(cx: &'cx LateContext<'tcx>, ty: Ty<'tcx>) ... function get_adt_inherent_method (line 1246) | pub fn get_adt_inherent_method<'a>(cx: &'a LateContext<'_>, ty: Ty<'_>, ... function get_field_by_name (line 1261) | pub fn get_field_by_name<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, name: Sy... function get_field_def_id_by_name (line 1274) | pub fn get_field_def_id_by_name(ty: Ty<'_>, name: Symbol) -> Option(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Opti... function has_non_owning_mutable_access (line 1299) | pub fn has_non_owning_mutable_access<'tcx>(cx: &LateContext<'tcx>, iter_... function is_slice_like (line 1343) | pub fn is_slice_like<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool { function get_field_idx_by_name (line 1347) | pub fn get_field_idx_by_name(ty: Ty<'_>, name: Symbol) -> Option { function adjust_derefs_manually_drop (line 1358) | pub fn adjust_derefs_manually_drop<'tcx>(adjustments: &'tcx [Adjustment<... FILE: clippy_utils/src/ty/type_certainty/certainty.rs type Certainty (line 5) | pub enum Certainty { method join (line 60) | pub fn join(self, other: Self) -> Self { method join_clearing_def_ids (line 82) | pub fn join_clearing_def_ids(self, other: Self) -> Self { method clear_def_id (line 86) | pub fn clear_def_id(self) -> Certainty { method with_def_id (line 94) | pub fn with_def_id(self, def_id: DefId) -> Certainty { method to_def_id (line 102) | pub fn to_def_id(self) -> Option { method is_certain (line 109) | pub fn is_certain(self) -> bool { type Meet (line 18) | pub trait Meet { method meet (line 19) | fn meet(self, other: Self) -> Self; method meet (line 27) | fn meet(self, other: Self) -> Self { method meet (line 46) | fn meet(self, other: Self) -> Self { type TryJoin (line 22) | pub trait TryJoin: Sized { method try_join (line 23) | fn try_join(self, other: Self) -> Option; method try_join (line 36) | fn try_join(self, other: Self) -> Option { function meet (line 115) | pub fn meet(iter: impl Iterator) -> Certainty { function join (line 120) | pub fn join(iter: impl Iterator) -> Certainty { FILE: clippy_utils/src/ty/type_certainty/mod.rs function expr_type_is_certain (line 27) | pub fn expr_type_is_certain(cx: &LateContext<'_>, expr: &Expr<'_>) -> bo... function expr_type_certainty (line 33) | fn expr_type_certainty(cx: &LateContext<'_>, expr: &Expr<'_>, in_arg: bo... type CertaintyVisitor (line 124) | struct CertaintyVisitor<'cx, 'tcx> { function new (line 130) | fn new(cx: &'cx LateContext<'tcx>) -> Self { function visit_qpath (line 139) | fn visit_qpath(&mut self, qpath: &'cx QPath<'_>, hir_id: HirId, _: Span) { function visit_ty (line 146) | fn visit_ty(&mut self, ty: &'cx hir::Ty<'_, AmbigArg>) { function visit_infer (line 152) | fn visit_infer(&mut self, _inf_id: HirId, _inf_span: Span, _kind: InferK... function type_certainty (line 157) | fn type_certainty(cx: &LateContext<'_>, ty: &hir::Ty<'_>) -> Certainty { function generic_args_certainty (line 174) | fn generic_args_certainty(cx: &LateContext<'_>, args: &GenericArgs<'_>) ... function qpath_certainty (line 185) | fn qpath_certainty(cx: &LateContext<'_>, qpath: &QPath<'_>, resolves_to_... function param_certainty (line 207) | fn param_certainty(cx: &LateContext<'_>, param: &Param<'_>) -> Certainty { function path_segment_certainty (line 219) | fn path_segment_certainty( function update_res (line 299) | fn update_res( function type_is_inferable_from_arguments (line 320) | fn type_is_inferable_from_arguments(cx: &LateContext<'_>, expr: &Expr<'_... function self_ty (line 348) | fn self_ty<'tcx>(cx: &LateContext<'tcx>, method_def_id: DefId) -> Ty<'tc... function adt_def_id (line 352) | fn adt_def_id(ty: Ty<'_>) -> Option { function contains_param (line 356) | fn contains_param(ty: Ty<'_>, index: u32) -> bool { FILE: clippy_utils/src/usage.rs function mutated_variables (line 16) | pub fn mutated_variables<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'t... function is_potentially_mutated (line 31) | pub fn is_potentially_mutated<'tcx>(variable: HirId, expr: &'tcx Expr<'_... function is_potentially_local_place (line 35) | pub fn is_potentially_local_place(local_id: HirId, place: &Place<'_>) ->... type MutVarsDelegate (line 46) | struct MutVarsDelegate { method update (line 52) | fn update(&mut self, cat: &PlaceWithHirId<'_>) { method consume (line 69) | fn consume(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} method use_cloned (line 71) | fn use_cloned(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {} method borrow (line 73) | fn borrow(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId, bk: ty::Bor... method mutate (line 79) | fn mutate(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId) { method fake_read (line 83) | fn fake_read(&mut self, _: &PlaceWithHirId<'tcx>, _: FakeReadCause, _:... type ParamBindingIdCollector (line 86) | pub struct ParamBindingIdCollector { method collect_binding_hir_ids (line 90) | fn collect_binding_hir_ids(body: &'tcx hir::Body<'tcx>) -> Vec { method visit_pat (line 105) | fn visit_pat(&mut self, pat: &'tcx hir::Pat<'tcx>) { type BindingUsageFinder (line 113) | pub struct BindingUsageFinder<'a, 'tcx> { function are_params_used (line 118) | pub fn are_params_used(cx: &'a LateContext<'tcx>, body: &'tcx hir::Body<... type Result (line 127) | type Result = ControlFlow<()>; type NestedFilter (line 128) | type NestedFilter = nested_filter::OnlyBodies; function visit_path (line 130) | fn visit_path(&mut self, path: &hir::Path<'tcx>, _: HirId) -> Self::Resu... function maybe_tcx (line 140) | fn maybe_tcx(&mut self) -> Self::MaybeTyCtxt { function is_todo_unimplemented_macro (line 146) | pub fn is_todo_unimplemented_macro(cx: &LateContext<'_>, expr: &Expr<'_>... function is_todo_unimplemented_stub (line 154) | pub fn is_todo_unimplemented_stub(cx: &LateContext<'_>, expr: &Expr<'_>)... function contains_todo_unimplement_macro (line 172) | pub fn contains_todo_unimplement_macro(cx: &LateContext<'_>, expr: &'_ E... function contains_return_break_continue_macro (line 183) | pub fn contains_return_break_continue_macro(expression: &Expr<'_>) -> bo... function local_used_in (line 197) | pub fn local_used_in<'tcx>(cx: &LateContext<'tcx>, local_id: HirId, v: i... function local_used_after_expr (line 208) | pub fn local_used_after_expr(cx: &LateContext<'_>, local_id: HirId, afte... FILE: clippy_utils/src/visitors.rs type Continue (line 23) | pub trait Continue { method descend (line 24) | fn descend(&self) -> bool; method descend (line 30) | fn descend(&self) -> bool { method descend (line 48) | fn descend(&self) -> bool { type Descend (line 38) | pub enum Descend { method from (line 43) | fn from(from: bool) -> Self { type Visitable (line 54) | pub trait Visitable<'tcx> { method visit (line 56) | fn visit>(self, visitor: &mut V) -> V::Result; function visit (line 62) | fn visit>(self, visitor: &mut V) -> V::Result { function visit (line 74) | fn visit>(self, visitor: &mut V) -> V::Result { function visit (line 84) | fn visit>(self, visitor: &mut V) -> V::Result { function for_each_expr_without_closures (line 108) | pub fn for_each_expr_without_closures<'tcx, B, C: Continue>( function for_each_expr (line 147) | pub fn for_each_expr<'tcx, B, C: Continue>( function contains_try (line 196) | fn contains_try(expr: &Expr<'_>) -> bool { function find_all_ret_expressions (line 207) | pub fn find_all_ret_expressions<'hir, F>(_cx: &LateContext<'_>, expr: &'... function is_res_used (line 301) | pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> bool { function is_local_used (line 314) | pub fn is_local_used<'tcx>(cx: &LateContext<'tcx>, visitable: impl Visit... function is_const_evaluatable (line 326) | pub fn is_const_evaluatable<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<... function is_expr_unsafe (line 411) | pub fn is_expr_unsafe<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) -... function contains_unsafe_block (line 478) | pub fn contains_unsafe_block<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr... function for_each_value_source (line 513) | pub fn for_each_value_source<'tcx, B>( function for_each_local_use_after_expr (line 536) | pub fn for_each_local_use_after_expr<'tcx, B>( function for_each_unconsumed_temporary (line 596) | pub fn for_each_unconsumed_temporary<'tcx, B>( function any_temporaries_need_ordered_drop (line 711) | pub fn any_temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, e... function for_each_local_assignment (line 724) | pub fn for_each_local_assignment<'tcx, B>( function contains_break_or_continue (line 768) | pub fn contains_break_or_continue(expr: &Expr<'_>) -> bool { function local_used_once (line 781) | pub fn local_used_once<'tcx>( FILE: declare_clippy_lint/src/lib.rs type LintListBuilder (line 11) | pub struct LintListBuilder { method insert (line 25) | pub fn insert(&mut self, lints: &[&LintInfo]) { method register (line 49) | pub fn register(self, store: &mut LintStore) { type LintCategory (line 75) | pub enum LintCategory { method name (line 88) | pub fn name(self) -> &'static str { type LintInfo (line 103) | pub struct LintInfo { method name_lower (line 116) | pub fn name_lower(&self) -> String { FILE: lintcheck/src/config.rs type LintcheckConfig (line 8) | pub(crate) struct LintcheckConfig { method new (line 103) | pub fn new() -> Self { type Commands (line 63) | pub(crate) enum Commands { type OutputFormat (line 86) | pub(crate) enum OutputFormat { method file_extension (line 93) | fn file_extension(self) -> &'static str { FILE: lintcheck/src/driver.rs function run_clippy (line 11) | fn run_clippy(addr: &str) -> Option { function drive (line 57) | pub fn drive(addr: &str) { FILE: lintcheck/src/input.rs constant DEFAULT_DOCS_LINK (line 13) | const DEFAULT_DOCS_LINK: &str = "https://docs.rs/{krate}/{version}/src/{... constant DEFAULT_GITHUB_LINK (line 14) | const DEFAULT_GITHUB_LINK: &str = "{url}/blob/{hash}/src/{file}#L{line}"; constant DEFAULT_PATH_LINK (line 15) | const DEFAULT_PATH_LINK: &str = "{path}/src/{file}:{line}"; type SourceList (line 19) | pub struct SourceList { type RecursiveOptions (line 26) | pub struct RecursiveOptions { type TomlCrate (line 33) | struct TomlCrate { method file_link (line 56) | fn file_link(&self, default: &str) -> String { type CrateWithSource (line 80) | pub struct CrateWithSource { method download_and_prepare (line 164) | pub fn download_and_prepare(&self) -> Crate { method download_and_extract (line 182) | fn download_and_extract(&self) -> Crate { type CrateSource (line 88) | pub enum CrateSource { function read_crates (line 95) | pub fn read_crates(toml_path: &Path) -> (Vec, Recursive... function create_dirs (line 329) | fn create_dirs(krate_download_dir: &Path, extract_dir: &Path) { FILE: lintcheck/src/json.rs constant DEFAULT_LIMIT_PER_LINT (line 16) | const DEFAULT_LIMIT_PER_LINT: usize = 300; constant TRUNCATION_TOTAL_TARGET (line 18) | const TRUNCATION_TOTAL_TARGET: usize = 1000; type LintJson (line 21) | struct LintJson { method key (line 31) | fn key(&self) -> impl Ord + '_ { method info_text (line 36) | fn info_text(&self, action: &str) -> String { type SummaryRow (line 42) | struct SummaryRow { type Summary (line 50) | struct Summary(Vec); method fmt (line 53) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method new (line 77) | fn new(lints: &[LintWarnings]) -> Self { function output (line 93) | pub(crate) fn output(clippy_warnings: Vec) -> String { function load_warnings (line 116) | fn load_warnings(path: &Path) -> Vec { function diff (line 126) | pub(crate) fn diff(old_path: &Path, new_path: &Path, truncate: bool, wri... type LintWarnings (line 189) | struct LintWarnings { function print_lint_warnings (line 196) | fn print_lint_warnings(lint: &LintWarnings, truncate_after: usize) { function print_warnings (line 217) | fn print_warnings(title: &str, warnings: &[LintJson], truncate_after: us... function print_changed_diff (line 238) | fn print_changed_diff(changed: &[(LintJson, LintJson)], truncate_after: ... function truncate (line 272) | fn truncate(list: &[T], truncate_after: usize) -> &[T] { function print_h3 (line 286) | fn print_h3(lint: &str, title: &str) { function to_html_id (line 294) | fn to_html_id(lint_name: &str) -> String { function count_string (line 300) | fn count_string(lint: &str, label: &str, count: usize) -> String { FILE: lintcheck/src/main.rs function target_dir (line 47) | pub fn target_dir() -> String { function lintcheck_sources (line 51) | fn lintcheck_sources() -> String { type Crate (line 57) | struct Crate { method run_clippy_lints (line 70) | fn run_clippy_lints( function normalize_diag (line 246) | fn normalize_diag( function build_clippy (line 268) | fn build_clippy(release_build: bool) -> String { function main (line 291) | fn main() { function lintcheck (line 318) | fn lintcheck(config: LintcheckConfig) { function get_perf_data_filename (line 467) | fn get_perf_data_filename(source_path: &Path) -> String { function clippy_project_root (line 495) | fn clippy_project_root() -> &'static Path { function shared_target_dir (line 502) | fn shared_target_dir(qualifier: &str) -> PathBuf { function lintcheck_test (line 509) | fn lintcheck_test() { FILE: lintcheck/src/output.rs type ClippyCheckOutput (line 15) | pub enum ClippyCheckOutput { type RustcIce (line 21) | pub struct RustcIce { method fmt (line 27) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method from_stderr_and_status (line 37) | pub fn from_stderr_and_status(crate_name: &str, status: ExitStatus, st... type ClippyWarning (line 53) | pub struct ClippyWarning { method new (line 62) | pub fn new(mut diag: Diagnostic, base_url: &str, krate: &str) -> Optio... method span (line 102) | pub fn span(&self) -> &DiagnosticSpan { method to_output (line 106) | pub fn to_output(&self, format: OutputFormat) -> String { function summarize_and_print_changes (line 129) | pub fn summarize_and_print_changes( function gather_stats (line 162) | fn gather_stats(warnings: &[ClippyWarning]) -> (String, HashMap<&String,... function read_stats_from_file (line 189) | fn read_stats_from_file(file_path: &Path) -> HashMap { function print_stats (line 219) | fn print_stats(old_stats: HashMap, new_stats: HashMap<&St... FILE: lintcheck/src/popular_crates.rs type Page (line 8) | struct Page { type Crate (line 14) | struct Crate { type Meta (line 20) | struct Meta { function fetch (line 24) | pub(crate) fn fetch(output: PathBuf, number: usize) -> Result<(), Box(value: &T, writer: &mut W) function deserialize_line (line 36) | pub(crate) fn deserialize_line(reader: &mut R) -> T function process_stream (line 46) | fn process_stream( type LintcheckServer (line 82) | pub(crate) struct LintcheckServer { method spawn (line 89) | pub fn spawn(options: RecursiveOptions) -> Self { method warnings (line 123) | pub fn warnings(self) -> impl Iterator { FILE: rustc_tools_util/src/lib.rs type VersionInfo (line 54) | pub struct VersionInfo { method fmt (line 65) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 87) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function get_output (line 110) | fn get_output(cmd: &str, args: &[&str]) -> Option { function rerun_if_git_changes (line 121) | pub fn rerun_if_git_changes() -> Option<()> { function get_commit_hash (line 147) | pub fn get_commit_hash() -> Option { function get_commit_date (line 154) | pub fn get_commit_date() -> Option { function get_compiler_version (line 159) | pub fn get_compiler_version() -> Option { function get_channel (line 165) | pub fn get_channel(compiler_version: Option) -> String { function test_struct_local (line 190) | fn test_struct_local() { function test_display_local (line 204) | fn test_display_local() { function test_debug_local (line 210) | fn test_debug_local() { FILE: src/driver.rs function arg_value (line 39) | fn arg_value<'a>(args: &'a [String], find_arg: &str, pred: impl Fn(&str)... function has_arg (line 55) | fn has_arg(args: &[String], find_arg: &str) -> bool { function test_arg_value (line 60) | fn test_arg_value() { function test_has_arg (line 75) | fn test_has_arg() { function track_clippy_args (line 84) | fn track_clippy_args(psess: &mut ParseSess, args_env_var: Option<&str>) { function track_files (line 93) | fn track_files(psess: &mut ParseSess) { type DefaultCallbacks (line 114) | struct DefaultCallbacks; type RustcCallbacks (line 119) | struct RustcCallbacks { method config (line 124) | fn config(&mut self, config: &mut interface::Config) { type ClippyCallbacks (line 133) | struct ClippyCallbacks { method config (line 139) | fn config(&mut self, config: &mut interface::Config) { function display_help (line 186) | fn display_help() -> ExitCode { constant BUG_REPORT_URL (line 194) | const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/i... function main (line 196) | fn main() -> ExitCode { function help_message (line 321) | fn help_message() -> &'static str { FILE: src/main.rs function show_help (line 14) | fn show_help() { function show_version (line 20) | fn show_version() { function main (line 27) | pub fn main() { type ClippyCmd (line 56) | struct ClippyCmd { method new (line 63) | fn new(mut old_args: I) -> Self method path (line 100) | fn path() -> PathBuf { method into_std_cmd (line 112) | fn into_std_cmd(self) -> Command { function process (line 132) | fn process(old_args: I) -> Result<(), i32> function help_message (line 154) | pub fn help_message() -> &'static str { function fix (line 195) | fn fix() { function fix_implies_no_deps (line 203) | fn fix_implies_no_deps() { function no_deps_not_duplicated_with_fix (line 210) | fn no_deps_not_duplicated_with_fix() { function check (line 219) | fn check() { FILE: tests/check-fmt.rs function fmt (line 7) | fn fmt() { FILE: tests/compile-test.rs function internal_extern_flags (line 47) | fn internal_extern_flags() -> Vec { constant RUN_INTERNAL_TESTS (line 100) | const RUN_INTERNAL_TESTS: bool = cfg!(feature = "internal"); type TestContext (line 102) | struct TestContext { method new (line 109) | fn new() -> Self { method base_config (line 123) | fn base_config(&self, test_dir: &str, mandatory_annotations: bool) -> ... function run_ui (line 230) | fn run_ui(cx: &TestContext) { function run_internal_tests (line 246) | fn run_internal_tests(cx: &TestContext) { function run_ui_toml (line 266) | fn run_ui_toml(cx: &TestContext) { function run_ui_cargo (line 291) | fn run_ui_cargo(cx: &TestContext) { function main (line 336) | fn main() { function ui_cargo_toml_metadata (line 391) | fn ui_cargo_toml_metadata() { type Renderer (line 441) | struct Renderer<'a> { function markdown (line 447) | fn markdown(input: &str) -> Safe { type DiagnosticOrMessage (line 459) | enum DiagnosticOrMessage { type DiagnosticCollector (line 467) | struct DiagnosticCollector { method spawn (line 473) | fn spawn() -> (Self, thread::JoinHandle<()>) { function applicability_ord (line 536) | fn applicability_ord(applicability: &Applicability) -> u8 { method post_test_action (line 547) | fn post_test_action( method clone_inner (line 559) | fn clone_inner(&self) -> Box { method must_be_unique (line 563) | fn must_be_unique(&self) -> bool { type LintMetadata (line 569) | struct LintMetadata { method new (line 580) | fn new(lint: &LintInfo, applicabilities: &HashMap ... method applicability_str (line 641) | fn applicability_str(&self) -> &str { FILE: tests/config-consistency.rs function config_consistency (line 12) | fn config_consistency() { FILE: tests/config-metadata.rs function metadata (line 9) | fn metadata() -> impl Iterator { function book (line 17) | fn book() { function changelog (line 50) | fn changelog() { FILE: tests/dogfood.rs function main (line 17) | fn main() { function dogfood (line 33) | fn dogfood() { function run_clippy_for_package (line 61) | fn run_clippy_for_package(project: &str) -> bool { FILE: tests/integration.rs constant CARGO_CLIPPY (line 18) | const CARGO_CLIPPY: &str = "cargo-clippy"; constant CARGO_CLIPPY (line 20) | const CARGO_CLIPPY: &str = "cargo-clippy.exe"; function integration_test (line 23) | fn integration_test() { FILE: tests/lint_message_convention.rs type Message (line 10) | struct Message { method new (line 16) | fn new(path: PathBuf) -> Self { function lint_message_convention (line 67) | fn lint_message_convention() { FILE: tests/missing-test-files.rs function test_missing_tests (line 10) | fn test_missing_tests() { function explore_directory (line 26) | fn explore_directory(dir: &Path) -> Vec { FILE: tests/no-profile-in-cargo-toml.rs function no_profile_in_cargo_toml (line 14) | fn no_profile_in_cargo_toml() { FILE: tests/symbols-used.rs constant SYM_FILE (line 15) | const SYM_FILE: &str = "clippy_utils/src/sym.rs"; type Result (line 17) | type Result = std::result::Result; type AnyError (line 18) | type AnyError = Box; function all_symbols_are_used (line 21) | fn all_symbols_are_used() -> Result<()> { FILE: tests/test_utils/mod.rs constant IS_RUSTC_TEST_SUITE (line 8) | pub const IS_RUSTC_TEST_SUITE: bool = option_env!("RUSTC_TEST_SUITE").is... FILE: tests/ui-cargo/cargo_common_metadata/fail/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_common_metadata/fail_publish/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_common_metadata/fail_publish_true/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_common_metadata/pass/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_common_metadata/pass_publish_empty/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_common_metadata/pass_publish_false/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/fail_both_diff/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/fail_both_same/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/fail_cargo/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/fail_clippy/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/fail_file_attr/src/main.rs type Foo (line 8) | pub struct Foo; method bar (line 11) | pub fn bar() -> Foo { function main (line 16) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/pass_both_same/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/pass_cargo/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/pass_clippy/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/pass_file_attr/src/main.rs type Foo (line 5) | pub struct Foo; method bar (line 8) | pub fn bar() -> Foo { function main (line 13) | fn main() {} FILE: tests/ui-cargo/cargo_rust_version/warn_both_diff/src/main.rs type Foo (line 3) | pub struct Foo; method bar (line 6) | pub fn bar() -> Foo { function main (line 11) | fn main() {} FILE: tests/ui-cargo/duplicate_mod/fail/src/main.rs function main (line 26) | fn main() {} FILE: tests/ui-cargo/feature_name/fail/src/main.rs function main (line 4) | fn main() { FILE: tests/ui-cargo/feature_name/pass/src/main.rs function main (line 4) | fn main() { FILE: tests/ui-cargo/module_style/fail_mod/src/bad/inner/stuff.rs type Inner (line 3) | pub struct Inner; FILE: tests/ui-cargo/module_style/fail_mod/src/bad/inner/stuff/most.rs type Snarks (line 1) | pub struct Snarks; FILE: tests/ui-cargo/module_style/fail_mod/src/bad/mod.rs type Thing (line 3) | pub struct Thing; FILE: tests/ui-cargo/module_style/fail_mod/src/main.rs function main (line 5) | fn main() { FILE: tests/ui-cargo/module_style/fail_mod_remap/src/main.rs function main (line 8) | fn main() {} FILE: tests/ui-cargo/module_style/fail_no_mod/src/bad/mod.rs type Thing (line 1) | pub struct Thing; FILE: tests/ui-cargo/module_style/fail_no_mod/src/main.rs function main (line 5) | fn main() { FILE: tests/ui-cargo/module_style/pass_mod/src/bad/mod.rs type Thing (line 1) | pub struct Thing; FILE: tests/ui-cargo/module_style/pass_mod/src/main.rs function main (line 6) | fn main() { FILE: tests/ui-cargo/module_style/pass_mod/src/more/foo.rs type Foo (line 1) | pub struct Foo; FILE: tests/ui-cargo/module_style/pass_mod/src/more/inner/mod.rs type Inner (line 1) | pub struct Inner; FILE: tests/ui-cargo/module_style/pass_no_mod/src/good.rs type Thing (line 1) | pub struct Thing; FILE: tests/ui-cargo/module_style/pass_no_mod/src/main.rs function main (line 5) | fn main() { FILE: tests/ui-cargo/multiple_config_files/no_warn/src/main.rs function main (line 1) | fn main() { FILE: tests/ui-cargo/multiple_config_files/warn/src/main.rs function main (line 1) | fn main() { FILE: tests/ui-cargo/multiple_crate_versions/12145_with_dashes/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_crate_versions/12176_allow_duplicate_crates/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_crate_versions/5041_allow_dev_build/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_crate_versions/fail/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_crate_versions/pass/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_inherent_impl/config_fail/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/multiple_inherent_impl/crate_fail/src/b.rs type S (line 1) | pub struct S; type T (line 2) | pub struct T; method first (line 5) | fn first() {} FILE: tests/ui-cargo/multiple_inherent_impl/crate_fail/src/main.rs type S (line 4) | struct S; method first (line 8) | fn first() {} method second (line 13) | fn second() {} type T (line 5) | struct T; method first (line 17) | fn first() {} method second (line 24) | fn second() {} function first (line 32) | fn first() {} function second (line 33) | fn second() {} function second (line 38) | fn second() {} function main (line 41) | fn main() {} FILE: tests/ui-cargo/multiple_inherent_impl/file_fail/src/c.rs type S (line 1) | pub struct S; method first (line 5) | fn first() {} type T (line 2) | struct T; method first (line 11) | fn first() {} method second (line 19) | fn second() {} FILE: tests/ui-cargo/multiple_inherent_impl/file_fail/src/main.rs type S (line 4) | struct S; method first (line 7) | fn first() {} method second (line 15) | fn second() {} method first (line 23) | fn first() {} method second (line 29) | fn second() {} type S (line 20) | struct S; method first (line 7) | fn first() {} method second (line 15) | fn second() {} method first (line 23) | fn first() {} method second (line 29) | fn second() {} function second (line 37) | fn second() {} function main (line 40) | fn main() {} FILE: tests/ui-cargo/multiple_inherent_impl/module_fail/src/c.rs type S (line 1) | pub struct S; method first (line 5) | fn first() {} type T (line 2) | struct T; method first (line 9) | fn first() {} method second (line 14) | fn second() {} FILE: tests/ui-cargo/multiple_inherent_impl/module_fail/src/main.rs type S (line 4) | struct S; method first (line 7) | fn first() {} method second (line 15) | fn second() {} method first (line 23) | fn first() {} method second (line 29) | fn second() {} type S (line 20) | struct S; method first (line 7) | fn first() {} method second (line 15) | fn second() {} method first (line 23) | fn first() {} method second (line 29) | fn second() {} function second (line 37) | fn second() {} function main (line 40) | fn main() {} FILE: tests/ui-cargo/undocumented_unsafe_blocks/fail/src/main.rs function main (line 7) | fn main() {} FILE: tests/ui-cargo/wildcard_dependencies/fail/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-cargo/wildcard_dependencies/pass/src/main.rs function main (line 3) | fn main() {} FILE: tests/ui-internal/check_clippy_version_attribute.rs function main (line 100) | fn main() {} FILE: tests/ui-internal/check_formulation.rs function main (line 57) | fn main() {} FILE: tests/ui-internal/collapsible_span_lint_calls.rs method check_expr (line 28) | fn check_expr(&mut self, cx: &EarlyContext, expr: &Expr) { function main (line 100) | fn main() {} FILE: tests/ui-internal/custom_ice_message.rs function it_looks_like_you_are_trying_to_kill_clippy (line 12) | fn it_looks_like_you_are_trying_to_kill_clippy() {} function main (line 15) | fn main() {} FILE: tests/ui-internal/default_lint.rs function main (line 29) | fn main() {} FILE: tests/ui-internal/derive_deserialize_allowing_unknown.rs type Struct (line 6) | struct Struct { type Enum (line 12) | enum Enum { type StructWithDenyUnknownFields (line 21) | struct StructWithDenyUnknownFields { type EnumWithDenyUnknownFields (line 28) | enum EnumWithDenyUnknownFields { type MultipleSerdeAttributes (line 35) | enum MultipleSerdeAttributes { type TupleStruct (line 41) | struct TupleStruct(u64, bool); type EnumWithOnlyTupleVariants (line 45) | enum EnumWithOnlyTupleVariants { type ManualSerdeImplementation (line 50) | struct ManualSerdeImplementation; method deserialize (line 53) | fn deserialize(deserializer: D) -> Result FILE: tests/ui-internal/disallow_span_lint.rs function a (line 14) | pub fn a(cx: impl LintContext, lint: &'static Lint, span: impl Into, lint: &'static Lint, hir_id: HirId, span: impl... function main (line 28) | fn main() {} FILE: tests/ui-internal/interning_literals.rs function main (line 9) | fn main() { function intern (line 31) | fn intern(_: &str) {} FILE: tests/ui-internal/interning_literals_unfixable.rs function main (line 8) | fn main() { FILE: tests/ui-internal/invalid_msrv_attr_impl.rs type Pass (line 22) | struct Pass { method check_expr (line 30) | fn check_expr(&mut self, _: &EarlyContext<'_>, _: &rustc_ast::Expr) {} function main (line 33) | fn main() {} FILE: tests/ui-internal/lint_without_lint_pass.rs type Pass (line 34) | pub struct Pass; method name (line 36) | fn name(&self) -> &'static str { method get_lints (line 39) | fn get_lints(&self) -> LintVec { type Pass3 (line 46) | pub struct Pass3; function main (line 49) | fn main() {} FILE: tests/ui-internal/outer_expn_data.rs method check_expr (line 22) | fn check_expr(&mut self, _cx: &LateContext<'tcx>, expr: &'tcx Expr) { function main (line 28) | fn main() {} FILE: tests/ui-internal/repeated_is_diagnostic_item.rs function binops (line 15) | fn binops(cx: &LateContext<'_>, ty: Ty<'_>, adt_def: &AdtDef<'_>) { function main (line 77) | fn main() {} FILE: tests/ui-internal/repeated_is_diagnostic_item_unfixable.rs function main (line 16) | fn main() {} function if_chains (line 19) | fn if_chains(cx: &LateContext<'_>, ty: Ty<'_>, adt_def: &AdtDef<'_>) { function consecutive_ifs (line 122) | fn consecutive_ifs(cx: &LateContext<'_>, ty: Ty<'_>, adt_def: &AdtDef<'_... FILE: tests/ui-internal/symbol_as_str.rs function f (line 8) | fn f(s: Symbol) { FILE: tests/ui-internal/symbol_as_str_unfixable.rs function f (line 8) | fn f(s: Symbol) { FILE: tests/ui-toml/absolute_paths/absolute_paths.rs function main (line 13) | fn main() { type S (line 107) | pub struct S; constant _ (line 113) | const _: crate::S = { function f (line 121) | pub fn f() { FILE: tests/ui-toml/absolute_paths/absolute_paths_2015.rs type X (line 11) | pub struct X; function main (line 15) | fn main() { FILE: tests/ui-toml/allow_mixed_uninlined_format_args/uninlined_format_args.rs function main (line 4) | fn main() { FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_good.rs constant AFTER (line 26) | const AFTER: i8 = 0; constant BEFORE (line 28) | const BEFORE: i8 = 0; constant A (line 33) | const A: i8 = 1; constant C (line 34) | const C: i8 = 0; constant SNAKE_CASE (line 41) | const SNAKE_CASE: &str = "zzzzzzzz"; constant ZIS_SHOULD_BE_EVEN_EARLIER (line 43) | const ZIS_SHOULD_BE_EVEN_EARLIER: () = (); constant ZIS_SHOULD_BE_REALLY_EARLY (line 45) | const ZIS_SHOULD_BE_REALLY_EARLY: () = (); type BasicEmptyTrait (line 47) | trait BasicEmptyTrait {} type CloneSelf (line 49) | trait CloneSelf { method clone_self (line 50) | fn clone_self(&self) -> Self; method clone_self (line 81) | fn clone_self(&self) -> Self { type EnumOrdered (line 53) | enum EnumOrdered { type EnumUnordered (line 59) | enum EnumUnordered { type EnumUnorderedAllowed (line 66) | enum EnumUnorderedAllowed { type StructOrdered (line 72) | struct StructOrdered { method clone (line 101) | fn clone(&self) -> Self { method default (line 91) | fn default() -> Self { type StructUnordered (line 111) | struct StructUnordered { type StructUnorderedGeneric (line 142) | struct StructUnorderedGeneric { type TraitOrdered (line 150) | trait TraitOrdered { constant A (line 151) | const A: bool; constant B (line 152) | const B: bool; constant C (line 153) | const C: bool; method a (line 157) | fn a(); method b (line 158) | fn b(); method c (line 159) | fn c(); type TraitUnordered (line 162) | trait TraitUnordered { constant A (line 119) | const A: bool = false; constant B (line 120) | const B: bool = false; constant C (line 121) | const C: bool = false; type SomeType (line 123) | type SomeType = (); method a (line 125) | fn a() {} method b (line 126) | fn b() {} method c (line 127) | fn c() {} constant A (line 163) | const A: bool; constant B (line 164) | const B: bool; constant C (line 165) | const C: bool; method a (line 169) | fn a(); method b (line 170) | fn b(); method c (line 171) | fn c(); type TraitUnorderedItemKinds (line 174) | trait TraitUnorderedItemKinds { constant A (line 131) | const A: bool = false; constant B (line 132) | const B: bool = false; constant C (line 133) | const C: bool = false; type SomeType (line 135) | type SomeType = (); method a (line 137) | fn a() {} method b (line 138) | fn b() {} method c (line 139) | fn c() {} constant A (line 175) | const A: bool; constant B (line 176) | const B: bool; constant C (line 177) | const C: bool; method a (line 181) | fn a(); method b (line 182) | fn b(); method c (line 183) | fn c(); type ZisShouldBeBeforeZeMainFn (line 187) | struct ZisShouldBeBeforeZeMainFn; function main (line 189) | fn main() { constant B (line 195) | const B: i8 = 1; constant A (line 197) | const A: i8 = 0; FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_good_var_1.rs constant AFTER (line 11) | const AFTER: i8 = 0; constant BEFORE (line 13) | const BEFORE: i8 = 0; constant A (line 18) | const A: i8 = 1; constant C (line 19) | const C: i8 = 0; constant SNAKE_CASE (line 26) | const SNAKE_CASE: &str = "zzzzzzzz"; constant ZIS_SHOULD_BE_EVEN_EARLIER (line 28) | const ZIS_SHOULD_BE_EVEN_EARLIER: () = (); constant ZIS_SHOULD_BE_REALLY_EARLY (line 30) | const ZIS_SHOULD_BE_REALLY_EARLY: () = (); type BasicEmptyTrait (line 32) | trait BasicEmptyTrait {} type CloneSelf (line 34) | trait CloneSelf { method clone_self (line 35) | fn clone_self(&self) -> Self; method clone_self (line 66) | fn clone_self(&self) -> Self { type EnumOrdered (line 38) | enum EnumOrdered { type EnumUnordered (line 44) | enum EnumUnordered { type EnumUnorderedAllowed (line 51) | enum EnumUnorderedAllowed { type StructOrdered (line 57) | struct StructOrdered { method clone (line 86) | fn clone(&self) -> Self { method default (line 76) | fn default() -> Self { type StructUnordered (line 96) | struct StructUnordered { type StructUnorderedGeneric (line 123) | struct StructUnorderedGeneric { type TraitOrdered (line 131) | trait TraitOrdered { method a (line 132) | fn a(); method b (line 133) | fn b(); method c (line 134) | fn c(); constant A (line 138) | const A: bool; constant B (line 139) | const B: bool; constant C (line 140) | const C: bool; type TraitUnordered (line 143) | trait TraitUnordered { method a (line 104) | fn a() {} method b (line 105) | fn b() {} method c (line 106) | fn c() {} type SomeType (line 108) | type SomeType = (); constant A (line 110) | const A: bool = false; constant B (line 111) | const B: bool = false; constant C (line 112) | const C: bool = false; method a (line 144) | fn a(); method b (line 145) | fn b(); method c (line 146) | fn c(); constant A (line 150) | const A: bool; constant B (line 151) | const B: bool; constant C (line 152) | const C: bool; type TraitUnorderedItemKinds (line 155) | trait TraitUnorderedItemKinds { method a (line 116) | fn a() {} type SomeType (line 118) | type SomeType = (); constant A (line 120) | const A: bool = false; method a (line 156) | fn a(); constant A (line 160) | const A: bool; type ZisShouldBeBeforeZeMainFn (line 164) | struct ZisShouldBeBeforeZeMainFn; function main (line 166) | fn main() { constant B (line 172) | const B: i8 = 1; constant A (line 174) | const A: i8 = 0; FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs constant BEFORE (line 12) | const BEFORE: i8 = 0; constant AFTER (line 14) | const AFTER: i8 = 0; constant ZNAKE_CASE (line 22) | const ZNAKE_CASE: &str = "123"; constant SNAKE_CASE (line 23) | const SNAKE_CASE: &str = "zzzzzzzz"; type BasicEmptyTrait (line 29) | trait BasicEmptyTrait {} type CloneSelf (line 31) | trait CloneSelf { method clone_self (line 32) | fn clone_self(&self) -> Self; method clone_self (line 89) | fn clone_self(&self) -> Self { type EnumOrdered (line 35) | enum EnumOrdered { type EnumUnordered (line 41) | enum EnumUnordered { type EnumUnorderedAllowed (line 49) | enum EnumUnorderedAllowed { type EnumWithoutExtern (line 55) | struct EnumWithoutExtern { type EnumWithExternButAtWrongPosition (line 64) | struct EnumWithExternButAtWrongPosition { type StructOrdered (line 71) | struct StructOrdered { method clone (line 99) | fn clone(&self) -> Self { method default (line 78) | fn default() -> Self { type StructUnordered (line 109) | struct StructUnordered { type StructUnorderedGeneric (line 117) | struct StructUnorderedGeneric { type TraitOrdered (line 126) | trait TraitOrdered { constant A (line 127) | const A: bool; constant B (line 128) | const B: bool; constant C (line 129) | const C: bool; method a (line 133) | fn a(); method b (line 134) | fn b(); method c (line 135) | fn c(); type TraitUnordered (line 138) | trait TraitUnordered { constant A (line 139) | const A: bool; constant C (line 140) | const C: bool; constant B (line 141) | const B: bool; method a (line 146) | fn a(); method c (line 147) | fn c(); method b (line 148) | fn b(); constant A (line 169) | const A: bool = false; constant C (line 170) | const C: bool = false; constant B (line 171) | const B: bool = false; type SomeType (line 174) | type SomeType = (); method a (line 176) | fn a() {} method c (line 177) | fn c() {} method b (line 178) | fn b() {} type TraitUnorderedItemKinds (line 152) | trait TraitUnorderedItemKinds { constant A (line 155) | const A: bool; constant B (line 157) | const B: bool; constant C (line 158) | const C: bool; method a (line 160) | fn a(); method b (line 161) | fn b(); method c (line 162) | fn c(); type SomeType (line 187) | type SomeType = (); constant A (line 189) | const A: bool = false; constant B (line 191) | const B: bool = false; constant C (line 192) | const C: bool = false; method a (line 194) | fn a() {} method b (line 195) | fn b() {} method c (line 196) | fn c() {} constant ZIS_SHOULD_BE_REALLY_EARLY (line 165) | const ZIS_SHOULD_BE_REALLY_EARLY: () = (); function main (line 199) | fn main() { constant C (line 206) | const C: i8 = 0; constant A (line 207) | const A: i8 = 1; type ZisShouldBeBeforeZeMainFn (line 212) | struct ZisShouldBeBeforeZeMainFn; constant ZIS_SHOULD_BE_EVEN_EARLIER (line 214) | const ZIS_SHOULD_BE_EVEN_EARLIER: () = (); constant B (line 219) | const B: i8 = 1; constant A (line 221) | const A: i8 = 0; FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed_var_1.rs constant AFTER (line 10) | const AFTER: i8 = 0; constant BEFORE (line 12) | const BEFORE: i8 = 0; constant A (line 17) | const A: i8 = 1; constant C (line 18) | const C: i8 = 0; constant SNAKE_CASE (line 25) | const SNAKE_CASE: &str = "zzzzzzzz"; constant ZIS_SHOULD_BE_EVEN_EARLIER (line 27) | const ZIS_SHOULD_BE_EVEN_EARLIER: () = (); constant ZIS_SHOULD_BE_REALLY_EARLY (line 29) | const ZIS_SHOULD_BE_REALLY_EARLY: () = (); type BasicEmptyTrait (line 31) | trait BasicEmptyTrait {} type CloneSelf (line 33) | trait CloneSelf { method clone_self (line 34) | fn clone_self(&self) -> Self; method clone_self (line 65) | fn clone_self(&self) -> Self { type EnumOrdered (line 37) | enum EnumOrdered { type EnumUnordered (line 43) | enum EnumUnordered { type EnumUnorderedAllowed (line 50) | enum EnumUnorderedAllowed { type StructOrdered (line 56) | struct StructOrdered { method clone (line 85) | fn clone(&self) -> Self { method default (line 75) | fn default() -> Self { type StructUnordered (line 95) | struct StructUnordered { type StructUnorderedGeneric (line 126) | struct StructUnorderedGeneric { type TraitOrdered (line 134) | trait TraitOrdered { method a (line 135) | fn a(); method b (line 136) | fn b(); method c (line 137) | fn c(); constant A (line 141) | const A: bool; constant B (line 142) | const B: bool; constant C (line 143) | const C: bool; type TraitUnordered (line 146) | trait TraitUnordered { method a (line 103) | fn a() {} method c (line 104) | fn c() {} method b (line 105) | fn b() {} type SomeType (line 108) | type SomeType = (); constant A (line 110) | const A: bool = false; constant C (line 111) | const C: bool = false; constant B (line 112) | const B: bool = false; method a (line 147) | fn a(); method c (line 148) | fn c(); method b (line 149) | fn b(); constant A (line 154) | const A: bool; constant C (line 155) | const C: bool; constant B (line 156) | const B: bool; type TraitUnorderedItemKinds (line 160) | trait TraitUnorderedItemKinds { constant A (line 117) | const A: bool = false; type SomeType (line 119) | type SomeType = (); method a (line 122) | fn a() {} constant A (line 161) | const A: bool; method a (line 166) | fn a(); type ZisShouldBeBeforeZeMainFn (line 171) | struct ZisShouldBeBeforeZeMainFn; function main (line 173) | fn main() { constant B (line 179) | const B: i8 = 1; constant A (line 181) | const A: i8 = 0; FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_only_enum.rs function main (line 8) | fn main() {} type StructUnordered (line 10) | struct StructUnordered { type EnumOrdered (line 15) | enum EnumOrdered { type EnumUnordered (line 20) | enum EnumUnordered { type TraitUnordered (line 26) | trait TraitUnordered { constant B (line 27) | const B: bool; constant A (line 28) | const A: bool; method b (line 32) | fn b(); method a (line 33) | fn a(); type TraitUnorderedItemKinds (line 36) | trait TraitUnorderedItemKinds { constant A (line 39) | const A: bool; method a (line 41) | fn a(); constant ZIS_SHOULD_BE_AT_THE_TOP (line 44) | const ZIS_SHOULD_BE_AT_THE_TOP: () = (); FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_only_impl.rs function main (line 8) | fn main() {} type StructUnordered (line 10) | struct StructUnordered { type BasicStruct (line 15) | struct BasicStruct {} type BasicTrait (line 17) | trait BasicTrait { constant A (line 18) | const A: bool; method b (line 22) | fn b(); method a (line 23) | fn a(); method b (line 42) | fn b() {} method a (line 43) | fn a() {} type SomeType (line 46) | type SomeType = i8; constant A (line 49) | const A: bool = true; constant A (line 64) | const A: bool = true; type SomeType (line 66) | type SomeType = i8; method a (line 68) | fn a() {} method b (line 69) | fn b() {} type EnumUnordered (line 26) | enum EnumUnordered { type TraitUnordered (line 31) | trait TraitUnordered { constant B (line 32) | const B: bool; constant A (line 33) | const A: bool; method b (line 37) | fn b(); method a (line 38) | fn a(); type TraitUnorderedItemKinds (line 53) | trait TraitUnorderedItemKinds { constant A (line 56) | const A: bool; method a (line 58) | fn a(); constant ZIS_SHOULD_BE_AT_THE_TOP (line 61) | const ZIS_SHOULD_BE_AT_THE_TOP: () = (); FILE: tests/ui-toml/arbitrary_source_item_ordering/ordering_only_trait.rs function main (line 8) | fn main() {} type StructUnordered (line 10) | struct StructUnordered { type TraitOrdered (line 15) | trait TraitOrdered { constant A (line 16) | const A: bool; constant B (line 17) | const B: bool; method a (line 21) | fn a(); method b (line 22) | fn b(); type EnumUnordered (line 25) | enum EnumUnordered { type TraitUnordered (line 30) | trait TraitUnordered { constant B (line 31) | const B: bool; constant A (line 32) | const A: bool; method b (line 37) | fn b(); method a (line 38) | fn a(); type TraitUnorderedItemKinds (line 42) | trait TraitUnorderedItemKinds { constant A (line 45) | const A: bool; method a (line 48) | fn a(); constant ZIS_SHOULD_BE_AT_THE_TOP (line 51) | const ZIS_SHOULD_BE_AT_THE_TOP: () = (); FILE: tests/ui-toml/arbitrary_source_item_ordering/selective_ordering.rs type Ordered (line 13) | struct Ordered { type Unordered (line 19) | struct Unordered { type OrderedChecked (line 25) | struct OrderedChecked { type UnorderedChecked (line 34) | struct UnorderedChecked { function main (line 42) | fn main() { function before_main (line 46) | fn before_main() {} constant B (line 51) | const B: i8 = 1; constant A (line 52) | const A: i8 = 0; FILE: tests/ui-toml/arithmetic_side_effects_allowed/arithmetic_side_effects_allowed.rs function lhs_and_rhs_are_equal (line 61) | fn lhs_and_rhs_are_equal() { function lhs_is_different (line 73) | fn lhs_is_different() { function rhs_is_different (line 94) | fn rhs_is_different() { function unary (line 115) | fn unary() { function main (line 128) | fn main() {} FILE: tests/ui-toml/array_size_threshold/array_size_threshold.rs constant ABOVE (line 4) | const ABOVE: [u8; 11] = [0; 11]; constant BELOW (line 6) | const BELOW: [u8; 10] = [0; 10]; function main (line 8) | fn main() { FILE: tests/ui-toml/await_holding_invalid_type/await_holding_invalid_type.rs function bad (line 5) | async fn bad() -> u32 { function bad_reason (line 11) | async fn bad_reason() -> u32 { function good (line 19) | async fn good() -> u32 { function baz (line 29) | async fn baz() -> u32 { function block_bad (line 34) | fn block_bad() -> impl std::future::Future { function main (line 42) | fn main() {} FILE: tests/ui-toml/await_holding_invalid_type_with_replacement/await_holding_invalid_type.rs function main (line 2) | fn main() {} FILE: tests/ui-toml/bad_toml/conf_bad_toml.rs function main (line 3) | fn main() {} FILE: tests/ui-toml/bad_toml_type/conf_bad_type.rs function main (line 3) | fn main() {} FILE: tests/ui-toml/borrow_interior_mutable_const/ignore.rs type Counted (line 14) | struct Counted { function new (line 20) | const fn new(val: T) -> Self { type OptionalCell (line 28) | enum OptionalCell { constant UNFROZEN_VARIANT (line 33) | const UNFROZEN_VARIANT: OptionalCell = OptionalCell::Unfrozen(Counted::n... constant FROZEN_VARIANT (line 34) | const FROZEN_VARIANT: OptionalCell = OptionalCell::Frozen; function main (line 36) | fn main() { FILE: tests/ui-toml/check_incompatible_msrv_in_tests/check_incompatible_msrv_in_tests.rs function main (line 13) | fn main() { function test (line 19) | fn test() { function helper (line 27) | fn helper() { FILE: tests/ui-toml/collapsible_if/collapsible_else_if.rs function main (line 5) | fn main() { function issue_13365 (line 57) | fn issue_13365() { FILE: tests/ui-toml/collapsible_if/collapsible_if.rs function main (line 5) | fn main() { FILE: tests/ui-toml/collapsible_if/collapsible_if_let_chains.rs function main (line 3) | fn main() { FILE: tests/ui-toml/conf_deprecated_key/conf_deprecated_key.rs function main (line 1) | fn main() {} function cognitive_complexity (line 4) | fn cognitive_complexity() { FILE: tests/ui-toml/dbg_macro/dbg_macro.rs function foo (line 5) | fn foo(n: u32) -> u32 { function factorial (line 10) | fn factorial(n: u32) -> u32 { function main (line 21) | fn main() { function issue8481 (line 31) | pub fn issue8481() { function foo2 (line 36) | fn foo2() { function func (line 42) | fn func() { FILE: tests/ui-toml/decimal_literal_representation/decimal_literal_representation.rs function main (line 2) | fn main() { FILE: tests/ui-toml/declare_interior_mutable_const/ignore.rs type Counted (line 14) | struct Counted { function new (line 20) | const fn new(val: T) -> Self { type OptionalCell (line 28) | enum OptionalCell { constant UNFROZEN_VARIANT (line 33) | const UNFROZEN_VARIANT: OptionalCell = OptionalCell::Unfrozen(Counted::n... constant FROZEN_VARIANT (line 34) | const FROZEN_VARIANT: OptionalCell = OptionalCell::Frozen; function unfrozen_variant (line 36) | const fn unfrozen_variant() -> OptionalCell { function frozen_variant (line 40) | const fn frozen_variant() -> OptionalCell { constant UNFROZEN_VARIANT_FROM_FN (line 44) | const UNFROZEN_VARIANT_FROM_FN: OptionalCell = unfrozen_variant(); constant FROZEN_VARIANT_FROM_FN (line 45) | const FROZEN_VARIANT_FROM_FN: OptionalCell = frozen_variant(); function main (line 47) | fn main() {} FILE: tests/ui-toml/disallowed_macros/auxiliary/proc_macros.rs function derive (line 7) | pub fn derive(_: TokenStream) -> TokenStream { FILE: tests/ui-toml/disallowed_macros/disallowed_macros.rs function main (line 12) | fn main() { type Y (line 52) | trait Y { type Foo (line 64) | struct Foo; FILE: tests/ui-toml/disallowed_names_append/disallowed_names.rs function main (line 3) | fn main() { FILE: tests/ui-toml/disallowed_names_replace/disallowed_names.rs function main (line 3) | fn main() { FILE: tests/ui-toml/disallowed_script_idents/disallowed_script_idents.rs function main (line 2) | fn main() { FILE: tests/ui-toml/doc_valid_idents_append/doc_markdown.rs function allowed_name (line 4) | fn allowed_name() {} function default_name (line 7) | fn default_name() {} function unknown_name (line 11) | fn unknown_name() {} function main (line 13) | fn main() {} FILE: tests/ui-toml/doc_valid_idents_replace/doc_markdown.rs function allowed_name (line 4) | fn allowed_name() {} function default_name (line 9) | fn default_name() {} function unknown_name (line 13) | fn unknown_name() {} function main (line 15) | fn main() {} FILE: tests/ui-toml/duplicated_keys/duplicated_keys.rs function main (line 3) | fn main() {} FILE: tests/ui-toml/duplicated_keys_deprecated/duplicated_keys.rs function main (line 2) | fn main() {} FILE: tests/ui-toml/duplicated_keys_deprecated_2/duplicated_keys.rs function main (line 2) | fn main() {} FILE: tests/ui-toml/enum_variant_size/enum_variant_size.rs type Fine (line 1) | enum Fine { type Bad (line 5) | enum Bad { function main (line 11) | fn main() {} FILE: tests/ui-toml/excessive_nesting/excessive_nesting.rs type A (line 62) | struct A; method a (line 65) | pub fn a(&self, v: u32) { type D (line 81) | struct D { d: u32 } type Lol (line 83) | trait Lol { method lmao (line 84) | fn lmao() { function l (line 97) | fn l() {{{{{{{{{}}}}}}}}} function a_but_not (line 114) | fn a_but_not(v: u32) {} function main (line 116) | fn main() { function b (line 228) | async fn b() -> u32 { function a (line 235) | async fn a() { FILE: tests/ui-toml/excessive_precision/excessive_precision.rs function main (line 10) | fn main() { type ExcessivelyPreciseTrait (line 26) | trait ExcessivelyPreciseTrait { constant GOOD1 (line 28) | const GOOD1: f32 = 1.012345678901234567890; constant GOOD2 (line 29) | const GOOD2: f64 = 1.012345678901234567890; type ExcessivelyPreciseStruct (line 32) | struct ExcessivelyPreciseStruct; constant GOOD1 (line 36) | const GOOD1: f32 = 1.012345678901234567890; constant GOOD2 (line 37) | const GOOD2: f64 = 1.012345678901234567890; FILE: tests/ui-toml/expect_used/expect_used.rs function expect_option (line 5) | fn expect_option() { function expect_result (line 11) | fn expect_result() { function main (line 17) | fn main() { function test_expect_option (line 28) | fn test_expect_option() { function test_expect_result (line 34) | fn test_expect_result() { function test_fn (line 43) | fn test_fn() { function util (line 50) | fn util() { FILE: tests/ui-toml/explicit_iter_loop/explicit_iter_loop.rs function main (line 3) | fn main() { FILE: tests/ui-toml/extra_unused_type_parameters/extra_unused_type_parameters.rs type S (line 2) | pub struct S; method exported_fn (line 5) | pub fn exported_fn() { function main (line 10) | fn main() {} FILE: tests/ui-toml/fn_params_excessive_bools/test.rs function f (line 3) | fn f(_: bool) {} function g (line 4) | fn g(_: bool, _: bool) {} function main (line 7) | fn main() {} FILE: tests/ui-toml/functions_maxlines/test.rs function many_comments_but_one_line_of_code (line 5) | fn many_comments_but_one_line_of_code() { function too_many_lines (line 19) | fn too_many_lines() { function async_too_many_lines (line 26) | async fn async_too_many_lines() { function closure_too_many_lines (line 33) | fn closure_too_many_lines() { function comment_starts_after_code (line 43) | fn comment_starts_after_code() { function comment_after_code (line 50) | fn comment_after_code() { function comment_before_code (line 56) | fn comment_before_code() { function main (line 64) | fn main() {} FILE: tests/ui-toml/good_toml_no_false_negatives/conf_no_false_negatives.rs function main (line 2) | fn main() {} FILE: tests/ui-toml/ifs_same_cond/ifs_same_cond.rs function main (line 4) | fn main() {} function issue10272 (line 6) | fn issue10272() { FILE: tests/ui-toml/impl_trait_in_params/impl_trait_in_params.rs type Trait (line 6) | pub trait Trait {} type Private (line 8) | trait Private { method t (line 9) | fn t(_: impl Trait); method tt (line 10) | fn tt(_: T); type Public (line 13) | pub trait Public { method t (line 14) | fn t(_: impl Trait); method tt (line 15) | fn tt(_: T); FILE: tests/ui-toml/indexing_slicing/indexing_slicing.rs function main (line 5) | fn main() { function test_fn (line 15) | fn test_fn() { FILE: tests/ui-toml/invalid_min_rust_version/invalid_min_rust_version.rs function main (line 5) | fn main() {} FILE: tests/ui-toml/item_name_repetitions/allow_exact_repetitions/item_name_repetitions.rs function foo (line 6) | pub fn foo() {} function to_foo (line 10) | pub fn to_foo() {} function main (line 13) | fn main() {} FILE: tests/ui-toml/item_name_repetitions/allowed_prefixes/item_name_repetitions.rs function to_foo (line 9) | pub fn to_foo() {} function bar_foo (line 13) | pub fn bar_foo() {} function main (line 16) | fn main() {} FILE: tests/ui-toml/item_name_repetitions/allowed_prefixes_extend/item_name_repetitions.rs function something_foo (line 9) | pub fn something_foo() {} function bar_foo (line 13) | pub fn bar_foo() {} function to_foo (line 14) | pub fn to_foo() {} function as_foo (line 15) | pub fn as_foo() {} function into_foo (line 16) | pub fn into_foo() {} function from_foo (line 17) | pub fn from_foo() {} function try_into_foo (line 18) | pub fn try_into_foo() {} function try_from_foo (line 19) | pub fn try_from_foo() {} function main (line 22) | fn main() {} FILE: tests/ui-toml/item_name_repetitions/threshold0/item_name_repetitions.rs type Data (line 3) | struct Data {} type Actions (line 5) | enum Actions {} function main (line 7) | fn main() {} FILE: tests/ui-toml/item_name_repetitions/threshold5/item_name_repetitions.rs type Data (line 3) | struct Data { type Data2 (line 9) | struct Data2 { type Foo (line 17) | enum Foo { type Foo2 (line 23) | enum Foo2 { function main (line 32) | fn main() {} FILE: tests/ui-toml/large_futures/large_futures.rs function main (line 3) | fn main() {} function should_warn (line 5) | pub async fn should_warn() { function should_not_warn (line 11) | pub async fn should_not_warn() { function bar (line 17) | pub async fn bar() { FILE: tests/ui-toml/large_include_file/large_include_file.rs constant GOOD_INCLUDE_BYTES (line 5) | const GOOD_INCLUDE_BYTES: &[u8; 84] = include_bytes!("../../ui/author.rs"); constant GOOD_INCLUDE_STR (line 6) | const GOOD_INCLUDE_STR: &str = include_str!("../../ui/author.rs"); constant ALLOWED_TOO_BIG_INCLUDE_BYTES (line 9) | const ALLOWED_TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_bi... constant ALLOWED_TOO_BIG_INCLUDE_STR (line 11) | const ALLOWED_TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt"); constant TOO_BIG_INCLUDE_BYTES (line 14) | const TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt"); constant TOO_BIG_INCLUDE_STR (line 16) | const TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt"); function main (line 24) | fn main() {} FILE: tests/ui-toml/large_stack_frames/large_stack_frames.rs function create_array (line 5) | fn create_array() -> [u8; N] { function f (line 9) | fn f() { function f2 (line 12) | fn f2() { function main (line 17) | fn main() {} FILE: tests/ui-toml/large_stack_frames_for_macros/large_stack_frames.rs type ArrayDefault (line 10) | struct ArrayDefault([u8; N]); type S (line 38) | struct S { function main (line 42) | fn main() {} FILE: tests/ui-toml/large_stack_frames_for_special_targets/large_stack_frames.rs function main_test (line 12) | fn main_test() {} FILE: tests/ui-toml/large_types_passed_by_value/large_types_passed_by_value.rs function f (line 3) | fn f(_v: [u8; 512]) {} function f2 (line 4) | fn f2(_v: [u8; 513]) {} function main (line 7) | fn main() {} FILE: tests/ui-toml/lint_decimal_readability/test.rs function allow_inconsistent_digit_grouping (line 4) | fn allow_inconsistent_digit_grouping() { function main (line 9) | fn main() { FILE: tests/ui-toml/macro_metavars_in_unsafe/default/test.rs function f (line 249) | pub fn f(p: *const i32) -> i32 { function main (line 264) | fn main() { FILE: tests/ui-toml/macro_metavars_in_unsafe/private/test.rs function main (line 13) | fn main() { FILE: tests/ui-toml/manual_let_else/manual_let_else.rs type Foo (line 3) | enum Foo { function main (line 8) | fn main() { FILE: tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.rs function below_limit (line 3) | fn below_limit() { function above_limit (line 13) | fn above_limit() { function main (line 21) | fn main() {} FILE: tests/ui-toml/min_ident_chars/auxiliary/extern_types.rs type Aaa (line 3) | pub struct Aaa; type Bbb (line 4) | pub struct Bbb; constant N (line 6) | pub const N: u32 = 3; constant M (line 8) | pub const M: u32 = 2; constant LONGER (line 9) | pub const LONGER: u32 = 32; FILE: tests/ui-toml/min_ident_chars/min_ident_chars.rs constant N (line 9) | pub const N: u32 = 0; constant LONG (line 11) | pub const LONG: u32 = 32; type Owo (line 13) | struct Owo { function main (line 19) | fn main() { FILE: tests/ui-toml/min_rust_version/min_rust_version.rs type E (line 8) | enum E { type Ep (line 17) | enum Ep { function option_as_ref_deref (line 25) | fn option_as_ref_deref() { function match_like_matches (line 34) | fn match_like_matches() { function match_same_arms (line 41) | fn match_same_arms() { function match_same_arms2 (line 49) | fn match_same_arms2() { function manual_strip_msrv (line 56) | fn manual_strip_msrv() { function check_index_refutable_slice (line 63) | fn check_index_refutable_slice() { function map_clone_suggest_copied (line 72) | fn map_clone_suggest_copied() { function borrow_as_ptr (line 78) | fn borrow_as_ptr() { function manual_bits (line 86) | fn manual_bits() { function main (line 91) | fn main() {} FILE: tests/ui-toml/missing_docs_in_private_items/missing_docs_in_private_items.rs function main (line 14) | fn main() {} function fn_pub (line 16) | pub fn fn_pub() {} constant CONST_PUB (line 17) | pub const CONST_PUB: u32 = 0; type TyAliasPub (line 19) | pub type TyAliasPub = u32; type StructPub (line 21) | pub struct StructPub; type StructFieldPub (line 22) | pub struct StructFieldPub { method f1 (line 71) | pub fn f1() {} constant C1 (line 72) | pub const C1: u32 = 0; method f2 (line 74) | pub fn f2() {} constant C2 (line 76) | pub const C2: u32 = 0; method f3 (line 77) | fn f3() {} constant C3 (line 78) | const C3: u32 = 0; method f4 (line 80) | fn f4() {} constant C4 (line 82) | const C4: u32 = 0; type StructTuplePub (line 36) | pub struct StructTuplePub(u32, pub u32); type EnumPub (line 37) | pub enum EnumPub { type TraitPub (line 84) | pub trait TraitPub { method f1 (line 85) | fn f1(); method f2 (line 86) | fn f2() {} constant C1 (line 87) | const C1: u32; constant C2 (line 88) | const C2: u32 = 0; method f3 (line 91) | fn f3(); method f4 (line 93) | fn f4() {} constant C3 (line 95) | const C3: u32; constant C4 (line 97) | const C4: u32 = 0; method f1 (line 102) | fn f1() {} constant C1 (line 103) | const C1: u32 = 0; type T1 (line 104) | type T1 = u32; method f3 (line 105) | fn f3() {} constant C3 (line 106) | const C3: u32 = 0; type T2 (line 107) | type T2 = u32; function fn_crate (line 117) | fn fn_crate() {} constant CONST_CRATE (line 118) | const CONST_CRATE: u32 = 0; type TyAliasCrate (line 120) | type TyAliasCrate = u32; type StructCrate (line 122) | struct StructCrate; type StructFieldCrate (line 124) | struct StructFieldCrate { method f1 (line 176) | pub fn f1() {} constant C1 (line 177) | pub const C1: u32 = 0; method f2 (line 179) | pub fn f2() {} constant C2 (line 181) | pub const C2: u32 = 0; method f3 (line 182) | fn f3() {} constant C3 (line 183) | const C3: u32 = 0; method f4 (line 185) | fn f4() {} constant C4 (line 187) | const C4: u32 = 0; type StructTupleCrate (line 138) | struct StructTupleCrate(u32, pub u32); type EnumCrate (line 140) | enum EnumCrate { type TraitCrate (line 190) | trait TraitCrate { method f1 (line 191) | fn f1(); method f2 (line 192) | fn f2() {} constant C1 (line 193) | const C1: u32; constant C2 (line 194) | const C2: u32 = 0; method f3 (line 197) | fn f3(); method f4 (line 199) | fn f4() {} constant C3 (line 201) | const C3: u32; constant C4 (line 203) | const C4: u32 = 0; method f1 (line 208) | fn f1() {} constant C1 (line 209) | const C1: u32 = 0; type T1 (line 210) | type T1 = u32; method f3 (line 211) | fn f3() {} constant C3 (line 212) | const C3: u32 = 0; type T2 (line 213) | type T2 = u32; method f1 (line 322) | fn f1() {} constant C1 (line 323) | const C1: u32 = 0; type T1 (line 324) | type T1 = u32; method f3 (line 325) | fn f3() {} constant C3 (line 326) | const C3: u32 = 0; type T2 (line 327) | type T2 = u32; function fn_crate_doc (line 225) | fn fn_crate_doc() {} constant CONST_CRATE_DOC (line 227) | const CONST_CRATE_DOC: u32 = 0; type TyAliasCrateDoc (line 231) | type TyAliasCrateDoc = u32; type StructCrateDoc (line 235) | struct StructCrateDoc; type StructFieldCrateDoc (line 237) | struct StructFieldCrateDoc { method f1 (line 290) | pub fn f1() {} constant C1 (line 291) | pub const C1: u32 = 0; method f2 (line 293) | pub fn f2() {} constant C2 (line 295) | pub const C2: u32 = 0; method f3 (line 296) | fn f3() {} constant C3 (line 297) | const C3: u32 = 0; method f4 (line 299) | fn f4() {} constant C4 (line 301) | const C4: u32 = 0; type StructTupleCrateDoc (line 252) | struct StructTupleCrateDoc(u32, pub u32); type EnumCrateDoc (line 254) | enum EnumCrateDoc { type TraitCrateDoc (line 304) | trait TraitCrateDoc { method f1 (line 305) | fn f1(); method f2 (line 306) | fn f2() {} constant C1 (line 307) | const C1: u32; constant C2 (line 308) | const C2: u32 = 0; method f3 (line 311) | fn f3(); method f4 (line 313) | fn f4() {} constant C3 (line 315) | const C3: u32; constant C4 (line 317) | const C4: u32 = 0; function fn_crate_hidden (line 339) | fn fn_crate_hidden() {} constant CONST_CRATE_HIDDEN (line 341) | const CONST_CRATE_HIDDEN: u32 = 0; type TyAliasCrateHidden (line 345) | type TyAliasCrateHidden = u32; type StructCrateHidden (line 349) | struct StructCrateHidden; type StructFieldCrateHidden (line 351) | struct StructFieldCrateHidden { method f1 (line 402) | pub fn f1() {} constant C1 (line 403) | pub const C1: u32 = 0; method f2 (line 405) | pub fn f2() {} constant C2 (line 407) | pub const C2: u32 = 0; method f3 (line 408) | fn f3() {} constant C3 (line 409) | const C3: u32 = 0; method f4 (line 411) | fn f4() {} constant C4 (line 413) | const C4: u32 = 0; type StructTupleCrateHidden (line 366) | struct StructTupleCrateHidden(u32, pub u32); type EnumCrateHidden (line 368) | enum EnumCrateHidden { type TraitCrateHidden (line 416) | trait TraitCrateHidden { method f1 (line 417) | fn f1(); method f2 (line 418) | fn f2() {} constant C1 (line 419) | const C1: u32; constant C2 (line 420) | const C2: u32 = 0; method f3 (line 423) | fn f3(); method f4 (line 425) | fn f4() {} constant C3 (line 427) | const C3: u32; constant C4 (line 429) | const C4: u32 = 0; function fn_crate_expect (line 443) | fn fn_crate_expect() {} constant CONST_CRATE_EXPECT (line 445) | const CONST_CRATE_EXPECT: u32 = 0; type TyAliasCrateExpect (line 449) | type TyAliasCrateExpect = u32; type StructCrateExpect (line 453) | struct StructCrateExpect; type StructFieldCrateExpect (line 455) | struct StructFieldCrateExpect { method f1 (line 505) | pub fn f1() {} constant C1 (line 507) | pub const C1: u32 = 0; method f2 (line 509) | fn f2() {} constant C2 (line 511) | const C2: u32 = 0; type StructTupleCrateExpect (line 466) | struct StructTupleCrateExpect(u32, pub u32); type EnumCrateExpect (line 468) | enum EnumCrateExpect { type TraitCrateExpect (line 514) | trait TraitCrateExpect { method f1 (line 516) | fn f1(); method f2 (line 518) | fn f2() {} constant C1 (line 520) | const C1: u32; constant C2 (line 522) | const C2: u32 = 0; function f1 (line 536) | pub fn f1() {} type S1 (line 537) | pub struct S1 { type E1 (line 545) | pub enum E1 { constant C1 (line 558) | pub const C1: u32 = 0; function f2 (line 561) | pub fn f2() {} type S2 (line 563) | pub struct S2 { type E2 (line 572) | pub enum E2 { constant C2 (line 586) | pub const C2: u32 = 0; function f3 (line 588) | fn f3() {} type S3 (line 591) | struct S3 { type E3 (line 600) | enum E3 { constant C3 (line 614) | const C3: u32 = 0; function f4 (line 617) | fn f4() {} type S4 (line 619) | struct S4 { type E4 (line 628) | enum E4 { constant C4 (line 643) | const C4: u32 = 0; function f1 (line 648) | pub fn f1() {} type S1 (line 651) | pub struct S1 { type E1 (line 660) | pub enum E1 { constant C1 (line 674) | pub const C1: u32 = 0; function f2 (line 677) | pub fn f2() {} type S2 (line 679) | pub struct S2 { type E2 (line 688) | pub enum E2 { constant C2 (line 703) | pub const C2: u32 = 0; function f3 (line 705) | fn f3() {} type S3 (line 708) | struct S3 { type E3 (line 717) | enum E3 { constant C3 (line 731) | const C3: u32 = 0; function f4 (line 734) | fn f4() {} type S4 (line 736) | struct S4 { type E4 (line 745) | enum E4 { constant C4 (line 760) | const C4: u32 = 0; function f1 (line 768) | pub fn f1() {} type S1 (line 769) | pub struct S1 { type E1 (line 777) | pub enum E1 { constant C1 (line 790) | pub const C1: u32 = 0; function f2 (line 793) | pub fn f2() {} type S2 (line 795) | pub struct S2 { type E2 (line 804) | pub enum E2 { constant C2 (line 818) | pub const C2: u32 = 0; function f3 (line 820) | fn f3() {} type S3 (line 821) | struct S3 { type E3 (line 829) | enum E3 { constant C3 (line 842) | const C3: u32 = 0; function f4 (line 845) | fn f4() {} type S4 (line 847) | struct S4 { type E4 (line 856) | enum E4 { constant C4 (line 870) | const C4: u32 = 0; constant _ (line 984) | pub const _: () = {}; constant _ (line 985) | const _: () = {}; function fn_with_items (line 988) | fn fn_with_items() { constant CONST_WITH_ITEMS (line 1020) | const CONST_WITH_ITEMS: () = { function f (line 1025) | fn f() {} type TraitWithItems (line 1028) | trait TraitWithItems { method f (line 1030) | fn f() { constant C (line 1034) | const C: () = { type StructWithItems (line 1039) | struct StructWithItems; method f (line 1042) | fn f() { constant C (line 1046) | const C: () = { type TypeAliasWithItems (line 1051) | type TypeAliasWithItems = [u32; { function f1_reexport (line 1058) | pub fn f1_reexport() {} type S1Reexport (line 1059) | pub struct S1Reexport { function f2 (line 1069) | pub(crate) fn f2() {} type E1 (line 1072) | pub enum E1 { type S2 (line 1077) | pub struct S2; function f3_reexport (line 1078) | pub fn f3_reexport() -> S2 { type S (line 1106) | pub struct S { method f (line 1113) | pub fn f() {} constant C (line 1114) | pub const C: () = { function f (line 1130) | pub(crate) fn f() {} type WithProject (line 1134) | struct WithProject { FILE: tests/ui-toml/missing_enforced_import_rename/conf_missing_enforced_import_rename.rs function main (line 20) | fn main() { FILE: tests/ui-toml/module_inception/module_inception.rs function main (line 36) | fn main() {} FILE: tests/ui-toml/modulo_arithmetic/modulo_arithmetic.rs function main (line 3) | fn main() { FILE: tests/ui-toml/mut_key/mut_key.rs type Counted (line 12) | struct Counted { method clone (line 18) | fn clone(&self) -> Self { method eq (line 27) | fn eq(&self, other: &Self) -> bool { method hash (line 34) | fn hash(&self, state: &mut H) { type Target (line 40) | type Target = T; method deref (line 42) | fn deref(&self) -> &T { type ContainsCounted (line 49) | struct ContainsCounted { function should_not_take_this_arg (line 55) | fn should_not_take_this_arg(_v: HashSet>) {} function indirect (line 57) | fn indirect(_: HashMap) {} function main (line 59) | fn main() {} FILE: tests/ui-toml/needless_pass_by_ref_mut/needless_pass_by_ref_mut.rs function pub_foo (line 5) | pub fn pub_foo(s: &mut Vec, b: &u32, x: &mut u32) { function main (line 10) | fn main() {} FILE: tests/ui-toml/needless_raw_string_hashes_one_allowed/needless_raw_string_hashes.rs function main (line 4) | fn main() { FILE: tests/ui-toml/nonstandard_macro_braces/auxiliary/proc_macro_derive.rs function derive (line 6) | pub fn derive(_: TokenStream) -> TokenStream { function foo_bar (line 11) | pub fn foo_bar(_: TokenStream) -> TokenStream { FILE: tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs type S (line 12) | pub struct S; function main (line 44) | fn main() { function issue9913 (line 74) | fn issue9913() { function issue15594 (line 80) | fn issue15594() { FILE: tests/ui-toml/panic/panic.rs function main (line 5) | fn main() { function issue_13292 (line 17) | fn issue_13292() { function lonely_test (line 23) | fn lonely_test() { function test_fn (line 38) | fn test_fn() { function bar (line 51) | fn bar() { FILE: tests/ui-toml/path_ends_with_ext/path_ends_with_ext.rs function f (line 7) | fn f(p: &Path) { function main (line 11) | fn main() {} FILE: tests/ui-toml/print_macro/print_macro.rs function foo (line 5) | fn foo(n: u32) { function foo1 (line 13) | pub fn foo1() { function foo3 (line 19) | fn foo3() { FILE: tests/ui-toml/private-doc-errors/doc_lints.rs function you_dont_see_me (line 12) | fn you_dont_see_me() { function only_crate_wide_accessible (line 23) | pub fn only_crate_wide_accessible() -> Result<(), ()> { type S (line 30) | pub struct S; method private (line 38) | fn private(&self) { type T (line 47) | pub struct T; method f (line 49) | pub unsafe fn f() {} function test (line 56) | fn test() -> Result<(), ()> { function main (line 60) | fn main() {} FILE: tests/ui-toml/pub_underscore_fields/pub_underscore_fields.rs type PubSuper (line 13) | pub struct PubSuper { type PubModVisibility (line 22) | pub struct PubModVisibility { type PrivateStructPubField (line 28) | struct PrivateStructPubField { function main (line 35) | fn main() { FILE: tests/ui-toml/ref_option/ref_option.rs function opt_u8 (line 9) | fn opt_u8(a: &Option) {} function opt_gen (line 11) | fn opt_gen(a: &Option) {} function opt_string (line 13) | fn opt_string(a: &std::option::Option) {} function ret_u8 (line 15) | fn ret_u8<'a>(p: &'a str) -> &'a Option { function ret_u8_static (line 19) | fn ret_u8_static() -> &'static Option { function mult_string (line 23) | fn mult_string(a: &Option, b: &Option>) {} function ret_box (line 25) | fn ret_box<'a>() -> &'a Option> { function pub_opt_string (line 30) | pub fn pub_opt_string(a: &Option) {} function pub_mult_string (line 32) | pub fn pub_mult_string(a: &Option, b: &Option>) {} type PubStruct (line 35) | pub struct PubStruct; method pub_opt_params (line 38) | pub fn pub_opt_params(&self, a: &Option<()>) {} method pub_opt_ret (line 40) | pub fn pub_opt_ret(&self) -> &Option { method private_opt_params (line 45) | fn private_opt_params(&self, a: &Option<()>) {} method private_opt_ret (line 47) | fn private_opt_ret(&self) -> &Option { function mut_u8 (line 54) | fn mut_u8(a: &mut Option) {} function pub_mut_u8 (line 55) | pub fn pub_mut_u8(a: &mut Option) {} function mut_u8_ref (line 58) | fn mut_u8_ref(a: &mut &Option) {} function pub_mut_u8_ref (line 59) | pub fn pub_mut_u8_ref(a: &mut &Option) {} function lambdas (line 60) | fn lambdas() { function main (line 114) | fn main() {} FILE: tests/ui-toml/ref_option/ref_option_traits.rs type PubTrait (line 9) | pub trait PubTrait { method pub_trait_opt (line 10) | fn pub_trait_opt(&self, a: &Option>); method pub_trait_ret (line 12) | fn pub_trait_ret(&self) -> &Option>; method pub_trait_opt (line 26) | fn pub_trait_opt(&self, a: &Option>) {} method pub_trait_ret (line 27) | fn pub_trait_ret(&self) -> &Option> { type PrivateTrait (line 16) | trait PrivateTrait { method trait_opt (line 17) | fn trait_opt(&self, a: &Option); method trait_ret (line 19) | fn trait_ret(&self) -> &Option; method trait_opt (line 35) | fn trait_opt(&self, a: &Option) {} method trait_ret (line 36) | fn trait_ret(&self) -> &Option { type PubStruct (line 23) | pub struct PubStruct; type PrivateStruct (line 32) | struct PrivateStruct; function main (line 71) | fn main() {} FILE: tests/ui-toml/renamed_function_params/renamed_function_params.rs type A (line 11) | struct A; method from (line 13) | fn from(_value: A) -> Self { method to_string (line 18) | fn to_string(&self) -> String { type B (line 23) | struct B(u32); method totally_irrelevant (line 70) | fn totally_irrelevant(&self, right: bool) {} method some_fn (line 71) | fn some_fn(&self, other: impl MyTrait) {} method from (line 25) | fn from(b: B) -> Self { method eq (line 30) | fn eq(&self, rhs: &Self) -> bool { method ne (line 34) | fn ne(&self, rhs: &Self) -> bool { type MyTrait (line 40) | trait MyTrait { method foo (line 41) | fn foo(&self, val: u8); method bar (line 42) | fn bar(a: u8, b: u8); method baz (line 43) | fn baz(self, _val: u8); method quz (line 44) | fn quz(&self, _: u8); method foo (line 48) | fn foo(&self, i_dont_wanna_use_your_name: u8) {} method bar (line 51) | fn bar(_a: u8, _: u8) {} method baz (line 52) | fn baz(self, val: u8) {} method quz (line 53) | fn quz(&self, val: u8) {} method hash (line 57) | fn hash(&self, states: &mut H) { method hash_slice (line 61) | fn hash_slice(date: &[Self], states: &mut H) { type C (line 75) | enum C { type Output (line 81) | type Output = C; method add (line 82) | fn add(self, b: B) -> C { method from (line 90) | fn from(_: A) -> C { type CustomTraitA (line 95) | trait CustomTraitA { method foo (line 96) | fn foo(&self, other: u32); type CustomTraitB (line 98) | trait CustomTraitB { method bar (line 99) | fn bar(&self, value: u8); function main (line 113) | fn main() {} FILE: tests/ui-toml/replaceable_disallowed_types/replaceable_disallowed_types.rs type String (line 5) | pub struct String(std::string::String); method from (line 8) | fn from(value: &str) -> Self { function main (line 14) | fn main() { FILE: tests/ui-toml/result_large_err/result_large_err.rs function f (line 5) | fn f() -> Result<(), [u8; 511]> { function f2 (line 8) | fn f2() -> Result<(), [u8; 512]> { type IgnoredError (line 13) | struct IgnoredError { function f3 (line 17) | fn f3() -> Result<(), IgnoredError> { type IgnoredErrorEnum (line 21) | enum IgnoredErrorEnum { function f4 (line 26) | fn f4() -> Result<(), IgnoredErrorEnum> { function main (line 30) | fn main() {} FILE: tests/ui-toml/semicolon_block/both.rs function unit_fn_block (line 26) | fn unit_fn_block() { function main (line 31) | fn main() { FILE: tests/ui-toml/semicolon_block/semicolon_inside_block.rs function unit_fn_block (line 25) | fn unit_fn_block() { function main (line 30) | fn main() { FILE: tests/ui-toml/semicolon_block/semicolon_outside_block.rs function unit_fn_block (line 25) | fn unit_fn_block() { function main (line 30) | fn main() { FILE: tests/ui-toml/strict_non_send_fields_in_send_ty/test.rs type NoGeneric (line 7) | pub struct NoGeneric { type MultiField (line 14) | pub struct MultiField { type MyOption (line 23) | pub enum MyOption { type HeuristicTest (line 36) | pub struct HeuristicTest { function main (line 47) | fn main() {} FILE: tests/ui-toml/struct_excessive_bools/test.rs type S (line 3) | struct S { type Foo (line 8) | struct Foo; function main (line 10) | fn main() {} FILE: tests/ui-toml/suppress_lint_in_const/test.rs constant ARR (line 14) | const ARR: [i32; 2] = [1, 2]; constant REF (line 15) | const REF: &i32 = &ARR[idx()]; function idx (line 17) | const fn idx() -> usize { function idx4 (line 20) | const fn idx4() -> usize { function main (line 24) | fn main() { type Integer (line 61) | pub struct Integer<'a> { function is_negative (line 67) | pub const fn is_negative(&self) -> bool { FILE: tests/ui-toml/toml_disallow/conf_french_disallowed_name.rs function test (line 6) | fn test(toto: ()) {} function main (line 9) | fn main() { FILE: tests/ui-toml/toml_disallowed_fields/conf_disallowed_fields.rs type X (line 6) | struct X { type Z (line 10) | enum Z { function b (line 17) | fn b(X { y }: X) {} function main (line 20) | fn main() { FILE: tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs function local_fn (line 14) | fn local_fn() {} type Struct (line 16) | struct Struct; method method (line 19) | fn method(&self) {} type Trait (line 22) | trait Trait { method provided_method (line 23) | fn provided_method(&self) {} method implemented_method (line 24) | fn implemented_method(&self); method implemented_method (line 28) | fn implemented_method(&self) {} function f (line 32) | pub fn f() {} function main (line 35) | fn main() { function test (line 88) | async fn test(f: impl Future) { function explicit (line 94) | fn explicit>(f: Pin<&mut F>, cx: &mut Context<'_>) { FILE: tests/ui-toml/toml_disallowed_types/conf_disallowed_types.rs type HashMap (line 12) | struct HashMap; function bad_return_type (line 14) | fn bad_return_type() -> fn() -> Sneaky { function bad_arg_type (line 19) | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {} function trait_obj (line 23) | fn trait_obj(_: &dyn std::io::Read) {} function full_and_single_path_prim (line 26) | fn full_and_single_path_prim(_: usize, _: bool) {} function const_generics (line 30) | fn const_generics() {} type GenArg (line 33) | struct GenArg([u8; U]); function ip (line 38) | fn ip(_: std::net::Ipv4Addr) {} function listener (line 41) | fn listener(_: std::net::TcpListener) {} function main (line 45) | fn main() { FILE: tests/ui-toml/toml_inconsistent_struct_constructor/conf_inconsistent_struct_constructor.rs type Foo (line 7) | struct Foo { function main (line 13) | fn main() { type HirId (line 31) | struct HirId; type BodyVisitor (line 32) | struct BodyVisitor { function check_body (line 36) | fn check_body(condition: bool) { function cfg_all (line 49) | fn cfg_all() { function cfg_any (line 67) | fn cfg_any() { FILE: tests/ui-toml/toml_invalid_path/conf_invalid_path.rs function main (line 6) | fn main() {} FILE: tests/ui-toml/toml_replaceable_disallowed_methods/replaceable_disallowed_methods.rs function bad (line 1) | fn bad() {} function questionable (line 2) | fn questionable() {} function good (line 3) | fn good() {} function main (line 5) | fn main() { FILE: tests/ui-toml/toml_trivially_copy/test.rs type Foo (line 8) | struct Foo(u8); type Bar (line 11) | struct Bar(u32); function good (line 13) | fn good(a: &mut u32, b: u32, c: &Bar, d: &u32) {} function bad (line 15) | fn bad(x: &u16, y: &Foo) {} function main (line 19) | fn main() { FILE: tests/ui-toml/toml_unknown_config_struct_field/toml_unknown_config_struct_field.rs function main (line 3) | fn main() { FILE: tests/ui-toml/toml_unknown_key/conf_unknown_key.rs function main (line 6) | fn main() {} FILE: tests/ui-toml/toml_unloaded_crate/conf_unloaded_crate.rs function main (line 6) | fn main() {} FILE: tests/ui-toml/too_large_for_stack/boxed_local.rs function f (line 1) | fn f(x: Box<[u8; 500]>) {} function f2 (line 3) | fn f2(x: Box<[u8; 501]>) {} function main (line 5) | fn main() {} FILE: tests/ui-toml/too_large_for_stack/useless_vec.rs function main (line 3) | fn main() { FILE: tests/ui-toml/too_many_arguments/too_many_arguments.rs function not_too_many (line 3) | fn not_too_many(p1: u8, p2: u8, p3: u8, p4: u8, p5: u8, p6: u8, p7: u8, ... function too_many (line 4) | fn too_many(p1: u8, p2: u8, p3: u8, p4: u8, p5: u8, p6: u8, p7: u8, p8: ... function main (line 7) | fn main() {} FILE: tests/ui-toml/type_complexity/type_complexity.rs function f (line 2) | fn f(_: (u8, (u8, (u8, (u8, (u8, (u8,))))))) {} function f2 (line 4) | fn f2(_: (u8, (u8, (u8, (u8, (u8, (u8, u8))))))) {} function main (line 7) | fn main() {} FILE: tests/ui-toml/type_repetition_in_bounds/main.rs function f (line 4) | fn f() function f2 (line 11) | fn f2() function main (line 19) | fn main() {} FILE: tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs function nested_local (line 18) | fn nested_local() { function deep_nest (line 27) | fn deep_nest() { function local_tuple_expression (line 64) | fn local_tuple_expression() { function line_comment (line 69) | fn line_comment() { function line_comment_newlines (line 74) | fn line_comment_newlines() { function line_comment_empty (line 80) | fn line_comment_empty() { function line_comment_with_extras (line 88) | fn line_comment_with_extras() { function block_comment (line 94) | fn block_comment() { function block_comment_newlines (line 99) | fn block_comment_newlines() { function block_comment_with_extras (line 105) | fn block_comment_with_extras() { function block_comment_terminator_same_line (line 112) | fn block_comment_terminator_same_line() { function buried_safety (line 118) | fn buried_safety() { function safety_with_prepended_text (line 132) | fn safety_with_prepended_text() { function local_line_comment (line 137) | fn local_line_comment() { function local_block_comment (line 142) | fn local_block_comment() { function comment_array (line 147) | fn comment_array() { function comment_tuple (line 152) | fn comment_tuple() { function comment_unary (line 157) | fn comment_unary() { function comment_match (line 163) | fn comment_match() { function comment_addr_of (line 170) | fn comment_addr_of() { function comment_repeat (line 175) | fn comment_repeat() { function comment_macro_call (line 180) | fn comment_macro_call() { function comment_macro_def (line 193) | fn comment_macro_def() { function comment_macro_def_with_let (line 204) | fn comment_macro_def_with_let() { function comment_macro_def_with_let_same_line (line 217) | fn comment_macro_def_with_let_same_line() { function inner_comment_macro_def_with_let (line 228) | fn inner_comment_macro_def_with_let() { function no_comment_macro_def_with_let (line 241) | fn no_comment_macro_def_with_let() { function prefixed_safety_comment_macro_def_with_let (line 252) | fn prefixed_safety_comment_macro_def_with_let() { function non_ascii_comment (line 264) | fn non_ascii_comment() { function local_commented_block (line 269) | fn local_commented_block() { function local_nest (line 275) | fn local_nest() { function in_fn_call (line 280) | fn in_fn_call(x: *const u32) { function multi_in_fn_call (line 287) | fn multi_in_fn_call(x: *const u32) { function in_multiline_fn_call (line 294) | fn in_multiline_fn_call(x: *const u32) { function in_macro_call (line 304) | fn in_macro_call(x: *const u32) { function in_multiline_macro_call (line 309) | fn in_multiline_macro_call(x: *const u32) { function from_proc_macro (line 317) | fn from_proc_macro() { function in_closure (line 321) | fn in_closure(x: *const u32) { function inner_block_comment_block_style (line 326) | fn inner_block_comment_block_style(x: *const u32) { function inline_block_comment (line 336) | fn inline_block_comment() { function no_comment (line 341) | fn no_comment() { function no_comment_array (line 346) | fn no_comment_array() { function no_comment_tuple (line 353) | fn no_comment_tuple() { function no_comment_unary (line 359) | fn no_comment_unary() { function no_comment_match (line 365) | fn no_comment_match() { function no_comment_addr_of (line 372) | fn no_comment_addr_of() { function no_comment_repeat (line 377) | fn no_comment_repeat() { function local_no_comment (line 382) | fn local_no_comment() { function no_comment_macro_call (line 387) | fn no_comment_macro_call() { function no_comment_macro_def (line 398) | fn no_comment_macro_def() { function trailing_comment (line 409) | fn trailing_comment() { function internal_comment (line 415) | fn internal_comment() { function interference (line 422) | fn interference() { function print_binary_tree (line 431) | pub fn print_binary_tree() { type A (line 437) | unsafe trait A {} type B (line 450) | unsafe trait B {} type B (line 460) | unsafe trait B {} type T (line 465) | unsafe trait T {} type T (line 491) | unsafe trait T {} type SaFety (line 519) | unsafe trait SaFety {} type MultiLineComment (line 523) | unsafe trait MultiLineComment {} type NoAscii (line 529) | unsafe trait NoAscii {} type InlineAndPrecedingComment (line 533) | unsafe trait InlineAndPrecedingComment {} type BuriedSafety (line 537) | unsafe trait BuriedSafety {} type MultiLineBlockComment (line 550) | unsafe trait MultiLineBlockComment {} type NoComment (line 558) | unsafe trait NoComment {} type InlineComment (line 563) | unsafe trait InlineComment {} type TrailingComment (line 568) | unsafe trait TrailingComment {} type Interference (line 573) | unsafe trait Interference {} constant BIG_NUMBER (line 575) | const BIG_NUMBER: i32 = 1000000; type ImplInFn (line 581) | unsafe trait ImplInFn {} function impl_in_fn (line 583) | fn impl_in_fn() { type CrateRoot (line 592) | unsafe trait CrateRoot {} function nested_block_separation_issue_9142 (line 601) | fn nested_block_separation_issue_9142() { function a_function_with_a_very_long_name_to_break_the_line (line 624) | pub unsafe fn a_function_with_a_very_long_name_to_break_the_line() -> u32 { function a_const_function_with_a_very_long_name_to_break_the_line (line 628) | pub const unsafe fn a_const_function_with_a_very_long_name_to_break_the_... function separate_line_from_let_issue_10832 (line 632) | fn separate_line_from_let_issue_10832() { function above_expr_attribute_issue_8679 (line 649) | fn above_expr_attribute_issue_8679() { constant _ (line 690) | const _: () = unsafe {}; constant FOO (line 693) | const FOO: () = unsafe {}; constant FOO (line 700) | const FOO: () = unsafe {}; type MyTrait (line 704) | trait MyTrait { constant NO_SAFETY_IN_TRAIT_BUT_IN_IMPL (line 705) | const NO_SAFETY_IN_TRAIT_BUT_IN_IMPL: u8 = unsafe { 0 }; constant HAS_SAFETY_IN_TRAIT (line 709) | const HAS_SAFETY_IN_TRAIT: i32 = unsafe { 1 }; method unsafe_fn (line 712) | unsafe fn unsafe_fn() {} constant NO_SAFETY_IN_TRAIT (line 714) | const NO_SAFETY_IN_TRAIT: i32 = unsafe { 1 }; constant NO_SAFETY_IN_TRAIT_BUT_IN_IMPL (line 722) | const NO_SAFETY_IN_TRAIT_BUT_IN_IMPL: u8 = unsafe { 2 }; constant HAS_SAFETY_IN_TRAIT (line 724) | const HAS_SAFETY_IN_TRAIT: i32 = unsafe { 3 }; type UnsafeStruct (line 718) | struct UnsafeStruct; constant NO_SAFETY_IN_IMPL (line 729) | const NO_SAFETY_IN_IMPL: i32 = unsafe { 1 }; function issue_13024 (line 734) | fn issue_13024() { type Date (line 748) | struct Date { method __from_ordinal_date_unchecked (line 753) | const unsafe fn __from_ordinal_date_unchecked(year: i32, ordinal: u16)... method into_julian_day_just_make_this_line_longer (line 760) | const fn into_julian_day_just_make_this_line_longer(self) -> i32 { constant UNIX_EPOCH_JULIAN_DAY (line 768) | const UNIX_EPOCH_JULIAN_DAY: i32 = function issue_13039 (line 775) | fn issue_13039() { function rfl_issue15034 (line 795) | fn rfl_issue15034() -> i32 { function foo (line 829) | fn foo() { function bar (line 837) | fn bar() { function unsafe_comment (line 848) | unsafe fn unsafe_comment() {} function unsafe_block_comment (line 854) | unsafe fn unsafe_block_comment() {} function safe_comment (line 858) | fn safe_comment() {} function safe_doc_comment (line 862) | fn safe_doc_comment() {} function main (line 866) | fn main() {} FILE: tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks_fixable.rs function unsafe_doc_comment (line 10) | unsafe fn unsafe_doc_comment() {} function unsafe_block_doc_comment (line 16) | unsafe fn unsafe_block_doc_comment() {} function main (line 20) | fn main() {} FILE: tests/ui-toml/unnecessary_box_returns/unnecessary_box_returns.rs function f (line 3) | fn f() -> Box<[u8; 64]> { function f2 (line 7) | fn f2() -> Box<[u8; 65]> { function main (line 11) | fn main() {} FILE: tests/ui-toml/unwrap_used/unwrap_used.rs type GetFalsePositive (line 14) | struct GetFalsePositive { method get (line 19) | fn get(&self, pos: usize) -> Option<&u32> { method get_mut (line 22) | fn get_mut(&mut self, pos: usize) -> Option<&mut u32> { function main (line 27) | fn main() { function test (line 99) | fn test() { function test_fn (line 109) | fn test_fn() { function util (line 117) | fn util() { FILE: tests/ui-toml/unwrap_used/unwrap_used_const.rs function main (line 3) | fn main() { FILE: tests/ui-toml/unwrap_used_allowed/unwrap_used_allowed.rs function main (line 6) | fn main() { FILE: tests/ui-toml/upper_case_acronyms_aggressive/upper_case_acronyms.rs type HTTPResponse (line 3) | struct HTTPResponse; type CString (line 6) | struct CString; type Flags (line 8) | enum Flags { type GCCLLVMSomething (line 31) | struct GCCLLVMSomething; type MIXEDCapital (line 35) | pub struct MIXEDCapital; type FULLCAPITAL (line 37) | pub struct FULLCAPITAL; type ParseError (line 40) | pub enum ParseError { type ParseErrorPrivate (line 48) | enum ParseErrorPrivate { function main (line 57) | fn main() {} FILE: tests/ui-toml/use_self/use_self.rs function main (line 7) | fn main() {} type Basic (line 9) | struct Basic { method x (line 15) | fn x(_: Basic) {} FILE: tests/ui-toml/useless_vec/useless_vec.rs function foo (line 5) | fn foo(_: &[u32]) {} function main (line 7) | fn main() { function in_test (line 13) | pub fn in_test() { function in_cfg_test (line 18) | fn in_cfg_test() { function in_cfg_test_mod (line 24) | fn in_cfg_test_mod() { FILE: tests/ui-toml/vec_box_sized/test.rs type S (line 1) | struct S { type C (line 5) | struct C { type Foo (line 9) | struct Foo(Vec>); type Bar (line 11) | struct Bar(Vec>); type Quux (line 13) | struct Quux(Vec>); type Baz (line 14) | struct Baz(Vec>); type BarBaz (line 15) | struct BarBaz(Vec>); type FooBarBaz (line 16) | struct FooBarBaz(Vec>); function main (line 19) | fn main() {} FILE: tests/ui-toml/verbose_bit_mask/verbose_bit_mask.rs function main (line 2) | fn main() { FILE: tests/ui-toml/wildcard_imports/wildcard_imports.rs constant FOO (line 5) | pub const FOO: u8 = 1; constant BAR (line 9) | pub const BAR: u8 = 1; function print (line 10) | pub fn print() {} function my_util_fn (line 15) | pub fn my_util_fn() {} constant SOME_CONST (line 19) | pub const SOME_CONST: u32 = 1; function main (line 36) | fn main() { FILE: tests/ui-toml/wildcard_imports_whitelist/wildcard_imports.rs function print (line 4) | pub fn print() {} function do_something (line 8) | pub fn do_something() {} function my_util_fn (line 13) | pub fn my_util_fn() {} function main (line 22) | fn main() { FILE: tests/ui-toml/zero_single_char_names/zero_single_char_names.rs function main (line 4) | fn main() {} FILE: tests/ui/absurd-extreme-comparisons.rs function main (line 11) | fn main() { type U (line 78) | pub struct U(u64); method eq (line 81) | fn eq(&self, other: &u32) -> bool { method partial_cmp (line 86) | fn partial_cmp(&self, other: &u32) -> Option { function foo (line 91) | pub fn foo(val: U) -> bool { function bar (line 95) | pub fn bar(len: u64) -> bool { FILE: tests/ui/allow_attributes.rs type T1 (line 15) | struct T1; type T2 (line 17) | struct T2; type T3 (line 19) | struct T3; type T4 (line 21) | struct T4; type CfgT (line 25) | struct CfgT; type Allowed (line 28) | struct Allowed; type Expected (line 32) | struct Expected; function ignore_external (line 34) | fn ignore_external() { function ignore_proc_macro (line 41) | fn ignore_proc_macro() { function ignore_inner_attr (line 49) | fn ignore_inner_attr() { function msrv_1_81 (line 54) | fn msrv_1_81() { function msrv_1_80 (line 61) | fn msrv_1_80() { type Spaced (line 69) | struct Spaced; function deny_allow_attributes (line 72) | fn deny_allow_attributes() -> Option { type IgnoreDerived (line 82) | struct IgnoreDerived; FILE: tests/ui/allow_attributes_without_reason.rs function main (line 22) | fn main() { function trigger_fp_option (line 36) | pub fn trigger_fp_option() -> Option<()> { function trigger_fp_result (line 42) | pub fn trigger_fp_result() -> Result<(), &'static str> { function msrv_1_81 (line 49) | fn msrv_1_81() { function msrv_1_80 (line 56) | fn msrv_1_80() { FILE: tests/ui/almost_complete_range.rs function main (line 14) | fn main() { function _under_msrv (line 89) | fn _under_msrv() { function _meets_msrv (line 102) | fn _meets_msrv() { FILE: tests/ui/approx_const.rs function main (line 2) | fn main() { FILE: tests/ui/arc_with_non_send_sync.rs function foo (line 12) | fn foo(x: T) { function issue11076 (line 16) | fn issue11076() { function issue11232 (line 20) | fn issue11232() { function main (line 32) | fn main() { FILE: tests/ui/arithmetic_side_effects.rs constant ONE (line 22) | const ONE: i32 = 1; constant ZERO (line 23) | const ZERO: i32 = 0; type Custom (line 26) | pub struct Custom; type Output (line 121) | type Output = Custom; method neg (line 122) | fn neg(self) -> Self::Output { type Nothing (line 29) | pub struct Nothing; type Output (line 127) | type Output = Custom; function neg (line 128) | fn neg(self) -> Self::Output { function association_with_structures_should_not_trigger_the_lint (line 133) | pub fn association_with_structures_should_not_trigger_the_lint() { function hard_coded_allowed (line 166) | pub fn hard_coded_allowed() { function const_ops_should_not_trigger_the_lint (line 193) | pub fn const_ops_should_not_trigger_the_lint() { function non_overflowing_ops_or_ops_already_handled_by_the_compiler_should_not_trigger_the_lint (line 210) | pub fn non_overflowing_ops_or_ops_already_handled_by_the_compiler_should... function unknown_ops_or_runtime_ops_that_can_overflow (line 306) | pub fn unknown_ops_or_runtime_ops_that_can_overflow() { function integer_arithmetic (line 530) | pub fn integer_arithmetic() { function issue_10583 (line 585) | pub fn issue_10583(a: u16) -> u16 { function issue_10767 (line 590) | pub fn issue_10767() { function issue_10792 (line 598) | pub fn issue_10792() { function issue_11145 (line 613) | pub fn issue_11145() { function issue_11262 (line 618) | pub fn issue_11262() { function issue_11392 (line 625) | pub fn issue_11392() { function issue_11393 (line 639) | pub fn issue_11393() { function issue_12318 (line 655) | pub fn issue_12318() { function issue_15225 (line 667) | pub fn issue_15225() { function explicit_methods (line 681) | pub fn explicit_methods() { function issue_15943 (line 690) | pub fn issue_15943(days: u8) -> Duration { function type_conversion_add (line 694) | pub fn type_conversion_add() { function type_conversion_mul (line 711) | pub fn type_conversion_mul() { function type_conversion_does_not_escape_its_context (line 728) | pub fn type_conversion_does_not_escape_its_context() { function main (line 745) | fn main() {} FILE: tests/ui/as_conversions.rs function main (line 9) | fn main() { FILE: tests/ui/as_pointer_underscore.rs type S (line 5) | struct S; function f (line 7) | fn f(s: &S) -> usize { function g (line 12) | fn g(s: &mut S) -> usize { FILE: tests/ui/as_ptr_cast_mut.rs type MutPtrWrapper (line 5) | struct MutPtrWrapper(Vec); method as_ptr (line 7) | fn as_ptr(&mut self) -> *const u8 { type Covariant (line 12) | struct Covariant(*const T); function as_ptr (line 14) | fn as_ptr(self) -> *const T { function main (line 19) | fn main() { FILE: tests/ui/as_ptr_cast_mut_unfixable.rs function main (line 5) | fn main() { FILE: tests/ui/as_underscore.rs function foo (line 3) | fn foo(_n: usize) {} function main (line 5) | fn main() { FILE: tests/ui/as_underscore_unfixable.rs function main (line 5) | fn main() { FILE: tests/ui/asm_syntax_not_x86.rs function use_asm (line 10) | pub(super) unsafe fn use_asm() { function main (line 22) | fn main() { FILE: tests/ui/asm_syntax_x86.rs function use_asm (line 7) | pub(super) unsafe fn use_asm() { function use_asm (line 36) | pub(super) unsafe fn use_asm() { function main (line 55) | fn main() { FILE: tests/ui/assertions_on_constants.rs function main (line 9) | fn main() { constant C (line 65) | const C: bool = true; constant _ (line 67) | const _: () = { function _f1 (line 78) | fn _f1() { function _f2 (line 84) | fn _f2() { function _f3 (line 89) | fn _f3() { function _f4 (line 95) | fn _f4() { function issue_16242 (line 100) | fn issue_16242(var: bool) { FILE: tests/ui/assertions_on_result_states.rs type Foo (line 6) | struct Foo; type DebugFoo (line 9) | struct DebugFoo; type CopyFoo (line 12) | struct CopyFoo; function main (line 20) | fn main() { function issue9450 (line 85) | fn issue9450() { function issue9916 (line 91) | fn issue9916(res: Result) { FILE: tests/ui/assign_ops.rs function main (line 9) | fn main() { function cow_add_assign (line 47) | fn cow_add_assign() { type Wrap (line 63) | pub struct Wrap(i64); type Output (line 66) | type Output = Self; method mul (line 68) | fn mul(self, rhs: i64) -> Self { method mul_assign (line 74) | fn mul_assign(&mut self, rhs: i64) { type Number (line 83) | pub trait Number: Copy + Add + AddAssign { constant ZERO (line 84) | const ZERO: Self; constant ONE (line 85) | const ONE: Self; method non_constant (line 87) | fn non_constant(value: usize) -> Self { function constant (line 101) | pub const trait NumberConstants { method constant (line 109) | fn constant(value: usize) -> Self { type S (line 121) | pub struct S; type Output (line 124) | type Output = S; method add (line 125) | fn add(self, _rhs: S) -> S { method add_assign (line 131) | fn add_assign(&mut self, rhs: S) {} function do_add (line 134) | const fn do_add() { FILE: tests/ui/assigning_clones.rs type HasCloneFrom (line 13) | pub struct HasCloneFrom; method clone (line 16) | fn clone(&self) -> Self { method clone_from (line 19) | fn clone_from(&mut self, source: &Self) { function clone_method_rhs_val (line 24) | fn clone_method_rhs_val(mut_thing: &mut HasCloneFrom, value_thing: HasCl... function clone_method_rhs_ref (line 29) | fn clone_method_rhs_ref(mut_thing: &mut HasCloneFrom, ref_thing: &HasClo... function clone_method_lhs_val (line 34) | fn clone_method_lhs_val(mut mut_thing: HasCloneFrom, ref_thing: &HasClon... function clone_function_lhs_mut_ref (line 39) | fn clone_function_lhs_mut_ref(mut_thing: &mut HasCloneFrom, ref_thing: &... function clone_function_lhs_val (line 44) | fn clone_function_lhs_val(mut mut_thing: HasCloneFrom, ref_thing: &HasCl... function clone_function_through_trait (line 49) | fn clone_function_through_trait(mut_thing: &mut HasCloneFrom, ref_thing:... function clone_function_through_type (line 54) | fn clone_function_through_type(mut_thing: &mut HasCloneFrom, ref_thing: ... function clone_function_fully_qualified (line 59) | fn clone_function_fully_qualified(mut_thing: &mut HasCloneFrom, ref_thin... function clone_method_lhs_complex (line 64) | fn clone_method_lhs_complex(mut_thing: &mut HasCloneFrom, ref_thing: &Ha... function clone_method_rhs_complex (line 70) | fn clone_method_rhs_complex(mut_thing: &mut HasCloneFrom, ref_thing: &Ha... function clone_method_macro (line 76) | fn clone_method_macro() { function clone_function_macro (line 82) | fn clone_function_macro() { function assign_to_init_mut_var (line 88) | fn assign_to_init_mut_var(b: HasCloneFrom) -> HasCloneFrom { function assign_to_late_init_mut_var (line 97) | fn assign_to_late_init_mut_var(b: HasCloneFrom) { function assign_to_uninit_var (line 103) | fn assign_to_uninit_var(b: HasCloneFrom) { function assign_to_uninit_mut_var (line 108) | fn assign_to_uninit_mut_var(b: HasCloneFrom) { function late_init_let_tuple (line 113) | fn late_init_let_tuple() { type HasDeriveClone (line 120) | pub struct HasDeriveClone; function ignore_derive_clone (line 122) | fn ignore_derive_clone(a: &mut HasDeriveClone, b: &HasDeriveClone) { type HasCloneImpl (line 127) | pub struct HasCloneImpl; method clone (line 130) | fn clone(&self) -> Self { function ignore_missing_clone_from (line 135) | fn ignore_missing_clone_from(a: &mut HasCloneImpl, b: &HasCloneImpl) { type FakeClone (line 140) | struct FakeClone; method clone (line 144) | fn clone(&self) -> Self { function ignore_fake_clone (line 149) | fn ignore_fake_clone() { function ignore_generic_clone (line 156) | fn ignore_generic_clone(a: &mut T, b: &T) { function msrv_1_62 (line 162) | fn msrv_1_62(mut a: String, b: String, c: &str) { function msrv_1_63 (line 170) | fn msrv_1_63(mut a: String, b: String, c: &str) { function clone_inside_macro (line 183) | fn clone_inside_macro() { type AvoidRecursiveCloneFrom (line 191) | pub struct AvoidRecursiveCloneFrom; method clone (line 194) | fn clone(&self) -> Self { method clone_from (line 197) | fn clone_from(&mut self, source: &Self) { function clone_into_deref_method (line 203) | fn clone_into_deref_method(mut a: DerefWrapper, b: HasClon... function clone_into_deref_with_clone_method (line 208) | fn clone_into_deref_with_clone_method(mut a: DerefWrapperWithClone, b: HasCloneFrom) { function clone_into_self_deref_method (line 218) | fn clone_into_self_deref_method(a: &mut DerefWrapperWithClone, b: HasCl... function clone_into_box_function (line 228) | fn clone_into_box_function(mut a: Box, b: HasCloneFrom) { function owned_method_mut_ref (line 234) | fn owned_method_mut_ref(mut_string: &mut String, ref_str: &str) { function owned_method_val (line 239) | fn owned_method_val(mut mut_string: String, ref_str: &str) { type HasDeref (line 244) | struct HasDeref { type Target (line 249) | type Target = String; method deref (line 250) | fn deref(&self) -> &Self::Target { method deref_mut (line 256) | fn deref_mut(&mut self) -> &mut Self::Target { function owned_method_box (line 261) | fn owned_method_box(mut_box_string: &mut Box, ref_str: &str) { function owned_method_deref (line 266) | fn owned_method_deref(mut_box_string: &mut HasDeref, ref_str: &str) { function owned_function_mut_ref (line 271) | fn owned_function_mut_ref(mut_thing: &mut String, ref_str: &str) { function owned_function_val (line 276) | fn owned_function_val(mut mut_thing: String, ref_str: &str) { function owned_method_macro (line 281) | fn owned_method_macro() { function owned_function_macro (line 287) | fn owned_function_macro() { type FakeToOwned (line 293) | struct FakeToOwned; method to_owned (line 296) | fn to_owned(&self) -> Self { function fake_to_owned (line 301) | fn fake_to_owned() { function main (line 308) | fn main() {} type Output (line 312) | type Output = Self; method add (line 313) | fn add(self, _: HasCloneFrom) -> Self { type Output (line 319) | type Output = Self; method add (line 320) | fn add(self, _: &'a HasCloneFrom) -> Self { type Output (line 326) | type Output = Self; method add (line 327) | fn add(self, _: &'a mut HasCloneFrom) -> Self { function issue12444 (line 337) | fn issue12444(mut name: String) { function issue12444_simple (line 343) | fn issue12444_simple() { function issue12444_nodrop_projections (line 349) | fn issue12444_nodrop_projections() { function issue12460 (line 376) | fn issue12460(mut name: String) { function issue12749 (line 382) | fn issue12749() { type DerefWrapper (line 388) | struct DerefWrapper(T); type Target (line 391) | type Target = T; method deref (line 393) | fn deref(&self) -> &Self::Target { method deref_mut (line 399) | fn deref_mut(&mut self) -> &mut Self::Target { type DerefWrapperWithClone (line 404) | struct DerefWrapperWithClone(T); type Target (line 407) | type Target = T; method deref (line 409) | fn deref(&self) -> &Self::Target { method deref_mut (line 415) | fn deref_mut(&mut self) -> &mut Self::Target { method clone (line 421) | fn clone(&self) -> Self { method clone_from (line 425) | fn clone_from(&mut self, source: &Self) { type Data (line 433) | struct Data { function test_data (line 437) | fn test_data() -> Data { function test (line 444) | fn test() { FILE: tests/ui/async_yields_async.rs type CustomFutureType (line 8) | struct CustomFutureType; type Output (line 11) | type Output = u8; method poll (line 13) | fn poll(self: Pin<&mut Self>, _: &mut Context) -> Poll { function custom_future_type_ctor (line 18) | fn custom_future_type_ctor() -> CustomFutureType { function f (line 22) | async fn f() -> CustomFutureType { function main (line 29) | fn main() { function check_expect_suppression (line 75) | fn check_expect_suppression() { function issue15552 (line 85) | fn issue15552() { FILE: tests/ui/attrs.rs function test_attr_lint (line 7) | fn test_attr_lint() { function false_positive_expr (line 12) | fn false_positive_expr() { function false_positive_stmt (line 17) | fn false_positive_stmt() { function empty_and_false_positive_stmt (line 22) | fn empty_and_false_positive_stmt() { constant SOME_CONST (line 28) | pub const SOME_CONST: u8 = 42; constant ANOTHER_CONST (line 32) | pub const ANOTHER_CONST: u8 = 23; constant YET_ANOTHER_CONST (line 35) | pub const YET_ANOTHER_CONST: u8 = 0; constant GONNA_DEPRECATE_THIS_LATER (line 38) | pub const GONNA_DEPRECATE_THIS_LATER: u8 = 0; function main (line 40) | fn main() {} FILE: tests/ui/author.rs function main (line 3) | fn main() { FILE: tests/ui/author/blocks.rs function main (line 8) | fn main() { FILE: tests/ui/author/call.rs function main (line 3) | fn main() { FILE: tests/ui/author/if.rs function main (line 5) | fn main() { FILE: tests/ui/author/issue_3849.rs constant ZPTR (line 8) | pub const ZPTR: *const usize = 0 as *const _; function main (line 10) | fn main() { FILE: tests/ui/author/loop.rs function main (line 10) | fn main() { FILE: tests/ui/author/macro_in_closure.rs function main (line 5) | fn main() { FILE: tests/ui/author/macro_in_loop.rs function main (line 6) | fn main() { FILE: tests/ui/author/matches.rs function main (line 5) | fn main() { FILE: tests/ui/author/repeat.rs function main (line 4) | fn main() { FILE: tests/ui/author/struct.rs function main (line 9) | fn main() { FILE: tests/ui/auxiliary/extern_fake_libc.rs type pid_t (line 4) | type pid_t = i32; function getpid (line 5) | pub unsafe fn getpid() -> pid_t { function getpid_SAFE_TRUTH (line 8) | pub fn getpid_SAFE_TRUTH() -> pid_t { FILE: tests/ui/auxiliary/external_consts.rs constant MAGIC_NUMBER (line 1) | pub const MAGIC_NUMBER: i32 = 1; FILE: tests/ui/auxiliary/external_item.rs type _ExternalStruct (line 1) | pub struct _ExternalStruct {} method _foo (line 4) | pub fn _foo(self) {} function _external_foo (line 7) | pub fn _external_foo() {} FILE: tests/ui/auxiliary/interior_mutable_const.rs type Private (line 8) | enum Private { type Wrapper (line 13) | pub struct Wrapper(Private); constant WRAPPED_PRIVATE_UNFROZEN_VARIANT (line 15) | pub const WRAPPED_PRIVATE_UNFROZEN_VARIANT: Wrapper = Wrapper(Private::T... constant WRAPPED_PRIVATE_FROZEN_VARIANT (line 16) | pub const WRAPPED_PRIVATE_FROZEN_VARIANT: Wrapper = Wrapper(Private::Fro... FILE: tests/ui/auxiliary/non-exhaustive-enum.rs type ErrorKind (line 3) | pub enum ErrorKind { type ExtNonExhaustiveEnum (line 11) | pub enum ExtNonExhaustiveEnum { type ExtNonExhaustiveVariant (line 17) | pub enum ExtNonExhaustiveVariant { FILE: tests/ui/auxiliary/option_helpers.rs type IteratorFalsePositives (line 15) | pub struct IteratorFalsePositives { method filter (line 20) | pub fn filter(self) -> IteratorFalsePositives { method next (line 24) | pub fn next(self) -> IteratorFalsePositives { method next_back (line 28) | pub fn next_back(self) -> IteratorFalsePositives { method find (line 32) | pub fn find(self) -> Option { method position (line 36) | pub fn position(self) -> Option { method rposition (line 40) | pub fn rposition(self) -> Option { method nth (line 44) | pub fn nth(self, n: usize) -> Option { method skip (line 48) | pub fn skip(self, _: usize) -> IteratorFalsePositives { method skip_while (line 52) | pub fn skip_while(self) -> IteratorFalsePositives { method count (line 56) | pub fn count(self) -> usize { type IteratorMethodFalsePositives (line 62) | pub struct IteratorMethodFalsePositives; method filter (line 65) | pub fn filter(&self, _s: i32) -> std::vec::IntoIter { FILE: tests/ui/auxiliary/proc_macro_attr.rs function dummy (line 18) | pub fn dummy(_args: TokenStream, input: TokenStream) -> TokenStream { function fake_async_trait (line 23) | pub fn fake_async_trait(_args: TokenStream, input: TokenStream) -> Token... function rename_my_lifetimes (line 46) | pub fn rename_my_lifetimes(_args: TokenStream, input: TokenStream) -> To... function fake_main (line 98) | pub fn fake_main(_attr: TokenStream, item: TokenStream) -> TokenStream { function fake_desugar_await (line 126) | pub fn fake_desugar_await(_args: TokenStream, input: TokenStream) -> Tok... function rewrite_struct (line 146) | pub fn rewrite_struct(_args: TokenStream, input: TokenStream) -> TokenSt... function with_empty_docs (line 166) | pub fn with_empty_docs(_attr: TokenStream, input: TokenStream) -> TokenS... function duplicated_attr (line 179) | pub fn duplicated_attr(_attr: TokenStream, input: TokenStream) -> TokenS... FILE: tests/ui/auxiliary/proc_macro_derive.rs function derive (line 11) | pub fn derive(_: TokenStream) -> TokenStream { function derive_std (line 25) | pub fn derive_std(_: TokenStream) -> TokenStream { function derive_foo (line 37) | pub fn derive_foo(_input: TokenStream) -> TokenStream { function derive_use_self (line 54) | pub fn derive_use_self(_input: TokenStream) -> proc_macro::TokenStream { function mini_macro (line 66) | pub fn mini_macro(_: TokenStream) -> TokenStream { function extra_lifetime (line 86) | pub fn extra_lifetime(_input: TokenStream) -> TokenStream { function arithmetic_derive (line 100) | pub fn arithmetic_derive(_: TokenStream) -> TokenStream { function shadow_derive (line 133) | pub fn shadow_derive(_: TokenStream) -> TokenStream { function derive_ignored_unit_pattern (line 158) | pub fn derive_ignored_unit_pattern(_: TokenStream) -> TokenStream { function non_canonical_clone_derive (line 174) | pub fn non_canonical_clone_derive(_: TokenStream) -> TokenStream { function allow_lint_same_span_derive (line 194) | pub fn allow_lint_same_span_derive(input: TokenStream) -> TokenStream { function derive_double_parens (line 235) | pub fn derive_double_parens(_: TokenStream) -> TokenStream { FILE: tests/ui/auxiliary/proc_macro_suspicious_else_formatting.rs function read_ident (line 4) | fn read_ident(iter: &mut token_stream::IntoIter) -> Ident { function derive_bad_span (line 12) | pub fn derive_bad_span(input: TokenStream) -> TokenStream { FILE: tests/ui/auxiliary/proc_macro_unsafe.rs function unsafe_block (line 6) | pub fn unsafe_block(input: TokenStream) -> TokenStream { FILE: tests/ui/auxiliary/proc_macros.rs type Result (line 13) | type Result = core::result::Result; function make_error (line 16) | fn make_error(msg: &str, span: Span) -> TokenStream { function expect_tt (line 28) | fn expect_tt(tt: Option, f: impl FnOnce(TT) -> Option, expecte... function punct_with_span (line 44) | fn punct_with_span(c: char, spacing: Spacing, span: Span) -> Punct { function group_with_span (line 50) | fn group_with_span(delimiter: Delimiter, stream: TokenStream, span: Span... constant ESCAPE_CHAR (line 57) | const ESCAPE_CHAR: char = '$'; function with_span (line 62) | pub fn with_span(input: TokenStream) -> TokenStream { function external (line 76) | pub fn external(input: TokenStream) -> TokenStream { function write_with_span (line 87) | fn write_with_span(s: Span, mut input: IntoIter, out: &mut TokenStream) ... function make_it_big (line 130) | pub fn make_it_big(input: TokenStream) -> TokenStream { function inline_macros (line 156) | pub fn inline_macros(args: TokenStream, input: TokenStream) -> TokenStre... type LookaheadIter (line 213) | struct LookaheadIter { method new (line 218) | fn new(mut iter: IntoIter) -> Option { method next (line 224) | fn next(&mut self) -> Option { type MacWriter (line 230) | struct MacWriter { method new (line 236) | fn new(name: Ident) -> Self { method insert (line 245) | fn insert(&mut self, name_span: Span, bang_span: Span, body: Group, ex... method finish (line 284) | fn finish(self, out: &mut TokenStream) { type MacroArm (line 296) | struct MacroArm { method add_single_arg_def (line 301) | fn add_single_arg_def(&mut self, kind: &str, dollar_span: Span, arg_sp... method add_parenthesized_arg_def (line 313) | fn add_parenthesized_arg_def(&mut self, kind: Ident, dollar_span: Span... method add_multi_arg_def (line 328) | fn add_multi_arg_def(&mut self, dollar_span: Span, arg_span: Span, out... method add_arg (line 358) | fn add_arg(&mut self, dollar_span: Span, tt: TT, input: &mut IntoIter,... method add_sub_args (line 410) | fn add_sub_args(&mut self, args: Vec, out: &mut TokenStream) { type Expander (line 418) | struct Expander { method for_arm (line 423) | fn for_arm(idx: usize) -> Self { method write_tt (line 433) | fn write_tt(&mut self, tt: TT, mac: &mut MacWriter) -> Result<()> { method expand (line 447) | fn expand(&mut self, input: IntoIter, mac: &mut MacWriter) -> Result<(... FILE: tests/ui/auxiliary/test_macro.rs type A (line 1) | pub trait A {} FILE: tests/ui/auxiliary/wildcard_imports_helper.rs function extern_foo (line 3) | pub fn extern_foo() {} function extern_bar (line 4) | pub fn extern_bar() {} type ExternA (line 6) | pub struct ExternA; function inner_extern_foo (line 10) | pub fn inner_extern_foo() {} function inner_extern_bar (line 11) | pub fn inner_extern_bar() {} function extern_exported (line 16) | pub fn extern_exported() {} type ExternExportedStruct (line 17) | pub struct ExternExportedStruct; type ExternExportedEnum (line 18) | pub enum ExternExportedEnum { type PreludeModAnywhere (line 25) | pub struct PreludeModAnywhere; type ExternPreludeModAnywhere (line 31) | pub struct ExternPreludeModAnywhere; FILE: tests/ui/await_holding_lock.rs function bad (line 9) | pub async fn bad(x: &Mutex) -> u32 { function good (line 15) | pub async fn good(x: &Mutex) -> u32 { function bad_rw (line 25) | pub async fn bad_rw(x: &RwLock) -> u32 { function bad_rw_write (line 31) | pub async fn bad_rw_write(x: &RwLock) -> u32 { function good_rw (line 37) | pub async fn good_rw(x: &RwLock) -> u32 { function also_bad (line 51) | pub async fn also_bad(x: &Mutex) -> u32 { function not_good (line 64) | pub async fn not_good(x: &Mutex) -> u32 { function block_bad (line 79) | pub fn block_bad(x: &Mutex) -> impl std::future::Future) -> u32 { function good (line 99) | pub async fn good(x: &Mutex) -> u32 { function bad_rw (line 109) | pub async fn bad_rw(x: &RwLock) -> u32 { function bad_rw_write (line 115) | pub async fn bad_rw_write(x: &RwLock) -> u32 { function good_rw (line 121) | pub async fn good_rw(x: &RwLock) -> u32 { function also_bad (line 135) | pub async fn also_bad(x: &Mutex) -> u32 { function not_good (line 148) | pub async fn not_good(x: &Mutex) -> u32 { function block_bad (line 163) | pub fn block_bad(x: &Mutex) -> impl std::future::Future u32 { function no_await (line 176) | async fn no_await(x: std::sync::Mutex) { function dropped_before_await (line 185) | async fn dropped_before_await(x: std::sync::Mutex) { function main (line 193) | fn main() { FILE: tests/ui/await_holding_refcell_ref.rs function bad (line 5) | async fn bad(x: &RefCell) -> u32 { function bad_mut (line 12) | async fn bad_mut(x: &RefCell) -> u32 { function good (line 19) | async fn good(x: &RefCell) -> u32 { function baz (line 29) | async fn baz() -> u32 { function also_bad (line 33) | async fn also_bad(x: &RefCell) -> u32 { function less_bad (line 46) | async fn less_bad(x: &RefCell) -> u32 { function not_good (line 61) | async fn not_good(x: &RefCell) -> u32 { function block_bad (line 77) | fn block_bad(x: &RefCell) -> impl std::future::Future... function main (line 86) | fn main() { FILE: tests/ui/bind_instead_of_map.rs function main (line 4) | pub fn main() { function foo (line 20) | pub fn foo() -> Option { function example2 (line 25) | pub fn example2(x: bool) -> Option<&'static str> { FILE: tests/ui/bind_instead_of_map_multipart.rs function main (line 4) | pub fn main() { function hard_example (line 21) | fn hard_example() { function foo (line 52) | fn foo() -> bool { function macro_example (line 62) | fn macro_example() { FILE: tests/ui/bit_masks.rs constant THREE_BITS (line 1) | const THREE_BITS: i64 = 7; constant EVEN_MORE_REDIRECTION (line 2) | const EVEN_MORE_REDIRECTION: i64 = THREE_BITS; function main (line 11) | fn main() { function ineffective (line 72) | fn ineffective() { FILE: tests/ui/blanket_clippy_restriction_lints.rs function main (line 14) | fn main() {} FILE: tests/ui/blocks_in_conditions.rs function macro_if (line 23) | fn macro_if() { function condition_has_block (line 29) | fn condition_has_block() -> i32 { function condition_has_block_with_single_expression (line 41) | fn condition_has_block_with_single_expression() -> i32 { function condition_is_normal (line 46) | fn condition_is_normal() -> i32 { function condition_is_unsafe_block (line 52) | fn condition_is_unsafe_block() { function block_in_assert (line 61) | fn block_in_assert() { function issue_12162 (line 82) | fn issue_12162() { function await_becomes_block (line 90) | pub async fn await_becomes_block() -> i32 { function issue_9911 (line 99) | fn issue_9911() { function in_closure (line 106) | fn in_closure() { function main (line 119) | fn main() {} FILE: tests/ui/blocks_in_conditions_2021.rs function block_in_match_expr (line 6) | fn block_in_match_expr(num: i32) -> i32 { FILE: tests/ui/bool_assert_comparison.rs type ImplNotTraitWithoutBool (line 20) | enum ImplNotTraitWithoutBool { method eq (line 26) | fn eq(&self, other: &bool) -> bool { type Output (line 35) | type Output = Self; method not (line 37) | fn not(self) -> Self::Output { type ImplNotTraitWithBool (line 49) | struct ImplNotTraitWithBool; method eq (line 52) | fn eq(&self, other: &bool) -> bool { type Output (line 58) | type Output = bool; method not (line 60) | fn not(self) -> Self::Output { type Output (line 66) | type Output = Self; method add (line 68) | fn add(self, other: Self) -> Self::Output { type NonCopy (line 74) | struct NonCopy; method eq (line 77) | fn eq(&self, other: &bool) -> bool { type Output (line 83) | type Output = bool; method not (line 85) | fn not(self) -> Self::Output { function main (line 90) | fn main() { function issue16279 (line 220) | fn issue16279() { FILE: tests/ui/bool_comparison.rs function main (line 5) | fn main() { function issue3703 (line 39) | fn issue3703() { function func (line 80) | fn func() -> bool { function issue3973 (line 84) | fn issue3973() { function issue9907 (line 115) | fn issue9907() { function issue15367 (line 127) | fn issue15367() { function issue15497 (line 138) | fn issue15497() { FILE: tests/ui/bool_to_int_with_if.rs function main (line 4) | fn main() { function some_fn (line 128) | fn some_fn(a: bool) -> u8 { function side_effect (line 133) | fn side_effect() {} function cond (line 135) | fn cond(a: bool, b: bool) -> bool { type Enum (line 139) | enum Enum { function if_let (line 144) | fn if_let(a: Enum, b: Enum) { function issue14628 (line 160) | fn issue14628() { FILE: tests/ui/borrow_and_ref_as_ptr.rs function f (line 5) | fn f(_: T) {} function main (line 7) | fn main() { FILE: tests/ui/borrow_as_ptr.rs function a (line 7) | fn a() -> i32 { function main (line 12) | fn main() { function issue_13882 (line 30) | fn issue_13882() { function implicit_cast (line 36) | fn implicit_cast() { function issue_15141 (line 54) | fn issue_15141() { function issue15389 (line 60) | fn issue15389() { FILE: tests/ui/borrow_as_ptr_no_std.rs function main (line 6) | pub fn main(_argc: isize, _argv: *const *const u8) -> isize { FILE: tests/ui/borrow_as_ptr_raw_ref.rs function a (line 4) | fn a() -> i32 { function main (line 9) | fn main() { FILE: tests/ui/borrow_box.rs function test1 (line 12) | pub fn test1(foo: &mut Box) { function test2 (line 24) | pub fn test2() { type Test3 (line 29) | struct Test3<'a> { type Test4 (line 34) | trait Test4 { method test4 (line 35) | fn test4(a: &Box); function test5 (line 41) | pub fn test5(foo: &mut Box) { function test6 (line 45) | pub fn test6() { type Test7 (line 49) | struct Test7<'a> { type Test8 (line 53) | trait Test8 { method test8 (line 54) | fn test8(a: &Box); method test8 (line 58) | fn test8(a: &Box) { function test9 (line 63) | pub fn test9(foo: &mut Box) { function test10 (line 67) | pub fn test10() { type Test11 (line 71) | struct Test11<'a> { type Test12 (line 75) | trait Test12 { method test4 (line 76) | fn test4(a: &Box); method test4 (line 80) | fn test4(a: &Box) { function test13 (line 85) | pub fn test13(boxed_slice: &mut Box<[i32]>) { function test14 (line 96) | pub fn test14(_display: &Box) {} function test15 (line 99) | pub fn test15(_display: &Box) {} function test16 (line 102) | pub fn test16<'a>(_display: &'a Box) {} function test17 (line 105) | pub fn test17(_display: &Box) {} function test18 (line 108) | pub fn test18(_display: &Box) {} function test19 (line 111) | pub fn test19<'a>(_display: &'a Box) {} function test20 (line 117) | pub fn test20(_display: &Box<(dyn Display + Send)>) {} type Trait (line 121) | trait Trait { method f (line 122) | fn f(b: &Box); method f (line 127) | fn f(_: &Box) {} function main (line 130) | fn main() { FILE: tests/ui/borrow_deref_ref.rs function main (line 8) | fn main() {} function one_help (line 11) | fn one_help() { function bar (line 20) | fn bar(x: &u32) -> &u32 { function foo (line 27) | fn foo(x: &mut &u32) { function main (line 31) | fn main() { type S (line 43) | struct S<'a> { function main (line 48) | fn main() { function foo (line 68) | fn foo() { function issue_13584 (line 79) | fn issue_13584() { type File (line 88) | pub enum File { function read (line 94) | fn read(&mut self, buf: &mut [u8]) -> io::Result { type Struct (line 104) | struct Struct; method foo (line 107) | fn foo(self: &mut &Self) {} type Trait (line 110) | trait Trait { method bar (line 111) | fn bar(&mut self) {} function bar (line 116) | fn bar() { function issue_14934 (line 128) | fn issue_14934() { function async_main (line 178) | async fn async_main() { function for_each_city (line 189) | async fn for_each_city(mut f: F) FILE: tests/ui/borrow_deref_ref_unfixable.rs function main (line 4) | fn main() {} function two_helps (line 7) | fn two_helps() { FILE: tests/ui/borrow_interior_mutable_const.rs type ConstDefault (line 15) | trait ConstDefault { constant DEFAULT (line 16) | const DEFAULT: Self; constant DEFAULT (line 19) | const DEFAULT: Self = 0; constant DEFAULT (line 22) | const DEFAULT: Self = Cell::new(T::DEFAULT); function main (line 25) | fn main() { FILE: tests/ui/box_collection.rs function test_macro (line 16) | fn test_macro() { function test1 (line 20) | fn test1(foo: Box>) {} function test2 (line 23) | fn test2(foo: Box)>) { function test3 (line 28) | fn test3(foo: Box) {} function test4 (line 31) | fn test4(foo: Box>) {} function test5 (line 34) | fn test5(foo: Box>) {} function test6 (line 37) | fn test6(foo: Box>) {} function test7 (line 40) | fn test7(foo: Box>) {} function test8 (line 43) | fn test8(foo: Box>) {} function test9 (line 46) | fn test9(foo: Box>) {} function test10 (line 49) | fn test10(foo: Box>) {} function test_local_not_linted (line 52) | fn test_local_not_linted() { function pub_test (line 58) | pub fn pub_test(foo: Box>) {} function pub_test_ret (line 60) | pub fn pub_test_ret() -> Box> { function main (line 64) | fn main() {} FILE: tests/ui/box_default.rs type ImplementsDefault (line 5) | struct ImplementsDefault; type OwnDefault (line 7) | struct OwnDefault; method default (line 10) | fn default() -> Self { function main (line 33) | fn main() { function ret_ty_fn (line 81) | fn ret_ty_fn() -> Box { function call_ty_fn (line 85) | fn call_ty_fn(_b: Box) { type X (line 89) | struct X(T); function x (line 92) | fn x(_: Box) {} function same_generic_param (line 94) | fn same_generic_param() { method read (line 103) | fn read(&mut self, _: &mut [u8]) -> Result { function issue_9621_dyn_trait (line 108) | fn issue_9621_dyn_trait() { function issue_10089 (line 113) | fn issue_10089() { function issue_10381 (line 122) | fn issue_10381() { function issue_11927 (line 141) | fn issue_11927() { FILE: tests/ui/box_default_no_std.rs type NotBox (line 7) | pub struct NotBox { function new (line 12) | pub fn new(value: T) -> Self { method default (line 18) | fn default() -> Self { function main (line 23) | pub fn main(_argc: isize, _argv: *const *const u8) -> isize { FILE: tests/ui/boxed_local.rs type A (line 12) | struct A; method foo (line 15) | fn foo(&self) {} type Z (line 18) | trait Z { method bar (line 19) | fn bar(&self); method bar (line 23) | fn bar(&self) { function main (line 28) | fn main() {} function ok_box_trait (line 30) | fn ok_box_trait(boxed_trait: &Box) { function warn_call (line 35) | fn warn_call() { function warn_arg (line 40) | fn warn_arg(x: Box) { function nowarn_closure_arg (line 46) | fn nowarn_closure_arg() { function warn_rename_call (line 51) | fn warn_rename_call() { function warn_notuse (line 58) | fn warn_notuse() { function warn_pass (line 62) | fn warn_pass() { function nowarn_return (line 67) | fn nowarn_return() -> Box { function nowarn_move (line 71) | fn nowarn_move() { function nowarn_call (line 75) | fn nowarn_call() { function nowarn_pass (line 80) | fn nowarn_pass() { function take_box (line 85) | fn take_box(x: &Box) {} function take_ref (line 86) | fn take_ref(x: &A) {} function nowarn_ref_take (line 88) | fn nowarn_ref_take() { function nowarn_match (line 95) | fn nowarn_match() { function warn_match (line 102) | fn warn_match() { type Foo (line 111) | pub trait Foo { type Item (line 116) | type Item = (); type PeekableSeekable (line 119) | pub struct PeekableSeekable { function new (line 123) | pub fn new(_needs_name: Box>) -> () {} type BoxedAction (line 130) | trait BoxedAction { method do_sth (line 131) | fn do_sth(self: Box); method do_sth (line 135) | fn do_sth(self: Box) { type MyTrait (line 143) | trait MyTrait { method do_sth (line 144) | fn do_sth(self); method do_sth (line 148) | fn do_sth(self) {} function consume (line 155) | fn consume(_: T) {} function borrow (line 156) | fn borrow(_: &T) {} function closure_consume (line 158) | fn closure_consume(x: Box) { function closure_borrow (line 164) | fn closure_borrow(x: Box) { function do_not_warn_me (line 174) | pub extern "C" fn do_not_warn_me(_c_pointer: Box) -> () {} function do_not_warn_me_no_abi (line 178) | pub extern fn do_not_warn_me_no_abi(_c_pointer: Box) -> () {} type DefaultTraitImplTest (line 182) | trait DefaultTraitImplTest { method default_impl (line 184) | fn default_impl(self: Box) -> u32 { method default_impl_x (line 189) | fn default_impl_x(self: Box, x: Box) -> u32 { type WarnTrait (line 196) | trait WarnTrait { method foo (line 198) | fn foo(x: Box) {} function check_expect (line 203) | fn check_expect(#[expect(clippy::boxed_local)] x: Box) { FILE: tests/ui/branches_sharing_code/false_positives.rs type FooBar (line 12) | pub struct FooBar { method bar (line 17) | pub fn bar(&mut self) { method baz (line 29) | fn baz(&mut self) {} function foo (line 32) | fn foo(x: u32, y: u32) -> u32 { function main (line 36) | fn main() { FILE: tests/ui/branches_sharing_code/shared_at_bottom.rs function simple_examples (line 11) | fn simple_examples() { function simple_but_suggestion_is_invalid (line 93) | fn simple_but_suggestion_is_invalid() { function not_moveable_due_to_value_scope (line 127) | fn not_moveable_due_to_value_scope() { function added_note_for_expression_use (line 178) | fn added_note_for_expression_use() -> u32 { function test_suggestion_with_weird_formatting (line 199) | fn test_suggestion_with_weird_formatting() { function fp_test (line 211) | fn fp_test() { function fp_if_let_issue7054 (line 227) | fn fp_if_let_issue7054() { function main (line 241) | fn main() {} function foo (line 244) | fn foo() -> i32 { function share_on_bottom (line 260) | fn share_on_bottom() { function issue15004 (line 280) | fn issue15004() { function issue15347 (line 304) | pub fn issue15347() -> isize { FILE: tests/ui/branches_sharing_code/shared_at_top.rs function simple_examples (line 7) | fn simple_examples() { function simple_but_suggestion_is_invalid (line 58) | fn simple_but_suggestion_is_invalid() { function check_if_same_than_else_mask (line 93) | fn check_if_same_than_else_mask() { function pf_local_with_inferred_type_issue7053 (line 116) | fn pf_local_with_inferred_type_issue7053() { function main (line 126) | fn main() {} function foo (line 129) | fn foo() -> i32 { function share_on_top (line 141) | fn share_on_top() { FILE: tests/ui/branches_sharing_code/shared_at_top_and_bottom.rs type DataPack (line 6) | struct DataPack { function overlapping_eq_regions (line 12) | fn overlapping_eq_regions() { function complexer_example (line 52) | fn complexer_example() { function added_note_for_expression_use (line 97) | fn added_note_for_expression_use() -> u32 { function main (line 129) | fn main() {} function foo (line 132) | fn foo() -> i32 { function share_on_top_and_bottom (line 150) | fn share_on_top_and_bottom() { FILE: tests/ui/branches_sharing_code/valid_if_blocks.rs function valid_examples (line 13) | fn valid_examples() { function trigger_other_lint (line 116) | fn trigger_other_lint() { function main (line 161) | fn main() {} FILE: tests/ui/builtin_type_shadow.rs function foo (line 4) | fn foo(a: u32) -> u32 { function main (line 9) | fn main() {} FILE: tests/ui/byte_char_slices.rs function main (line 3) | fn main() { FILE: tests/ui/bytecount.rs function main (line 6) | fn main() { FILE: tests/ui/bytes_count_to_len.rs function main (line 5) | fn main() { FILE: tests/ui/bytes_nth.rs function main (line 5) | fn main() { FILE: tests/ui/case_sensitive_file_extension_comparisons.rs type TestStruct (line 5) | struct TestStruct; method ends_with (line 8) | fn ends_with(self, _arg: &str) {} function is_rust_file (line 12) | fn is_rust_file(filename: &str) -> bool { function main (line 17) | fn main() { function msrv_check (line 68) | fn msrv_check() { FILE: tests/ui/cast.rs function main (line 20) | fn main() { function avoid_subtract_overflow (line 419) | fn avoid_subtract_overflow(q: u32) { function issue11426 (line 431) | fn issue11426() { function issue11642 (line 435) | fn issue11642() { function issue11738 (line 529) | fn issue11738() { function issue12506 (line 547) | fn issue12506() -> usize { function issue12721 (line 554) | fn issue12721() { function msrv_supports_cast_signed (line 575) | fn msrv_supports_cast_signed() { function msrv_doesnt_supports_cast_signed (line 580) | fn msrv_doesnt_supports_cast_signed() { function issue16045 (line 586) | fn issue16045() { FILE: tests/ui/cast_abs_to_unsigned.rs function main (line 4) | fn main() { function msrv_1_50 (line 51) | fn msrv_1_50() { function msrv_1_51 (line 57) | fn msrv_1_51() { FILE: tests/ui/cast_alignment.rs function main (line 12) | fn main() { FILE: tests/ui/cast_enum_constructor.rs function main (line 4) | fn main() { FILE: tests/ui/cast_lossless_bool.rs type U8 (line 4) | type U8 = u8; function main (line 6) | fn main() { function abc (line 45) | const fn abc(input: bool) -> u32 { type A (line 51) | struct A; method convert (line 54) | pub const fn convert(x: bool) -> u64 { function msrv_1_27 (line 61) | fn msrv_1_27() { function msrv_1_28 (line 66) | fn msrv_1_28() { FILE: tests/ui/cast_lossless_float.rs type F32 (line 6) | type F32 = f32; type F64 (line 7) | type F64 = f64; function main (line 9) | fn main() { function abc (line 50) | const fn abc(input: f32) -> f64 { type A (line 56) | struct A; method convert (line 59) | pub const fn convert(x: f32) -> f64 { FILE: tests/ui/cast_lossless_integer.rs type I64Alias (line 4) | type I64Alias = i64; function main (line 6) | fn main() { function abc (line 121) | const fn abc(input: u16) -> u32 { type A (line 127) | struct A; method convert (line 130) | pub const fn convert(x: u32) -> u64 { type Test (line 138) | enum Test { function issue11458 (line 142) | fn issue11458() { function issue12695 (line 156) | fn issue12695() { function ty_from_macro (line 167) | fn ty_from_macro() { constant IN_CONST (line 178) | const IN_CONST: u64 = 0u8 as u64; FILE: tests/ui/cast_lossless_integer_unfixable.rs function issue15348 (line 4) | fn issue15348() { FILE: tests/ui/cast_nan_to_int.rs function main (line 6) | fn main() { FILE: tests/ui/cast_raw_slice_pointer_cast.rs function require_raw_slice_ptr (line 3) | const fn require_raw_slice_ptr(_: *const [T]) {} function main (line 5) | fn main() { FILE: tests/ui/cast_raw_slice_pointer_cast_no_std.rs function require_raw_slice_ptr (line 5) | const fn require_raw_slice_ptr(_: *const [T]) {} function main (line 7) | fn main() { FILE: tests/ui/cast_size.rs function main (line 15) | fn main() { function issue15163 (line 69) | fn issue15163() { FILE: tests/ui/cast_slice_different_sizes.rs function main (line 4) | fn main() { function foo (line 55) | fn foo(x: *mut [u8]) -> *mut [u8] { function foo2 (line 59) | fn foo2(x: *mut [u8]) -> *mut [u8] { function bar (line 64) | fn bar(x: *mut [u16]) -> *mut [u8] { function uwu (line 70) | fn uwu(x: *mut [u16]) -> *mut [u8] { function bar2 (line 76) | fn bar2(x: *mut [u16]) -> *mut [u8] { function bar3 (line 83) | fn bar3(x: *mut [u16]) -> *const [u8] { function bar4 (line 90) | fn bar4(x: *const [u16]) -> *mut [u8] { function blocks (line 97) | fn blocks(x: *mut [u16]) -> *mut [u8] { function more_blocks (line 103) | fn more_blocks(x: *mut [u16]) -> *mut [u8] { FILE: tests/ui/cfg_attr_cargo_clippy.rs type Bar (line 18) | pub struct Bar; function main (line 20) | fn main() {} FILE: tests/ui/cfg_attr_rustfmt.rs type Foo (line 11) | trait Foo method foo (line 13) | fn foo( function skip_on_statements (line 17) | fn skip_on_statements() { function main (line 25) | fn main() { function f (line 32) | pub fn f() {} function msrv_1_29 (line 36) | fn msrv_1_29() { function msrv_1_30 (line 42) | fn msrv_1_30() { FILE: tests/ui/cfg_not_test.rs function important_check (line 4) | fn important_check() {} function main (line 6) | fn main() { type CfgNotTest (line 23) | struct CfgNotTest; function foo (line 28) | fn foo() {} function bar (line 31) | fn bar() {} function baz (line 34) | fn baz() {} FILE: tests/ui/char_indices_as_byte_indices.rs type StrExt (line 3) | trait StrExt { method use_index (line 4) | fn use_index(&self, _: usize); method use_index (line 7) | fn use_index(&self, _: usize) {} function bad (line 10) | fn bad(prim: &str, string: String) { function good (line 42) | fn good(prim: &str, prim2: &str) { function main (line 64) | fn main() {} FILE: tests/ui/char_lit_as_u8.rs function main (line 3) | fn main() { FILE: tests/ui/char_lit_as_u8_unfixable.rs function main (line 3) | fn main() { FILE: tests/ui/checked_conversions.rs function i64_to_u32 (line 15) | pub fn i64_to_u32(value: i64) { function i64_to_u16 (line 22) | pub fn i64_to_u16(value: i64) { function isize_to_u8 (line 29) | pub fn isize_to_u8(value: isize) { function i64_to_i32 (line 38) | pub fn i64_to_i32(value: i64) { function i64_to_i16 (line 45) | pub fn i64_to_i16(value: i64) { function u32_to_i32 (line 54) | pub fn u32_to_i32(value: u32) { function usize_to_isize (line 61) | pub fn usize_to_isize(value: usize) { function u32_to_u16 (line 68) | pub fn u32_to_u16(value: u32) { function no_i64_to_i32 (line 77) | pub fn no_i64_to_i32(value: i64) { function no_isize_to_u8 (line 82) | pub fn no_isize_to_u8(value: isize) { function i8_to_u8 (line 87) | pub fn i8_to_u8(value: i8) { function issue_8898 (line 92) | pub const fn issue_8898(i: u32) -> bool { function msrv_1_33 (line 97) | fn msrv_1_33() { function msrv_1_34 (line 103) | fn msrv_1_34() { function issue16293 (line 109) | fn issue16293() { function main (line 124) | fn main() {} FILE: tests/ui/checked_unwrap/complex_conditionals.rs function test_complex_conditions (line 4) | fn test_complex_conditions() { function main (line 90) | fn main() {} FILE: tests/ui/checked_unwrap/complex_conditionals_nested.rs function test_nested (line 5) | fn test_nested() { function main (line 18) | fn main() {} FILE: tests/ui/checked_unwrap/if_let_chains.rs function if_let_chains_unsupported (line 5) | fn if_let_chains_unsupported(a: Option, b: Option) { function if_let_chains_supported (line 16) | fn if_let_chains_supported(a: Option, b: Option) { FILE: tests/ui/checked_unwrap/simple_conditionals.rs function main (line 43) | fn main() { function issue11371 (line 120) | fn issue11371() { function gen_option (line 170) | fn gen_option() -> Option<()> { function gen_result (line 175) | fn gen_result() -> Result<(), ()> { function issue14725 (line 180) | fn issue14725() { function issue14763 (line 222) | fn issue14763(x: Option, r: Result<(), ()>) { constant ISSUE14763 (line 243) | const ISSUE14763: fn(Option) = |x| { function issue12295 (line 255) | fn issue12295() { function check_expect (line 277) | fn check_expect() { function partial_moves (line 292) | fn partial_moves() { function issue15321 (line 310) | fn issue15321() { type Foo (line 477) | struct Foo { method bar (line 482) | pub fn bar(&mut self) { FILE: tests/ui/clear_with_drain.rs function vec_range (line 6) | fn vec_range() { function vec_range_from (line 31) | fn vec_range_from() { function vec_range_full (line 56) | fn vec_range_full() { function vec_range_to (line 73) | fn vec_range_to() { function vec_partial_drains (line 91) | fn vec_partial_drains() { function vec_deque_range (line 110) | fn vec_deque_range() { function vec_deque_range_from (line 135) | fn vec_deque_range_from() { function vec_deque_range_full (line 160) | fn vec_deque_range_full() { function vec_deque_range_to (line 177) | fn vec_deque_range_to() { function vec_deque_partial_drains (line 195) | fn vec_deque_partial_drains() { function string_range (line 214) | fn string_range() { function string_range_from (line 239) | fn string_range_from() { function string_range_full (line 264) | fn string_range_full() { function string_range_to (line 281) | fn string_range_to() { function string_partial_drains (line 299) | fn string_partial_drains() { function hash_set (line 318) | fn hash_set() { function hash_map (line 338) | fn hash_map() { function binary_heap (line 358) | fn binary_heap() { function main (line 378) | fn main() {} FILE: tests/ui/clone_on_copy.rs function main (line 13) | fn main() { type A (line 62) | struct A; type B (line 63) | struct B; type C (line 64) | struct C; type D (line 65) | struct D; type Target (line 84) | type Target = &'static E; method deref (line 85) | fn deref(&self) -> &Self::Target { type E (line 67) | struct E; function go1 (line 90) | fn go1() { function issue4348 (line 99) | fn issue4348() { function issue5436 (line 112) | fn issue5436() { function issue9277 (line 118) | fn issue9277() -> Option { FILE: tests/ui/clone_on_copy_impl.rs type Key (line 8) | pub struct Key { method clone (line 18) | fn clone(&self) -> Self { function main (line 26) | fn main() {} FILE: tests/ui/clone_on_ref_ptr.rs function main (line 6) | fn main() {} function clone_on_ref_ptr (line 8) | fn clone_on_ref_ptr(rc: Rc, rc_weak: RcWeak, arc: Arc, ar... type SomeTrait (line 24) | trait SomeTrait {} type SomeImpl (line 25) | struct SomeImpl; function trait_object (line 28) | fn trait_object() { function func (line 46) | fn func() -> Option> { function main (line 57) | fn main() { function issue15741 (line 79) | fn issue15741(mut rc: Rc, ref_rc: &Rc, refmut_rc: &mut Rc) { FILE: tests/ui/cloned_instead_of_copied.rs function main (line 5) | fn main() { function msrv_1_34 (line 24) | fn msrv_1_34() { function msrv_1_35 (line 30) | fn msrv_1_35() { function msrv_1_36 (line 38) | fn msrv_1_36() { FILE: tests/ui/cloned_ref_to_slice_refs.rs type Data (line 4) | struct Data; function main (line 6) | fn main() { FILE: tests/ui/cmp_null.rs function main (line 5) | fn main() { function issue15010 (line 36) | fn issue15010() { function issue16281 (line 42) | fn issue16281() { FILE: tests/ui/cmp_owned/asymmetric_partial_eq.rs method eq (line 37) | fn eq(&self, _: &Owned) -> bool { function compare (line 42) | pub fn compare() { method eq (line 58) | fn eq(&self, _: &Borrowed) -> bool { function compare (line 63) | fn compare() { method eq (line 82) | fn eq(&self, _: &T) -> bool { method fmt (line 88) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function compare (line 93) | fn compare() { function main (line 103) | fn main() {} FILE: tests/ui/cmp_owned/comparison_flip.rs function main (line 3) | fn main() { type Foo (line 17) | struct Foo; method eq (line 26) | fn eq(&self, other: &&str) -> bool { method fmt (line 20) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { FILE: tests/ui/cmp_owned/with_suggestion.rs function main (line 3) | fn main() { type Foo (line 33) | struct Foo; method eq (line 40) | fn eq(&self, other: &Self) -> bool { type Owned (line 46) | type Owned = Bar; method to_owned (line 47) | fn to_owned(&self) -> Bar { type Bar (line 53) | struct Bar; method eq (line 56) | fn eq(&self, _: &Foo) -> bool { method borrow (line 62) | fn borrow(&self) -> &Foo { type Baz (line 69) | struct Baz; type Owned (line 72) | type Owned = Baz; method to_owned (line 73) | fn to_owned(&self) -> Baz { function issue_8103 (line 78) | fn issue_8103() { function issue16322 (line 109) | fn issue16322(item: String) { function issue16458 (line 116) | fn issue16458() { function issue16564 (line 154) | fn issue16564(path: std::path::PathBuf) { FILE: tests/ui/cmp_owned/without_suggestion.rs function main (line 4) | fn main() { type Foo (line 20) | struct Foo; method eq (line 23) | fn eq(&self, other: &Self) -> bool { type Owned (line 30) | type Owned = Bar; method to_owned (line 31) | fn to_owned(&self) -> Bar { type Baz (line 37) | struct Baz; type Owned (line 40) | type Owned = Baz; method to_owned (line 41) | fn to_owned(&self) -> Baz { type Bar (line 47) | struct Bar; method eq (line 50) | fn eq(&self, _: &Foo) -> bool { method borrow (line 56) | fn borrow(&self) -> &Foo { type U32Wrapper (line 63) | struct U32Wrapper(u32); method from (line 65) | fn from(x: u32) -> Self { method eq (line 70) | fn eq(&self, other: &u32) -> bool { function eq (line 75) | fn eq(&self, other: &U32Wrapper) -> bool { FILE: tests/ui/coerce_container_to_any.rs function main (line 5) | fn main() { function f (line 37) | fn f(_: &dyn Any) {} FILE: tests/ui/cognitive_complexity.rs function main (line 11) | fn main() { function kaboom (line 98) | fn kaboom() { function bloo (line 121) | fn bloo() { function lots_of_short_circuits (line 148) | fn lots_of_short_circuits() -> bool { function lots_of_short_circuits2 (line 153) | fn lots_of_short_circuits2() -> bool { function baa (line 158) | fn baa() { function bar (line 179) | fn bar() { function dont_warn_on_tests (line 192) | fn dont_warn_on_tests() { function barr (line 202) | fn barr() { function barr2 (line 214) | fn barr2() { function barrr (line 232) | fn barrr() { function barrr2 (line 244) | fn barrr2() { function barrrr (line 262) | fn barrrr() { function barrrr2 (line 274) | fn barrrr2() { function cake (line 292) | fn cake() { function read_file (line 304) | pub fn read_file(input_path: &str) -> String { type Void (line 334) | enum Void {} function void (line 337) | fn void(void: Void) { function mcarton_sees_all (line 346) | fn mcarton_sees_all() { function try_ (line 352) | fn try_() -> Result { function try_again (line 360) | fn try_again() -> Result { function early (line 376) | fn early() -> Result { function early_ret (line 390) | fn early_ret() -> i32 { function closures (line 412) | fn closures() { type Moo (line 424) | struct Moo; method moo (line 428) | fn moo(&self) { function a (line 439) | async fn a() { type S (line 446) | pub struct S; method async_method (line 448) | pub async fn async_method() { function foo (line 459) | fn foo() { function bar (line 466) | fn bar() { function bad (line 478) | fn bad() { function ok (line 486) | fn ok() { function bad_again (line 493) | fn bad_again() { FILE: tests/ui/cognitive_complexity_attr_used.rs function main (line 4) | fn main() { function kaboom (line 9) | fn kaboom() { FILE: tests/ui/collapsible_else_if.rs function main (line 5) | fn main() { function issue_7318 (line 126) | fn issue_7318() { function issue_13365 (line 134) | fn issue_13365() { function issue14799 (line 143) | fn issue14799() { function in_parens (line 161) | fn in_parens() { function in_brackets (line 173) | fn in_brackets() { FILE: tests/ui/collapsible_else_if_unfixable.rs function issue_13365 (line 4) | fn issue_13365() { FILE: tests/ui/collapsible_if.rs function main (line 12) | fn main() { function layout_check (line 148) | fn layout_check() -> u32 { function issue13365 (line 157) | fn issue13365() { function issue14722 (line 175) | fn issue14722() { function issue14799 (line 186) | fn issue14799() { function in_parens (line 195) | fn in_parens() { function in_brackets (line 204) | fn in_brackets() { FILE: tests/ui/collapsible_if_let_chains.rs function main (line 8) | fn main() { function msrv_1_87 (line 64) | fn msrv_1_87() { function msrv_1_88 (line 71) | fn msrv_1_88() { FILE: tests/ui/collapsible_if_unfixable.rs function issue13365 (line 4) | fn issue13365() { FILE: tests/ui/collapsible_match.rs function lint_cases (line 12) | fn lint_cases(opt_opt: Option>, res_opt: Result,... function negative_cases (line 122) | fn negative_cases(res_opt: Result, String>, res_res: Result<... type Issue9647 (line 282) | pub enum Issue9647 { function test_1 (line 287) | pub fn test_1(x: Issue9647) { function test_2 (line 297) | pub fn test_2(x: Issue9647) { type Token (line 308) | enum Token { type Error (line 313) | struct Error { function struct_field_pat_with_binding_mode (line 318) | fn struct_field_pat_with_binding_mode(err: Option) { function issue_14155 (line 328) | pub fn issue_14155() { function lint_emitted_at_right_node (line 370) | fn lint_emitted_at_right_node(opt: Option>) { function make (line 381) | fn make() -> T { function foo (line 385) | fn foo(t: T) -> U { function take (line 389) | fn take(t: T) {} function main (line 391) | fn main() {} FILE: tests/ui/collapsible_match2.rs function lint_cases (line 9) | fn lint_cases(opt_opt: Option>, res_opt: Result,... function no_lint (line 73) | fn no_lint() { function make (line 84) | fn make() -> T { function foo (line 88) | fn foo(t: T) -> U { function main (line 92) | fn main() {} FILE: tests/ui/collapsible_match_fixable.rs function issue16558 (line 4) | fn issue16558() { FILE: tests/ui/collapsible_str_replace.rs function get_filter (line 4) | fn get_filter() -> char { function main (line 8) | fn main() { function msrv_1_57 (line 91) | fn msrv_1_57() { function msrv_1_58 (line 96) | fn msrv_1_58() { FILE: tests/ui/collection_is_never_read.rs function main (line 6) | fn main() {} function not_a_collection (line 8) | fn not_a_collection() { function no_access_at_all (line 14) | fn no_access_at_all() { function write_without_read (line 19) | fn write_without_read() { function read_without_write (line 27) | fn read_without_write() { function write_and_read (line 32) | fn write_and_read() { function write_after_read (line 38) | fn write_after_read() { function write_before_reassign (line 45) | fn write_before_reassign() { function read_in_closure (line 53) | fn read_in_closure() { function write_in_closure (line 61) | fn write_in_closure() { function read_in_format (line 70) | fn read_in_format() { function shadowing_1 (line 76) | fn shadowing_1() { function shadowing_2 (line 85) | fn shadowing_2() { function fake_read_1 (line 95) | fn fake_read_1() { function fake_read_2 (line 103) | fn fake_read_2() { function assignment (line 111) | fn assignment() { function self_assignment (line 120) | fn self_assignment() { function method_argument_but_not_target (line 127) | fn method_argument_but_not_target() { function insert_is_not_a_read (line 139) | fn insert_is_not_a_read() { function insert_is_a_read (line 146) | fn insert_is_a_read() { function not_read_if_return_value_not_used (line 153) | fn not_read_if_return_value_not_used() { function extension_traits (line 162) | fn extension_traits() { function function_argument (line 182) | fn function_argument() { function supported_types (line 192) | fn supported_types() { function issue11783 (line 245) | fn issue11783() { FILE: tests/ui/comparison_chain.rs function a (line 5) | fn a() {} function b (line 6) | fn b() {} function c (line 7) | fn c() {} function f (line 9) | fn f(x: u8, y: u8, z: u8) { function g (line 88) | fn g(x: f64, y: f64, z: f64) { function h (line 124) | fn h(x: T, y: T, z: T) { function foo (line 156) | fn foo() -> u8 { function same_operation_equals (line 160) | fn same_operation_equals() { function same_operation_not_equals (line 186) | fn same_operation_not_equals() { type Sign (line 219) | enum Sign { method sign_i8 (line 226) | const fn sign_i8(n: i8) -> Self { function sign_i8 (line 237) | const fn sign_i8(n: i8) -> Sign { function needs_parens (line 247) | fn needs_parens() -> &'static str { function main (line 260) | fn main() {} FILE: tests/ui/comparison_to_empty.rs function main (line 4) | fn main() { FILE: tests/ui/confusing_method_to_numeric_cast.rs function main (line 5) | fn main() { FILE: tests/ui/const_comparisons.rs constant STATUS_BAD_REQUEST (line 10) | const STATUS_BAD_REQUEST: u16 = 400; constant STATUS_SERVER_ERROR (line 11) | const STATUS_SERVER_ERROR: u16 = 500; type Status (line 13) | struct Status { method eq (line 18) | fn eq(&self, other: &u16) -> bool { method partial_cmp (line 24) | fn partial_cmp(&self, other: &u16) -> Option { function eq (line 30) | fn eq(&self, other: &Status) -> bool { function partial_cmp (line 36) | fn partial_cmp(&self, other: &Status) -> Option { function main (line 41) | fn main() { FILE: tests/ui/const_is_empty.rs function test_literal (line 4) | fn test_literal() { function test_byte_literal (line 13) | fn test_byte_literal() { function test_no_mut (line 22) | fn test_no_mut() { function test_propagated (line 29) | fn test_propagated() { constant EMPTY_STR (line 42) | const EMPTY_STR: &str = ""; constant NON_EMPTY_STR (line 43) | const NON_EMPTY_STR: &str = "foo"; constant EMPTY_BSTR (line 44) | const EMPTY_BSTR: &[u8] = b""; constant NON_EMPTY_BSTR (line 45) | const NON_EMPTY_BSTR: &[u8] = b"foo"; constant EMPTY_U8_SLICE (line 46) | const EMPTY_U8_SLICE: &[u8] = &[]; constant NON_EMPTY_U8_SLICE (line 47) | const NON_EMPTY_U8_SLICE: &[u8] = &[1, 2]; constant EMPTY_SLICE (line 48) | const EMPTY_SLICE: &[u32] = &[]; constant NON_EMPTY_SLICE (line 49) | const NON_EMPTY_SLICE: &[u32] = &[1, 2]; constant NON_EMPTY_SLICE_REPEAT (line 50) | const NON_EMPTY_SLICE_REPEAT: &[u32] = &[1; 2]; constant EMPTY_ARRAY (line 51) | const EMPTY_ARRAY: [u32; 0] = []; constant EMPTY_ARRAY_REPEAT (line 52) | const EMPTY_ARRAY_REPEAT: [u32; 0] = [1; 0]; constant NON_EMPTY_ARRAY (line 53) | const NON_EMPTY_ARRAY: [u32; 2] = [1, 2]; constant NON_EMPTY_ARRAY_REPEAT (line 54) | const NON_EMPTY_ARRAY_REPEAT: [u32; 2] = [1; 2]; constant EMPTY_REF_ARRAY (line 55) | const EMPTY_REF_ARRAY: &[u32; 0] = &[]; constant NON_EMPTY_REF_ARRAY (line 56) | const NON_EMPTY_REF_ARRAY: &[u32; 3] = &[1, 2, 3]; function main (line 58) | fn main() { function str_from_arg (line 74) | fn str_from_arg(var: &str) { function update_str (line 79) | fn update_str() { function macros (line 87) | fn macros() { function conditional_value (line 98) | fn conditional_value() { function cfg_conditioned (line 111) | fn cfg_conditioned() { function not_cfg_conditioned (line 121) | fn not_cfg_conditioned() { function const_rand (line 128) | const fn const_rand() -> &'static str { function const_expressions (line 132) | fn const_expressions() { function constant_from_external_crate (line 140) | fn constant_from_external_crate() { function issue_13106 (line 145) | fn issue_13106() { FILE: tests/ui/copy_iterator.rs type Countdown (line 5) | struct Countdown(u8); type Item (line 10) | type Item = u8; method next (line 12) | fn next(&mut self) -> Option { function main (line 20) | fn main() { FILE: tests/ui/crashes/associated-constant-ice.rs type Trait (line 4) | pub trait Trait { constant CONSTANT (line 5) | const CONSTANT: u8; constant CONSTANT (line 9) | const CONSTANT: u8 = 2; function main (line 12) | fn main() { FILE: tests/ui/crashes/auxiliary/ice-4727-aux.rs type Trait (line 1) | pub trait Trait { method fun (line 2) | fn fun(par: &str) -> &str; method fun (line 6) | fn fun(par: &str) -> &str { FILE: tests/ui/crashes/auxiliary/ice-7272-aux.rs function warn (line 1) | pub fn warn(_: T) {} FILE: tests/ui/crashes/auxiliary/ice-7868-aux.rs function zero (line 1) | fn zero() { FILE: tests/ui/crashes/auxiliary/ice-7934-aux.rs function zero (line 1) | fn zero() { FILE: tests/ui/crashes/auxiliary/ice-8681-aux.rs function foo (line 1) | pub fn foo(x: &u32) -> u32 { FILE: tests/ui/crashes/auxiliary/proc_macro_crash.rs function macro_test (line 6) | pub fn macro_test(input_stream: TokenStream) -> TokenStream { FILE: tests/ui/crashes/cc_seme.rs type Baz (line 4) | enum Baz { type Test (line 9) | struct Test { function main (line 14) | fn main() {} function foo (line 16) | pub fn foo() { FILE: tests/ui/crashes/elidable_lifetime_names_impl_trait.rs type Foo (line 4) | trait Foo {} type Bar (line 6) | struct Bar; method baz (line 16) | fn baz<'a>(&'a self) -> impl Foo + 'a { type Baz (line 8) | struct Baz<'a> { function main (line 23) | fn main() {} FILE: tests/ui/crashes/enum-glob-import-crate.rs function main (line 5) | fn main() {} FILE: tests/ui/crashes/ice-10148.rs function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-10508a.rs type Node (line 6) | struct Node { type Digit (line 10) | struct Digit { type FingerTree (line 14) | enum FingerTree { function main (line 20) | fn main() {} FILE: tests/ui/crashes/ice-10508b.rs type Digit (line 5) | struct Digit { type Node (line 9) | struct Node { type FingerTree (line 13) | enum FingerTree { type Wrapper (line 19) | enum Wrapper { function main (line 24) | fn main() { FILE: tests/ui/crashes/ice-10508c.rs type S (line 4) | struct S { function main (line 9) | fn main() {} FILE: tests/ui/crashes/ice-10912.rs function f2 (line 3) | fn f2() -> impl Sized { && 3.14159265358979323846E } function main (line 6) | fn main() {} FILE: tests/ui/crashes/ice-11065.rs function eq (line 7) | fn eq(a: T, b: T) -> bool { FILE: tests/ui/crashes/ice-11230.rs function main (line 6) | fn main() { type Helper (line 13) | trait Helper<'a>: Iterator {} function x (line 16) | fn x(w: &mut dyn for<'a> Helper<'a>) { FILE: tests/ui/crashes/ice-11337.rs function alias (line 7) | fn alias, F>(_: T, _: F) {} function main (line 9) | fn main() { FILE: tests/ui/crashes/ice-11422.rs function r#gen (line 6) | fn r#gen() -> impl PartialOrd + PartialEq + Debug {} type Bar (line 9) | struct Bar {} type Foo (line 10) | trait Foo {} type FooNested (line 11) | trait FooNested> {} function foo (line 15) | fn foo() -> impl Foo + FooNested { function test_impl_ops (line 19) | fn test_impl_ops() -> impl Add + Sub + Mul + Div { function test_impl_assign_ops (line 22) | fn test_impl_assign_ops() -> impl AddAssign + SubAssign + MulAssign + Di... function main (line 26) | fn main() {} FILE: tests/ui/crashes/ice-11755.rs function main (line 5) | fn main() { FILE: tests/ui/crashes/ice-11803.rs function g (line 5) | pub fn g>>() { function main (line 11) | fn main() {} FILE: tests/ui/crashes/ice-11939.rs function v (line 5) | const fn v(_: ()) {} function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-12253.rs function main (line 4) | fn main() { FILE: tests/ui/crashes/ice-12491.rs function main (line 3) | fn main() { FILE: tests/ui/crashes/ice-12585.rs type One (line 5) | struct One { type Two (line 8) | struct Two { type Product (line 12) | struct Product {} method a_method (line 15) | pub fn a_method(self, _: ()) {} function from_array (line 18) | fn from_array(_: [i32; 2]) -> Product { function main (line 22) | pub fn main() { FILE: tests/ui/crashes/ice-12616.rs function main (line 4) | fn main() { FILE: tests/ui/crashes/ice-12979.rs constant FOO (line 3) | const FOO: u8 = 0; FILE: tests/ui/crashes/ice-13544-original.rs type Scopable (line 7) | trait Scopable: Sized { type Subtree (line 11) | struct Subtree(ManuallyDrop>>); method drop (line 14) | fn drop(&mut self) { type Target (line 21) | type Target = Tree; method deref (line 22) | fn deref(&self) -> &Self::Target { method deref_mut (line 28) | fn deref_mut(&mut self) -> &mut Self::Target { type Tree (line 33) | enum Tree { function foo (line 40) | fn foo(self) -> Self { function main (line 45) | fn main() {} FILE: tests/ui/crashes/ice-13544-reduced.rs type Trait (line 7) | trait Trait { type S (line 10) | struct S(*const S, PhantomData); function f (line 12) | fn f(x: &mut S) { function main (line 16) | fn main() {} FILE: tests/ui/crashes/ice-13862.rs type S (line 10) | pub struct S; type Output (line 13) | type Output = (); method poll (line 14) | fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll { function f (line 19) | pub fn f() -> S { FILE: tests/ui/crashes/ice-14303.rs type X (line 5) | pub struct X(()); type Action (line 8) | pub enum Action { function main (line 12) | fn main() {} FILE: tests/ui/crashes/ice-14325.rs type S (line 5) | struct S<'a> { function foo (line 9) | fn foo() -> Option> { function main (line 17) | fn main() {} FILE: tests/ui/crashes/ice-14935.rs type Group (line 6) | trait Group { type Pow (line 10) | struct Pow { function is_zero (line 16) | fn is_zero(&self) -> bool { function normalize (line 19) | fn normalize(&self) { function main (line 27) | fn main() {} FILE: tests/ui/crashes/ice-15657.rs type S1 (line 4) | pub struct S1; method len (line 8) | pub fn len(&self) -> S2 { type S2 (line 5) | pub struct S2; FILE: tests/ui/crashes/ice-15666.rs type UnitVariantAccess (line 3) | struct UnitVariantAccess<'a, 'b, 's>(&'a &'b &'s ()); type Trait (line 4) | trait Trait<'de> {} FILE: tests/ui/crashes/ice-15684.rs function foo (line 3) | fn foo() -> i32 { function main (line 10) | fn main() {} FILE: tests/ui/crashes/ice-1588.rs function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-1782.rs function spanless_eq_ice (line 11) | fn spanless_eq_ice() { function main (line 29) | fn main() {} FILE: tests/ui/crashes/ice-1969.rs function main (line 5) | fn main() {} type Convert (line 7) | pub trait Convert { method convert (line 10) | fn convert(val: *const f64) -> Self::Action { FILE: tests/ui/crashes/ice-2499.rs function f (line 9) | fn f(s: &[u8]) -> bool { function main (line 28) | fn main() {} FILE: tests/ui/crashes/ice-2594.rs function spanless_hash_ice (line 8) | fn spanless_hash_ice() { function main (line 21) | fn main() {} FILE: tests/ui/crashes/ice-2727.rs function f (line 4) | pub fn f(new: fn()) { function main (line 8) | fn main() {} FILE: tests/ui/crashes/ice-2760.rs type Foo (line 15) | trait Foo { type Baz (line 19) | struct Baz { function take (line 23) | fn take(baz: Baz) {} function main (line 25) | fn main() {} FILE: tests/ui/crashes/ice-2774.rs type Bar (line 6) | pub struct Bar { type Foo (line 11) | pub struct Foo; function add_barfoos_to_foos (line 15) | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) { function add_barfoos_to_foos2 (line 24) | pub fn add_barfoos_to_foos2(bars: &HashSet<&Bar>) { function main (line 29) | fn main() {} FILE: tests/ui/crashes/ice-2862.rs type FooMap (line 4) | pub trait FooMap { method map (line 5) | fn map B>(&self, f: F) -> B; method map (line 9) | fn map B>(&self, f: F) -> B { function main (line 14) | fn main() { FILE: tests/ui/crashes/ice-2865.rs type Ice (line 7) | struct Ice { method from (line 12) | fn from(_: String) -> Self { function main (line 18) | fn main() {} FILE: tests/ui/crashes/ice-3151.rs type HashMap (line 5) | pub struct HashMap { type RawTable (line 11) | pub struct RawTable { function main (line 16) | fn main() {} FILE: tests/ui/crashes/ice-3462.rs type Foo (line 7) | enum Foo { function bar (line 12) | fn bar(foo: Foo) { function main (line 23) | fn main() {} FILE: tests/ui/crashes/ice-360.rs function main (line 1) | fn main() {} function no_panic (line 3) | fn no_panic(slice: &[T]) { FILE: tests/ui/crashes/ice-3717.rs function main (line 5) | fn main() {} function ice_3717 (line 7) | pub fn ice_3717(_: &HashSet) { FILE: tests/ui/crashes/ice-3741.rs function main (line 9) | fn main() { FILE: tests/ui/crashes/ice-3747.rs function main (line 18) | fn main() {} FILE: tests/ui/crashes/ice-3891.rs function main (line 1) | fn main() { FILE: tests/ui/crashes/ice-3969.rs type A (line 10) | trait A {} type Dst (line 14) | struct Dst { type TwoStrs (line 18) | struct TwoStrs(str, str) function unsized_local (line 23) | fn unsized_local() function return_str (line 31) | fn return_str() -> str function use_op (line 39) | fn use_op(s: String) -> String function use_for (line 47) | fn use_for() function main (line 55) | fn main() {} FILE: tests/ui/crashes/ice-4121.rs type Foo (line 5) | pub struct Foo(A, B); constant HOST_SIZE (line 8) | const HOST_SIZE: usize = mem::size_of::(); function crash (line 10) | pub fn crash() -> bool { function main (line 15) | fn main() {} FILE: tests/ui/crashes/ice-4545.rs function repro (line 3) | fn repro() { function main (line 14) | fn main() { FILE: tests/ui/crashes/ice-4579.rs function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-4671.rs type Foo (line 9) | struct Foo { function main (line 23) | fn main() {} FILE: tests/ui/crashes/ice-4727.rs function main (line 8) | fn main() {} FILE: tests/ui/crashes/ice-4760.rs constant COUNT (line 5) | const COUNT: usize = 2; type Thing (line 6) | struct Thing; type Dummy (line 7) | trait Dummy {} constant _ (line 9) | const _: () = { function main (line 13) | fn main() {} FILE: tests/ui/crashes/ice-4775.rs type ArrayWrapper (line 5) | pub struct ArrayWrapper([usize; N]); function ice (line 8) | pub fn ice(&self) { function main (line 15) | fn main() {} FILE: tests/ui/crashes/ice-4968.rs type Trait (line 7) | trait Trait { function func (line 14) | fn func(slice: Vec) { function main (line 20) | fn main() {} FILE: tests/ui/crashes/ice-5207.rs function bar (line 3) | pub async fn bar<'a, T: 'a>(_: T) {} function main (line 5) | fn main() {} FILE: tests/ui/crashes/ice-5223.rs type KotomineArray (line 5) | pub struct KotomineArray { function ice (line 10) | pub fn ice(self) { function main (line 16) | fn main() {} FILE: tests/ui/crashes/ice-5238.rs function main (line 6) | fn main() { FILE: tests/ui/crashes/ice-5389.rs function main (line 5) | fn main() { function bar (line 15) | fn bar(_: usize, _: u32) {} FILE: tests/ui/crashes/ice-5497.rs function main (line 4) | pub fn main() {} type Foo (line 6) | pub trait Foo { constant OOB (line 7) | const OOB: i32; constant OOB (line 11) | const OOB: i32 = [1][1] + T::OOB; FILE: tests/ui/crashes/ice-5579.rs type IsErr (line 5) | trait IsErr { method is_err (line 6) | fn is_err(&self, err: &str) -> bool; method is_err (line 10) | fn is_err(&self, _err: &str) -> bool { function main (line 15) | fn main() { FILE: tests/ui/crashes/ice-5835.rs type Foo (line 2) | pub struct Foo { function main (line 10) | fn main() {} FILE: tests/ui/crashes/ice-5872.rs function main (line 3) | fn main() { FILE: tests/ui/crashes/ice-5944.rs type Repeat (line 6) | trait Repeat { method repeat (line 7) | fn repeat(&self) {} method repeat (line 11) | fn repeat(&self) {} function main (line 14) | fn main() { FILE: tests/ui/crashes/ice-6139.rs type T (line 3) | trait T<'a> {} function foo (line 5) | fn foo(_: Vec>>) {} function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-6153.rs type S (line 3) | pub struct S<'a, 'e>(&'a str, &'e str); type T (line 5) | pub type T<'a, 'e> = std::collections::HashMap, ()>; function foo (line 8) | pub fn foo(_a: &str, _b: &str, _map: &T) {} function main (line 11) | fn main() {} FILE: tests/ui/crashes/ice-6179.rs type Foo (line 9) | struct Foo; method new (line 12) | fn new() -> Self { function main (line 23) | fn main() {} FILE: tests/ui/crashes/ice-6250.rs type Cache (line 5) | pub struct Cache { function list_data (line 9) | pub fn list_data(cache: &Cache, key: usize) { FILE: tests/ui/crashes/ice-6251.rs function bug (line 4) | fn bug() -> impl Iterator { FILE: tests/ui/crashes/ice-6252.rs type TypeVal (line 4) | trait TypeVal { constant VAL (line 5) | const VAL: T; type Five (line 7) | struct Five; type Multiply (line 8) | struct Multiply { function main (line 16) | fn main() { FILE: tests/ui/crashes/ice-6254.rs type Foo (line 9) | struct Foo(i32); constant FOO_REF_REF (line 10) | const FOO_REF_REF: &&Foo = &&Foo(42); function main (line 12) | fn main() { FILE: tests/ui/crashes/ice-6255.rs function main (line 11) | fn main() { FILE: tests/ui/crashes/ice-6256.rs type TT (line 5) | trait TT {} function func (line 8) | fn func(&self) {} function main (line 12) | fn main() { FILE: tests/ui/crashes/ice-6332.rs function cmark_check (line 3) | fn cmark_check() { function main (line 13) | pub fn main() {} FILE: tests/ui/crashes/ice-6539.rs type Trait (line 10) | pub trait Trait { type TypeAlias (line 14) | type TypeAlias = HashMap<(), ::Assoc>; type TypeAlias2 (line 15) | type TypeAlias2 = BTreeMap<(), ::Assoc>; function main (line 17) | fn main() {} FILE: tests/ui/crashes/ice-6792.rs type Trait (line 5) | trait Trait { method broken (line 8) | fn broken() -> Self::Ty; type Ty (line 14) | type Ty = Foo; method broken (line 16) | fn broken() -> Self::Ty { type Foo (line 11) | struct Foo; function main (line 21) | fn main() {} FILE: tests/ui/crashes/ice-6793.rs type Trait (line 5) | trait Trait { method broken (line 8) | fn broken() -> Self::Ty; type Ty (line 17) | type Ty = MyType; method broken (line 19) | fn broken() -> Self::Ty { type MyType (line 12) | struct MyType { function main (line 24) | fn main() {} FILE: tests/ui/crashes/ice-6840.rs type Rule (line 8) | pub trait Rule { type RuleEdges (line 12) | pub struct RuleEdges { type RuleDependencyEdges (line 16) | type RuleDependencyEdges = HashMap>; type RuleDependencyEdgesArray (line 20) | type RuleDependencyEdgesArray = HashMap; 8]>; type RuleDependencyEdgesSlice (line 21) | type RuleDependencyEdgesSlice = HashMap]>; type RuleDependencyEdgesRef (line 22) | type RuleDependencyEdgesRef = HashMap>; type RuleDependencyEdgesRaw (line 23) | type RuleDependencyEdgesRaw = HashMap>; type RuleDependencyEdgesTuple (line 24) | type RuleDependencyEdgesTuple = HashMap, RuleEdges... type SelfContaining (line 28) | pub struct SelfContaining { type SelfContainingEdges (line 31) | type SelfContainingEdges = HashMap; function main (line 33) | fn main() {} FILE: tests/ui/crashes/ice-700.rs function core (line 5) | fn core() {} function main (line 7) | fn main() { FILE: tests/ui/crashes/ice-7012.rs type _MyOption (line 5) | enum _MyOption { method _foo (line 11) | fn _foo(&self) { function main (line 19) | fn main() {} FILE: tests/ui/crashes/ice-7126.rs type Foo (line 8) | struct Foo(usize); method new (line 10) | fn new() -> Self { function main (line 15) | fn main() {} FILE: tests/ui/crashes/ice-7169.rs type A (line 4) | struct A { function main (line 9) | fn main() { FILE: tests/ui/crashes/ice-7231.rs function f (line 5) | async fn f() { function main (line 11) | fn main() {} FILE: tests/ui/crashes/ice-7272.rs function main (line 10) | pub fn main() { FILE: tests/ui/crashes/ice-7340.rs function main (line 5) | fn main() { FILE: tests/ui/crashes/ice-7410.rs type S (line 13) | struct S; method drop (line 16) | fn drop(&mut self) {} function main (line 19) | pub fn main(argc: isize, argv: *const *const u8) -> isize { FILE: tests/ui/crashes/ice-7423.rs type Trait (line 3) | pub trait Trait { method f (line 4) | fn f(); method f (line 8) | fn f() { function main (line 15) | fn main() {} FILE: tests/ui/crashes/ice-7868.rs function main (line 8) | fn main() {} FILE: tests/ui/crashes/ice-7869.rs type Tila (line 1) | enum Tila { function main (line 8) | fn main() {} FILE: tests/ui/crashes/ice-7934.rs function main (line 9) | fn main() {} FILE: tests/ui/crashes/ice-8250.rs function _f (line 1) | fn _f(s: &str) -> Option<()> { function main (line 8) | fn main() {} FILE: tests/ui/crashes/ice-8386.rs function f (line 3) | fn f(x: u32, mut arg: &String) {} function main (line 5) | fn main() {} FILE: tests/ui/crashes/ice-8681.rs function main (line 9) | fn main() { FILE: tests/ui/crashes/ice-8821.rs function f (line 5) | fn f() {} function main (line 8) | fn main() { FILE: tests/ui/crashes/ice-8850.rs function fn_pointer_static (line 1) | fn fn_pointer_static() -> usize { function fn_pointer_const (line 8) | fn fn_pointer_const() -> usize { function deref_to_dyn_fn (line 15) | fn deref_to_dyn_fn() -> usize { function main (line 30) | fn main() {} FILE: tests/ui/crashes/ice-9041.rs type Thing (line 4) | pub struct Thing; function has_thing (line 6) | pub fn has_thing(things: &[Thing]) -> bool { function main (line 12) | fn main() {} FILE: tests/ui/crashes/ice-9238.rs function f (line 7) | const fn f() -> usize { constant C (line 10) | const C: [f64; f()] = [0f64; f()]; function main (line 12) | fn main() { FILE: tests/ui/crashes/ice-9242.rs type E (line 3) | enum E { function main (line 8) | fn main() { FILE: tests/ui/crashes/ice-9405.rs function main (line 6) | fn main() { FILE: tests/ui/crashes/ice-9414.rs type T (line 5) | trait T {} function f (line 6) | fn f(_: &u32) -> Result<(), *const (dyn '_ + T)> { function main (line 10) | fn main() {} FILE: tests/ui/crashes/ice-9459.rs function f0 (line 5) | pub fn f0(_f: dyn FnOnce()) {} function main (line 7) | fn main() {} FILE: tests/ui/crashes/ice-9463.rs function main (line 3) | fn main() { FILE: tests/ui/crashes/ice-9625.rs function main (line 3) | fn main() { FILE: tests/ui/crashes/ice-96721.rs function main (line 10) | fn main() {} FILE: tests/ui/crashes/ice-9746.rs type Trait (line 4) | trait Trait {} type Struct (line 6) | struct Struct<'a> { function example (line 12) | fn example<'a>(s: &'a Struct) -> Box> { function main (line 16) | fn main() {} FILE: tests/ui/crashes/ice-rust-107877.rs type Foo (line 5) | struct Foo; type Error (line 9) | type Error = std::convert::Infallible; method try_from (line 11) | fn try_from(_: &'a String) -> Result { function find (line 16) | fn find(_: impl std::convert::TryInto) {} function main (line 18) | fn main() { FILE: tests/ui/crashes/ice_exact_size.rs type Foo (line 5) | struct Foo; type Item (line 8) | type Item = (); method next (line 10) | fn next(&mut self) -> Option<()> { function main (line 18) | fn main() {} FILE: tests/ui/crashes/if_same_then_else.rs function main (line 7) | fn main() {} function foo (line 9) | pub fn foo(a: i32, b: i32) -> Option<&'static str> { FILE: tests/ui/crashes/implements-trait.rs function main (line 4) | fn main() { FILE: tests/ui/crashes/inherent_impl.rs type MyStruct (line 23) | struct MyStruct; function main (line 28) | fn main() {} FILE: tests/ui/crashes/issue-825.rs function rust_type_id (line 8) | fn rust_type_id(name: &str) { function main (line 27) | fn main() {} FILE: tests/ui/crashes/issues_loop_mut_cond.rs function loop_on_block_condition (line 6) | pub fn loop_on_block_condition(u: &mut isize) { function loop_with_unsafe_condition (line 13) | fn loop_with_unsafe_condition(ptr: *const u8) { function loop_on_static_condition (line 22) | fn loop_on_static_condition() { function main (line 30) | fn main() {} FILE: tests/ui/crashes/match_same_arms_const.rs constant PRICE_OF_SWEETS (line 7) | const PRICE_OF_SWEETS: u32 = 5; constant PRICE_OF_KINDNESS (line 8) | const PRICE_OF_KINDNESS: u32 = 0; constant PRICE_OF_DRINKS (line 9) | const PRICE_OF_DRINKS: u32 = 5; function price (line 11) | pub fn price(thing: &str) -> u32 { function main (line 20) | fn main() {} FILE: tests/ui/crashes/mgca-16691.rs type Trait (line 5) | trait Trait { method process (line 7) | fn process(); method process (line 12) | fn process() { FILE: tests/ui/crashes/missing_const_for_fn_14774.rs function foo (line 6) | fn foo(a: usize) -> usize { type X (line 11) | struct X; function main (line 13) | fn main() {} FILE: tests/ui/crashes/needless_borrow_fp.rs type Error (line 4) | pub enum Error { function main (line 8) | fn main() {} FILE: tests/ui/crashes/needless_pass_by_value-w-late-bound.rs type Foo (line 5) | struct Foo<'a>(&'a [(); 100]); function test (line 7) | fn test(x: Foo<'_>) {} function main (line 10) | fn main() {} FILE: tests/ui/crashes/regressions.rs function foo (line 5) | pub fn foo(bar: *const u8) { type A (line 11) | struct A; function main (line 13) | fn main() {} FILE: tests/ui/crashes/returns.rs function cfg_return (line 5) | fn cfg_return() -> i32 { function cfg_let_and_return (line 13) | fn cfg_let_and_return() -> i32 { function main (line 21) | fn main() {} FILE: tests/ui/crashes/shadow.rs function main (line 3) | fn main() { FILE: tests/ui/crashes/single-match-else.rs function main (line 7) | fn main() { FILE: tests/ui/crashes/third-party/conf_allowlisted.rs function main (line 3) | fn main() {} FILE: tests/ui/crashes/trivial_bounds.rs function test_trivial_bounds (line 6) | fn test_trivial_bounds() function main (line 13) | fn main() {} FILE: tests/ui/crashes/unreachable-array-or-slice.rs type Foo (line 1) | struct Foo(isize, isize, isize, isize); function main (line 3) | pub fn main() { FILE: tests/ui/crashes/used_underscore_binding_macro.rs type MacroAttributesTest (line 9) | struct MacroAttributesTest { function macro_attributes_test (line 14) | fn macro_attributes_test() { function main (line 18) | fn main() {} FILE: tests/ui/crate_in_macro_def.rs constant MESSAGE (line 11) | pub const MESSAGE: &str = "Hello!"; constant MESSAGE (line 23) | pub const MESSAGE: &str = "Hello!"; constant MESSAGE (line 46) | pub const MESSAGE: &str = "Hello!"; function main (line 49) | fn main() { constant CALLER_PROVIDED_MESSAGE (line 56) | pub const CALLER_PROVIDED_MESSAGE: &str = "Hello!"; FILE: tests/ui/crate_level_checks/entrypoint_recursion.rs function a (line 6) | fn a() { function main (line 11) | fn main() {} FILE: tests/ui/crate_level_checks/no_std_main_recursion.rs function main (line 6) | fn main() { function panic (line 11) | fn panic(_info: &core::panic::PanicInfo) -> ! { FILE: tests/ui/crate_level_checks/no_std_swap.rs function main (line 6) | pub fn main() { FILE: tests/ui/crate_level_checks/std_main_recursion.rs function main (line 3) | fn main() { FILE: tests/ui/create_dir.rs function create_dir (line 6) | fn create_dir() {} function main (line 8) | fn main() { function with_no_prefix (line 21) | fn with_no_prefix() { function with_fs_prefix (line 27) | fn with_fs_prefix() { function with_full_prefix (line 33) | fn with_full_prefix() { FILE: tests/ui/dbg_macro/auxiliary/submodule.rs function f (line 1) | fn f() { FILE: tests/ui/dbg_macro/dbg_macro.rs function foo (line 9) | fn foo(n: u32) -> u32 { function bar (line 13) | fn bar(_: ()) {} function factorial (line 15) | fn factorial(n: u32) -> u32 { function main (line 27) | fn main() { function issue9914 (line 38) | fn issue9914() { type Thing (line 76) | trait Thing<'b> { method foo (line 77) | fn foo(&self); type MyThing (line 90) | struct MyThing; function issue8481 (line 98) | pub fn issue8481() { function foo2 (line 104) | fn foo2() { function func (line 111) | fn func() { function dbg_in_print (line 118) | fn dbg_in_print(s: &str) { function takes_async_fn (line 130) | fn takes_async_fn(_f: F) function should_not_panic (line 137) | fn should_not_panic() { FILE: tests/ui/dbg_macro/dbg_macro_unfixable.rs function main (line 8) | fn main() { FILE: tests/ui/debug_assert_with_mut_call.rs type S (line 7) | struct S; method bool_self_ref (line 10) | fn bool_self_ref(&self) -> bool { false } method bool_self_mut (line 11) | fn bool_self_mut(&mut self) -> bool { false } method bool_self_ref_arg_ref (line 12) | fn bool_self_ref_arg_ref(&self, _: &u32) -> bool { false } method bool_self_ref_arg_mut (line 13) | fn bool_self_ref_arg_mut(&self, _: &mut u32) -> bool { false } method bool_self_mut_arg_ref (line 14) | fn bool_self_mut_arg_ref(&mut self, _: &u32) -> bool { false } method bool_self_mut_arg_mut (line 15) | fn bool_self_mut_arg_mut(&mut self, _: &mut u32) -> bool { false } method u32_self_ref (line 17) | fn u32_self_ref(&self) -> u32 { 0 } method u32_self_mut (line 18) | fn u32_self_mut(&mut self) -> u32 { 0 } method u32_self_ref_arg_ref (line 19) | fn u32_self_ref_arg_ref(&self, _: &u32) -> u32 { 0 } method u32_self_ref_arg_mut (line 20) | fn u32_self_ref_arg_mut(&self, _: &mut u32) -> u32 { 0 } method u32_self_mut_arg_ref (line 21) | fn u32_self_mut_arg_ref(&mut self, _: &u32) -> u32 { 0 } method u32_self_mut_arg_mut (line 22) | fn u32_self_mut_arg_mut(&mut self, _: &mut u32) -> u32 { 0 } function bool_ref (line 25) | fn bool_ref(_: &u32) -> bool { false } function bool_mut (line 26) | fn bool_mut(_: &mut u32) -> bool { false } function u32_ref (line 27) | fn u32_ref(_: &u32) -> u32 { 0 } function u32_mut (line 28) | fn u32_mut(_: &mut u32) -> u32 { 0 } function func_non_mutable (line 30) | fn func_non_mutable() { function func_mutable (line 41) | fn func_mutable() { function method_non_mutable (line 65) | fn method_non_mutable() { function method_mutable (line 76) | fn method_mutable() { function misc (line 120) | fn misc() { function debug_await (line 176) | async fn debug_await() { function main (line 182) | fn main() {} FILE: tests/ui/decimal_bitwise_operands.rs constant SOME_CONST (line 16) | pub const SOME_CONST: i32 = 12345; function main (line 18) | fn main() { FILE: tests/ui/decimal_literal_representation.rs function main (line 4) | fn main() { FILE: tests/ui/declare_interior_mutable_const.rs function main (line 9) | fn main() {} constant _ (line 11) | const _: Cell = Cell::new(0); constant UNSAFE_CELL (line 12) | const UNSAFE_CELL: UnsafeCell = UnsafeCell::new(0); constant REF_CELL (line 13) | const REF_CELL: RefCell = RefCell::new(0); constant CELL (line 14) | const CELL: Cell = Cell::new(0); function make_ptr (line 17) | const fn make_ptr() -> *const Cell { constant PTR (line 20) | const PTR: *const Cell = make_ptr(); function casted_to_cell_ptr (line 22) | const fn casted_to_cell_ptr() -> *const Cell { constant TRANSMUTED_PTR (line 26) | const TRANSMUTED_PTR: *const Cell = casted_to_cell_ptr(); constant CELL_TUPLE (line 28) | const CELL_TUPLE: (bool, Cell) = (true, Cell::new(0)); constant CELL_ARRAY (line 29) | const CELL_ARRAY: [Cell; 2] = [Cell::new(0), Cell::new(0)]; constant UNINIT_CELL (line 31) | const UNINIT_CELL: MaybeUninit> = MaybeUninit::uninit(); type CellStruct (line 33) | struct CellStruct { constant CELL_STRUCT (line 38) | const CELL_STRUCT: CellStruct = CellStruct { type CellEnum (line 43) | enum CellEnum { constant CELL_ENUM (line 46) | const CELL_ENUM: CellEnum = CellEnum::Cell(Cell::new(0)); constant NONE_CELL (line 48) | const NONE_CELL: Option> = None; constant SOME_CELL (line 49) | const SOME_CELL: Option> = Some(Cell::new(0)); type NestedCell (line 51) | struct NestedCell([(Option>,); 1]); constant NONE_NESTED_CELL (line 52) | const NONE_NESTED_CELL: NestedCell = NestedCell([(None,)]); constant SOME_NESTED_CELL (line 53) | const SOME_NESTED_CELL: NestedCell = NestedCell([(Some(Cell::new(0)),)]); constant UNION_CELL (line 60) | const UNION_CELL: UnionCell = UnionCell { constant UNION_U32 (line 64) | const UNION_U32: UnionCell = UnionCell { x: 0 }; type Assoc (line 66) | struct Assoc; constant SELF (line 68) | const SELF: Self = Self; constant CELL (line 69) | const CELL: Cell = Cell::new(0); type AssocCell (line 72) | struct AssocCell(Cell); constant SELF (line 74) | const SELF: Self = Self(Cell::new(0)); constant NONE_SELF (line 75) | const NONE_SELF: Option = None; constant SOME_SELF (line 76) | const SOME_SELF: Option = Some(Self(Cell::new(0))); type ConstDefault (line 79) | trait ConstDefault { constant DEFAULT (line 81) | const DEFAULT: Self; constant DEFAULT (line 84) | const DEFAULT: Self = 0; constant DEFAULT (line 88) | const DEFAULT: Self = Cell::new(T::DEFAULT); constant DEFAULT (line 92) | const DEFAULT: Self = Some(Cell::new(T::DEFAULT)); constant DEFAULT (line 100) | const DEFAULT: Self = Self::Cell(Cell::new(T::DEFAULT)); type GenericEnumCell (line 95) | enum GenericEnumCell { constant CELL (line 103) | const CELL: Self = Self::DEFAULT; constant CELL_BY_DEFAULT (line 104) | const CELL_BY_DEFAULT: Self = Self::Cell(Cell::DEFAULT); constant OTHER (line 105) | const OTHER: Self = Self::Other(T::DEFAULT); constant FROM_OTHER (line 106) | const FROM_OTHER: Self = Self::OTHER; type GenericNestedEnumCell (line 109) | enum GenericNestedEnumCell { constant GENERIC_OTHER (line 115) | const GENERIC_OTHER: Self = Self::GenericEnumCell(GenericEnumCell::::... constant GENERIC_CELL (line 116) | const GENERIC_CELL: Self = Self::GenericEnumCell(GenericEnumCell::::C... constant ENUM_OTHER (line 117) | const ENUM_OTHER: Self = Self::EnumCell(GenericEnumCell::::FROM_OTH... constant ENUM_CELL (line 118) | const ENUM_CELL: Self = Self::EnumCell(GenericEnumCell::::CELL); type CellTrait (line 121) | trait CellTrait: ConstDefault + Sized { constant CELL (line 123) | const CELL: Cell; constant OPTION_CELL (line 125) | const OPTION_CELL: Option>; constant SOME_CELL (line 127) | const SOME_CELL: Option> = Some(Cell::new(Self::DEFAULT)); constant NONE_CELL (line 129) | const NONE_CELL: Option> = None; type CellWithAssoc (line 132) | trait CellWithAssoc { constant DEFAULT (line 134) | const DEFAULT: Self::T; constant CELL (line 136) | const CELL: Cell; constant OPTION_CELL (line 138) | const OPTION_CELL: Option>; constant SOME_CELL (line 140) | const SOME_CELL: Option> = Some(Cell::new(Self::DEFAULT)); constant NONE_CELL (line 142) | const NONE_CELL: Option> = None; type T (line 146) | type T = u32; constant DEFAULT (line 147) | const DEFAULT: Self::T = 0; constant CELL (line 148) | const CELL: Cell = Cell::new(0); constant OPTION_CELL (line 149) | const OPTION_CELL: Option> = None; type WithAssoc (line 152) | trait WithAssoc { constant VALUE (line 154) | const VALUE: Self::T; type T (line 158) | type T = Cell; constant VALUE (line 160) | const VALUE: Self::T = Cell::new(0); type WithLayeredAssoc (line 163) | trait WithLayeredAssoc { constant VALUE (line 165) | const VALUE: ::T; type T (line 169) | type T = u32; constant VALUE (line 171) | const VALUE: ::T = Cell::new(0); type WithGenericAssoc (line 174) | trait WithGenericAssoc { constant VALUE (line 176) | const VALUE: Self::T; type T (line 180) | type T = Cell; constant VALUE (line 181) | const VALUE: Self::T = Cell::new(0); type WithGenericAssocCell (line 184) | trait WithGenericAssocCell { constant VALUE (line 186) | const VALUE: Self::T>; type T (line 190) | type T = Option; constant VALUE (line 191) | const VALUE: Self::T> = None; type T (line 195) | type T = Option; constant VALUE (line 196) | const VALUE: Self::T> = Some(Cell::new(0)); FILE: tests/ui/def_id_nocore.rs type PointeeSized (line 9) | pub trait PointeeSized {} type MetaSized (line 12) | pub trait MetaSized: PointeeSized {} type Sized (line 15) | pub trait Sized: MetaSized {} type Copy (line 17) | pub trait Copy {} type Freeze (line 19) | pub unsafe trait Freeze {} function start (line 22) | fn start(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _si... function main (line 26) | fn main() {} type A (line 28) | struct A; method as_ref (line 31) | pub fn as_ref(self) -> &'static str { FILE: tests/ui/default_constructed_unit_structs.rs type UnitStruct (line 6) | struct UnitStruct; method new (line 9) | fn new() -> Self { type TupleStruct (line 17) | struct TupleStruct(usize); method new (line 20) | fn new() -> Self { type NormalStruct (line 28) | struct NormalStruct { method new (line 51) | fn new() -> Self { method new2 (line 59) | fn new2() -> Self { type NonDefaultStruct (line 32) | struct NonDefaultStruct; method default (line 35) | fn default() -> Self { type SomeEnum (line 41) | enum SomeEnum { type GenericStruct (line 68) | struct GenericStruct { function new (line 73) | fn new() -> Self { function new2 (line 78) | fn new2() -> Self { type FakeDefault (line 84) | struct FakeDefault; method default (line 86) | fn default() -> Self { method default (line 92) | fn default() -> Self { type EmptyStruct (line 98) | struct EmptyStruct {} type NonExhaustiveStruct (line 102) | struct NonExhaustiveStruct; type Sqlite (line 105) | struct Sqlite {} type Arguments (line 112) | type Arguments = std::marker::PhantomData<&'q ()>; type HasArguments (line 107) | trait HasArguments<'q> { type SqliteArguments (line 115) | type SqliteArguments<'q> = >::Arguments; function foo (line 117) | fn foo() { function main (line 126) | fn main() { function issue12654 (line 165) | fn issue12654() { FILE: tests/ui/default_instead_of_iter_empty.rs type Iter (line 6) | struct Iter { function main (line 10) | fn main() { FILE: tests/ui/default_instead_of_iter_empty_no_std.rs function eh_personality (line 9) | extern "C" fn eh_personality() {} function panic (line 12) | fn panic(info: &PanicInfo) -> ! { type Iter (line 17) | struct Iter { function main (line 21) | fn main() { FILE: tests/ui/default_numeric_fallback_f64.rs function test (line 19) | fn test() { function test (line 51) | fn test() { function ret_f64 (line 89) | fn ret_f64() -> f64 { function test (line 93) | fn test() { function concrete_arg (line 107) | fn concrete_arg(f: f64) {} function generic_arg (line 109) | fn generic_arg(t: T) {} function test (line 111) | fn test() { type ConcreteStruct (line 126) | struct ConcreteStruct { type GenericStruct (line 130) | struct GenericStruct { function test (line 134) | fn test() { type ConcreteEnum (line 149) | enum ConcreteEnum { type GenericEnum (line 153) | enum GenericEnum { function test (line 157) | fn test() { type StructForMethodCallTest (line 168) | struct StructForMethodCallTest; method concrete_arg (line 171) | fn concrete_arg(&self, f: f64) {} method generic_arg (line 173) | fn generic_arg(&self, t: T) {} function test (line 176) | fn test() { function internal (line 193) | fn internal() { function external (line 199) | fn external() { function main (line 204) | fn main() {} FILE: tests/ui/default_numeric_fallback_i32.rs function test (line 18) | fn test() { function test (line 53) | fn test() { function ret_i32 (line 91) | fn ret_i32() -> i32 { function test (line 95) | fn test() { function concrete_arg (line 109) | fn concrete_arg(x: i32) {} function generic_arg (line 111) | fn generic_arg(t: T) {} function test (line 113) | fn test() { type ConcreteStruct (line 128) | struct ConcreteStruct { type GenericStruct (line 132) | struct GenericStruct { function test (line 136) | fn test() { type ConcreteEnum (line 151) | enum ConcreteEnum { type GenericEnum (line 155) | enum GenericEnum { function test (line 159) | fn test() { type StructForMethodCallTest (line 170) | struct StructForMethodCallTest; method concrete_arg (line 173) | fn concrete_arg(&self, x: i32) {} method generic_arg (line 175) | fn generic_arg(&self, t: T) {} function test (line 178) | fn test() { function internal (line 195) | fn internal() { function external (line 201) | fn external() { function check_expect_suppression (line 206) | fn check_expect_suppression() { function ret_i32 (line 213) | fn ret_i32() -> i32 { function ret_if_i32 (line 218) | fn ret_if_i32(b: bool) -> i32 { function ret_i32_tuple (line 223) | fn ret_i32_tuple() -> (i32, i32) { function ret_stmt (line 228) | fn ret_stmt(b: bool) -> (i32, i32) { function vec_macro (line 236) | fn vec_macro() { type Foo (line 248) | pub struct Foo; constant LIFE_u8 (line 252) | const LIFE_u8: u8 = 42; constant LIFE_i8 (line 253) | const LIFE_i8: i8 = 42; constant LIFE_u16 (line 254) | const LIFE_u16: u16 = 42; constant LIFE_i16 (line 255) | const LIFE_i16: i16 = 42; constant LIFE_u32 (line 256) | const LIFE_u32: u32 = 42; constant LIFE_i32 (line 257) | const LIFE_i32: i32 = 42; constant LIFE_u64 (line 258) | const LIFE_u64: u64 = 42; constant LIFE_i64 (line 259) | const LIFE_i64: i64 = 42; constant LIFE_u128 (line 260) | const LIFE_u128: u128 = 42; constant LIFE_i128 (line 261) | const LIFE_i128: i128 = 42; constant LIFE_usize (line 262) | const LIFE_usize: usize = 42; constant LIFE_isize (line 263) | const LIFE_isize: isize = 42; constant LIFE_f32 (line 264) | const LIFE_f32: f32 = 42.; constant LIFE_f64 (line 265) | const LIFE_f64: f64 = 42.; method consts (line 267) | const fn consts() { function main (line 286) | fn main() {} FILE: tests/ui/default_trait_access.rs function main (line 11) | fn main() { type DefaultFactory (line 72) | struct DefaultFactory; method make_t_badly (line 75) | pub fn make_t_badly() -> T { method make_t_nicely (line 79) | pub fn make_t_nicely() -> T { type DerivedDefault (line 85) | struct DerivedDefault { type GenericDerivedDefault (line 90) | struct GenericDerivedDefault { type TupleDerivedDefault (line 95) | struct TupleDerivedDefault { type ArrayDerivedDefault (line 100) | struct ArrayDerivedDefault { type TupleStructDerivedDefault (line 105) | struct TupleStructDerivedDefault(String); type UpdateSyntax (line 108) | struct UpdateSyntax { FILE: tests/ui/default_union_representation.rs function main (line 83) | fn main() {} FILE: tests/ui/deprecated.rs function main (line 22) | fn main() {} FILE: tests/ui/deref_addrof.rs function get_number (line 9) | fn get_number() -> usize { function get_reference (line 13) | fn get_reference(n: &usize) -> &usize { function main (line 19) | fn main() { function issue14386 (line 77) | fn issue14386() { FILE: tests/ui/deref_addrof_double_trigger.rs function main (line 5) | fn main() { FILE: tests/ui/deref_addrof_macro.rs function f (line 9) | fn f() -> i32 { function main (line 14) | fn main() {} FILE: tests/ui/deref_by_slicing.rs function main (line 6) | fn main() { FILE: tests/ui/derivable_impls.rs type FooDefault (line 7) | struct FooDefault<'a> { function default (line 24) | fn default() -> Self { type TupleDefault (line 42) | struct TupleDefault(bool, i32, u64); method default (line 46) | fn default() -> Self { type FooND1 (line 51) | struct FooND1 { method default (line 56) | fn default() -> Self { type FooND2 (line 61) | struct FooND2 { method default (line 66) | fn default() -> Self { type FooNDNew (line 71) | struct FooNDNew { method new (line 76) | fn new() -> Self { method default (line 82) | fn default() -> Self { type FooNDVec (line 87) | struct FooNDVec(Vec); method default (line 90) | fn default() -> Self { type StrDefault (line 95) | struct StrDefault<'a>(&'a str); method default (line 99) | fn default() -> Self { type AlreadyDerived (line 105) | struct AlreadyDerived(i32, bool); type Y (line 123) | struct Y(u32); method default (line 126) | fn default() -> Self { type RustIssue26925 (line 131) | struct RustIssue26925 { method default (line 141) | fn default() -> Self { type SpecializedImpl (line 146) | struct SpecializedImpl { method default (line 152) | fn default() -> Self { type WithoutSelfCurly (line 160) | struct WithoutSelfCurly { method default (line 166) | fn default() -> Self { type WithoutSelfParan (line 171) | struct WithoutSelfParan(bool); method default (line 175) | fn default() -> Self { type SpecializedImpl2 (line 182) | pub struct SpecializedImpl2 { method default (line 187) | fn default() -> Self { type DirectDefaultDefaultCall (line 192) | pub struct DirectDefaultDefaultCall { method default (line 198) | fn default() -> Self { type EquivalentToDefaultDefaultCallVec (line 204) | pub struct EquivalentToDefaultDefaultCallVec { method default (line 210) | fn default() -> Self { type S (line 216) | pub struct S { method new (line 221) | fn new() -> S { method default (line 227) | fn default() -> Self { type EquivalentToDefaultDefaultCallLocal (line 232) | pub struct EquivalentToDefaultDefaultCallLocal { method default (line 238) | fn default() -> Self { type Color (line 246) | pub struct Color { method default (line 254) | fn default() -> Self { type Color2 (line 259) | pub struct Color2 { method default (line 267) | fn default() -> Self { type RepeatDefault1 (line 272) | pub struct RepeatDefault1 { method default (line 278) | fn default() -> Self { type RepeatDefault2 (line 283) | pub struct RepeatDefault2 { method default (line 288) | fn default() -> Self { type IntOrString (line 295) | pub enum IntOrString { method default (line 301) | fn default() -> Self { type SimpleEnum (line 306) | pub enum SimpleEnum { method default (line 313) | fn default() -> Self { type NonExhaustiveEnum (line 318) | pub enum NonExhaustiveEnum { method default (line 325) | fn default() -> Self { type DefaultType (line 333) | struct DefaultType; type GenericType (line 335) | struct GenericType { method default (line 340) | fn default() -> Self { type InnerGenericType (line 345) | struct InnerGenericType { method default (line 350) | fn default() -> Self { type OtherGenericType (line 355) | struct OtherGenericType { method default (line 360) | fn default() -> Self { type T (line 368) | pub trait T {} type S (line 371) | pub struct S {} method new (line 221) | fn new() -> S { type Outer (line 374) | pub struct Outer { method default (line 379) | fn default() -> Self { type A (line 389) | pub struct A { method default (line 395) | fn default() -> Self { type Foo (line 404) | struct Foo(u64); method default (line 407) | fn default() -> Self { type Bar (line 413) | enum Bar { method default (line 419) | fn default() -> Self { type Bar (line 427) | enum Bar { method default (line 434) | fn default() -> Self { function main (line 440) | fn main() {} FILE: tests/ui/derivable_impls_derive_const.rs type Foo (line 9) | struct Foo(u64); method default (line 13) | fn default() -> Self { type Bar (line 19) | enum Bar { method default (line 26) | fn default() -> Self { function main (line 32) | fn main() {} FILE: tests/ui/derive.rs type Qux (line 13) | struct Qux; method clone (line 18) | fn clone(&self) -> Self { method clone (line 30) | fn clone(&self) -> Self { type Lt (line 37) | struct Lt<'a> { method clone (line 44) | fn clone(&self) -> Self { type BigArray (line 50) | struct BigArray { method clone (line 57) | fn clone(&self) -> Self { type FnPtr (line 63) | struct FnPtr { method clone (line 70) | fn clone(&self) -> Self { type Generic (line 77) | struct Generic { method clone (line 82) | fn clone(&self) -> Self { type Generic2 (line 88) | struct Generic2(T); method clone (line 92) | fn clone(&self) -> Self { type GenericRef (line 99) | struct GenericRef<'a, T, U>(T, &'a U); method clone (line 101) | fn clone(&self) -> Self { type Packed (line 109) | struct Packed(T); method clone (line 112) | fn clone(&self) -> Self { function issue14558 (line 117) | fn issue14558() { function main (line 132) | fn main() {} type S (line 138) | struct S; method clone (line 141) | fn clone(&self) -> Self { type S (line 149) | struct S; method clone (line 154) | fn clone(&self) -> Self { FILE: tests/ui/derive_ord_xor_partial_ord.rs type DeriveBoth (line 8) | struct DeriveBoth; method eq (line 11) | fn eq(&self, _: &u64) -> bool { method partial_cmp (line 17) | fn partial_cmp(&self, _: &u64) -> Option { type DeriveOrd (line 25) | struct DeriveOrd; method partial_cmp (line 28) | fn partial_cmp(&self, other: &Self) -> Option { type DeriveOrdWithExplicitTypeVariable (line 36) | struct DeriveOrdWithExplicitTypeVariable; method partial_cmp (line 39) | fn partial_cmp(&self, other: &Self) -> Option { type DerivePartialOrd (line 45) | struct DerivePartialOrd; method cmp (line 50) | fn cmp(&self, other: &Self) -> Ordering { type ImplUserOrd (line 56) | struct ImplUserOrd; type Ord (line 58) | trait Ord {} method cmp (line 72) | fn cmp(&self, other: &Self) -> Ordering { method cmp (line 89) | fn cmp(&self, other: &Self) -> Ordering { method cmp (line 103) | fn cmp(&self, other: &Self) -> std::cmp::Ordering { type DerivePartialOrdInUseOrd (line 67) | struct DerivePartialOrdInUseOrd; function main (line 78) | fn main() {} type DerivePartialOrdInUseOrd (line 86) | struct DerivePartialOrdInUseOrd; type Normalized (line 97) | struct Normalized(S); FILE: tests/ui/derive_partial_eq_without_eq.rs type NotPartialEq (line 5) | pub struct NotPartialEq { type MissingEq (line 13) | pub struct MissingEq { type AllowedMissingEq (line 21) | pub struct AllowedMissingEq { type ExpectedMissingEq (line 29) | pub struct ExpectedMissingEq { type NotMissingEq (line 36) | pub struct NotMissingEq { type ManualEqImpl (line 43) | pub struct ManualEqImpl { type CannotBeEq (line 52) | pub struct CannotBeEq { type ManualPartialEqImpl (line 58) | pub struct ManualPartialEqImpl { method eq (line 64) | fn eq(&self, other: &Self) -> bool { type GenericNotEq (line 72) | pub struct GenericNotEq { type GenericEq (line 79) | pub struct GenericEq { type TupleStruct (line 86) | pub struct TupleStruct(u32); type GenericTupleStruct (line 90) | pub struct GenericTupleStruct(T); type TupleStructNotEq (line 93) | pub struct TupleStructNotEq(f32); type Enum (line 97) | pub enum Enum { type GenericEnum (line 104) | pub enum GenericEnum { type EnumNotEq (line 110) | pub enum EnumNotEq { type RustFixWithOtherDerives (line 118) | pub struct RustFixWithOtherDerives; type Generic (line 122) | pub struct Generic(T); type GenericPhantom (line 125) | pub struct GenericPhantom(core::marker::PhantomData); type Reexported (line 130) | pub struct Reexported; type InPubFn (line 134) | pub struct InPubFn; type PubCrate (line 137) | pub(crate) struct PubCrate; type PubSuper (line 140) | pub(super) struct PubSuper; function _from_mod (line 144) | pub fn _from_mod() -> _hidden::InPubFn { type InternalTy (line 149) | struct InternalTy; type MissingEqNonExhaustive (line 154) | pub struct MissingEqNonExhaustive { type MissingEqNonExhaustive1 (line 161) | pub struct MissingEqNonExhaustive1 { type MissingEqNonExhaustive2 (line 170) | pub enum MissingEqNonExhaustive2 { type MissingEqNonExhaustive3 (line 177) | pub enum MissingEqNonExhaustive3 { type Group (line 185) | pub trait Group { type Suite (line 189) | pub trait Suite { type Foo (line 196) | pub struct Foo(::Element); type Bar (line 199) | pub struct Bar(i32, ::Element); type Oof (line 205) | pub struct Oof(T); type Rab (line 208) | pub struct Rab(T); function main (line 211) | fn main() {} FILE: tests/ui/derived_hash_with_manual_eq.rs type Foo (line 4) | struct Foo; method eq (line 7) | fn eq(&self, _: &u64) -> bool { type Bar (line 15) | struct Bar; method eq (line 18) | fn eq(&self, _: &Bar) -> bool { type Baz (line 26) | struct Baz; method eq (line 29) | fn eq(&self, _: &Baz) -> bool { type Bah (line 37) | struct Bah; method hash (line 40) | fn hash(&self, _: &mut H) {} function main (line 43) | fn main() {} type Span (line 49) | pub struct Span { method eq (line 55) | fn eq(&self, other: &Self) -> bool { FILE: tests/ui/disallowed_names.rs function test (line 16) | fn test(foo: ()) {} function main (line 19) | fn main() { function issue_1647 (line 47) | fn issue_1647(mut foo: u8) { function issue_1647_ref (line 57) | fn issue_1647_ref() { function issue_1647_ref_mut (line 65) | fn issue_1647_ref_mut() { function issue_14958_proc_macro (line 73) | pub fn issue_14958_proc_macro() { function issue_7305 (line 86) | fn issue_7305() { function test_with_disallowed_name (line 98) | fn test_with_disallowed_name() { FILE: tests/ui/disallowed_script_idents.rs function main (line 4) | fn main() { function issue15116 (line 19) | fn issue15116() { FILE: tests/ui/diverging_sub_expression.rs function diverge (line 5) | fn diverge() -> ! { type A (line 9) | struct A; method foo (line 12) | fn foo(&self) -> ! { function main (line 18) | fn main() { function foobar (line 29) | fn foobar() { function ignore_todo (line 81) | fn ignore_todo() { FILE: tests/ui/doc/doc-fixable.rs function foo_bar (line 25) | fn foo_bar() { function multiline_codeblock (line 40) | fn multiline_codeblock() { function test_emphasis (line 48) | fn test_emphasis() { function test_units (line 63) | fn test_units() { function test_allowed (line 93) | fn test_allowed() { function main (line 111) | fn main() { function issue897 (line 125) | fn issue897() { function issue900 (line 133) | fn issue900() { function issue883 (line 147) | fn issue883() { function multiline (line 154) | fn multiline() { function issue1073 (line 168) | fn issue1073() { function issue1073_alt (line 182) | fn issue1073_alt() { function four_quotes (line 193) | fn four_quotes() { function issue_1469 (line 203) | fn issue_1469() {} function issue_1920 (line 209) | fn issue_1920() {} function issue_2210 (line 214) | fn issue_2210() {} function issue_2343 (line 218) | fn issue_2343() {} function pulldown_cmark_crash (line 222) | fn pulldown_cmark_crash() {} function intra_doc_link (line 227) | fn intra_doc_link() {} function issue_2581 (line 234) | fn issue_2581() {} function lint_after_escaped_chars (line 238) | fn lint_after_escaped_chars() {} type S (line 241) | struct S function new (line 249) | fn new() -> Self { function issue_11568 (line 258) | fn issue_11568() {} function parenthesized_word (line 263) | fn parenthesized_word() {} function plural_acronym_test (line 269) | fn plural_acronym_test() {} function in_extern (line 274) | fn in_extern(); function check_autofix_for_base_urls (line 279) | fn check_autofix_for_base_urls() {} FILE: tests/ui/doc/doc_comment_double_space_linebreaks.rs function single_line (line 12) | fn single_line() {} function single_line_split (line 16) | fn single_line_split() {} function normal_comment (line 25) | fn normal_comment() { function double_space_doc_comment (line 40) | fn double_space_doc_comment() {} function back_slash_doc_comment (line 44) | fn back_slash_doc_comment() {} function multi_byte_chars_tada (line 52) | fn multi_byte_chars_tada() {} function alone (line 66) | fn alone() {} function table (line 72) | fn table() {} function codeblock (line 79) | fn codeblock() {} function inline (line 83) | fn inline() {} function url (line 87) | fn url() {} function mixed (line 96) | fn mixed() {} function main (line 98) | fn main() {} FILE: tests/ui/doc/doc_include_without_cfg.rs function main (line 40) | fn main() { FILE: tests/ui/doc/doc_lazy_blockquote.rs function first (line 6) | fn first() {} function first_nowarn (line 10) | fn first_nowarn() {} function two_nowarn (line 15) | fn two_nowarn() {} function two (line 22) | fn two() {} function three (line 29) | fn three() {} function four (line 34) | fn four() {} function four_point_1 (line 39) | fn four_point_1() {} function five (line 42) | fn five() {} function six (line 47) | fn six() {} FILE: tests/ui/doc/doc_lazy_list.rs function one (line 7) | fn one() {} function two (line 14) | fn two() {} function three (line 19) | fn three() {} function four (line 26) | fn four() {} function five (line 31) | fn five() {} function six (line 38) | fn six() {} function seven (line 43) | fn seven() {} function eight (line 78) | fn eight() {} function backslash_escaped_square_braces (line 84) | pub fn backslash_escaped_square_braces() {} FILE: tests/ui/doc/doc_markdown-issue_13097.rs type OutputFormat (line 7) | pub enum OutputFormat { type OutputFormat (line 18) | pub enum OutputFormat { FILE: tests/ui/doc/doc_nested_refdef_blockquote.rs type Empty (line 18) | pub struct Empty; type NotEmpty (line 41) | pub struct NotEmpty; type NotEmptyLoose (line 70) | pub struct NotEmptyLoose; type NotAtStartTight (line 90) | pub struct NotAtStartTight; type NotAtStartLoose (line 116) | pub struct NotAtStartLoose; type ListNested (line 133) | pub struct ListNested; FILE: tests/ui/doc/doc_nested_refdef_list_item.rs type Empty (line 18) | pub struct Empty; type EmptyTight (line 30) | pub struct EmptyTight; type NotEmpty (line 53) | pub struct NotEmpty; type NotEmptyTight (line 71) | pub struct NotEmptyTight; type GithubCheckboxes (line 77) | pub struct GithubCheckboxes; FILE: tests/ui/doc/doc_overindented_list_items.rs function foo (line 10) | fn foo() {} function bar (line 19) | fn bar() {} function baz (line 28) | fn baz() {} FILE: tests/ui/doc/doc_paragraphs_missing_punctuation.rs function answer (line 7) | fn answer() -> i32 { type MyOption (line 15) | enum MyOption { type Exceptions (line 29) | enum Exceptions { type Char (line 53) | enum Char { type Char2 (line 61) | enum Char2 { type Trailers (line 76) | enum Trailers { type InlineLink (line 99) | struct InlineLink; type LinkRefDefinition (line 105) | struct LinkRefDefinition; type UnorderedLists (line 108) | enum UnorderedLists { type OrderedLists (line 119) | enum OrderedLists { type NotIndependentClause (line 127) | enum NotIndependentClause { type TrailingBlankLine (line 147) | struct TrailingBlankLine; type MultiParagraphDocComment (line 159) | struct MultiParagraphDocComment; type IncompleteBlockCode (line 162) | struct IncompleteBlockCode; type CodeSpan (line 166) | struct CodeSpan; type EmptyDocComment (line 170) | struct EmptyDocComment; type BlockDocComment (line 177) | struct BlockDocComment; type DocAttribute (line 183) | struct DocAttribute; FILE: tests/ui/doc/doc_paragraphs_missing_punctuation_emoji.rs type EmojiTrailers (line 6) | enum EmojiTrailers { FILE: tests/ui/doc/doc_paragraphs_missing_punctuation_unfixable.rs type UnfixableTrailers (line 6) | enum UnfixableTrailers { FILE: tests/ui/doc/footnote_issue_13183.rs function main (line 11) | fn main() {} FILE: tests/ui/doc/issue_10262.rs type Foo (line 12) | pub struct Foo; FILE: tests/ui/doc/issue_12795.rs function main (line 9) | pub fn main() {} FILE: tests/ui/doc/issue_1832.rs function issue_1832 (line 8) | fn issue_1832() {} function main (line 10) | fn main() {} FILE: tests/ui/doc/issue_902.rs function issue_902_comment (line 6) | fn issue_902_comment() {} function main (line 8) | fn main() {} FILE: tests/ui/doc/issue_9473.rs type Foo (line 5) | pub struct Foo(u32); type FooBar (line 10) | pub struct FooBar(u32); FILE: tests/ui/doc/link_adjacent.rs type WithTrailing (line 52) | pub struct WithTrailing; FILE: tests/ui/doc/needless_doctest_main.rs function mulpipulpi (line 10) | fn mulpipulpi() {} function pulpimulpi (line 19) | fn pulpimulpi() {} function plumilupi (line 27) | fn plumilupi() {} function mlupipupi (line 39) | fn mlupipupi() {} function lumpimupli (line 51) | fn lumpimupli() {} function mpulpilumi (line 60) | fn mpulpilumi() {} function plumpiplupi (line 69) | fn plumpiplupi() {} function pulmipulmip (line 79) | fn pulmipulmip() {} function pmuplimulip (line 88) | fn pmuplimulip() {} function main (line 90) | fn main() {} function issue8244 (line 92) | fn issue8244() -> Result<(), ()> { function issue15041 (line 106) | fn issue15041() {} FILE: tests/ui/doc/unbalanced_ticks.rs function main (line 12) | fn main() {} function multiple_paragraphs (line 24) | fn multiple_paragraphs() {} function in_code_block (line 30) | fn in_code_block() {} function other_markdown (line 44) | fn other_markdown() {} function issue_7421 (line 51) | fn issue_7421() {} function escape_0 (line 55) | fn escape_0() {} function escape_1 (line 58) | fn escape_1() {} function escape_2 (line 61) | fn escape_2() {} function escape_3 (line 65) | fn escape_3() {} function escape_4 (line 68) | fn escape_4() {} type Foo (line 70) | trait Foo { method bar (line 71) | fn bar(); method bar (line 84) | fn bar() {} type Bar (line 74) | struct Bar; FILE: tests/ui/doc_broken_link.rs function main (line 3) | fn main() {} type FakeType (line 5) | pub struct FakeType {} function doc_ignore_link_false_positive_1 (line 10) | pub fn doc_ignore_link_false_positive_1() {} function doc_ignore_link_false_positive_2 (line 17) | pub fn doc_ignore_link_false_positive_2() {} function doc_valid_link (line 21) | pub fn doc_valid_link() {} function doc_valid_link_url_invalid_char (line 25) | pub fn doc_valid_link_url_invalid_char() {} function doc_valid_link_broken_text (line 30) | pub fn doc_valid_link_broken_text() {} function doc_valid_link_broken_url_tag_two_lines_first (line 36) | pub fn doc_valid_link_broken_url_tag_two_lines_first() {} function doc_valid_link_broken_url_tag_two_lines_second (line 42) | pub fn doc_valid_link_broken_url_tag_two_lines_second() {} function doc_valid_link_broken_url_tag_three_lines (line 50) | pub fn doc_valid_link_broken_url_tag_three_lines() {} function doc_invalid_link_broken_url_scheme_part (line 56) | pub fn doc_invalid_link_broken_url_scheme_part() {} function doc_invalid_link_broken_url_host_part (line 62) | pub fn doc_invalid_link_broken_url_host_part() {} function doc_multiple_invalid_link_broken_url (line 72) | pub fn doc_multiple_invalid_link_broken_url() {} FILE: tests/ui/doc_errors.rs function pub_fn_missing_errors_header (line 7) | pub fn pub_fn_missing_errors_header() -> Result<(), ()> { function async_pub_fn_missing_errors_header (line 13) | pub async fn async_pub_fn_missing_errors_header() -> Result<(), ()> { function pub_fn_returning_io_result (line 20) | pub fn pub_fn_returning_io_result() -> io::Result<()> { function async_pub_fn_returning_io_result (line 27) | pub async fn async_pub_fn_returning_io_result() -> io::Result<()> { function pub_fn_with_errors_header (line 35) | pub fn pub_fn_with_errors_header() -> Result<(), ()> { function async_pub_fn_with_errors_header (line 41) | pub async fn async_pub_fn_with_errors_header() -> Result<(), ()> { function priv_fn_missing_errors_header (line 46) | fn priv_fn_missing_errors_header() -> Result<(), ()> { function async_priv_fn_missing_errors_header (line 51) | async fn async_priv_fn_missing_errors_header() -> Result<(), ()> { type Struct1 (line 55) | pub struct Struct1; method pub_method_missing_errors_header (line 59) | pub fn pub_method_missing_errors_header() -> Result<(), ()> { method async_pub_method_missing_errors_header (line 66) | pub async fn async_pub_method_missing_errors_header() -> Result<(), ()> { method pub_method_with_errors_header (line 74) | pub fn pub_method_with_errors_header() -> Result<(), ()> { method async_pub_method_with_errors_header (line 80) | pub async fn async_pub_method_with_errors_header() -> Result<(), ()> { method priv_method_missing_errors_header (line 85) | fn priv_method_missing_errors_header() -> Result<(), ()> { method async_priv_method_missing_errors_header (line 90) | async fn async_priv_method_missing_errors_header() -> Result<(), ()> { method block_comment (line 98) | fn block_comment() -> Result<(), ()> { method block_comment_leading_asterisks (line 106) | fn block_comment_leading_asterisks() -> Result<(), ()> { method doc_hidden (line 111) | fn doc_hidden() -> Result<(), ()> { type Trait1 (line 116) | pub trait Trait1 { method trait_method_missing_errors_header (line 118) | fn trait_method_missing_errors_header() -> Result<(), ()>; method trait_method_with_errors_header (line 123) | fn trait_method_with_errors_header() -> Result<(), ()>; method doc_hidden (line 126) | fn doc_hidden() -> Result<(), ()> { method trait_method_missing_errors_header (line 132) | fn trait_method_missing_errors_header() -> Result<(), ()> { method trait_method_with_errors_header (line 136) | fn trait_method_with_errors_header() -> Result<(), ()> { type DocHidden (line 142) | pub trait DocHidden { method f (line 143) | fn f() -> Result<(), ()>; function main (line 146) | fn main() -> Result<(), ()> { FILE: tests/ui/doc_link_with_quotes.rs function main (line 3) | fn main() {} function foo (line 7) | pub fn foo() { function foo2 (line 13) | pub fn foo2() { function bar (line 22) | pub fn bar() {} FILE: tests/ui/doc_suspicious_footnotes.rs function footnotes (line 32) | pub fn footnotes() { type Foo (line 36) | pub struct Foo; method footnotes (line 53) | pub fn footnotes() { method footnotes2 (line 71) | pub fn footnotes2() { method footnotes3 (line 79) | pub fn footnotes3() { method footnote4 (line 83) | pub fn footnote4() { method footnote5 (line 86) | pub fn footnote5() { function footnotes_attrs (line 105) | pub fn footnotes_attrs() { function foo (line 132) | pub fn foo() {} type MultiFragmentFootnote (line 147) | pub struct MultiFragmentFootnote; FILE: tests/ui/doc_unsafe.rs function destroy_the_planet (line 9) | pub unsafe fn destroy_the_planet() { function apocalypse (line 19) | pub unsafe fn apocalypse(universe: &mut ()) { function you_dont_see_me (line 24) | unsafe fn you_dont_see_me() { function only_crate_wide_accessible (line 29) | pub unsafe fn only_crate_wide_accessible() { function republished (line 33) | pub unsafe fn republished() { type SafeTraitUnsafeMethods (line 41) | pub trait SafeTraitUnsafeMethods { method woefully_underdocumented (line 42) | unsafe fn woefully_underdocumented(self); method at_least_somewhat_documented (line 46) | unsafe fn at_least_somewhat_documented(self); method woefully_underdocumented (line 62) | unsafe fn woefully_underdocumented(self) { method at_least_somewhat_documented (line 66) | unsafe fn at_least_somewhat_documented(self) { type UnsafeTrait (line 49) | pub unsafe trait UnsafeTrait { method method (line 51) | fn method(); method method (line 72) | fn method() {} type DocumentedUnsafeTrait (line 55) | pub unsafe trait DocumentedUnsafeTrait { method method2 (line 56) | fn method2(); method method2 (line 76) | fn method2() {} type Struct (line 59) | pub struct Struct; method more_undocumented_unsafe (line 80) | pub unsafe fn more_undocumented_unsafe() -> Self { method somewhat_documented (line 86) | pub unsafe fn somewhat_documented(&self) { method private (line 90) | unsafe fn private(&self) { function main (line 120) | fn main() { type T (line 135) | pub struct T; method f (line 137) | pub unsafe fn f() {} type DocumentedUnsafeTraitWithImplementationHeader (line 142) | pub unsafe trait DocumentedUnsafeTraitWithImplementationHeader { method method (line 143) | fn method(); FILE: tests/ui/double_comparison.rs function main (line 3) | fn main() { FILE: tests/ui/double_ended_iterator_last.rs function last_arg (line 4) | pub fn last_arg(s: &str) -> Option<&str> { function main (line 8) | fn main() { function issue_14139 (line 57) | fn issue_14139() { function drop_order (line 91) | fn drop_order() { function issue_14444 (line 125) | fn issue_14444() { FILE: tests/ui/double_must_use.rs function must_use_result (line 8) | pub fn must_use_result() -> Result<(), ()> { function must_use_tuple (line 15) | pub fn must_use_tuple() -> (Result<(), ()>, u8) { function must_use_array (line 22) | pub fn must_use_array() -> [Result<(), ()>; 1] { function must_use_with_note (line 29) | pub fn must_use_with_note() -> Result<(), ()> { function async_must_use (line 35) | async fn async_must_use() -> usize { function async_must_use_result (line 40) | async fn async_must_use_result() -> Result<(), ()> { function must_use_result_with_uninhabited (line 47) | pub fn must_use_result_with_uninhabited() -> Result<(), !> { type T (line 52) | pub struct T; function must_use_result_with_uninhabited_2 (line 55) | pub fn must_use_result_with_uninhabited_2() -> Result { function must_use_controlflow_with_uninhabited (line 61) | pub fn must_use_controlflow_with_uninhabited() -> ControlFlow ControlFlow(_: T) {} type DummyStruct (line 13) | struct DummyStruct; method dummy_method (line 16) | fn dummy_method(&self, _: T) {} function simple_double_parens (line 19) | fn simple_double_parens() -> i32 { function fn_double_parens (line 24) | fn fn_double_parens() { function method_double_parens (line 29) | fn method_double_parens(x: DummyStruct) { function tuple_double_parens (line 34) | fn tuple_double_parens() -> (i32, i32) { function unit_double_parens (line 40) | fn unit_double_parens() { function fn_tuple_ok (line 45) | fn fn_tuple_ok() { function method_tuple_ok (line 49) | fn method_tuple_ok(x: DummyStruct) { function fn_unit_ok (line 53) | fn fn_unit_ok() { function method_unit_ok (line 57) | fn method_unit_ok(x: DummyStruct) { function inside_macro (line 62) | fn inside_macro() { function issue9000 (line 68) | fn issue9000(x: DummyStruct) { function issue15892 (line 104) | fn issue15892() { function issue15940 (line 156) | fn issue15940() { function issue16224 (line 164) | fn issue16224() { function main (line 180) | fn main() {} FILE: tests/ui/drain_collect.rs function binaryheap (line 6) | fn binaryheap(b: &mut BinaryHeap) -> BinaryHeap { function binaryheap_dont_lint (line 11) | fn binaryheap_dont_lint(b: &mut BinaryHeap) -> HashSet { function hashmap (line 15) | fn hashmap(b: &mut HashMap) -> HashMap { function hashmap_dont_lint (line 20) | fn hashmap_dont_lint(b: &mut HashMap) -> Vec<(i32, i32)> { function hashset (line 24) | fn hashset(b: &mut HashSet) -> HashSet { function hashset_dont_lint (line 29) | fn hashset_dont_lint(b: &mut HashSet) -> Vec { function vecdeque (line 33) | fn vecdeque(b: &mut VecDeque) -> VecDeque { function vecdeque_dont_lint (line 38) | fn vecdeque_dont_lint(b: &mut VecDeque) -> HashSet { function vec (line 42) | fn vec(b: &mut Vec) -> Vec { function vec2 (line 47) | fn vec2(b: &mut Vec) -> Vec { function vec3 (line 52) | fn vec3(b: &mut Vec) -> Vec { function vec4 (line 57) | fn vec4(b: &mut Vec) -> Vec { function vec_no_reborrow (line 62) | fn vec_no_reborrow() -> Vec { function vec_dont_lint (line 68) | fn vec_dont_lint(b: &mut Vec) -> HashSet { function string (line 72) | fn string(b: &mut String) -> String { function string_dont_lint (line 77) | fn string_dont_lint(b: &mut String) -> HashSet { function not_whole_length (line 81) | fn not_whole_length(v: &mut Vec) -> Vec { function main (line 85) | fn main() {} FILE: tests/ui/drain_collect_nostd.rs function remove_all (line 6) | fn remove_all(v: &mut Vec) -> Vec { FILE: tests/ui/drop_non_drop.rs function make_result (line 5) | fn make_result(t: T) -> Result { function make_result_uninhabited_err (line 10) | fn make_result_uninhabited_err(t: T) -> Result(t: T) -> T { function drop_generic (line 19) | fn drop_generic(t: T) { function main (line 24) | fn main() { FILE: tests/ui/duplicate_underscore_argument.rs function join_the_dark_side (line 3) | fn join_the_dark_side(darth: i32, _darth: i32) {} function join_the_light_side (line 6) | fn join_the_light_side(knight: i32, _master: i32) {} function main (line 8) | fn main() {} FILE: tests/ui/duplicated_attributes.rs function foo (line 16) | fn foo() {} function bar (line 21) | fn bar() {} type Abc (line 25) | trait Abc {} function babar (line 28) | fn babar() {} function duplicate_reason (line 32) | fn duplicate_reason() {} function main (line 34) | fn main() {} FILE: tests/ui/duration_suboptimal_units.rs constant SIXTY (line 6) | const SIXTY: u64 = 60; function main (line 21) | fn main() { type Duration (line 79) | struct Duration {} method from_secs (line 82) | pub const fn from_secs(_secs: u64) -> Self { function test (line 87) | fn test() { function issue16457 (line 93) | fn issue16457() { function insufficient_msrv (line 99) | fn insufficient_msrv() { function sufficient_msrv (line 104) | fn sufficient_msrv() { FILE: tests/ui/duration_suboptimal_units_days_weeks.rs function main (line 8) | fn main() { FILE: tests/ui/duration_subsec.rs function main (line 6) | fn main() { FILE: tests/ui/eager_transmute.rs type Opcode (line 8) | enum Opcode { type Data (line 15) | struct Data { function int_to_opcode (line 20) | fn int_to_opcode(op: u8) -> Option { function f (line 25) | fn f(op: u8, op2: Data, unrelated: u8) { function f2 (line 73) | unsafe fn f2(op: u8) { type NonMaxU8 (line 81) | struct NonMaxU8(u8); type NonZeroNonMaxU8 (line 84) | struct NonZeroNonMaxU8(u8); function niche_tests (line 104) | fn niche_tests(v1: u8, v2: NonZero, v3: NonZeroNonMaxU8) { function main (line 124) | fn main() {} FILE: tests/ui/elidable_lifetime_names.rs type Ref (line 3) | type Ref<'r> = &'r u8; function lifetime_param_1 (line 6) | fn lifetime_param_1<'a>(_x: Ref<'a>, _y: &'a u8) {} function lifetime_param_2 (line 9) | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) {} function lifetime_param_3 (line 12) | fn lifetime_param_3<'a, 'b: 'a>(_x: Ref<'a>, _y: &'b u8) {} function lifetime_param_4 (line 15) | fn lifetime_param_4<'a, 'b>(_x: Ref<'a>, _y: &'b u8) type Lt (line 21) | struct Lt<'a, I: 'static> { function fn_bound (line 26) | fn fn_bound<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I> function fn_bound_2 (line 34) | fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I> type Foo (line 41) | struct Foo<'a>(&'a u8); function struct_with_lt (line 44) | fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { function struct_with_lt2 (line 49) | fn struct_with_lt2<'a>(_foo: &'a Foo) -> &'a str { function struct_with_lt3 (line 54) | fn struct_with_lt3<'a>(_foo: &Foo<'a>) -> &'a str { function struct_with_lt4a (line 59) | fn struct_with_lt4a<'a, 'b>(_foo: &'a Foo<'b>) -> &'a str { type FooAlias (line 63) | type FooAlias<'a> = Foo<'a>; function alias_with_lt (line 66) | fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { function alias_with_lt2 (line 71) | fn alias_with_lt2<'a>(_foo: &'a FooAlias) -> &'a str { function alias_with_lt3 (line 76) | fn alias_with_lt3<'a>(_foo: &FooAlias<'a>) -> &'a str { function alias_with_lt4a (line 81) | fn alias_with_lt4a<'a, 'b>(_foo: &'a FooAlias<'b>) -> &'a str { type Cow (line 86) | struct Cow<'a> { function out_return_type_lts (line 91) | fn out_return_type_lts<'a>(e: &'a str) -> Cow<'a> { type Foo (line 96) | trait Foo {} type Bar (line 97) | struct Bar; method baz (line 106) | fn baz<'a>(&'a self) -> impl Foo + 'a { type Baz (line 98) | struct Baz<'a> { type Py (line 113) | struct Py<'py> { type Content (line 117) | enum Content<'t, 'py> { type ContentString (line 123) | enum ContentString<'t> { function map_content1 (line 130) | fn map_content1(self, f: impl FnOnce(&'t str) -> &'t str) -> Content<'t,... function map_content2 (line 141) | fn map_content2(&self, f: impl FnOnce(&'t str) -> &'t str) -> Content<'t... function map_content3 (line 152) | fn map_content3(&'_ self, f: impl FnOnce(&'t str) -> &'t str) -> Content... function map_content4 (line 162) | fn map_content4(self, f: impl FnOnce(&'t str) -> &'t str, o: &'t str) ->... function map_content5 (line 173) | fn map_content5( type Cx (line 185) | struct Cx<'a, 'b> { function one_explicit (line 191) | fn one_explicit<'b>(x: Cx<'_, 'b>) -> &'b u32 { function issue15666_original (line 196) | fn issue15666_original() { function issue15666 (line 207) | fn issue15666() { FILE: tests/ui/else_if_without_else.rs function bla1 (line 4) | fn bla1() -> bool { function bla2 (line 7) | fn bla2() -> bool { function bla3 (line 10) | fn bla3() -> bool { function bla4 (line 13) | fn bla4() -> bool { function bla5 (line 16) | fn bla5() -> bool { function main (line 20) | fn main() { FILE: tests/ui/empty_docs.rs type Bananas (line 13) | struct Bananas { type Warn (line 20) | enum Warn { type DontWarn (line 27) | enum DontWarn { function warn_about_this (line 35) | fn warn_about_this() {} function this_doesn_warn (line 40) | fn this_doesn_warn() {} function this_is_fine (line 43) | fn this_is_fine() {} function dont_warn_inner_outer (line 49) | fn dont_warn_inner_outer() { function this_is_ok (line 53) | fn this_is_ok() { function warn (line 58) | fn warn() { function dont_warn (line 63) | fn dont_warn() { type NoDoc (line 67) | trait NoDoc { method some (line 70) | fn some() {} type Foo (line 92) | struct Foo { FILE: tests/ui/empty_drop.rs type Foo (line 5) | struct Foo; method drop (line 9) | fn drop(&mut self) {} type Bar (line 13) | struct Bar; method drop (line 16) | fn drop(&mut self) { type Baz (line 22) | struct Baz; method drop (line 26) | fn drop(&mut self) { function main (line 31) | fn main() {} FILE: tests/ui/empty_enum_variants_with_brackets.rs type PublicTestEnum (line 5) | pub enum PublicTestEnum { type TestEnum (line 13) | enum TestEnum { type EvenOdd (line 24) | enum EvenOdd { function even_odd (line 33) | fn even_odd(x: i32) -> EvenOdd { function natural_number (line 37) | fn natural_number(x: i32) -> NaturalOrNot { type NaturalOrNot (line 43) | enum NaturalOrNot { type RedundantParenthesesFunctionCall (line 52) | enum RedundantParenthesesFunctionCall { function redundant_parentheses_function_call (line 61) | fn redundant_parentheses_function_call() { function redundant_parentheses_function_call_2 (line 69) | fn redundant_parentheses_function_call_2() { type RedundantParenthesesFunctionCall2 (line 75) | enum RedundantParenthesesFunctionCall2 { type TestEnumWithFeatures (line 84) | enum TestEnumWithFeatures { type Foo (line 93) | enum Foo { type PubFoo (line 100) | pub enum PubFoo { function issue16157 (line 106) | fn issue16157() { function variant_with_braces (line 118) | fn variant_with_braces() { type F (line 127) | enum F { function variant_with_comments_and_cfg (line 135) | fn variant_with_comments_and_cfg() { function main (line 164) | fn main() {} FILE: tests/ui/empty_enums.rs type Empty (line 5) | enum Empty {} type NotReallyEmpty (line 9) | enum NotReallyEmpty { type OneVisibleVariant (line 14) | enum OneVisibleVariant { type CfgInsideVariant (line 20) | enum CfgInsideVariant { function main (line 25) | fn main() {} FILE: tests/ui/empty_enums_without_never_type.rs type Empty (line 6) | enum Empty {} function main (line 8) | fn main() {} FILE: tests/ui/empty_line_after/doc_comments.rs function first_in_crate (line 8) | fn first_in_crate() {} function first_in_module (line 16) | fn first_in_module() {} function some_noop (line 23) | fn some_noop() {} function indented (line 30) | fn indented() {} function with_doc_and_newline (line 36) | fn with_doc_and_newline() {} function with_no_newline_and_comment (line 41) | fn with_no_newline_and_comment() {} function three_attributes (line 52) | fn three_attributes() {} function new_code (line 59) | fn new_code() {} type Multiple (line 73) | struct Multiple; function first_in_module (line 82) | fn first_in_module() {} function new_code (line 93) | fn new_code() {} function new_code2 (line 100) | fn new_code2() {} function function (line 108) | pub fn function() -> bool { type FooFighter (line 114) | pub enum FooFighter { type LineComment (line 127) | struct LineComment; type EmptyInBlockComment (line 133) | pub struct EmptyInBlockComment; type BlockComment (line 137) | pub struct BlockComment; function empty_line_in_cfg_attr (line 145) | fn empty_line_in_cfg_attr() {} type Foo (line 147) | trait Foo { method bar (line 148) | fn bar(); method bar (line 155) | fn bar() {} function main (line 164) | fn main() {} FILE: tests/ui/empty_line_after/outer_attribute.rs function first_in_crate (line 7) | fn first_in_crate() {} function with_one_newline_and_comment (line 16) | fn with_one_newline_and_comment() {} function with_no_newline_and_comment (line 20) | fn with_no_newline_and_comment() {} function with_one_newline (line 25) | fn with_one_newline() {} function with_two_newlines (line 33) | fn with_two_newlines() {} type Baz (line 39) | enum Baz { type Foo (line 47) | struct Foo { function comment_before_empty_line (line 61) | fn comment_before_empty_line() {} function isolated_comment (line 68) | pub fn isolated_comment() {} function function (line 74) | pub fn function() -> bool { type FooFighter (line 79) | pub enum FooFighter { type EmptyLineInBlockComment (line 93) | pub struct EmptyLineInBlockComment; type BlockComment (line 97) | pub struct BlockComment; type Bazz (line 102) | pub trait Bazz { method foo (line 103) | fn foo() -> Vec { type Args (line 117) | pub struct Args; type Aligned (line 123) | enum Aligned { function main (line 129) | fn main() {} FILE: tests/ui/empty_loop.rs function should_trigger (line 8) | fn should_trigger() { function should_not_trigger (line 25) | fn should_not_trigger() { function main (line 54) | fn main() {} FILE: tests/ui/empty_loop_intrinsic.rs function simd_insert (line 11) | pub const unsafe fn simd_insert(x: T, idx: u32, val: U) -> T; function main (line 13) | fn main() {} FILE: tests/ui/empty_loop_no_std.rs function main (line 6) | pub fn main(argc: isize, argv: *const *const u8) -> isize { FILE: tests/ui/empty_structs_with_brackets.rs type MyEmptyStruct (line 4) | pub struct MyEmptyStruct {} type MyEmptyTupleStruct (line 6) | struct MyEmptyTupleStruct(); type MyCfgStruct (line 10) | struct MyCfgStruct { type MyCfgTupleStruct (line 16) | struct MyCfgTupleStruct(#[cfg(feature = "thisisneverenabled")] u8); type MyStruct (line 19) | struct MyStruct { type MyTupleStruct (line 22) | struct MyTupleStruct(usize, String); type MySingleTupleStruct (line 23) | struct MySingleTupleStruct(usize); type MyUnitLikeStruct (line 24) | struct MyUnitLikeStruct; function main (line 34) | fn main() {} type Bar (line 37) | trait Bar {} type Foo (line 40) | struct Foo {} function foo (line 46) | fn foo() {} FILE: tests/ui/endian_bytes.rs function host (line 171) | fn host() { fn_body!(); } function little (line 175) | fn little() { fn_body!(); } function big (line 179) | fn big() { fn_body!(); } function host_encourage_little (line 184) | fn host_encourage_little() { fn_body_smol!(); } function host_encourage_big (line 189) | fn host_encourage_big() { fn_body_smol!(); } function no_help (line 195) | fn no_help() { fn_body_smol!(); } function little_encourage_host (line 200) | fn little_encourage_host() { fn_body_smol!(); } function little_encourage_big (line 205) | fn little_encourage_big() { fn_body_smol!(); } function big_encourage_host (line 210) | fn big_encourage_host() { fn_body_smol!(); } function big_encourage_little (line 215) | fn big_encourage_little() { fn_body_smol!(); } FILE: tests/ui/entry.rs function foo (line 20) | fn foo() {} function hash_map (line 22) | fn hash_map(m: &mut HashMap, m2: &mu... function issue_10331 (line 171) | pub fn issue_10331() { function issue_11935 (line 184) | pub fn issue_11935() { function issue12489 (line 193) | fn issue12489(map: &mut HashMap) -> Option<()> { type Member (line 207) | struct Member {} type Foo (line 209) | pub struct Foo { method should_also_not_cause_lint (line 214) | pub fn should_also_not_cause_lint(&mut self, input: u8) { method other (line 223) | fn other(&self) {} function issue11976 (line 227) | fn issue11976() { type Meow (line 238) | pub struct Meow { method pet (line 243) | fn pet(&self, _key: &str, _v: u32) -> u32 { function f (line 248) | pub fn f(meow: &Meow, x: String) { function f (line 262) | async fn f() {} function foo (line 264) | async fn foo() { function main (line 281) | fn main() {} function issue15781 (line 283) | fn issue15781(m: &mut std::collections::HashMap, k: i32, v: i3... FILE: tests/ui/entry_btree.rs function foo (line 6) | fn foo() {} function btree_map (line 8) | fn btree_map(m: &mut BTreeMap, k: K, ... function main (line 17) | fn main() {} FILE: tests/ui/entry_unfixable.rs type Env (line 20) | struct Env { method assign (line 26) | fn assign(&mut self, name: String, value: usize) -> bool { function issue9925 (line 40) | fn issue9925(mut hm: HashMap) { type Interner (line 55) | struct Interner(i32); method new (line 58) | const fn new() -> Self { method resolve (line 62) | fn resolve(&self, name: String) -> Option { type VM (line 69) | struct VM { method stack_top (line 75) | fn stack_top(&self) -> &i32 { method resolve (line 79) | fn resolve(&mut self, name: String, value: i32) -> Result<(), String> { function main (line 93) | fn main() {} FILE: tests/ui/entry_with_else.rs function foo (line 11) | fn foo() {} function insert_if_absent0 (line 13) | fn insert_if_absent0(m: &mut HashMap... function main (line 65) | fn main() {} FILE: tests/ui/enum_clike_unportable_variant.rs type NonPortable (line 7) | enum NonPortable { type NonPortableNoHint (line 15) | enum NonPortableNoHint { type NonPortableSigned (line 25) | enum NonPortableSigned { type NonPortableSignedNoHint (line 37) | enum NonPortableSignedNoHint { type NonPortable2 (line 47) | enum NonPortable2 { type Trait (line 53) | trait Trait { constant Number (line 54) | const Number: usize = 0x1_0000_0000; function main (line 59) | fn main() {} FILE: tests/ui/enum_glob_use.rs type Enum (line 8) | enum Enum { function blarg (line 16) | fn blarg() { function main (line 29) | fn main() { FILE: tests/ui/enum_variants.rs type FakeCallType (line 4) | enum FakeCallType { type FakeCallType2 (line 9) | enum FakeCallType2 { type Foo (line 14) | enum Foo { type Fooo (line 22) | enum Fooo { type Food (line 27) | enum Food { type Stuff (line 37) | enum Stuff { type BadCallType (line 41) | enum BadCallType { type TwoCallType (line 48) | enum TwoCallType { type Consts (line 54) | enum Consts { type Two (line 61) | enum Two { type Something (line 67) | enum Something { type Seal (line 74) | enum Seal { type Seall (line 79) | enum Seall { type Sealll (line 85) | enum Sealll { type Seallll (line 90) | enum Seallll { type NonCaps (line 97) | enum NonCaps { type PubSeall (line 103) | pub enum PubSeall { type PubAllowed (line 111) | pub enum PubAllowed { type Pat (line 119) | enum Pat { type N (line 126) | enum N { type Peek (line 133) | enum Peek { type NetworkLayer (line 140) | pub enum NetworkLayer { type IDataRequest (line 146) | enum IDataRequest { type HIDataRequest (line 153) | enum HIDataRequest { type North (line 160) | enum North { type Phase (line 167) | enum Phase { type DoLint (line 174) | enum DoLint { type DoLintToo (line 182) | enum DoLintToo { type DoNotLint (line 189) | enum DoNotLint { type Enum (line 197) | enum Enum { type Data (line 208) | enum Data { type Datas (line 215) | enum Datas { type FooError (line 225) | pub struct FooError; type BarError (line 226) | pub struct BarError; type BazError (line 227) | pub struct BazError; type Error (line 230) | enum Error { function main (line 238) | fn main() {} FILE: tests/ui/eprint_with_newline.rs function main (line 4) | fn main() { FILE: tests/ui/eq_op.rs function main (line 5) | fn main() { function check_ignore_macro (line 127) | fn check_ignore_macro() { type Nested (line 133) | struct Nested { function check_nested (line 137) | fn check_nested(n1: &Nested, n2: &Nested) -> bool { function eq_op_shouldnt_trigger_in_tests (line 144) | fn eq_op_shouldnt_trigger_in_tests() { function eq_op_macros_shouldnt_trigger_in_tests (line 151) | fn eq_op_macros_shouldnt_trigger_in_tests() { FILE: tests/ui/eq_op_macros.rs function main (line 20) | fn main() { FILE: tests/ui/equatable_if_let.rs type Enum (line 9) | enum Enum { type Struct (line 17) | struct Struct { type NoPartialEqStruct (line 22) | struct NoPartialEqStruct { type NotPartialEq (line 27) | enum NotPartialEq { type NotStructuralEq (line 32) | enum NotStructuralEq { method eq (line 38) | fn eq(&self, _: &NotStructuralEq) -> bool { function main (line 43) | fn main() { function str_ref (line 92) | fn str_ref(cs: &[char]) { function i32_ref (line 100) | fn i32_ref(cs: &[i32]) { function enum_ref (line 108) | fn enum_ref() { function issue14548 (line 128) | fn issue14548() { function issue15376 (line 196) | fn issue15376() { FILE: tests/ui/equatable_if_let_const_cmp.rs function issue15376 (line 5) | fn issue15376() { FILE: tests/ui/erasing_op.rs type Length (line 1) | struct Length(u8); type Meter (line 2) | struct Meter; type Output (line 5) | type Output = Length; function mul (line 6) | fn mul(self, _: Meter) -> Length { type Vec1 (line 12) | struct Vec1 { type Output (line 25) | type Output = Vec1; method mul (line 26) | fn mul(mut self, right: i32) -> Vec1 { type Output (line 17) | type Output = Vec1; function mul (line 18) | fn mul(self, mut right: Vec1) -> Vec1 { function test (line 34) | fn test(x: u8) { function main (line 52) | fn main() {} FILE: tests/ui/err_expect.rs type MyTypeNonDebug (line 3) | struct MyTypeNonDebug; type MyTypeDebug (line 6) | struct MyTypeDebug; function main (line 8) | fn main() { function msrv_1_16 (line 18) | fn msrv_1_16() { function msrv_1_17 (line 24) | fn msrv_1_17() { FILE: tests/ui/error_impl_error.rs type Error (line 7) | pub struct Error; method fmt (line 11) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 25) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 41) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 47) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 84) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Error (line 21) | pub(super) enum Error {} method fmt (line 11) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 25) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 41) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 47) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 84) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Error (line 56) | pub type Error = std::fmt::Error; method fmt (line 11) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 25) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 41) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 47) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 84) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type MyError (line 62) | pub(super) struct MyError; method fmt (line 65) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type MyError (line 74) | pub type MyError = std::fmt::Error; method fmt (line 65) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Error (line 81) | enum Error {} method fmt (line 11) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 25) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 41) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 47) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 84) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Error (line 93) | type Error = std::fmt::Error; method fmt (line 11) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 25) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 41) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 47) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 84) | fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { FILE: tests/ui/eta.rs function main (line 34) | fn main() { type TestTrait (line 72) | trait TestTrait { method trait_foo (line 73) | fn trait_foo(self) -> bool; method trait_foo_ref (line 74) | fn trait_foo_ref(&self) -> bool; method trait_foo (line 91) | fn trait_foo(self) -> bool { method trait_foo_ref (line 94) | fn trait_foo_ref(&self) -> bool { type TestStruct (line 77) | struct TestStruct<'a> { function foo (line 82) | fn foo(self) -> bool { function foo_unsafe (line 85) | unsafe fn foo_unsafe(self) -> bool { type Target (line 100) | type Target = char; function deref (line 101) | fn deref(&self) -> &char { function test_redundant_closures_containing_method_calls (line 106) | fn test_redundant_closures_containing_method_calls() { type Thunk (line 145) | struct Thunk(Box T>); function new (line 148) | fn new T>(f: F) -> Thunk { function unwrap (line 154) | fn unwrap(self) -> T { function foobar (line 160) | fn foobar() { function foo (line 165) | fn foo(_: u8) {} function foo2 (line 167) | fn foo2(_: u8) -> u8 { function all (line 171) | fn all(x: &[X], y: &X, f: F) -> bool function below (line 178) | fn below(x: &u8, y: &u8) -> bool { function unsafe_fn (line 182) | unsafe fn unsafe_fn(_: u8) {} function divergent (line 184) | fn divergent(_: u8) -> ! { function generic (line 188) | fn generic(_: T) -> u8 { function passes_fn_mut (line 192) | fn passes_fn_mut(mut x: Box) { function requires_fn_once (line 196) | fn requires_fn_once(_: T) {} function test_redundant_closure_with_function_pointer (line 198) | fn test_redundant_closure_with_function_pointer() { function test_redundant_closure_with_another_closure (line 205) | fn test_redundant_closure_with_another_closure() { function make_lazy (line 211) | fn make_lazy(f: impl Fn() -> fn(u8) -> u8) -> impl Fn(u8) -> u8 { function call (line 218) | fn call String>(f: F) -> String { function test_difference_in_mutability (line 221) | fn test_difference_in_mutability() { type Bar (line 225) | struct Bar; type Target (line 227) | type Target = str; method deref (line 228) | fn deref(&self) -> &str { function test_deref_with_trait_method (line 233) | fn test_deref_with_trait_method() { function mutable_closure_used_again (line 237) | fn mutable_closure_used_again(x: Vec, y: Vec, z: Vec) { function mutable_closure_in_loop (line 248) | fn mutable_closure_in_loop() { function late_bound_lifetimes (line 262) | fn late_bound_lifetimes() { type Trait (line 281) | trait Trait { method fun (line 282) | fn fun(); function take (line 285) | fn take(_: T) {} function test (line 287) | fn test() { function arc_fp (line 295) | fn arc_fp() { type A (line 307) | struct A; type B (line 308) | struct B; method from (line 311) | fn from(A: &A) -> Self { function test (line 316) | fn test() { function coerced_closure (line 325) | fn coerced_closure() { function box_dyn (line 337) | fn box_dyn() { function not_general_enough (line 343) | fn not_general_enough() { function mutable_impl_fn_mut (line 349) | pub fn mutable_impl_fn_mut(mut f: impl FnMut(), mut f_used_once: impl Fn... function method_on_dyn (line 365) | fn method_on_dyn(&self) -> bool { function angle_brackets_and_args (line 371) | fn angle_brackets_and_args() { function track_caller_fp (line 391) | fn track_caller_fp() { function _late_bound_to_early_bound_regions (line 407) | fn _late_bound_to_early_bound_regions() { function _mixed_late_bound_and_early_bound_regions (line 440) | fn _mixed_late_bound_and_early_bound_regions() { function _closure_with_types (line 451) | fn _closure_with_types() { type Test (line 467) | pub struct Test; method method (line 470) | pub fn method(self) -> i32 { method method (line 514) | pub fn method(self) -> i32 { function calls_test (line 475) | pub fn calls_test(test: Option) -> Option { function calls_outer (line 480) | pub fn calls_outer(test: Option) -> Option { type Outer (line 486) | pub struct Outer; method method (line 489) | pub fn method(self) -> i32 { function calls_into_mod (line 494) | pub fn calls_into_mod(test: Option) -> Option { function extreme_nesting (line 502) | pub fn extreme_nesting(test: Option) -> Op... type Test (line 511) | pub struct Test; method method (line 470) | pub fn method(self) -> i32 { method method (line 514) | pub fn method(self) -> i32 { function f_by_value (line 522) | fn f_by_value(f: F) { function f_by_ref (line 527) | fn f_by_ref(f: &F) { function get_default (line 535) | fn get_default() -> Option<&'static str> { function foo (line 539) | pub fn foo() { function issue_14789 (line 551) | fn issue_14789() { function issue_15072 (line 569) | fn issue_15072() { function issue8817 (line 614) | fn issue8817() { function issue13892 (line 640) | async fn issue13892<'a, T, F>(maybe: Option<&'a T>, visitor: F) type Issue16360 (line 648) | trait Issue16360: Sized { method method (line 649) | fn method(&self); method ice_machine (line 651) | fn ice_machine(array: [Self; 1]) { function issue16641 (line 657) | fn issue16641() { FILE: tests/ui/eta_nostd.rs function issue_13895 (line 8) | fn issue_13895() { FILE: tests/ui/excessive_precision.rs function main (line 17) | fn main() { type ExcessivelyPreciseTrait (line 135) | trait ExcessivelyPreciseTrait { constant GOOD1 (line 137) | const GOOD1: f32 = 1.01234567890123456789012345678901234567890; constant GOOD2 (line 138) | const GOOD2: f64 = 1.01234567890123456789012345678901234567890; type ExcessivelyPreciseStruct (line 141) | struct ExcessivelyPreciseStruct; constant GOOD1 (line 145) | const GOOD1: f32 = 1.01234567890123456789012345678901234567890; constant GOOD2 (line 146) | const GOOD2: f64 = 1.01234567890123456789012345678901234567890; FILE: tests/ui/exhaustive_items.rs function main (line 5) | fn main() { type Exhaustive (line 10) | pub enum Exhaustive { type ExhaustiveWithAttrs (line 20) | pub enum ExhaustiveWithAttrs { type NonExhaustive (line 30) | pub enum NonExhaustive { type ExhaustivePrivate (line 38) | enum ExhaustivePrivate { type NonExhaustivePrivate (line 47) | enum NonExhaustivePrivate { type Exhaustive (line 56) | pub struct Exhaustive { type NonExhaustive (line 64) | pub struct NonExhaustive { type ExhaustivePrivateFieldTuple (line 70) | pub struct ExhaustivePrivateFieldTuple(u8); type ExhaustivePrivateField (line 73) | pub struct ExhaustivePrivateField { type ExhaustivePrivate (line 79) | struct ExhaustivePrivate { type NonExhaustivePrivate (line 86) | struct NonExhaustivePrivate { type A (line 93) | pub struct A { FILE: tests/ui/exit1.rs function not_main (line 3) | fn not_main() { function main (line 10) | fn main() { FILE: tests/ui/exit1_compile_flag_test.rs function not_main (line 4) | fn not_main() { function main (line 11) | fn main() { FILE: tests/ui/exit2.rs function also_not_main (line 3) | fn also_not_main() { function main (line 8) | fn main() { FILE: tests/ui/exit2_compile_flag_test.rs function also_not_main (line 4) | fn also_not_main() { function main (line 9) | fn main() { FILE: tests/ui/exit3.rs function main (line 5) | fn main() { FILE: tests/ui/exit3_compile_flag_test.rs function main (line 6) | fn main() { FILE: tests/ui/exit4.rs function main (line 6) | fn main() { FILE: tests/ui/expect.rs function expect_option (line 4) | fn expect_option() { function expect_result (line 10) | fn expect_result() { function issue_15247 (line 21) | fn issue_15247() { function main (line 37) | fn main() {} FILE: tests/ui/expect_fun_call.rs function main (line 14) | fn main() { FILE: tests/ui/expect_tool_lint_rfc_2383.rs function rustc_lints (line 19) | pub fn rustc_lints() { function rustc_lints (line 34) | pub fn rustc_lints() { function foo (line 50) | pub fn foo() {} function bar (line 54) | pub fn bar() {} function baz (line 58) | pub fn baz() {} function foo (line 66) | pub fn foo() {} function bar (line 70) | pub fn bar() {} function baz (line 74) | pub fn baz() {} function foo (line 81) | fn foo() { function bar (line 89) | fn bar() { function baz (line 94) | fn baz() { function burger (line 99) | fn burger() { function foo (line 112) | fn foo() { function bar (line 120) | fn bar() { function baz (line 126) | fn baz() { function burger (line 132) | fn burger() { function main (line 141) | fn main() { FILE: tests/ui/explicit_auto_deref.rs type CallableStr (line 17) | trait CallableStr { method callable_str (line 19) | fn callable_str(&self) -> Self::T; type T (line 22) | type T = fn(&str); method callable_str (line 23) | fn callable_str(&self) -> Self::T { type T (line 29) | type T = <() as CallableStr>::T; method callable_str (line 30) | fn callable_str(&self) -> Self::T { type CallableT (line 35) | trait CallableT { method callable_t (line 37) | fn callable_t(&self) -> Self::T; type T (line 40) | type T = fn(&U); function callable_t (line 41) | fn callable_t(&self) -> Self::T { type T (line 47) | type T = <() as CallableT>::T; function callable_t (line 48) | fn callable_t(&self) -> Self::T { function f_str (line 53) | fn f_str(_: &str) {} function f_string (line 54) | fn f_string(_: &String) {} function f_t (line 55) | fn f_t(_: T) {} function f_ref_t (line 56) | fn f_ref_t(_: &T) {} function f_str_t (line 58) | fn f_str_t(_: &str, _: T) {} function f_box_t (line 60) | fn f_box_t(_: &Box) {} function var (line 63) | fn var(_: u32, ...); function main (line 66) | fn main() { FILE: tests/ui/explicit_counter_loop.rs function main (line 4) | fn main() { function test (line 85) | pub fn test() { function test (line 155) | pub fn test() { function test (line 189) | pub fn test() { function test (line 200) | pub fn test() { function test (line 213) | pub fn test() { function test (line 226) | pub fn test() { function test (line 260) | pub fn test() { function test2 (line 275) | pub fn test2() { function test (line 290) | pub fn test() { function issue16612 (line 303) | fn issue16612(v: Vec, s: i64) { function issue16640 (line 321) | fn issue16640(x: &[u8]) { FILE: tests/ui/explicit_deref_methods.rs function concat (line 20) | fn concat(deref_str: &str) -> String { function just_return (line 24) | fn just_return(deref_str: &str) -> &str { type CustomVec (line 28) | struct CustomVec(Vec); type Target (line 30) | type Target = Vec; method deref (line 32) | fn deref(&self) -> &Vec { type Aaa (line 37) | struct Aaa; type Target (line 40) | type Target = (); method deref (line 42) | fn deref(&self) -> &Self::Target { method deref_mut (line 48) | fn deref_mut(&mut self) -> &mut Self::Target { function main (line 53) | fn main() { type Wrapper (line 163) | struct Wrapper(String); type Target (line 166) | type Target = str; method deref (line 167) | fn deref(&self) -> &Self::Target { method deref_mut (line 177) | fn deref_mut(&mut self) -> &mut Self::Target { type A (line 186) | struct A(String); type AA (line 187) | struct AA(String); type AB (line 188) | struct AB(String); type Target (line 191) | type Target = str; method deref (line 193) | fn deref(&self) -> &Self::Target { method deref_mut (line 233) | fn deref_mut(&mut self) -> &mut Self::Target { FILE: tests/ui/explicit_into_iter_loop.rs function main (line 4) | fn main() { function issue14630 (line 77) | fn issue14630() { FILE: tests/ui/explicit_iter_loop.rs function main (line 15) | fn main() { function issue_13184 (line 176) | pub fn issue_13184() { function issue14630 (line 187) | fn issue14630() { FILE: tests/ui/explicit_write.rs function stdout (line 4) | fn stdout() -> String { function stderr (line 8) | fn stderr() -> String { function main (line 18) | fn main() { FILE: tests/ui/explicit_write_in_test.rs function test (line 5) | fn test() { FILE: tests/ui/extend_with_drain.rs function main (line 4) | fn main() { function return_vector (line 55) | fn return_vector() -> Vec { FILE: tests/ui/extra_unused_lifetimes.rs function empty (line 17) | fn empty() {} function used_lt (line 19) | fn used_lt<'a>(x: &'a u8) {} function unused_lt (line 21) | fn unused_lt<'a>(x: u8) {} function unused_lt_transitive (line 24) | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) { function lt_return (line 28) | fn lt_return<'a, 'b: 'a>(x: &'b u8) -> &'a u8 { function lt_return_only (line 32) | fn lt_return_only<'a>() -> &'a u8 { function unused_lt_blergh (line 36) | fn unused_lt_blergh<'a>(x: Option>) {} type Foo (line 38) | trait Foo<'a> { method x (line 39) | fn x(&self, a: &'a u8); function x (line 43) | fn x(&self, a: &'a u8) {} type Bar (line 46) | struct Bar; method x (line 49) | fn x<'a>(&self) {} function parse (line 54) | pub fn parse<'a, I: Iterator>(_it: &mut I) { function parse2 (line 57) | pub fn parse2<'a, I>(_it: &mut I) type X (line 64) | struct X { method self_ref_with_lifetime (line 69) | fn self_ref_with_lifetime<'a>(&'a self) {} method explicit_self_with_lifetime (line 70) | fn explicit_self_with_lifetime<'a>(self: &'a Self) {} type BadTrait (line 75) | trait BadTrait { method unused_lt (line 76) | fn unused_lt<'a>(x: u8) {} method unused_lt (line 81) | fn unused_lt<'a>(_x: u8) {} type Scalar (line 86) | pub struct Scalar; method something (line 97) | pub fn something<'c>() -> Self { function add_assign (line 90) | fn add_assign(&mut self, _rhs: &Scalar) { type Expected (line 107) | pub trait Expected { method fmt (line 108) | fn fmt(&self, formatter: &mut std::fmt::Formatter); method fmt (line 115) | fn fmt(&self, formatter: &mut std::fmt::Formatter) {} type Source (line 121) | pub trait Source { method hey (line 122) | fn hey(); method hey (line 129) | fn hey() {} method hey (line 135) | fn hey() {} type OtherBox (line 132) | struct OtherBox(Box); type Human (line 141) | struct Human<'a> { type Foo (line 148) | pub trait Foo {} method x (line 39) | fn x(&self, a: &'a u8); function main (line 183) | fn main() {} FILE: tests/ui/extra_unused_type_parameters.rs function unused_ty (line 9) | fn unused_ty(x: u8) { function unused_multi (line 14) | fn unused_multi(x: u8) { function unused_with_lt (line 19) | fn unused_with_lt<'a, T>(x: &'a u8) { function used_ty (line 24) | fn used_ty(x: T, y: u8) {} function used_ref (line 26) | fn used_ref<'a, T>(x: &'a T) {} function used_ret (line 28) | fn used_ret(x: u8) -> T { function unused_bounded (line 32) | fn unused_bounded(x: U) { function some_unused (line 37) | fn some_unused, E>(b: B, c: C) { function used_opaque (line 42) | fn used_opaque(iter: impl Iterator) -> usize { function used_ret_opaque (line 46) | fn used_ret_opaque() -> impl Iterator { function used_vec_box (line 50) | fn used_vec_box(x: Vec>) {} function used_body (line 52) | fn used_body() -> String { function used_closure (line 56) | fn used_closure() -> impl Fn() { type S (line 60) | struct S; method unused_ty_impl (line 63) | fn unused_ty_impl(&self) { type Foo (line 70) | trait Foo { method bar (line 71) | fn bar(&self); method bar (line 75) | fn bar(&self) {} function skip_index (line 78) | fn skip_index(iter: Iter, index: usize) -> impl Iterator function unused_opaque (line 86) | fn unused_opaque(dummy: impl Default) { type Private (line 93) | pub trait Private {} function priv_trait_bound (line 96) | fn priv_trait_bound() { function unused_with_priv_trait_bound (line 100) | fn unused_with_priv_trait_bound() { function assert_send (line 107) | fn assert_send() {} function assert_send_where (line 109) | fn assert_send_where() type Wrapper (line 129) | struct Wrapper(PhantomData); function store (line 131) | fn store(v: &mut Vec>) function main (line 139) | fn main() {} FILE: tests/ui/extra_unused_type_parameters_unfixable.rs function unused_where_clause (line 3) | fn unused_where_clause(x: U) function unused_multi_where_clause (line 11) | fn unused_multi_where_clause(x: U) function unused_all_where_clause (line 19) | fn unused_all_where_clause() function main (line 27) | fn main() {} FILE: tests/ui/fallible_impl_from.rs type Foo (line 4) | struct Foo(i32); method from (line 8) | fn from(s: String) -> Self { type Valid (line 13) | struct Valid(Vec); method from (line 16) | fn from(s: &'a str) -> Valid { method from (line 21) | fn from(i: usize) -> Valid { type Invalid (line 26) | struct Invalid; method from (line 31) | fn from(i: usize) -> Invalid { method from (line 42) | fn from(s: Option) -> Invalid { method from (line 62) | fn from(s: &'a mut as ProjStrTrait>::ProjString) -> Invalid { type ProjStrTrait (line 53) | trait ProjStrTrait { type ProjString (line 57) | type ProjString = String; type Unreachable (line 70) | struct Unreachable; method from (line 73) | fn from(s: String) -> Unreachable { function main (line 84) | fn main() {} FILE: tests/ui/field_reassign_with_default.rs type DerivedStruct (line 15) | struct DerivedStruct; type A (line 18) | struct A { type B (line 23) | struct B { type C (line 29) | struct C { type D (line 35) | struct D { type SideEffect (line 41) | struct SideEffect(i32); method new (line 44) | fn new() -> SideEffect { method next (line 47) | fn next(&mut self) -> i32 { function main (line 54) | fn main() { type F (line 186) | pub struct F { type Wrapper (line 193) | struct Wrapper { type WrapperMulti (line 198) | struct WrapperMulti { type ImplDropNotAllCopy (line 209) | pub struct ImplDropNotAllCopy { method new (line 221) | fn new(name: &str) -> Self { method close (line 226) | fn close(&self) {} method drop (line 215) | fn drop(&mut self) { type ImplDropAllCopy (line 231) | pub struct ImplDropAllCopy { method new (line 243) | fn new(name: &str) -> Self { method close (line 249) | fn close(&self) {} method drop (line 237) | fn drop(&mut self) { type NoDropAllCopy (line 254) | pub struct NoDropAllCopy { method new (line 260) | fn new(name: &str) -> Self { type Collection (line 269) | struct Collection { method default (line 275) | fn default() -> Self { function issue10136 (line 284) | fn issue10136() { FILE: tests/ui/field_scoped_visibility_modifiers.rs type MyStruct (line 6) | struct MyStruct { function main (line 24) | fn main() {} FILE: tests/ui/filetype_is_file.rs function main (line 4) | fn main() -> std::io::Result<()> { FILE: tests/ui/filter_map_bool_then.rs type NonCopy (line 15) | struct NonCopy; function main (line 17) | fn main() { function issue11309 (line 61) | fn issue11309<'a>(iter: impl Iterator) -> Vec... function issue11503 (line 65) | fn issue11503() { function issue15047 (line 93) | fn issue15047() { FILE: tests/ui/filter_map_bool_then_unfixable.rs function issue11617 (line 4) | fn issue11617() { function do_something (line 17) | fn do_something(_: ()) -> bool { function option_with_early_return (line 21) | fn option_with_early_return(x: &[Option]) { type Foo (line 39) | enum Foo { function nested_type_with_early_return (line 45) | fn nested_type_with_early_return(x: &[Foo]) { FILE: tests/ui/filter_map_identity.rs type NonCopy (line 6) | struct NonCopy; function non_copy_vec (line 9) | fn non_copy_vec() -> Vec> { function copy_vec (line 13) | fn copy_vec() -> Vec> { function copy_vec_non_inferred (line 17) | fn copy_vec_non_inferred() -> Vec> { function opaque (line 21) | fn opaque() -> impl IntoIterator> { function main (line 25) | fn main() { function issue12653 (line 101) | fn issue12653() -> impl Iterator { FILE: tests/ui/filter_map_next.rs function main (line 3) | fn main() { FILE: tests/ui/filter_map_next_fixable.rs function main (line 3) | fn main() { function msrv_1_29 (line 12) | fn msrv_1_29() { function msrv_1_30 (line 18) | fn msrv_1_30() { FILE: tests/ui/find_map.rs type Flavor (line 6) | enum Flavor { type Dessert (line 11) | enum Dessert { function main (line 17) | fn main() { FILE: tests/ui/flat_map_identity.rs function main (line 6) | fn main() { function issue15198 (line 20) | fn issue15198() { FILE: tests/ui/flat_map_option.rs function main (line 4) | fn main() { FILE: tests/ui/float_arithmetic.rs function main (line 12) | fn main() { function float_arith_ref (line 52) | pub fn float_arith_ref() { function float_foo (line 63) | pub fn float_foo(f: &f32) -> f32 { function float_bar (line 69) | pub fn float_bar(f1: &f32, f2: &f32) -> f32 { function float_baz (line 74) | pub fn float_baz(f1: f32, f2: &f32) -> f32 { function float_qux (line 79) | pub fn float_qux(f1: f32, f2: f32) -> f32 { FILE: tests/ui/float_cmp.rs constant ZERO (line 14) | const ZERO: f32 = 0.0; constant ONE (line 15) | const ONE: f32 = ZERO + 1.0; function twice (line 17) | fn twice(x: T) -> T function eq_fl (line 24) | fn eq_fl(x: f32, y: f32) -> bool { function fl_eq (line 28) | fn fl_eq(x: f32, y: f32) -> bool { type X (line 32) | struct X { method eq (line 47) | fn eq(&self, o: &f32) -> bool { method eq (line 37) | fn eq(&self, o: &X) -> bool { function main (line 56) | fn main() { FILE: tests/ui/float_cmp_const.rs constant ONE (line 6) | const ONE: f32 = 1.0; constant TWO (line 7) | const TWO: f32 = 2.0; function eq_one (line 9) | fn eq_one(x: f32) -> bool { function main (line 13) | fn main() { FILE: tests/ui/float_equality_without_abs.rs function is_roughly_equal (line 6) | pub fn is_roughly_equal(a: f32, b: f32) -> bool { function main (line 11) | pub fn main() { FILE: tests/ui/floating_point_abs.rs function in_const_context (line 4) | pub const fn in_const_context(num: f64) -> f64 { type A (line 8) | struct A { function fake_abs1 (line 13) | fn fake_abs1(num: f64) -> f64 { function fake_abs2 (line 18) | fn fake_abs2(num: f64) -> f64 { function fake_abs3 (line 23) | fn fake_abs3(a: A) -> f64 { function fake_abs4 (line 28) | fn fake_abs4(num: f64) -> f64 { function fake_abs5 (line 33) | fn fake_abs5(a: A) -> f64 { function fake_nabs1 (line 38) | fn fake_nabs1(num: f64) -> f64 { function fake_nabs2 (line 43) | fn fake_nabs2(num: f64) -> f64 { function fake_nabs3 (line 48) | fn fake_nabs3(a: A) -> A { function not_fake_abs1 (line 56) | fn not_fake_abs1(num: f64) -> f64 { function not_fake_abs2 (line 60) | fn not_fake_abs2(num: f64) -> f64 { function not_fake_abs3 (line 64) | fn not_fake_abs3(num1: f64, num2: f64) -> f64 { function not_fake_abs4 (line 68) | fn not_fake_abs4(a: A) -> f64 { function not_fake_abs5 (line 72) | fn not_fake_abs5(a: A) -> f64 { function main (line 76) | fn main() {} FILE: tests/ui/floating_point_arithmetic_nostd.rs function mul_add (line 11) | pub fn mul_add() { function fake_abs1 (line 18) | fn fake_abs1(num: f64) -> f64 { function main (line 22) | pub fn main(_argc: isize, _argv: *const *const u8) -> isize { FILE: tests/ui/floating_point_exp.rs function main (line 6) | fn main() { FILE: tests/ui/floating_point_hypot.rs function main (line 3) | fn main() { FILE: tests/ui/floating_point_log.rs constant TWO (line 6) | const TWO: f32 = 2.0; constant E (line 7) | const E: f32 = std::f32::consts::E; function check_log_base (line 9) | fn check_log_base() { function check_ln1p (line 31) | fn check_ln1p() { function issue12881 (line 87) | fn issue12881() { function main (line 102) | fn main() {} FILE: tests/ui/floating_point_logbase.rs function main (line 4) | fn main() { FILE: tests/ui/floating_point_mul_add.rs function in_const_context (line 4) | pub const fn in_const_context() { function main (line 13) | fn main() { function _issue11831 (line 55) | fn _issue11831() { function _issue14897 (line 73) | fn _issue14897() { function issue16573 (line 117) | fn issue16573() { FILE: tests/ui/floating_point_powf.rs function main (line 6) | fn main() { FILE: tests/ui/floating_point_powi.rs function main (line 4) | fn main() { FILE: tests/ui/floating_point_rad.rs function const_context (line 4) | pub const fn const_context() { function issue9391 (line 9) | pub fn issue9391(degrees: i64) { function main (line 16) | fn main() { FILE: tests/ui/fn_params_excessive_bools.rs function f (line 6) | fn f(_: bool, _: bool, _: bool, _: bool); function k (line 18) | unsafe extern "C" fn k(_: bool, _: bool, _: bool, _: bool) {} function g (line 19) | fn g(_: bool, _: bool, _: bool, _: bool) {} function h (line 21) | fn h(_: bool, _: bool, _: bool) {} function e (line 22) | fn e(_: S, _: S, _: Box, _: Vec) {} function t (line 23) | fn t(_: S, _: S, _: Box, _: Vec, _: bool, _: bool, _: bool, _: b... type S (line 26) | struct S; method f (line 39) | fn f(&self, _: bool, _: bool, _: bool, _: bool) {} method g (line 41) | fn g(&self, _: bool, _: bool, _: bool) {} method h (line 43) | unsafe extern "C" fn h(_: bool, _: bool, _: bool, _: bool) {} type Trait (line 27) | trait Trait { method f (line 29) | fn f(_: bool, _: bool, _: bool, _: bool); method g (line 31) | fn g(_: bool, _: bool, _: bool, _: Vec); method h (line 33) | fn h(_: bool, _: bool, _: bool, _: bool, _: bool, _: bool); method i (line 34) | fn i(_: bool, _: bool, _: bool, _: bool) {} method f (line 49) | fn f(_: bool, _: bool, _: bool, _: bool) {} method g (line 50) | fn g(_: bool, _: bool, _: bool, _: Vec) {} method h (line 51) | fn h(_: bool, _: bool, _: bool, _: bool, _: bool, _: bool) {} function main (line 54) | fn main() { FILE: tests/ui/fn_to_numeric_cast.rs function foo (line 8) | fn foo() -> String { function test_function_to_numeric_cast (line 12) | fn test_function_to_numeric_cast() { function test_function_var_to_numeric_cast (line 47) | fn test_function_var_to_numeric_cast() { function fn_with_fn_args (line 80) | fn fn_with_fn_args(f: fn(i32) -> i32) -> i32 { function main (line 86) | fn main() {} FILE: tests/ui/fn_to_numeric_cast_any.rs function foo (line 5) | fn foo() -> u8 { function generic_foo (line 9) | fn generic_foo(x: T) -> T { type Trait (line 13) | trait Trait { method static_method (line 14) | fn static_method() -> u32 { type Struct (line 19) | struct Struct; function fn_pointer_to_integer (line 23) | fn fn_pointer_to_integer() { function static_method_to_integer (line 61) | fn static_method_to_integer() { function fn_with_fn_arg (line 66) | fn fn_with_fn_arg(f: fn(i32) -> u32) -> usize { function fn_with_generic_static_trait_method (line 71) | fn fn_with_generic_static_trait_method() -> usize { function closure_to_fn_to_integer (line 76) | fn closure_to_fn_to_integer() { function fn_to_raw_ptr (line 83) | fn fn_to_raw_ptr() { function cast_fn_to_self (line 88) | fn cast_fn_to_self() { function cast_generic_to_concrete (line 93) | fn cast_generic_to_concrete() { function cast_closure_to_fn (line 98) | fn cast_closure_to_fn() { function main (line 104) | fn main() {} FILE: tests/ui/for_kv_map.rs function main (line 7) | fn main() { function wrongly_unmangled_macros (line 73) | fn wrongly_unmangled_macros() { FILE: tests/ui/forget_non_drop.rs function forget_generic (line 5) | fn forget_generic(t: T) { function main (line 10) | fn main() { FILE: tests/ui/format.rs type Foo (line 13) | struct Foo(pub String); function main (line 19) | fn main() { FILE: tests/ui/format_args.rs type Somewhere (line 15) | struct Somewhere; method to_string (line 19) | fn to_string(&self) -> String { type X (line 24) | struct X(u32); type Target (line 27) | type Target = u32; method deref (line 29) | fn deref(&self) -> &u32 { type Y (line 34) | struct Y<'a>(&'a X); type Target (line 37) | type Target = &'a X; method deref (line 39) | fn deref(&self) -> &Self::Target { type Z (line 44) | struct Z(u32); method fmt (line 55) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Target (line 47) | type Target = u32; method deref (line 49) | fn deref(&self) -> &u32 { function main (line 73) | fn main() { function issue8643 (line 147) | fn issue8643(vendor_id: usize, product_id: usize, name: &str) { type A (line 160) | struct A {} method fmt (line 163) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { function main (line 168) | fn main() { function print_substring (line 185) | fn print_substring(original: &str) { function main (line 191) | fn main() { type Foo (line 198) | struct Foo(Path); method fmt (line 200) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { FILE: tests/ui/format_args_unfixable.rs function main (line 22) | fn main() { function test2 (line 117) | fn test2() { function user_format (line 147) | fn user_format() { FILE: tests/ui/format_collect.rs function hex_encode (line 4) | fn hex_encode(bytes: &[u8]) -> String { function hex_encode_deep (line 10) | fn hex_encode_deep(bytes: &[u8]) -> String { function from_macro (line 22) | fn from_macro(bytes: &[u8]) -> String { function with_block (line 26) | fn with_block() -> String { function main (line 35) | fn main() {} FILE: tests/ui/format_push_string.rs function main (line 3) | fn main() { function main (line 27) | fn main(string: &mut String) { function main (line 36) | fn main(string: &mut String) { function main (line 47) | fn main(string: &mut String) { function main (line 56) | fn main(string: &mut String) { function foo (line 63) | fn foo(string: &mut String) { function bar (line 70) | fn bar(string: &mut String) { function main (line 81) | fn main(string: &mut String) { function main (line 90) | fn main(string: &mut String) { function main (line 101) | fn main(string: &mut String) { function main (line 110) | fn main(string: &mut String) { function foo (line 117) | fn foo(string: &mut String) { function bar (line 124) | fn bar(string: &mut String) { FILE: tests/ui/format_push_string_no_core.rs function foo (line 12) | fn foo(string: &mut String) { FILE: tests/ui/format_push_string_no_std.rs function foo (line 9) | fn foo(string: &mut String) { FILE: tests/ui/format_push_string_no_std_unfixable.rs function foo (line 10) | fn foo(string: &mut String) { FILE: tests/ui/format_push_string_unfixable.rs function u8vec_to_hex (line 5) | pub fn u8vec_to_hex(vector: &Vec, upper: bool) -> String { function other_cases (line 18) | pub fn other_cases() { function main (line 40) | fn main(string: &mut String) { function foo (line 48) | fn foo(string: &mut String) { function bar (line 53) | fn bar(string: &mut String) { function foo (line 61) | fn foo(string: &mut String) { function bar (line 66) | fn bar(string: &mut String) { function foo (line 76) | fn foo(string: &mut String) { function bar (line 83) | fn bar(string: &mut String) { function main (line 93) | fn main(string: &mut String) { function foo (line 101) | fn foo(string: &mut String) { function bar (line 106) | fn bar(string: &mut String) { function foo (line 114) | fn foo(string: &mut String) { function bar (line 119) | fn bar(string: &mut String) { function foo (line 129) | fn foo(string: &mut String) { function bar (line 136) | fn bar(string: &mut String) { function main (line 144) | fn main() {} FILE: tests/ui/formatting.rs function foo (line 5) | fn foo() -> bool { function main (line 10) | fn main() { FILE: tests/ui/four_forward_slashes.rs function a (line 13) | fn a() {} function b (line 18) | fn b() {} function c (line 24) | fn c() {} function d (line 26) | fn d() {} function g (line 32) | fn g() {} function h (line 36) | fn h() {} function i (line 38) | fn i() { FILE: tests/ui/four_forward_slashes_bare_cr.rs function main (line 5) | fn main() {} FILE: tests/ui/four_forward_slashes_first_line.rs function a (line 3) | fn a() {} FILE: tests/ui/from_iter_instead_of_collect.rs type Foo (line 7) | struct Foo(Vec); method from_iter (line 10) | fn from_iter>(_: T) -> Self { method from_iter (line 16) | fn from_iter>(iter: T) -> Self { function main (line 22) | fn main() { function issue14581 (line 77) | fn issue14581() { function test_implicit_generic_args (line 83) | fn test_implicit_generic_args(iter: impl Iterator +... FILE: tests/ui/from_over_into.rs type StringWrapper (line 7) | struct StringWrapper(String); method into (line 11) | fn into(self) -> StringWrapper { type SelfType (line 16) | struct SelfType(String); method into (line 20) | fn into(self) -> SelfType { type X (line 26) | struct X; constant FOO (line 29) | const FOO: &'static str = "a"; method into (line 36) | fn into(self) -> SelfKeywords { type SelfKeywords (line 32) | struct SelfKeywords; type ExplicitPaths (line 45) | struct ExplicitPaths(bool); function into (line 49) | fn into(mut self) -> bool { type A (line 58) | struct A(String); method from (line 61) | fn from(s: String) -> A { type PathInExpansion (line 66) | struct PathInExpansion; method into (line 70) | fn into(self) -> String { function msrv_1_40 (line 77) | fn msrv_1_40() { function msrv_1_41 (line 88) | fn msrv_1_41() { function issue_12138 (line 99) | fn issue_12138() { function issue_112502 (line 108) | fn issue_112502() { function main (line 119) | fn main() {} FILE: tests/ui/from_over_into_unfixable.rs type InMacro (line 3) | struct InMacro(String); method into (line 14) | fn into(self) -> InMacro { type WeirdUpperSelf (line 19) | struct WeirdUpperSelf; function into (line 24) | fn into(self) -> WeirdUpperSelf { type ContainsVal (line 30) | struct ContainsVal; method into (line 35) | fn into(self) -> u8 { type Lval (line 41) | pub struct Lval(T); type Rval (line 43) | pub struct Rval(T); function into (line 48) | fn into(self) -> Rval { function main (line 53) | fn main() {} FILE: tests/ui/from_raw_with_void_ptr.rs function main (line 8) | fn main() { FILE: tests/ui/from_str_radix_10.rs function from_str_radix (line 5) | pub fn from_str_radix(_: &str, _: u32) -> Result<(), std::num::ParseIntE... function from_str_radix (line 11) | fn from_str_radix(_: &str, _: u32) -> Result<(), std::num::ParseIntError> { type Test (line 16) | struct Test; type Output (line 19) | type Output = &'static str; method add (line 21) | fn add(self, _: Self) -> Self::Output { function main (line 26) | fn main() -> Result<(), Box> { function issue_12731 (line 68) | fn issue_12731() { function fix_str_ref_check (line 78) | fn fix_str_ref_check() { FILE: tests/ui/functions.rs function good (line 4) | fn good(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _si... function bad (line 6) | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six... function bad_multiline (line 10) | fn bad_multiline( function extern_fn (line 32) | extern "C" fn extern_fn( type Foo (line 44) | pub trait Foo { method good (line 45) | fn good(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _... method bad (line 46) | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _s... method ptr (line 49) | fn ptr(p: *const u8); method good (line 62) | fn good(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _... method bad (line 63) | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _s... method ptr (line 65) | fn ptr(p: *const u8) { type Bar (line 52) | pub struct Bar; method good_method (line 55) | fn good_method(_one: u32, _two: u32, _three: &str, _four: bool, _five:... method bad_method (line 56) | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: ... method private (line 108) | fn private(self, p: *const u8) { method public (line 112) | pub fn public(self, p: *const u8) { method public_ok (line 123) | pub fn public_ok(self, p: *const u8) { method public_unsafe (line 129) | pub unsafe fn public_unsafe(self, p: *const u8) { function private (line 79) | fn private(p: *const u8) { function public (line 83) | pub fn public(p: *const u8) { type Alias (line 94) | type Alias = *const u8; function type_alias (line 96) | pub fn type_alias(p: Alias) { function main (line 135) | fn main() {} FILE: tests/ui/functions_maxlines.rs function good_lines (line 4) | fn good_lines() { function bad_lines (line 60) | pub async unsafe extern "Rust" fn bad_lines() -> () { type Foo (line 167) | struct Foo; method bad_lines (line 170) | pub async unsafe extern "Rust" fn bad_lines() -> () { function main (line 278) | fn main() {} FILE: tests/ui/future_not_send.rs function private_future (line 8) | async fn private_future(rc: Rc<[u8]>, cell: &Cell) -> bool { function public_future (line 14) | pub async fn public_future(rc: Rc<[u8]>) { function public_send (line 20) | pub async fn public_send(arc: Arc<[u8]>) -> bool { function private_future2 (line 24) | async fn private_future2(rc: Rc<[u8]>, cell: &Cell) -> bool { function public_future2 (line 30) | pub async fn public_future2(rc: Rc<[u8]>) {} function public_send2 (line 33) | pub async fn public_send2(arc: Arc<[u8]>) -> bool { type Dummy (line 37) | struct Dummy { method private_future (line 42) | async fn private_future(&self) -> usize { method public_future (line 49) | pub async fn public_future(&self) { method public_send (line 56) | pub fn public_send(&self) -> impl std::future::Future { function generic_future (line 61) | async fn generic_future(t: T) -> T function maybe_send_generic_future (line 72) | async fn maybe_send_generic_future(t: T) -> T { function maybe_send_generic_future2 (line 77) | async fn maybe_send_generic_future2 Fut, Fut: Future>(f: F) { function generic_future_always_unsend (line 83) | async fn generic_future_always_unsend(_: Rc) { function generic_future_send (line 89) | async fn generic_future_send(t: T) function unclear_future (line 96) | async fn unclear_future(t: T) {} function main (line 98) | fn main() { FILE: tests/ui/get_first.rs type Bar (line 5) | struct Bar { method get (line 10) | fn get(&self, pos: usize) -> Option<&u32> { function main (line 15) | fn main() { FILE: tests/ui/get_last_with_len.rs function dont_use_last (line 6) | fn dont_use_last() { function indexing_two_from_end (line 12) | fn indexing_two_from_end() { function index_into_last (line 17) | fn index_into_last() { function use_last_with_different_vec_length (line 22) | fn use_last_with_different_vec_length() { type S (line 28) | struct S { function in_field (line 32) | fn in_field(s: &S) { function main (line 37) | fn main() { FILE: tests/ui/get_unwrap.rs type GetFalsePositive (line 13) | struct GetFalsePositive { method get (line 18) | fn get(&self, pos: usize) -> Option<&u32> { method get_mut (line 21) | fn get_mut(&mut self, pos: usize) -> Option<&mut u32> { function main (line 26) | fn main() { function reduced (line 100) | fn reduced() { function linidx (line 117) | fn linidx(row: usize, col: usize) -> usize { function main_ (line 121) | fn main_() { FILE: tests/ui/identity_op.rs constant ONE (line 16) | const ONE: i64 = 1; constant NEG_ONE (line 17) | const NEG_ONE: i64 = -1; constant ZERO (line 18) | const ZERO: i64 = 0; type A (line 20) | struct A(String); type Output (line 23) | type Output = A; method shl (line 24) | fn shl(mut self, other: i32) -> Self { type Length (line 30) | struct Length(u8); type Meter (line 31) | struct Meter; type Output (line 34) | type Output = Length; function mul (line 35) | fn mul(self, _: Meter) -> Length { function main (line 41) | fn main() { function decide (line 202) | pub fn decide(a: bool, b: bool) -> u32 { function issue_12050 (line 212) | fn issue_12050() { function issue_13470 (line 264) | fn issue_13470() { function issue_14932 (line 316) | fn issue_14932() { function issue_14932_2 (line 332) | fn issue_14932_2() -> usize { type Def (line 337) | trait Def { method def (line 338) | fn def() -> Self; method def (line 342) | fn def() -> Self { function issue_14932_3 (line 347) | fn issue_14932_3() { FILE: tests/ui/if_let_mutex.rs function do_stuff (line 13) | fn do_stuff(_: T) {} function if_let (line 15) | fn if_let() { function if_let_option (line 28) | fn if_let_option() { function if_let_different_mutex (line 40) | fn if_let_different_mutex() { function mutex_ref (line 51) | fn mutex_ref(mutex: &Mutex) { function multiple_mutexes (line 60) | fn multiple_mutexes(m1: &Mutex<()>, m2: &Mutex<()>) { function main (line 69) | fn main() {} FILE: tests/ui/if_not_else.rs function foo (line 3) | fn foo() -> bool { function bla (line 6) | fn bla() -> bool { function main (line 10) | fn main() { function with_comments (line 51) | fn with_comments() { function with_annotations (line 69) | fn with_annotations() { function issue15924 (line 80) | fn issue15924() { FILE: tests/ui/if_not_else_bittest.rs function show_permissions (line 5) | fn show_permissions(flags: u32) { function main (line 13) | fn main() {} FILE: tests/ui/if_same_then_else.rs type Foo (line 16) | struct Foo { function foo (line 20) | fn foo() -> bool { function if_same_then_else (line 24) | fn if_same_then_else() { function func (line 124) | fn func() { function f (line 136) | fn f(val: &[u8]) {} function do_not_lint (line 139) | fn do_not_lint() { function reproducer (line 196) | fn reproducer(x: bool) -> bool { function v2 (line 206) | fn v2(x: bool) -> bool { function do_lint (line 226) | fn do_lint(x: bool) -> bool { function main (line 237) | fn main() {} function issue16416 (line 239) | fn issue16416(x: bool, a: T, b: T) function issue16416_prim (line 272) | fn issue16416_prim(x: bool, a: u32, b: u32) { function bar (line 317) | fn bar(x: bool) { FILE: tests/ui/if_same_then_else2.rs function if_same_then_else2 (line 14) | fn if_same_then_else2() -> Result<&'static str, ()> { function main (line 158) | fn main() {} FILE: tests/ui/if_then_some_else_none.rs function main (line 4) | fn main() { function _msrv_1_49 (line 76) | fn _msrv_1_49() { function _msrv_1_50 (line 87) | fn _msrv_1_50() { function foo (line 98) | fn foo() -> bool { function bar (line 102) | fn bar() -> bool { function into_some (line 106) | fn into_some(v: T) -> Option { function into_none (line 110) | fn into_none() -> Option { function f (line 115) | fn f(b: bool, v: Option<()>) -> Option<()> { function issue11394 (line 125) | fn issue11394(b: bool, v: Result<(), ()>) -> Result<(), ()> { function issue13407 (line 137) | fn issue13407(s: &str) -> Option { function issue12103 (line 142) | const fn issue12103(x: u32) -> Option { type Range (line 148) | struct Range { function can_be_safely_rewrite (line 153) | fn can_be_safely_rewrite(rs: &[&Range]) -> Option> { function reborrow_as_ptr (line 162) | fn reborrow_as_ptr(i: *mut i32) -> Option<*const i32> { function reborrow_as_fn_ptr (line 172) | fn reborrow_as_fn_ptr(i: i32) { function reborrow_as_fn_unsafe (line 189) | fn reborrow_as_fn_unsafe(i: i32) { function issue15005 (line 215) | fn issue15005() { function statements_from_macro (line 241) | fn statements_from_macro() { function dont_lint_inside_macros (line 257) | fn dont_lint_inside_macros() { function maybe_error (line 267) | fn maybe_error() -> Result { function trying (line 271) | pub fn trying(b: bool) -> Result<(), &'static str> { function foo (line 279) | pub async fn foo() -> u32 { function bar (line 283) | pub async fn bar(cond: bool) -> Option { function issue16269 (line 288) | fn issue16269() -> Option { FILE: tests/ui/if_then_some_else_none_unfixable.rs type Foo (line 8) | pub struct Foo {} type Bar (line 9) | pub trait Bar {} function pointer_unsized_coercion (line 12) | fn pointer_unsized_coercion(i: u32) -> Option> { function reborrow_as_pin (line 21) | fn reborrow_as_pin(i: Pin<&mut i32>) { FILE: tests/ui/ifs_same_cond.rs function ifs_same_cond (line 4) | fn ifs_same_cond() { function issue10272 (line 56) | fn issue10272() { function main (line 84) | fn main() {} FILE: tests/ui/ignore_without_reason.rs function main (line 3) | fn main() {} function unignored_test (line 6) | fn unignored_test() {} function ignored_with_reason (line 10) | fn ignored_with_reason() {} function ignored_without_reason (line 14) | fn ignored_without_reason() {} FILE: tests/ui/ignored_unit_patterns.rs function foo (line 10) | fn foo() -> Result<(), ()> { function main (line 14) | fn main() { type B (line 37) | pub struct B; function moo (line 40) | pub fn moo(_: ()) { function test_unit_ref_1 (line 47) | fn test_unit_ref_1() { function test_unit_ref_2 (line 56) | fn test_unit_ref_2(v: &[(usize, ())]) { FILE: tests/ui/impl.rs type MyStruct (line 4) | struct MyStruct; method first (line 7) | fn first() {} method second (line 13) | fn second() {} method lifetimed (line 18) | fn lifetimed() {} method other (line 24) | fn other() {} method fmt (line 36) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { type MyStruct (line 22) | struct MyStruct; method first (line 7) | fn first() {} method second (line 13) | fn second() {} method lifetimed (line 18) | fn lifetimed() {} method other (line 24) | fn other() {} method fmt (line 36) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function third (line 30) | fn third() {} type WithArgs (line 42) | struct WithArgs(T); function f1 (line 44) | fn f1() {} function f2 (line 47) | fn f2() {} function f3 (line 52) | fn f3() {} type Allowed (line 57) | struct Allowed; type AllowedImpl (line 62) | struct AllowedImpl; type OneAllowedImpl (line 68) | struct OneAllowedImpl; type ExpectedFulfilled (line 76) | struct ExpectedFulfilled; type OneExpected (line 81) | struct OneExpected; type Lifetime (line 89) | struct Lifetime<'s> { type Generic (line 105) | struct Generic { type GenericWithBounds (line 116) | struct GenericWithBounds(T); function make_one (line 119) | fn make_one(_one: T) -> Self { function make_two (line 126) | fn make_two(_two: T) -> Self { type MultipleTraitBounds (line 131) | struct MultipleTraitBounds(T); function debug_fn (line 134) | fn debug_fn() {} function clone_fn (line 138) | fn clone_fn() {} function debug_clone_fn (line 142) | fn debug_clone_fn() {} function main (line 145) | fn main() {} FILE: tests/ui/impl_hash_with_borrow_str_and_bytes.rs type ExampleType (line 6) | struct ExampleType { method borrow (line 18) | fn borrow(&self) -> &str { method borrow (line 24) | fn borrow(&self) -> &[u8] { method hash (line 12) | fn hash(&self, state: &mut H) { type ShouldNotRaiseForHash (line 29) | struct ShouldNotRaiseForHash {} method hash (line 31) | fn hash(&self, state: &mut H) { type ShouldNotRaiseForBorrow (line 36) | struct ShouldNotRaiseForBorrow {} method borrow (line 38) | fn borrow(&self) -> &str { method borrow (line 43) | fn borrow(&self) -> &[u8] { type ShouldNotRaiseForHashBorrowStr (line 48) | struct ShouldNotRaiseForHashBorrowStr {} method borrow (line 55) | fn borrow(&self) -> &str { method hash (line 50) | fn hash(&self, state: &mut H) { type ShouldNotRaiseForHashBorrowSlice (line 60) | struct ShouldNotRaiseForHashBorrowSlice {} method borrow (line 68) | fn borrow(&self) -> &[u8] { method hash (line 62) | fn hash(&self, state: &mut H) { type Derived (line 75) | struct Derived { method borrow (line 80) | fn borrow(&self) -> &str { method borrow (line 86) | fn borrow(&self) -> &[u8] { type GenericExampleType (line 91) | struct GenericExampleType { method hash (line 96) | fn hash(&self, state: &mut H) { function borrow (line 102) | fn borrow(&self) -> &str { function borrow (line 108) | fn borrow(&self) -> &[u8] { type GenericExampleType2 (line 113) | struct GenericExampleType2 { method hash (line 121) | fn hash(&self, state: &mut H) { function borrow (line 127) | fn borrow(&self) -> &str { function borrow (line 133) | fn borrow(&self) -> &[u8] { FILE: tests/ui/impl_trait_in_params.rs type Trait (line 5) | pub trait Trait {} type AnotherTrait (line 6) | pub trait AnotherTrait {} function a (line 9) | pub fn a(_: impl Trait) {} function c (line 12) | pub fn c(_: C, _: impl Trait) {} function b (line 17) | pub fn b(_: B) {} function e (line 18) | fn e>(_: T) {} function d (line 19) | fn d(_: impl AnotherTrait) {} type Public (line 23) | pub trait Public { method t (line 25) | fn t(_: impl Trait); method tt (line 26) | fn tt(_: T) {} method t (line 47) | fn t(_: impl Trait) {} type Private (line 29) | trait Private { method t (line 31) | fn t(_: impl Trait); method tt (line 32) | fn tt(_: T) {} type S (line 35) | struct S; method h (line 37) | pub fn h(_: impl Trait) {} method i (line 39) | fn i(_: impl Trait) {} method j (line 40) | pub fn j(_: J) {} method k (line 41) | pub fn k>(_: K, _: impl AnotherTrait) {} function main (line 50) | fn main() {} FILE: tests/ui/implicit_clone.rs function return_owned_from_slice (line 7) | fn return_owned_from_slice(slice: &[u32]) -> Vec { function own_same (line 11) | pub fn own_same(v: T) -> T function own_same_from_ref (line 18) | pub fn own_same_from_ref(v: &T) -> T function own_different (line 25) | pub fn own_different(v: T) -> U type Kitten (line 33) | struct Kitten; method to_vec (line 36) | fn to_vec(self) -> Kitten { method borrow (line 41) | fn borrow(&self) -> &BorrowedKitten { type BorrowedKitten (line 47) | struct BorrowedKitten; type Owned (line 49) | type Owned = Kitten; method to_owned (line 50) | fn to_owned(&self) -> Kitten { function to_vec (line 57) | pub fn to_vec(v: &Vec) -> Vec { function main (line 62) | fn main() { FILE: tests/ui/implicit_hasher.rs type Foo (line 11) | pub trait Foo: Sized { method make (line 12) | fn make() -> (Self, Self); function make (line 17) | fn make() -> (Self, Self) { function make (line 27) | fn make() -> (Self, Self) { function make (line 33) | fn make() -> (Self, Self) { function make (line 39) | fn make() -> (Self, Self) { function make (line 44) | fn make() -> (Self, Self) { function make (line 51) | fn make() -> (Self, Self) { function make (line 57) | fn make() -> (Self, Self) { function make (line 63) | fn make() -> (Self, Self) { function make (line 68) | fn make() -> (Self, Self) { function map (line 73) | pub fn map(map: &mut HashMap) {} function set (line 76) | pub fn set(set: &mut HashSet) {} function election_vote (line 108) | pub async fn election_vote(_data: HashMap) {} function main (line 111) | fn main() {} function make (line 124) | fn make() -> (Self, Self) { function make (line 131) | fn make() -> (Self, Self) { FILE: tests/ui/implicit_return.rs function test_end_of_fn (line 9) | fn test_end_of_fn() -> bool { function test_if_block (line 19) | fn test_if_block() -> bool { function test_match (line 26) | fn test_match(x: bool) -> bool { function test_match_with_unreachable (line 35) | fn test_match_with_unreachable(x: bool) -> bool { function test_loop (line 42) | fn test_loop() -> bool { function test_loop_with_block (line 49) | fn test_loop_with_block() -> bool { function test_loop_with_nests (line 58) | fn test_loop_with_nests() -> bool { function test_loop_with_if_let (line 70) | fn test_loop_with_if_let() -> bool { function test_closure (line 78) | fn test_closure() { function test_panic (line 86) | fn test_panic() -> bool { function test_return_macro (line 90) | fn test_return_macro() -> String { function macro_branch_test (line 95) | fn macro_branch_test() -> bool { function loop_test (line 105) | fn loop_test() -> bool { function loop_macro_test (line 124) | fn loop_macro_test() -> bool { function divergent_test (line 136) | fn divergent_test() -> bool { function foo (line 144) | async fn foo() -> bool { function main (line 149) | fn main() {} function check_expect (line 151) | fn check_expect() -> bool { function desugared_closure_14446 (line 169) | fn desugared_closure_14446() { FILE: tests/ui/implicit_saturating_add.rs function main (line 4) | fn main() { FILE: tests/ui/implicit_saturating_sub.rs type Mock (line 7) | struct Mock; method eq (line 10) | fn eq(&self, _: &u32) -> bool { method sub_assign (line 16) | fn sub_assign(&mut self, _: u32) {} function main (line 19) | fn main() { function regression_13524 (line 295) | fn regression_13524(a: usize, b: usize, c: bool) -> usize { function with_side_effect (line 306) | fn with_side_effect(a: u64) -> u64 { function arbitrary_expression (line 311) | fn arbitrary_expression() { function issue16307 (line 330) | fn issue16307() { FILE: tests/ui/implied_bounds_in_impls.rs function normal_deref (line 8) | fn normal_deref(x: T) -> impl Deref { function deref_derefmut (line 13) | fn deref_derefmut(x: T) -> impl Deref + DerefMut {} type GenericTrait2 (line 19) | trait GenericTrait2 {} type GenericSubtrait (line 23) | trait GenericSubtrait: GenericTrait + GenericTrait2 {} function generics_implied (line 31) | fn generics_implied() -> impl GenericTrait + GenericSubtrait() -> impl GenericTrait + GenericTrait2... function generics_implied_multi2 (line 42) | fn generics_implied_multi2() -> impl GenericTrait + GenericTrai... function generics_different (line 51) | fn generics_different() -> impl GenericTrait + GenericSubtrait<(), ... function generics_same (line 54) | fn generics_same() -> impl GenericTrait + GenericSubtrait<(), i32, ... type SomeTrait (line 57) | trait SomeTrait { method f (line 59) | fn f() -> impl Deref + DerefMut; method f (line 72) | fn f() -> impl Deref + DerefMut { type SomeStruct (line 62) | struct SomeStruct; method f (line 65) | fn f() -> impl Deref + DerefMut { function default_generic_param1 (line 84) | fn default_generic_param1() -> impl PartialEq + PartialOrd + Debug {} function default_generic_param2 (line 86) | fn default_generic_param2() -> impl PartialOrd + PartialEq + Debug {} type Trait1 (line 90) | trait Trait1 {} type Trait2 (line 91) | trait Trait2: Trait1 {} function f (line 95) | fn f() -> impl Trait1<()> + Trait2 {} function my_iter (line 100) | fn my_iter() -> impl Iterator + DoubleEndedIterator { function f (line 106) | fn f() -> impl Copy + Clone { type Trait1 (line 111) | trait Trait1 { type U (line 115) | type U = i64; type Trait2 (line 117) | trait Trait2: Trait1 {} function f2 (line 121) | fn f2() -> impl Trait1 + Trait2 {} type Trait3 (line 124) | trait Trait3 { type Trait4 (line 128) | trait Trait4: Trait3 {} type X (line 130) | type X = i32; type Y (line 131) | type Y = i128; function f3 (line 137) | fn f3() -> impl Trait3 + Trait4 impl Deref + DerefMut; type Atpit (line 181) | trait Atpit { method define (line 183) | fn define() -> Self::Assoc; type Assoc (line 186) | type Assoc = impl Deref + DerefMut; method define (line 188) | fn define() -> Self::Assoc { type Tait (line 193) | type Tait = impl Deref + DerefMut; function define (line 196) | fn define() -> Tait { function main (line 200) | fn main() {} FILE: tests/ui/incompatible_msrv.rs function foo (line 14) | fn foo() { function bad_type_msrv (line 37) | fn bad_type_msrv() { function test (line 43) | fn test() { function issue12273 (line 48) | async fn issue12273(v: impl Future) { function core_special_treatment (line 54) | fn core_special_treatment(p: bool) { function lang_items (line 81) | fn lang_items() { function issue14212 (line 88) | fn issue14212() { function cstr_and_cstring_ok (line 94) | fn cstr_and_cstring_ok() { function local_msrv_change_suggestion (line 99) | fn local_msrv_change_suggestion() { function feature_enable_14425 (line 116) | fn feature_enable_14425(ptr: *const u8) -> usize { function non_fn_items (line 127) | fn non_fn_items() { function msrv_non_ok_in_const (line 133) | fn msrv_non_ok_in_const() { function msrv_ok_in_const (line 146) | fn msrv_ok_in_const() { function enum_variant_not_ok (line 158) | fn enum_variant_not_ok() { function enum_variant_ok (line 166) | fn enum_variant_ok() { function uncalled_len (line 172) | const fn uncalled_len() { function vec_macro (line 182) | fn vec_macro() { function main (line 188) | fn main() {} FILE: tests/ui/inconsistent_digit_grouping.rs function main (line 4) | fn main() { FILE: tests/ui/inconsistent_struct_constructor.rs type Foo (line 12) | struct Foo { type Bar (line 20) | struct Bar { function test (line 30) | fn test() { function test (line 59) | fn test() { function test (line 90) | fn test() { function main (line 100) | fn main() {} FILE: tests/ui/index_refutable_slice/if_let_slice_binding.rs type SomeEnum (line 4) | enum SomeEnum { function lintable_examples (line 11) | fn lintable_examples() { function slice_index_above_limit (line 76) | fn slice_index_above_limit() { function slice_is_used (line 85) | fn slice_is_used() { function check_slice_as_arg (line 105) | fn check_slice_as_arg() { function check_slice_in_struct (line 119) | fn check_slice_in_struct() { function mutable_slice_index (line 161) | fn mutable_slice_index() { function binding_with_sub_pattern (line 179) | fn binding_with_sub_pattern() { function main (line 186) | fn main() {} FILE: tests/ui/index_refutable_slice/slice_indexing_in_macro.rs function main (line 13) | fn main() { FILE: tests/ui/indexing_slicing_index.rs constant ARR (line 18) | const ARR: [i32; 2] = [1, 2]; constant REF (line 19) | const REF: &i32 = &ARR[idx()]; function idx (line 22) | const fn idx() -> usize { function idx4 (line 25) | const fn idx4() -> usize { function main (line 45) | fn main() { FILE: tests/ui/indexing_slicing_slice.rs type BoolMap (line 20) | struct BoolMap { type Output (line 26) | type Output = T; function index (line 27) | fn index(&self, index: bool) -> &T { type BoolMapWithGet (line 32) | struct BoolMapWithGet { type Output (line 38) | type Output = T; function index (line 39) | fn index(&self, index: bool) -> &Self::Output { function get (line 45) | fn get(&self, index: bool) -> Option<&T> { type S (line 54) | struct S(T); function get (line 56) | fn get() -> Option { type Output (line 61) | type Output = T; function index (line 62) | fn index(&self, _index: i32) -> &Self::Output { type Y (line 67) | struct Y(T); function get (line 69) | fn get() -> Option { type Output (line 74) | type Output = T; function index (line 75) | fn index(&self, _index: i32) -> &Self::Output { type Z (line 80) | struct Z(T); function get (line 82) | fn get() -> T2 { type Output (line 87) | type Output = T; function index (line 88) | fn index(&self, _index: i32) -> &Self::Output { function main (line 109) | fn main() { FILE: tests/ui/ineffective_open_options.rs function main (line 5) | fn main() { FILE: tests/ui/inefficient_to_string.rs function main (line 6) | fn main() { function sufficient_msrv (line 40) | fn sufficient_msrv() { FILE: tests/ui/infallible_destructuring_match.rs type SingleVariantEnum (line 5) | enum SingleVariantEnum { type TupleStruct (line 9) | struct TupleStruct(i32); type NonCopy (line 11) | struct NonCopy; type TupleStructWithNonCopy (line 12) | struct TupleStructWithNonCopy(NonCopy); type EmptyEnum (line 14) | enum EmptyEnum {} method match_on (line 128) | fn match_on(&self) -> ! { function infallible_destructuring_match_enum (line 24) | fn infallible_destructuring_match_enum() { function infallible_destructuring_match_struct (line 57) | fn infallible_destructuring_match_struct() { function infallible_destructuring_match_struct_with_noncopy (line 82) | fn infallible_destructuring_match_struct_with_noncopy() { function never_enum (line 102) | fn never_enum() { function main (line 135) | fn main() {} FILE: tests/ui/infallible_try_from.rs type MyStruct (line 6) | struct MyStruct(i32); type Error (line 10) | type Error = !; method try_from (line 11) | fn try_from(other: i8) -> Result { type Error (line 18) | type Error = Infallible; method try_from (line 19) | fn try_from(other: i16) -> Result { type Error (line 25) | type Error = i64; method try_from (line 26) | fn try_from(other: i64) -> Result { function main (line 31) | fn main() { FILE: tests/ui/infinite_iter.rs function square_is_lower_64 (line 4) | fn square_is_lower_64(x: &u32) -> bool { function infinite_iters (line 10) | fn infinite_iters() { function potential_infinite_iters (line 51) | fn potential_infinite_iters() { function main (line 90) | fn main() {} type C (line 95) | struct C; method from_iter (line 97) | fn from_iter>(iter: I) -> Self { function check_collect (line 102) | fn check_collect() { FILE: tests/ui/infinite_loops.rs function do_something (line 10) | fn do_something() {} function no_break (line 12) | fn no_break() { function all_inf (line 19) | fn all_inf() { function no_break_return_some_ty (line 33) | fn no_break_return_some_ty() -> Option { function no_break_never_ret (line 44) | fn no_break_never_ret() -> ! { function no_break_never_ret_noise (line 50) | fn no_break_never_ret_noise() { function has_direct_break_1 (line 60) | fn has_direct_break_1() { function has_direct_break_2 (line 67) | fn has_direct_break_2() { function has_indirect_break_1 (line 74) | fn has_indirect_break_1(cond: bool) { function has_indirect_break_2 (line 84) | fn has_indirect_break_2(stop_num: i32) { function break_inner_but_not_outer_1 (line 94) | fn break_inner_but_not_outer_1(cond: bool) { function break_inner_but_not_outer_2 (line 105) | fn break_inner_but_not_outer_2(cond: bool) { function break_outer_but_not_inner (line 118) | fn break_outer_but_not_inner() { function can_break_both_inner_and_outer (line 128) | fn can_break_both_inner_and_outer(cond: bool) { function break_wrong_loop (line 140) | fn break_wrong_loop(cond: bool) { function has_direct_return (line 157) | fn has_direct_return(cond: bool) { function ret_in_inner (line 165) | fn ret_in_inner(cond: bool) { type Foo (line 175) | enum Foo { function match_like (line 181) | fn match_like() { function ret_in_macro (line 274) | fn ret_in_macro(opt: Option) { function panic_like_macros_1 (line 290) | fn panic_like_macros_1() { function panic_like_macros_2 (line 297) | fn panic_like_macros_2() { function exit_directly (line 324) | fn exit_directly(cond: bool) { type MyTrait (line 332) | trait MyTrait { method problematic_trait_method (line 333) | fn problematic_trait_method() { method could_be_problematic (line 339) | fn could_be_problematic(); method could_be_problematic (line 343) | fn could_be_problematic() { function inf_loop_in_closure (line 351) | fn inf_loop_in_closure() { function inf_loop_in_res (line 366) | fn inf_loop_in_res() -> Result<(), i32> { function do_nothing (line 385) | fn do_nothing() {} function span_inside_fn (line 387) | fn span_inside_fn() { function continue_outer (line 395) | fn continue_outer() { function foo (line 438) | async fn foo() -> ! { function bar (line 444) | fn bar() { function foo (line 457) | async fn foo() { function bar (line 474) | fn bar() { function install_ticker (line 493) | fn install_ticker() { function spawn_async_block (line 505) | fn spawn_async_block() { function await_async_block (line 514) | fn await_async_block() { function good (line 525) | async fn good() -> ! { function bad (line 531) | async fn bad() { function let_then_else (line 544) | fn let_then_else(cond: bool) { function loop_in_one_if_branch (line 549) | fn loop_in_one_if_branch(cond: bool) { function loop_in_one_match_arm (line 556) | fn loop_in_one_match_arm(x: Option) { function loop_in_if_let_else (line 564) | fn loop_in_if_let_else(x: Option) { function all_branches_diverge_if (line 574) | fn all_branches_diverge_if(cond: bool) { function all_branches_diverge_match (line 584) | fn all_branches_diverge_match(x: Option) { function main (line 592) | fn main() {} FILE: tests/ui/inherent_to_string.rs type FalsePositive (line 5) | trait FalsePositive { method to_string (line 6) | fn to_string(&self) -> String; method to_string (line 63) | fn to_string(&self) -> String { type A (line 9) | struct A; method to_string (line 22) | fn to_string(&self) -> String { method to_str (line 29) | fn to_str(&self) -> String { type B (line 10) | struct B; method to_string (line 41) | fn to_string(&self) -> i32 { type C (line 11) | struct C; method to_string (line 48) | fn to_string(&self) -> String { method fmt (line 56) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { type D (line 12) | struct D; type E (line 13) | struct E; method to_string (line 70) | fn to_string() -> String { type F (line 14) | struct F; method to_string (line 77) | fn to_string(&self, _i: i32) -> String { type G (line 15) | struct G; method to_string (line 84) | fn to_string(&self) -> String { type H (line 16) | struct H; method to_string (line 92) | unsafe fn to_string(&self) -> String { type I (line 17) | struct I; method to_string (line 98) | extern "C" fn to_string(&self) -> String { type J (line 18) | struct J; method to_string (line 104) | unsafe extern "C" fn to_string(&self) -> String { function to_string (line 35) | fn to_string() -> String { function main (line 109) | fn main() { FILE: tests/ui/init_numbered_fields.rs type TupleStruct (line 4) | struct TupleStruct(u32, u32, u8); function main (line 13) | fn main() { FILE: tests/ui/inline_fn_without_body.rs type Foo (line 4) | trait Foo { method default_inline (line 7) | fn default_inline(); method always_inline (line 11) | fn always_inline(); method never_inline (line 15) | fn never_inline(); method has_body (line 18) | fn has_body() {} function main (line 21) | fn main() {} FILE: tests/ui/inspect_for_each.rs function main (line 3) | fn main() { function do_some (line 18) | fn do_some(a: usize) -> usize { function do_more (line 22) | fn do_more(a: usize) -> usize { FILE: tests/ui/int_plus_one.rs function main (line 3) | fn main() { FILE: tests/ui/integer_division.rs constant TWO (line 5) | const TWO: NonZeroU32 = NonZeroU32::new(2).unwrap(); function main (line 7) | fn main() { FILE: tests/ui/integer_division_remainder_used.rs type CustomOps (line 5) | struct CustomOps(pub i32); type Output (line 7) | type Output = Self; method div (line 9) | fn div(self, rhs: Self) -> Self::Output { type Output (line 15) | type Output = Self; method rem (line 17) | fn rem(self, rhs: Self) -> Self::Output { function main (line 23) | fn main() { FILE: tests/ui/into_iter_on_ref.rs type X (line 4) | struct X; function main (line 7) | fn main() { FILE: tests/ui/into_iter_without_iter.rs type S1 (line 8) | pub struct S1; type IntoIter (line 11) | type IntoIter = std::slice::Iter<'a, u8>; type Item (line 12) | type Item = &'a u8; method into_iter (line 13) | fn into_iter(self) -> Self::IntoIter { type IntoIter (line 19) | type IntoIter = std::slice::IterMut<'a, u8>; type Item (line 20) | type Item = &'a mut u8; method into_iter (line 21) | fn into_iter(self) -> Self::IntoIter { type S2 (line 26) | pub struct S2(T); type IntoIter (line 29) | type IntoIter = std::slice::Iter<'a, T>; type Item (line 30) | type Item = &'a T; method into_iter (line 31) | fn into_iter(self) -> Self::IntoIter { type IntoIter (line 37) | type IntoIter = std::slice::IterMut<'a, T>; type Item (line 38) | type Item = &'a mut T; method into_iter (line 39) | fn into_iter(self) -> Self::IntoIter { type S3 (line 45) | pub struct S3<'a, T>(&'a T); function iter (line 47) | fn iter(&self) -> std::slice::Iter<'a, T> { function iter_mut (line 50) | fn iter_mut(&mut self) -> std::slice::IterMut<'a, T> { type IntoIter (line 55) | type IntoIter = std::slice::Iter<'a, T>; type Item (line 56) | type Item = &'a T; method into_iter (line 57) | fn into_iter(self) -> Self::IntoIter { type IntoIter (line 62) | type IntoIter = std::slice::IterMut<'a, T>; type Item (line 63) | type Item = &'a mut T; method into_iter (line 64) | fn into_iter(self) -> Self::IntoIter { type S4 (line 70) | pub struct S4<'a, T>(&'a T); function iter (line 73) | fn iter(&self) -> std::slice::Iter<'a, T> { type IntoIter (line 79) | type IntoIter = std::slice::Iter<'a, T>; type Item (line 80) | type Item = &'a T; method into_iter (line 81) | fn into_iter(self) -> Self::IntoIter { type IntoIter (line 88) | type IntoIter = std::slice::IterMut<'a, T>; type Item (line 89) | type Item = &'a mut T; method into_iter (line 90) | fn into_iter(self) -> Self::IntoIter { type S5 (line 98) | pub struct S5; method iter (line 101) | fn iter(&self) -> std::slice::Iter<'static, u8> { type Alias (line 106) | pub type Alias = S5; type IntoIter (line 109) | type IntoIter = std::slice::Iter<'static, u8>; type Item (line 110) | type Item = &'static u8; method into_iter (line 111) | fn into_iter(self) -> Self::IntoIter { type Issue12037 (line 117) | pub struct Issue12037; type Allowed (line 144) | pub struct Allowed; type IntoIter (line 147) | type IntoIter = std::slice::Iter<'a, u8>; type Item (line 148) | type Item = &'a u8; method into_iter (line 149) | fn into_iter(self) -> Self::IntoIter { function main (line 154) | fn main() {} type Thing (line 162) | pub struct Thing(Vec); type Thing2 (line 163) | pub struct Thing2(Thing); type Target (line 166) | type Target = [u8]; method deref (line 168) | fn deref(&self) -> &Self::Target { type Target (line 174) | type Target = Thing; method deref (line 175) | fn deref(&self) -> &Self::Target { type Item (line 181) | type Item = &'a u8; type IntoIter (line 182) | type IntoIter = <&'a [u8] as IntoIterator>::IntoIter; method into_iter (line 184) | fn into_iter(self) -> Self::IntoIter { type MyIter (line 191) | pub struct MyIter<'a, T: 'a> { type Item (line 196) | type Item = &'a T; method next (line 198) | fn next(&mut self) -> Option { type MyContainer (line 203) | pub struct MyContainer { function iter (line 211) | pub fn iter(&self) -> MyIter<'_, T> { type Item (line 217) | type Item = &'a T; type IntoIter (line 219) | type IntoIter = MyIter<'a, T>; method into_iter (line 221) | fn into_iter(self) -> Self::IntoIter { FILE: tests/ui/invalid_upcast_comparisons.rs function mk_value (line 10) | fn mk_value() -> T { function main (line 14) | fn main() { function issue15662 (line 137) | fn issue15662() { FILE: tests/ui/io_other_error.rs type E (line 5) | struct E; method fmt (line 9) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function main (line 22) | fn main() { function short (line 44) | pub fn short() { function under_msrv (line 53) | fn under_msrv() { function issue14346 (line 57) | pub fn issue14346(x: i32) -> std::io::Error { FILE: tests/ui/ip_constant.rs function literal_test1 (line 6) | fn literal_test1() { function literal_test2 (line 22) | fn literal_test2() { function literal_test3 (line 37) | fn literal_test3() { function wrapped_in_parens (line 51) | fn wrapped_in_parens() { constant CONST_U8_0 (line 65) | const CONST_U8_0: u8 = 0; constant CONST_U8_1 (line 66) | const CONST_U8_1: u8 = 1; constant CONST_U8_127 (line 67) | const CONST_U8_127: u8 = 127; constant CONST_U8_255 (line 68) | const CONST_U8_255: u8 = 255; constant CONST_U16_0 (line 70) | const CONST_U16_0: u16 = 0; constant CONST_U16_1 (line 71) | const CONST_U16_1: u16 = 1; function const_test1 (line 73) | fn const_test1() { function const_test2 (line 103) | fn const_test2() { function macro_test (line 121) | fn macro_test() { function main (line 130) | fn main() { FILE: tests/ui/ip_constant_from_external.rs function external_constant_test (line 5) | fn external_constant_test() { function main (line 10) | fn main() {} FILE: tests/ui/is_digit_ascii_radix.rs constant TEN (line 3) | const TEN: u32 = 10; function main (line 5) | fn main() { FILE: tests/ui/issue-111399.rs type Struct (line 8) | pub struct Struct; type Ty (line 11) | pub type Ty = usize; constant CT (line 12) | pub const CT: Self::Ty = 42; function main (line 15) | fn main() {} FILE: tests/ui/issue-3145.rs function main (line 1) | fn main() { FILE: tests/ui/issue-7447.rs function byte_view (line 6) | fn byte_view<'a>(s: &'a ByteView<'_>) -> BTreeMap<&'a str, ByteView<'a>> { function group_entries (line 10) | fn group_entries(s: &()) -> BTreeMap, Vec>> { type Mmap (line 14) | struct Mmap; type ByteViewBacking (line 16) | enum ByteViewBacking<'a> { type ByteView (line 21) | pub struct ByteView<'a> { function main (line 25) | fn main() { FILE: tests/ui/issue_2356.rs type Foo (line 6) | struct Foo; method foo1 (line 9) | fn foo1>(mut it: I) { method foo2 (line 15) | fn foo2>(mut it: I) { function main (line 23) | fn main() { FILE: tests/ui/issue_4266.rs function sink1 (line 3) | async fn sink1<'a>(_: &'a str) {} function sink1_elided (line 6) | async fn sink1_elided(_: &str) {} function one_to_one (line 9) | async fn one_to_one<'a>(s: &'a str) -> &'a str { function one_to_one_elided (line 16) | async fn one_to_one_elided(s: &str) -> &str { function all_to_one (line 21) | async fn all_to_one<'a>(a: &'a str, _b: &'a str) -> &'a str { type Foo (line 28) | struct Foo; method new (line 31) | pub async fn new(&mut self) -> Self { function print (line 40) | async fn print(s: &str) { function main (line 44) | fn main() {} FILE: tests/ui/items_after_statement.rs function ok (line 4) | fn ok() { function last (line 11) | fn last() { function main (line 20) | fn main() { function mac (line 30) | fn mac() { function semicolon (line 47) | fn semicolon() { function item_from_macro (line 60) | fn item_from_macro() { function allow_attribute (line 71) | fn allow_attribute() { FILE: tests/ui/items_after_test_module/after_proc_macros.rs function f (line 12) | fn f() {} FILE: tests/ui/items_after_test_module/auxiliary/submodule.rs function in_submodule (line 4) | fn in_submodule() {} FILE: tests/ui/items_after_test_module/auxiliary/tests.rs function main (line 1) | fn main() {} FILE: tests/ui/items_after_test_module/imported_module.rs function main (line 8) | fn main() {} function should_not_lint (line 10) | fn should_not_lint() {} function should_not_lint2 (line 16) | fn should_not_lint2() {} constant SHOULD_ALSO_NOT_LINT (line 18) | const SHOULD_ALSO_NOT_LINT: usize = 1; FILE: tests/ui/items_after_test_module/in_submodule.rs function t (line 8) | fn t() {} FILE: tests/ui/items_after_test_module/multiple_modules.rs function f (line 6) | fn f() {} function g (line 12) | fn g() {} FILE: tests/ui/items_after_test_module/root_module.rs function main (line 3) | fn main() {} function should_not_lint (line 5) | fn should_not_lint() {} function hi (line 14) | fn hi() {} function should_lint (line 17) | fn should_lint() {} constant SHOULD_ALSO_LINT (line 19) | const SHOULD_ALSO_LINT: usize = 1; FILE: tests/ui/iter_cloned_collect.rs function main (line 6) | fn main() { type Example (line 42) | struct Example(u16); function from_iter (line 45) | fn from_iter(iter: T) -> Self function foo (line 53) | fn foo() { FILE: tests/ui/iter_count.rs type HasIter (line 20) | struct HasIter; method iter (line 23) | fn iter(self) -> IteratorFalsePositives { method iter_mut (line 27) | fn iter_mut(self) -> IteratorFalsePositives { method into_iter (line 31) | fn into_iter(self) -> IteratorFalsePositives { function main (line 37) | fn main() { FILE: tests/ui/iter_filter_is_ok.rs function main (line 9) | fn main() { function avoid_linting_when_filter_has_side_effects (line 63) | fn avoid_linting_when_filter_has_side_effects() { function avoid_linting_when_commented (line 72) | fn avoid_linting_when_commented() { function ice_12058 (line 82) | fn ice_12058() { function avoid_linting_map (line 91) | fn avoid_linting_map() { function avoid_false_positive_due_to_is_ok_and_iterator_impl (line 102) | fn avoid_false_positive_due_to_is_ok_and_iterator_impl() { function avoid_false_positive_due_to_is_ok_and_into_iterator_impl (line 126) | fn avoid_false_positive_due_to_is_ok_and_into_iterator_impl() { function avoid_fp_for_trivial (line 143) | fn avoid_fp_for_trivial() { function avoid_false_positive_due_to_method_name (line 150) | fn avoid_false_positive_due_to_method_name() { function avoid_fp_due_to_trait_type (line 159) | fn avoid_fp_due_to_trait_type() { function avoid_fp_with_call_to_outside_var (line 172) | fn avoid_fp_with_call_to_outside_var() { function avoid_fp_with_call_to_outside_var_mix_match_types (line 191) | fn avoid_fp_with_call_to_outside_var_mix_match_types() { FILE: tests/ui/iter_filter_is_some.rs function main (line 13) | fn main() { function avoid_linting_when_filter_has_side_effects (line 61) | fn avoid_linting_when_filter_has_side_effects() { function avoid_linting_when_commented (line 70) | fn avoid_linting_when_commented() { function ice_12058 (line 80) | fn ice_12058() { function avoid_linting_map (line 89) | fn avoid_linting_map() { function avoid_false_positive_due_to_is_some_and_iterator_impl (line 103) | fn avoid_false_positive_due_to_is_some_and_iterator_impl() { function avoid_false_positive_due_to_is_some_and_into_iterator_impl (line 127) | fn avoid_false_positive_due_to_is_some_and_into_iterator_impl() { function avoid_unpack_fp (line 144) | fn avoid_unpack_fp() { function avoid_fp_for_external (line 160) | fn avoid_fp_for_external() { function avoid_fp_for_trivial (line 174) | fn avoid_fp_for_trivial() { function avoid_false_positive_due_to_method_name (line 186) | fn avoid_false_positive_due_to_method_name() { function avoid_fp_due_to_trait_type (line 195) | fn avoid_fp_due_to_trait_type() { function avoid_fp_with_call_to_outside_var (line 208) | fn avoid_fp_with_call_to_outside_var() { function avoid_fp_with_call_to_outside_var_mix_match_types (line 227) | fn avoid_fp_with_call_to_outside_var_mix_match_types() { FILE: tests/ui/iter_kv_map.rs function main (line 12) | fn main() { function msrv_1_53 (line 140) | fn msrv_1_53() { function msrv_1_54 (line 162) | fn msrv_1_54() { function issue14595 (line 188) | fn issue14595() { function issue16340 (line 203) | fn issue16340() { function issue16515 (line 209) | fn issue16515() { FILE: tests/ui/iter_next_loop.rs function main (line 4) | fn main() { function issue14630 (line 19) | fn issue14630() { FILE: tests/ui/iter_next_slice.rs function main (line 4) | fn main() { FILE: tests/ui/iter_not_returning_iterator.rs type Data (line 3) | struct Data { method iter (line 12) | fn iter(&self) -> Counter { method iter_mut (line 16) | fn iter_mut(&self) -> Counter { type Counter (line 7) | struct Counter { type Data2 (line 21) | struct Data2 { method iter (line 30) | fn iter(&self) -> Counter2 { method iter_mut (line 36) | fn iter_mut(&self) -> Counter2 { type Counter2 (line 25) | struct Counter2 { type Item (line 44) | type Item = u32; method next (line 46) | fn next(&mut self) -> Option { type Iter (line 52) | trait Iter { method iter (line 54) | fn iter(&self) -> Self::I; type I (line 59) | type I = core::slice::Iter<'static, ()>; method iter (line 60) | fn iter(&self) -> Self::I { type S (line 65) | struct S; method iter (line 67) | fn iter(&self) -> <() as Iter>::I { type S2 (line 72) | struct S2([u8]); method iter (line 74) | fn iter(&self) -> core::slice::Iter<'_, u8> { function main (line 79) | fn main() {} FILE: tests/ui/iter_nth.rs type HasIter (line 14) | struct HasIter; method iter (line 17) | fn iter(self) -> IteratorFalsePositives { method iter_mut (line 21) | fn iter_mut(self) -> IteratorFalsePositives { function iter_nth (line 27) | fn iter_nth() { function main (line 68) | fn main() {} FILE: tests/ui/iter_nth_zero.rs type Foo (line 4) | struct Foo; method nth (line 7) | fn nth(&self, index: usize) -> usize { function main (line 12) | fn main() { type Issue9820 (line 34) | struct Issue9820; type Item (line 37) | type Item = (); method nth (line 39) | fn nth(&mut self, _n: usize) -> Option { method next (line 44) | fn next(&mut self) -> Option { FILE: tests/ui/iter_on_empty_collections.rs function array (line 4) | fn array() { type CustomOption (line 68) | enum CustomOption { method iter (line 74) | fn iter(&self) {} method iter_mut (line 75) | fn iter_mut(&mut self) {} method into_iter (line 76) | fn into_iter(self) {} function custom_option (line 80) | pub fn custom_option() { function main (line 87) | fn main() {} FILE: tests/ui/iter_on_single_items.rs function array (line 4) | fn array() { type CustomOption (line 45) | enum CustomOption { method iter (line 51) | fn iter(&self) {} method iter_mut (line 52) | fn iter_mut(&mut self) {} method into_iter (line 53) | fn into_iter(self) {} function custom_option (line 57) | pub fn custom_option() { function main (line 64) | fn main() {} function takes_into_iter (line 68) | fn takes_into_iter(_: impl IntoIterator) {} function let_stmt (line 70) | fn let_stmt() { function fn_ptr (line 79) | fn fn_ptr() { FILE: tests/ui/iter_out_of_bounds.rs function opaque_empty_iter (line 4) | fn opaque_empty_iter() -> impl Iterator { function main (line 8) | fn main() { FILE: tests/ui/iter_over_hash_type.rs type FxBuildHasher (line 9) | type FxBuildHasher = std::collections::hash_map::RandomState; type FxHashMap (line 10) | type FxHashMap = HashMap; type FxHashSet (line 11) | type FxHashSet = HashSet; function main (line 13) | fn main() { FILE: tests/ui/iter_overeager_cloned.rs function main (line 9) | fn main() { function cloned_flatten (line 103) | fn cloned_flatten(x: Option<&Option>) -> Option { type Foo (line 109) | struct Foo; method do_async (line 112) | async fn do_async(&self) {} function async_move_map (line 115) | fn async_move_map() -> Vec> { function async_move_for_each (line 125) | fn async_move_for_each() { function move_closure (line 134) | fn move_closure() { function async_move_not_capturing_param (line 141) | fn async_move_not_capturing_param() { function move_closure_not_capturing_param (line 152) | fn move_closure_not_capturing_param() { FILE: tests/ui/iter_skip_next.rs function main (line 15) | fn main() { FILE: tests/ui/iter_skip_next_unfixable.rs function main (line 5) | fn main() { FILE: tests/ui/iter_skip_zero.rs function main (line 10) | fn main() { FILE: tests/ui/iter_with_drain.rs function full (line 8) | fn full() { function closed (line 21) | fn closed() { function should_not_help (line 34) | fn should_not_help() { function _closed_range (line 47) | fn _closed_range(mut x: Vec) { function _with_mut (line 51) | fn _with_mut(x: &mut Vec, y: &mut VecDeque) { type Bomb (line 57) | struct Bomb { function should_not_help_0 (line 61) | fn should_not_help_0(bomb: &mut Bomb) { function main (line 65) | fn main() {} FILE: tests/ui/iter_without_into_iter.rs type S1 (line 7) | pub struct S1; method iter (line 9) | pub fn iter(&self) -> std::slice::Iter<'_, u8> { method iter_mut (line 13) | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, u8> { type S2 (line 19) | pub struct S2; method iter (line 21) | pub fn iter(&self) -> impl Iterator { type S3 (line 27) | pub struct S3<'a>(&'a mut [u8]); function iter (line 29) | pub fn iter(&self) -> std::slice::Iter<'_, u8> { function iter_mut (line 33) | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, u8> { type S4 (line 40) | pub struct S4; method iter (line 42) | pub fn iter(self) -> std::slice::Iter<'static, u8> { type S5 (line 47) | pub struct S5; method iter (line 49) | pub async fn iter(&self) -> std::slice::Iter<'static, u8> { type S6 (line 54) | pub struct S6; method iter (line 56) | pub fn iter(&self, _additional_param: ()) -> std::slice::Iter<'static,... type S7 (line 61) | pub struct S7(T); function iter (line 63) | pub fn iter(&self) -> std::slice::Iter<'static, (T, U)> { type S8 (line 68) | pub struct S8(T); function iter (line 70) | pub fn iter(&self) -> std::slice::Iter<'static, T> { type S9 (line 77) | pub struct S9(T); function iter (line 79) | pub fn iter(&self) -> std::slice::Iter<'_, T> { function iter_mut (line 83) | pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, T> { type S10 (line 89) | pub struct S10(T); function iter (line 91) | pub fn iter(&self) -> std::slice::Iter<'_, T> { type Item (line 98) | type Item = &'a String; type IntoIter (line 99) | type IntoIter = std::slice::Iter<'a, String>; method into_iter (line 100) | fn into_iter(self) -> Self::IntoIter { type S11 (line 105) | pub struct S11(T); function iter_mut (line 107) | pub fn iter_mut(&self) -> std::slice::IterMut<'_, T> { type Item (line 113) | type Item = &'a mut String; type IntoIter (line 114) | type IntoIter = std::slice::IterMut<'a, String>; method into_iter (line 115) | fn into_iter(self) -> Self::IntoIter { type S12 (line 121) | struct S12; method iter (line 123) | fn iter(&self) -> std::slice::Iter<'_, u8> { type Issue12037 (line 128) | pub struct Issue12037; type Allowed (line 150) | pub struct Allowed; method iter (line 153) | pub fn iter(&self) -> std::slice::Iter<'_, u8> { function main (line 158) | fn main() {} FILE: tests/ui/iterator_step_by_zero.rs function main (line 3) | fn main() { type NotIterator (line 36) | struct NotIterator; method step_by (line 38) | fn step_by(&self, _: u32) {} FILE: tests/ui/join_absolute_paths.rs function main (line 6) | fn main() { FILE: tests/ui/large_const_arrays.rs type S (line 5) | pub struct S { constant FOO_PUB_CRATE (line 10) | pub(crate) const FOO_PUB_CRATE: [u32; 1_000_000] = [0u32; 1_000_000]; constant FOO_PUB (line 12) | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000]; constant FOO_COMPUTED (line 14) | const FOO_COMPUTED: [u32; 1_000 * 100] = [0u32; 1_000 * 100]; constant FOO (line 16) | const FOO: [u32; 1_000_000] = [0u32; 1_000_000]; constant G_FOO_PUB_CRATE (line 20) | pub(crate) const G_FOO_PUB_CRATE: [u32; 250] = [0u32; 250]; constant G_FOO_PUB (line 21) | pub const G_FOO_PUB: [u32; 250] = [0u32; 250]; constant G_FOO_COMPUTED (line 22) | const G_FOO_COMPUTED: [u32; 25 * 10] = [0u32; 25 * 10]; constant G_FOO (line 23) | const G_FOO: [u32; 250] = [0u32; 250]; function main (line 25) | fn main() { FILE: tests/ui/large_digit_groups.rs function main (line 3) | fn main() { FILE: tests/ui/large_enum_variant.rs type LargeEnum (line 13) | enum LargeEnum { type GenericEnumOk (line 19) | enum GenericEnumOk { type GenericEnum2 (line 24) | enum GenericEnum2 { type SomeTrait (line 30) | trait SomeTrait { type LargeEnumGeneric (line 34) | enum LargeEnumGeneric { type LargeEnum2 (line 38) | enum LargeEnum2 { type LargeEnum3 (line 44) | enum LargeEnum3 { type LargeEnum4 (line 51) | enum LargeEnum4 { type LargeEnum5 (line 57) | enum LargeEnum5 { type LargeEnumOk (line 63) | enum LargeEnumOk { type LargeEnum6 (line 68) | enum LargeEnum6 { type LargeEnum7 (line 74) | enum LargeEnum7 { type LargeEnum8 (line 81) | enum LargeEnum8 { type LargeEnum9 (line 87) | enum LargeEnum9 { type LargeEnumOk2 (line 93) | enum LargeEnumOk2 { type LargeEnumOk3 (line 99) | enum LargeEnumOk3 { type Struct (line 105) | struct Struct { type Struct2 (line 110) | struct Struct2 { type CopyableLargeEnum (line 115) | enum CopyableLargeEnum { type ManuallyCopyLargeEnum (line 121) | enum ManuallyCopyLargeEnum { method clone (line 128) | fn clone(&self) -> Self { type SomeGenericPossiblyCopyEnum (line 135) | enum SomeGenericPossiblyCopyEnum { method clone (line 142) | fn clone(&self) -> Self { type LargeEnumWithGenerics (line 149) | enum LargeEnumWithGenerics { type Foo (line 155) | struct Foo { type WithGenerics (line 159) | enum WithGenerics { type PossiblyLargeEnumWithConst (line 165) | enum PossiblyLargeEnumWithConst { type LargeEnumOfConst (line 170) | enum LargeEnumOfConst { type WithRecursion (line 176) | enum WithRecursion { type WithRecursionAndGenerics (line 182) | enum WithRecursionAndGenerics { type LargeEnumWithGenericsAndRecursive (line 187) | enum LargeEnumWithGenericsAndRecursive { function main (line 193) | fn main() { type Bytes (line 205) | pub struct Bytes { type Vtable (line 212) | pub(crate) struct Vtable { type NoWarnings (line 223) | enum NoWarnings { type MakesClippyAngry (line 229) | enum MakesClippyAngry { type PublishWithBytes (line 235) | struct PublishWithBytes { type PublishWithVec (line 250) | struct PublishWithVec { FILE: tests/ui/large_enum_variant_no_std.rs type Myenum (line 4) | enum Myenum { FILE: tests/ui/large_futures.rs function big_fut (line 9) | async fn big_fut(_arg: [u8; 1024 * 16]) {} function wait (line 11) | async fn wait() { function calls_fut (line 19) | async fn calls_fut(fut: impl std::future::Future) { function test (line 33) | pub async fn test() { function foo (line 42) | pub fn foo() -> impl std::future::Future { function lines (line 50) | pub async fn lines() { function macro_expn (line 61) | pub async fn macro_expn() { function main (line 75) | fn main() {} FILE: tests/ui/large_stack_arrays.rs type S (line 8) | struct S { type E (line 13) | enum E { constant STATIC_PROMOTED_LARGE_ARRAY (line 18) | const STATIC_PROMOTED_LARGE_ARRAY: &[u8; 512001] = &[0; 512001]; constant STATIC_PROMOTED_LARGE_ARRAY_WITH_NESTED (line 19) | const STATIC_PROMOTED_LARGE_ARRAY_WITH_NESTED: &[u8; 512001] = { function issue_10741 (line 30) | fn issue_10741() { function main (line 45) | fn main() { function issue_12586 (line 69) | fn issue_12586() { FILE: tests/ui/large_stack_frames.rs function generic (line 8) | fn generic() { type ArrayDefault (line 13) | struct ArrayDefault([u8; N]); method default (line 16) | fn default() -> Self { function many_small_arrays (line 21) | fn many_small_arrays() { function large_return_value (line 32) | fn large_return_value() -> ArrayDefault<1_000_000> { function large_fn_arg (line 38) | fn large_fn_arg(x: ArrayDefault<1_000_000>) { function has_large_closure (line 44) | fn has_large_closure() { function main (line 51) | fn main() { FILE: tests/ui/large_types_passed_by_value.rs type Large (line 6) | pub struct Large([u8; 2048]); type LargeAndCopy (line 9) | pub struct LargeAndCopy([u8; 2048]); method self_is_ok (line 25) | fn self_is_ok(self) {} method other_is_not_ok (line 26) | fn other_is_not_ok(self, other: LargeAndCopy) {} method unless_other_can_change (line 28) | fn unless_other_can_change(self, mut other: LargeAndCopy) {} method or_were_in_public (line 29) | pub fn or_were_in_public(self, other: LargeAndCopy) {} type Small (line 11) | pub struct Small([u8; 4]); type SmallAndCopy (line 14) | pub struct SmallAndCopy([u8; 4]); function small (line 16) | fn small(a: Small, b: SmallAndCopy) {} function not_copy (line 17) | fn not_copy(a: Large) {} function by_ref (line 18) | fn by_ref(a: &Large, b: &LargeAndCopy) {} function mutable (line 19) | fn mutable(mut a: LargeAndCopy) {} function bad (line 20) | fn bad(a: LargeAndCopy) {} function bad_but_pub (line 22) | pub fn bad_but_pub(a: LargeAndCopy) {} type LargeTypeDevourer (line 32) | trait LargeTypeDevourer { method devoure_array (line 33) | fn devoure_array(&self, array: [u8; 6666]); method devoure_tuple (line 35) | fn devoure_tuple(&self, tup: (LargeAndCopy, LargeAndCopy)); method devoure_array_and_tuple_wow (line 37) | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAn... method devoure_array (line 48) | fn devoure_array(&self, array: [u8; 6666]) { method devoure_tuple (line 51) | fn devoure_tuple(&self, tup: (LargeAndCopy, LargeAndCopy)) { method devoure_array_and_tuple_wow (line 54) | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAn... type PubLargeTypeDevourer (line 42) | pub trait PubLargeTypeDevourer { method devoure_array_in_public (line 43) | fn devoure_array_in_public(&self, array: [u8; 6666]); type S (line 46) | struct S; function foo_always (line 60) | fn foo_always(x: LargeAndCopy) { function foo_never (line 64) | fn foo_never(x: LargeAndCopy) { function foo (line 69) | fn foo(x: LargeAndCopy) { function main (line 74) | fn main() {} FILE: tests/ui/legacy_numeric_constants.rs function main (line 31) | fn main() { function ext (line 110) | fn ext() { function allow (line 121) | fn allow() { function msrv_too_low (line 131) | fn msrv_too_low() { function msrv_juust_right (line 137) | fn msrv_juust_right() { FILE: tests/ui/legacy_numeric_constants_unfixable.rs function main (line 29) | fn main() { function ext (line 60) | fn ext() { function msrv_too_low (line 71) | fn msrv_too_low() { function msrv_juust_right (line 76) | fn msrv_juust_right() { function issue15805 (line 88) | fn issue15805() { FILE: tests/ui/len_without_is_empty.rs type PubOne (line 4) | pub struct PubOne; method len (line 7) | pub fn len(&self) -> isize { method irrelevant (line 16) | pub fn irrelevant(&self) -> bool { type PubAllowed (line 22) | pub struct PubAllowed; method len (line 26) | pub fn len(&self) -> isize { method irrelevant (line 34) | pub fn irrelevant(&self) -> bool { type PubAllowedFn (line 39) | pub struct PubAllowedFn; method len (line 43) | pub fn len(&self) -> isize { type PubAllowedStruct (line 49) | pub struct PubAllowedStruct; method len (line 52) | pub fn len(&self) -> isize { type PubTraitsToo (line 57) | pub trait PubTraitsToo { method len (line 60) | fn len(&self) -> isize; method len (line 64) | fn len(&self) -> isize { type HasIsEmpty (line 69) | pub struct HasIsEmpty; method len (line 72) | pub fn len(&self) -> isize { method is_empty (line 78) | fn is_empty(&self) -> bool { type HasWrongIsEmpty (line 83) | pub struct HasWrongIsEmpty; method len (line 86) | pub fn len(&self) -> isize { method is_empty (line 92) | pub fn is_empty(&self, x: u32) -> bool { type MismatchedSelf (line 97) | pub struct MismatchedSelf; method len (line 100) | pub fn len(self) -> isize { method is_empty (line 106) | pub fn is_empty(&self) -> bool { type NotPubOne (line 111) | struct NotPubOne; method len (line 114) | pub fn len(&self) -> isize { type One (line 120) | struct One; method len (line 123) | fn len(&self) -> isize { type TraitsToo (line 129) | trait TraitsToo { method len (line 130) | fn len(&self) -> isize; method len (line 135) | fn len(&self) -> isize { type HasPrivateIsEmpty (line 140) | struct HasPrivateIsEmpty; method len (line 143) | pub fn len(&self) -> isize { method is_empty (line 147) | fn is_empty(&self) -> bool { type Wither (line 152) | struct Wither; type WithIsEmpty (line 154) | pub trait WithIsEmpty { method len (line 155) | fn len(&self) -> isize; method is_empty (line 156) | fn is_empty(&self) -> bool; method len (line 160) | fn len(&self) -> isize { method is_empty (line 164) | fn is_empty(&self) -> bool { type Empty (line 169) | pub trait Empty { method is_empty (line 170) | fn is_empty(&self) -> bool; type InheritingEmpty (line 173) | pub trait InheritingEmpty: Empty { method len (line 175) | fn len(&self) -> isize; type Foo (line 179) | pub trait Foo: Sized {} type DependsOnFoo (line 181) | pub trait DependsOnFoo: Foo { method len (line 184) | fn len(&mut self) -> usize; type MultipleImpls (line 188) | pub struct MultipleImpls; method len (line 191) | pub fn len(&self) -> usize { method is_empty (line 197) | pub fn is_empty(&self) -> bool { type OptionalLen (line 203) | pub struct OptionalLen; method len (line 206) | pub fn len(&self) -> Option { method is_empty (line 210) | pub fn is_empty(&self) -> Option { type OptionalLen2 (line 215) | pub struct OptionalLen2; method len (line 217) | pub fn len(&self) -> Option { method is_empty (line 221) | pub fn is_empty(&self) -> bool { type OptionalLen3 (line 226) | pub struct OptionalLen3; method len (line 228) | pub fn len(&self) -> usize { method is_empty (line 235) | pub fn is_empty(&self) -> Option { type ResultLen (line 240) | pub struct ResultLen; method len (line 242) | pub fn len(&self) -> Result { method is_empty (line 250) | pub fn is_empty(&self) -> Option { type ResultLen2 (line 255) | pub struct ResultLen2; method len (line 257) | pub fn len(&self) -> Result { method is_empty (line 263) | pub fn is_empty(&self) -> Result { type ResultLen3 (line 270) | pub struct ResultLen3; method len (line 272) | pub fn len(&self) -> Result { method is_empty (line 279) | pub fn is_empty(&self) -> bool { type OddLenSig (line 284) | pub struct OddLenSig; method len (line 287) | pub fn len(&self) -> bool { type AsyncLen (line 293) | pub struct AsyncLen; method async_task (line 295) | async fn async_task(&self) -> bool { method len (line 299) | pub async fn len(&self) -> usize { method is_empty (line 303) | pub async fn is_empty(&self) -> bool { type AsyncLenWithoutIsEmpty (line 309) | pub struct AsyncLenWithoutIsEmpty; method async_task (line 311) | pub async fn async_task(&self) -> bool { method len (line 315) | pub async fn len(&self) -> usize { type AsyncOptionLenWithoutIsEmpty (line 323) | pub struct AsyncOptionLenWithoutIsEmpty; method async_task (line 325) | async fn async_task(&self) -> bool { method len (line 329) | pub async fn len(&self) -> Option { type AsyncOptionLenNonIntegral (line 337) | pub struct AsyncOptionLenNonIntegral; method len (line 340) | pub async fn len(&self) -> Option { type AsyncResultLenWithoutIsEmpty (line 346) | pub struct AsyncResultLenWithoutIsEmpty; method async_task (line 348) | async fn async_task(&self) -> bool { method len (line 352) | pub async fn len(&self) -> Result { type AsyncOptionLen (line 360) | pub struct AsyncOptionLen; method async_task (line 362) | async fn async_task(&self) -> bool { method len (line 366) | pub async fn len(&self) -> Result { method is_empty (line 370) | pub async fn is_empty(&self) -> bool { type AsyncLenSyncIsEmpty (line 375) | pub struct AsyncLenSyncIsEmpty; method len (line 377) | pub async fn len(&self) -> u32 { method is_empty (line 381) | pub fn is_empty(&self) -> bool { type NonStandardLen (line 387) | pub struct NonStandardLen; method len (line 390) | pub fn len(&self, something: usize) -> usize { type NonStandardLenAndIsEmptySignature (line 396) | pub struct NonStandardLenAndIsEmptySignature; method len (line 399) | pub fn len(&self, something: usize) -> usize { method is_empty (line 403) | pub fn is_empty(&self, something: usize) -> bool { type TestResource (line 409) | pub trait TestResource { method lookup_content (line 411) | fn lookup_content(&self, item: Self::NonStandardSignatureWithGenerics)... type NonStandardSignatureWithGenerics (line 413) | pub struct NonStandardSignatureWithGenerics(u32); method is_empty (line 415) | pub fn is_empty(self, resource: &T) -> bool method len (line 428) | pub fn len(self, resource: &T) -> usize type DifferingErrors (line 441) | pub struct DifferingErrors; method len (line 443) | pub fn len(&self) -> Result { method is_empty (line 447) | pub fn is_empty(&self) -> Result { type Aliased1 (line 453) | pub struct Aliased1; type Alias1 (line 454) | pub type Alias1 = Aliased1; method len (line 457) | pub fn len(&self) -> usize { method is_empty (line 461) | pub fn is_empty(&self) -> bool { type Aliased2 (line 466) | pub struct Aliased2; type Alias2 (line 467) | pub type Alias2 = Aliased2; method len (line 469) | pub fn len(&self) -> usize { type RefMutLenButRefIsEmpty (line 477) | pub struct RefMutLenButRefIsEmpty; method len (line 479) | pub fn len(&mut self) -> usize { method is_empty (line 483) | pub fn is_empty(&self) -> bool { function main (line 488) | fn main() {} FILE: tests/ui/len_without_is_empty_expect.rs type Empty (line 4) | pub struct Empty; method len (line 8) | pub fn len(&self) -> usize { type Empty2 (line 14) | pub struct Empty2; method len (line 18) | pub fn len(&self) -> usize { method is_empty (line 22) | pub fn is_empty(&self) -> bool { function main (line 27) | fn main() {} FILE: tests/ui/len_zero.rs type One (line 13) | pub struct One; type Wither (line 14) | struct Wither; type TraitsToo (line 16) | trait TraitsToo { method len (line 17) | fn len(&self) -> isize; method len (line 22) | fn len(&self) -> isize { type HasIsEmpty (line 27) | pub struct HasIsEmpty; method len (line 30) | pub fn len(&self) -> isize { method is_empty (line 34) | fn is_empty(&self) -> bool { type HasWrongIsEmpty (line 39) | pub struct HasWrongIsEmpty; method len (line 42) | pub fn len(&self) -> isize { method is_empty (line 46) | pub fn is_empty(&self, x: u32) -> bool { type WithIsEmpty (line 51) | pub trait WithIsEmpty { method len (line 52) | fn len(&self) -> isize; method is_empty (line 53) | fn is_empty(&self) -> bool; method len (line 57) | fn len(&self) -> isize { method is_empty (line 61) | fn is_empty(&self) -> bool { type DerefToDerefToString (line 66) | struct DerefToDerefToString; type Target (line 69) | type Target = DerefToString; method deref (line 71) | fn deref(&self) -> &Self::Target { type DerefToString (line 76) | struct DerefToString; type Target (line 79) | type Target = str; method deref (line 81) | fn deref(&self) -> &Self::Target { function main (line 86) | fn main() { function test_slice (line 214) | fn test_slice(b: &[u8]) { function binop_with_macros (line 220) | fn binop_with_macros() { function no_infinite_recursion (line 259) | fn no_infinite_recursion() -> bool { function issue15890 (line 279) | fn issue15890(vertices: &mut dyn ExactSizeIterator) -> bool { FILE: tests/ui/len_zero_ranges.rs function suggestion_is_fine_range (line 6) | fn suggestion_is_fine_range() { function suggestion_is_fine_range_inclusive (line 11) | fn suggestion_is_fine_range_inclusive() { function main (line 17) | fn main() {} FILE: tests/ui/len_zero_unstable.rs function issue15890 (line 4) | fn issue15890(vertices: &mut dyn ExactSizeIterator) -> bool { FILE: tests/ui/let_and_return.rs function test (line 10) | fn test() -> i32 { function test_inner (line 17) | fn test_inner() -> i32 { function test_nowarn_1 (line 27) | fn test_nowarn_1() -> i32 { function test_nowarn_2 (line 33) | fn test_nowarn_2() -> i32 { function test_nowarn_3 (line 38) | fn test_nowarn_3() -> (i32, i32) { function test_nowarn_4 (line 44) | fn test_nowarn_4() -> i32 { function test_nowarn_5 (line 50) | fn test_nowarn_5(x: i16) -> u16 { type Decode (line 57) | trait Decode { method decode (line 58) | fn decode(d: D) -> Result function issue_3792 (line 76) | fn issue_3792() -> String { type Bar (line 92) | struct Bar; method new (line 95) | fn new() -> Self { method baz (line 98) | fn baz(&self) -> u32 { function issue_3324 (line 103) | fn issue_3324(value: Weak>) -> u32 { function borrows_in_closure (line 110) | fn borrows_in_closure(value: Weak>) -> u32 { type Inner (line 122) | struct Inner; type Foo (line 124) | struct Foo<'a> { method drop (line 129) | fn drop(&mut self) {} function new (line 133) | fn new(inner: &'a Inner) -> Self { function value (line 137) | fn value(&self) -> i32 { function some_foo (line 142) | fn some_foo(inner: &Inner) -> Foo<'_> { function test (line 146) | fn test() -> i32 { function test2 (line 153) | fn test2() -> i32 { type Foo (line 165) | trait Foo {} type FooStorage (line 167) | trait FooStorage { method foo_cloned (line 168) | fn foo_cloned(&self) -> Arc; method foo_cloned (line 176) | fn foo_cloned(&self) -> Arc { type FooStorageImpl (line 171) | struct FooStorageImpl { type E (line 185) | pub enum E { function inner (line 191) | pub fn inner(&self) -> &T { function issue9150 (line 213) | fn issue9150() -> usize { function issue12801 (line 220) | fn issue12801() { function issue14164 (line 254) | fn issue14164() -> Result { function issue15987 (line 264) | fn issue15987() -> i32 { function has_comment (line 274) | fn has_comment() -> Vec { function main (line 282) | fn main() {} FILE: tests/ui/let_if_seq.rs function f (line 11) | fn f() -> bool { function g (line 14) | fn g(x: i32) -> i32 { function issue985 (line 18) | fn issue985() -> i32 { function issue985_alt (line 27) | fn issue985_alt() -> i32 { function issue975 (line 39) | fn issue975() -> String { function early_return (line 47) | fn early_return() -> u8 { function allow_works (line 60) | fn allow_works() -> i32 { function main (line 71) | fn main() { function issue16062 (line 138) | fn issue16062(bar: fn() -> bool) { function issue16064 (line 148) | fn issue16064(bar: fn() -> bool) { FILE: tests/ui/let_underscore_future.rs function some_async_fn (line 3) | async fn some_async_fn() {} function sync_side_effects (line 5) | fn sync_side_effects() {} function custom (line 6) | fn custom() -> impl Future { function do_something_to_future (line 11) | fn do_something_to_future(future: &mut impl Future) {} function main (line 13) | fn main() { FILE: tests/ui/let_underscore_lock.rs function main (line 5) | fn main() { function uplifted (line 30) | fn uplifted() { FILE: tests/ui/let_underscore_must_use.rs type Foo (line 7) | struct Foo { function f (line 12) | fn f() -> u32 { function g (line 16) | fn g() -> Result { function l (line 21) | fn l(x: T) -> T { function h (line 25) | fn h() -> u32 { type S (line 29) | struct S; method f (line 33) | pub fn f(&self) -> u32 { method g (line 37) | pub fn g(&self) -> Result { method k (line 41) | fn k(&self) -> u32 { method h (line 46) | fn h() -> u32 { method p (line 50) | fn p() -> Result { type Trait (line 55) | trait Trait { method a (line 57) | fn a() -> u32; method a (line 61) | fn a() -> u32 { function main (line 66) | fn main() { FILE: tests/ui/let_underscore_untyped.rs function a (line 13) | fn a() -> u32 { function b (line 17) | fn b(x: T) -> T { function c (line 21) | fn c() -> impl Display { function d (line 25) | fn d(x: &u32) -> &u32 { function e (line 29) | fn e() -> Result { function f (line 33) | fn f() -> Box { function g (line 37) | fn g() -> impl Fn() { function main (line 49) | fn main() { function dont_lint_async_prototype (line 81) | async fn dont_lint_async_prototype(_: u8) {} FILE: tests/ui/let_unit.rs function main (line 15) | fn main() { function returns_unit (line 38) | fn returns_unit() {} function consume_units_with_for_loop (line 41) | fn consume_units_with_for_loop() { function multiline_sugg (line 62) | fn multiline_sugg() { type ContainsUnit (line 76) | pub struct ContainsUnit(()); function _returns_generic (line 78) | fn _returns_generic() { function attributes (line 173) | fn attributes() { function issue10433 (line 182) | async fn issue10433() { function issue11502 (line 186) | pub async fn issue11502(a: ()) {} function issue12594 (line 188) | pub fn issue12594() { function takes_unit (line 205) | fn takes_unit(x: ()) {} function issue15061 (line 207) | fn issue15061() { function issue15771 (line 214) | fn issue15771() { function issue_15784 (line 224) | fn issue_15784() { function issue15789 (line 231) | fn issue15789() { FILE: tests/ui/let_with_type_underscore.rs function func (line 8) | fn func() -> &'static str { function main (line 13) | fn main() { function issue15377 (line 49) | fn issue15377() { FILE: tests/ui/lines_filter_map_ok.rs function main (line 6) | fn main() -> io::Result<()> { function msrv_check (line 40) | fn msrv_check() { FILE: tests/ui/linkedlist.rs constant C (line 8) | const C: LinkedList = LinkedList::new(); type Foo (line 14) | trait Foo { type Baz (line 15) | type Baz = LinkedList; method foo (line 18) | fn foo(_: LinkedList); constant BAR (line 21) | const BAR: Option>; method foo (line 27) | fn foo(_: LinkedList) {} constant BAR (line 28) | const BAR: Option> = None; type Bar (line 31) | pub struct Bar { method foo (line 37) | fn foo(_: LinkedList) {} function test (line 43) | fn test(my_favorite_linked_list: LinkedList) {} function test_ret (line 46) | fn test_ret() -> Option> { function test_local_not_linted (line 51) | fn test_local_not_linted() { function pub_test (line 57) | pub fn pub_test(the_most_awesome_linked_list: LinkedList) {} function pub_test_ret (line 58) | pub fn pub_test_ret() -> Option> { function main (line 62) | fn main() {} FILE: tests/ui/literal_string_with_formatting_arg.rs function compiler_macro (line 6) | fn compiler_macro() { function regression_14007 (line 23) | fn regression_14007() { function main (line 29) | fn main() { FILE: tests/ui/literals.rs function main (line 10) | fn main() { function issue9651 (line 77) | fn issue9651() { FILE: tests/ui/lossy_float_literal.rs function main (line 6) | fn main() { FILE: tests/ui/macro_use_imports.rs type Test (line 32) | struct Test; function test (line 34) | fn test() { function main (line 51) | fn main() {} FILE: tests/ui/macro_use_imports_expect.rs type Test (line 32) | struct Test; function test (line 34) | fn test() { function main (line 51) | fn main() {} FILE: tests/ui/manual_abs_diff.rs function main (line 5) | fn main() { function fixme (line 64) | fn fixme() { function non_primitive_ty (line 102) | fn non_primitive_ty() { function issue15254 (line 118) | fn issue15254(a: &usize, b: &usize) -> usize { FILE: tests/ui/manual_arithmetic_check-2.rs function main (line 5) | fn main() { FILE: tests/ui/manual_arithmetic_check.rs function main (line 4) | fn main() { FILE: tests/ui/manual_assert.rs function main (line 15) | fn main() { function issue7730 (line 83) | fn issue7730(a: u8) { function issue12505 (line 96) | fn issue12505() { function issue15227 (line 107) | fn issue15227(left: u64, right: u64) -> u64 { FILE: tests/ui/manual_async_fn.rs function fut (line 6) | fn fut() -> impl Future { function fut2 (line 12) | fn fut2() ->impl Future { function fut3 (line 18) | fn fut3()-> impl Future { function empty_fut (line 23) | fn empty_fut() -> impl Future { function empty_fut2 (line 29) | fn empty_fut2() ->impl Future { function empty_fut3 (line 35) | fn empty_fut3()-> impl Future { function core_fut (line 40) | fn core_fut() -> impl core::future::Future { function has_other_stmts (line 46) | fn has_other_stmts() -> impl core::future::Future { function not_fut (line 52) | fn not_fut() -> i32 { function already_async (line 57) | async fn already_async() -> impl Future { type S (line 61) | struct S; method inh_fut (line 63) | fn inh_fut() -> impl Future { method not_fut (line 81) | fn not_fut(&self) -> i32 { method has_other_stmts (line 86) | fn has_other_stmts() -> impl core::future::Future { method already_async (line 92) | async fn already_async(&self) -> impl Future { function elided (line 99) | fn elided(_: &i32) -> impl Future + '_ { function elided_not_bound (line 105) | fn elided_not_bound(_: &i32) -> impl Future + use<> { function explicit (line 110) | fn explicit<'a, 'b>(_: &'a i32, _: &'b i32) -> impl Future... function explicit_not_bound (line 117) | fn explicit_not_bound<'a, 'b>(_: &'a i32, _: &'b i32) -> impl Future impl Future + use<> { function test (line 132) | fn test() { function issue_10450 (line 140) | pub fn issue_10450() -> impl Future { function issue_10450_2 (line 145) | pub(crate) fn issue_10450_2() -> impl Future { function issue_10450_3 (line 150) | pub(self) fn issue_10450_3() -> impl Future { function main (line 181) | fn main() {} FILE: tests/ui/manual_bits.rs function main (line 13) | fn main() { function should_not_lint (line 89) | fn should_not_lint() { FILE: tests/ui/manual_c_str_literals.rs function pre_stabilization (line 29) | fn pre_stabilization() { function post_stabilization (line 34) | fn post_stabilization() { function main (line 39) | fn main() { FILE: tests/ui/manual_checked_ops.rs function main (line 3) | fn main() { function counter (line 60) | fn counter() -> u32 { function use_value (line 65) | fn use_value(_v: u32) {} function inc_and_return_value (line 67) | fn inc_and_return_value(x: &mut u32) -> u32 { function g (line 72) | fn g(_lhs: u32, _rhs: u32) {} FILE: tests/ui/manual_clamp.rs constant CONST_MAX (line 13) | const CONST_MAX: i32 = 10; constant CONST_MIN (line 14) | const CONST_MIN: i32 = 4; constant CONST_F64_MAX (line 16) | const CONST_F64_MAX: f64 = 10.0; constant CONST_F64_MIN (line 17) | const CONST_F64_MIN: f64 = 4.0; function main (line 19) | fn main() { function const_main (line 142) | fn const_main() { function no_lint (line 375) | fn no_lint() { function dont_tell_me_what_to_do (line 494) | fn dont_tell_me_what_to_do() { function cmp_min_max (line 507) | fn cmp_min_max(input: i32) -> i32 { function msrv_1_49 (line 512) | fn msrv_1_49() { function msrv_1_50 (line 524) | fn msrv_1_50() { function _const (line 537) | const fn _const() { FILE: tests/ui/manual_contains.rs function should_lint (line 4) | fn should_lint() { function should_not_lint (line 55) | fn should_not_lint() { function foo (line 90) | fn foo(values: &[u8]) -> bool { function bar (line 95) | fn bar(values: [u8; 3]) -> bool { FILE: tests/ui/manual_dangling_ptr.rs function foo (line 5) | pub fn foo(_const: *const f32, _mut: *mut i32) {} function main (line 7) | fn main() { function should_not_lint (line 27) | fn should_not_lint() { function _msrv_1_83 (line 35) | fn _msrv_1_83() { function _msrv_1_84 (line 41) | fn _msrv_1_84() { function issue16459 (line 47) | fn issue16459() { FILE: tests/ui/manual_div_ceil.rs function main (line 19) | fn main() { function issue_13843 (line 60) | fn issue_13843() { function issue_13950 (line 91) | fn issue_13950() { function issue_15705 (line 104) | fn issue_15705(size: u64, c: &u64) { type MyStruct (line 109) | struct MyStruct(u32); method next_multiple_of (line 112) | fn next_multiple_of(self, y: u32) -> u32 { function issue_16219 (line 117) | fn issue_16219() { FILE: tests/ui/manual_div_ceil_with_feature.rs function main (line 4) | fn main() { function issue_13843 (line 34) | fn issue_13843() { function issue_13950 (line 72) | fn issue_13950() { type MyStruct (line 88) | struct MyStruct(i32); method next_multiple_of (line 91) | fn next_multiple_of(self, y: i32) -> i32 { function issue_16219 (line 96) | fn issue_16219() { FILE: tests/ui/manual_filter.rs function main (line 4) | fn main() { function maybe_some (line 293) | fn maybe_some() -> Option { FILE: tests/ui/manual_filter_map.rs function main (line 7) | fn main() { function simple_equal (line 40) | fn simple_equal() { function no_lint (line 66) | fn no_lint() { function iter (line 80) | fn iter() -> impl Iterator { function to_opt (line 84) | fn to_opt(_: T) -> Option { function to_res (line 88) | fn to_res(_: T) -> Result { function to_ref (line 92) | fn to_ref<'a, T>(_: T) -> &'a T { type Issue8920 (line 96) | struct Issue8920<'a> { function issue_8920 (line 102) | fn issue_8920() { function issue8010 (line 164) | fn issue8010() { FILE: tests/ui/manual_find.rs function vec_string (line 4) | fn vec_string(strings: Vec) -> Option { function tuple (line 15) | fn tuple(arr: Vec<(String, i32)>) -> Option { function condition (line 27) | fn condition(x: u32, y: u32) -> Result { function find_with_early_return (line 31) | fn find_with_early_return(v: Vec) -> Option { function find_with_early_break (line 40) | fn find_with_early_break(v: Vec) -> Option { function main (line 54) | fn main() {} FILE: tests/ui/manual_find_fixable.rs constant ARRAY (line 7) | const ARRAY: &[u32; 5] = &[2, 7, 1, 9, 3]; function lookup (line 9) | fn lookup(n: u32) -> Option { function with_pat (line 19) | fn with_pat(arr: Vec<(u32, u32)>) -> Option { type Data (line 29) | struct Data { function with_struct (line 33) | fn with_struct(arr: Vec) -> Option { type Tuple (line 43) | struct Tuple(usize, usize); function with_tuple_struct (line 44) | fn with_tuple_struct(arr: Vec) -> Option { type A (line 54) | struct A; method should_keep (line 56) | fn should_keep(&self) -> bool { function with_method_call (line 60) | fn with_method_call(arr: Vec) -> Option { function with_closure (line 70) | fn with_closure(arr: Vec) -> Option { function with_closure2 (line 81) | fn with_closure2(arr: HashMap) -> Option { function with_bool (line 92) | fn with_bool(arr: Vec) -> Option { function with_side_effects (line 102) | fn with_side_effects(arr: Vec) -> Option { function with_else (line 112) | fn with_else(arr: Vec) -> Option { function tuple_with_ref (line 123) | fn tuple_with_ref(v: [(u8, &u8); 3]) -> Option { function ref_to_tuple_with_ref (line 133) | fn ref_to_tuple_with_ref(v: &[(u8, &u8)]) -> Option { function explicit_ret (line 143) | fn explicit_ret(arr: Vec) -> Option { function plus_one (line 153) | fn plus_one(a: i32) -> Option { function fn_instead_of_some (line 156) | fn fn_instead_of_some(a: &[i32]) -> Option { function for_in_condition (line 165) | fn for_in_condition(a: &[i32], b: bool) -> Option { function intermediate_statements (line 176) | fn intermediate_statements(a: &[i32]) -> Option { function mixed_binding_modes (line 188) | fn mixed_binding_modes(arr: Vec<(i32, String)>) -> Option { function as_closure (line 197) | fn as_closure() { function in_block (line 210) | fn in_block(a: &[i32]) -> Option { function mut_binding (line 226) | fn mut_binding(v: Vec) -> Option { function subpattern (line 235) | fn subpattern(v: Vec<[u32; 32]>) -> Option<[u32; 32]> { function two_bindings (line 244) | fn two_bindings(v: Vec<(u8, u8)>) -> Option { function main (line 253) | fn main() {} function adjust_fixable (line 256) | fn adjust_fixable(needle: &str) -> Option<&'static str> { function adjust_unfixable (line 266) | fn adjust_unfixable(needle: &str) -> Option<*const str> { FILE: tests/ui/manual_find_map.rs function main (line 7) | fn main() { function simple_equal (line 40) | fn simple_equal() { function no_lint (line 72) | fn no_lint() { function iter (line 86) | fn iter() -> impl Iterator { function to_opt (line 90) | fn to_opt(_: T) -> Option { function to_res (line 94) | fn to_res(_: T) -> Result { function to_ref (line 98) | fn to_ref<'a, T>(_: T) -> &'a T { type Issue8920 (line 102) | struct Issue8920<'a> { function issue_8920 (line 108) | fn issue_8920() { FILE: tests/ui/manual_flatten.rs function main (line 4) | fn main() { function run_unformatted_tests (line 174) | fn run_unformatted_tests() { FILE: tests/ui/manual_float_methods.rs function fn_test (line 11) | fn fn_test() -> f64 { function fn_test_not_inf (line 15) | fn fn_test_not_inf() -> f64 { function main (line 19) | fn main() { FILE: tests/ui/manual_hash_one.rs function returned (line 6) | fn returned(b: impl BuildHasher) -> u64 { function unsized_receiver (line 13) | fn unsized_receiver(b: impl BuildHasher, s: &str) { function owned_value (line 20) | fn owned_value(b: impl BuildHasher, v: Vec) -> Vec { function reused_hasher (line 28) | fn reused_hasher(b: impl BuildHasher) { function reused_hasher_in_return (line 35) | fn reused_hasher_in_return(b: impl BuildHasher) -> u64 { function no_hash (line 42) | fn no_hash(b: impl BuildHasher) { function hash_twice (line 47) | fn hash_twice(b: impl BuildHasher) { function other_hasher (line 54) | fn other_hasher(b: impl BuildHasher) { function finish_then_hash (line 62) | fn finish_then_hash(b: impl BuildHasher) { function in_macro (line 68) | fn in_macro(b: impl BuildHasher) { function msrv_1_70 (line 81) | fn msrv_1_70(b: impl BuildHasher, v: impl Hash) { function msrv_1_71 (line 88) | fn msrv_1_71(b: impl BuildHasher, v: impl Hash) { FILE: tests/ui/manual_ignore_case_cmp.rs function main (line 12) | fn main() {} function variants (line 14) | fn variants(a: &str, b: &str) { function unsupported (line 46) | fn unsupported(a: char, b: char) { function char (line 53) | fn char(a: char, b: char) { function u8 (line 63) | fn u8(a: u8, b: u8) { function ref_str (line 71) | fn ref_str(a: &str, b: &str) { function ref_ref_str (line 81) | fn ref_ref_str(a: &&str, b: &&str) { function string (line 91) | fn string(a: String, b: String) { function ref_string (line 105) | fn ref_string(a: String, b: &String) { function string_ref_str (line 120) | fn string_ref_str(a: String, b: &str) { function ref_u8slice (line 135) | fn ref_u8slice(a: &[u8], b: &[u8]) { function u8vec (line 139) | fn u8vec(a: Vec, b: Vec) { function ref_u8vec (line 143) | fn ref_u8vec(a: Vec, b: &Vec) { function ref_osstr (line 149) | fn ref_osstr(a: &OsStr, b: &OsStr) { function osstring (line 153) | fn osstring(a: OsString, b: OsString) { function ref_osstring (line 157) | fn ref_osstring(a: OsString, b: &OsString) { function wrongly_unmangled_macros (line 164) | fn wrongly_unmangled_macros(a: &str, b: &str) -> bool { FILE: tests/ui/manual_ilog2.rs function foo (line 7) | fn foo(a: u32, b: u64) { function wrongly_unmangled_macros (line 34) | fn wrongly_unmangled_macros() { FILE: tests/ui/manual_inspect.rs function main (line 4) | fn main() { function layout_check (line 201) | fn layout_check() { FILE: tests/ui/manual_instant_elapsed.rs function main (line 9) | fn main() { function issue16236 (line 32) | fn issue16236() { FILE: tests/ui/manual_is_ascii_check.rs function main (line 4) | fn main() { function msrv_1_23 (line 48) | fn msrv_1_23() { function msrv_1_24 (line 56) | fn msrv_1_24() { function msrv_1_46 (line 68) | fn msrv_1_46() { function msrv_1_47 (line 74) | fn msrv_1_47() { function with_refs (line 82) | fn with_refs() { function generics (line 90) | fn generics() { function adds_type_reference (line 115) | fn adds_type_reference() { FILE: tests/ui/manual_is_multiple_of.rs function main (line 4) | fn main() {} function f (line 7) | fn f(a: u64, b: u64) { function g (line 23) | fn g(a: u64, b: u64) { function needs_deref (line 27) | fn needs_deref(a: &u64, b: &u64) { function closures (line 31) | fn closures(a: u64, b: u64) { function any_rem (line 53) | fn any_rem>(a: T, b: T) { function foo (line 59) | fn foo() -> Option { function generate_primes (line 71) | const fn generate_primes() -> [u64; N] { function bar (line 96) | fn bar() -> u32 { function wrongly_unmangled_macros (line 105) | fn wrongly_unmangled_macros(a: u32, b: u32) { FILE: tests/ui/manual_is_power_of_two.rs function main (line 16) | fn main() { function low_msrv (line 52) | const fn low_msrv(a: u32) -> bool { function high_msrv (line 57) | const fn high_msrv(a: u32) -> bool { FILE: tests/ui/manual_is_variant_and.rs type Foo (line 8) | struct Foo(T); function map (line 11) | fn map bool>(self, mut f: F) -> Option { function foo (line 16) | fn foo() -> Option { function option_methods (line 47) | fn option_methods() { function result_methods (line 96) | fn result_methods() { function main (line 125) | fn main() {} function issue15202 (line 127) | fn issue15202() { function iad (line 188) | fn iad(b: u8) -> bool { function check_option (line 192) | fn check_option(b: Option) { function check_result (line 214) | fn check_result(b: Result) { function issue16419 (line 237) | fn issue16419() { function issue16419_msrv (line 248) | fn issue16419_msrv() { function issue16518 (line 256) | fn issue16518(opt: Option) { function issue16518_msrv (line 266) | fn issue16518_msrv(opt: Option) { FILE: tests/ui/manual_let_else.rs type Variant (line 16) | enum Variant { function g (line 22) | fn g() -> Option<()> { function main (line 26) | fn main() {} function fire (line 28) | fn fire() { function not_fire (line 293) | fn not_fire() { type S (line 464) | struct S { type U (line 468) | struct U { function issue12337 (line 474) | fn issue12337() { type Foo (line 485) | enum Foo { function foo (line 490) | fn foo(value: Foo) { type Bar (line 501) | enum Bar { function bar (line 506) | fn bar(mut value: Bar) { function bar (line 519) | fn bar() -> Result { function foo (line 545) | fn foo() -> Result { function something_unsafe (line 552) | unsafe fn something_unsafe() -> Option { function foo (line 556) | fn foo() { function issue16602 (line 575) | fn issue16602(i: Result) { FILE: tests/ui/manual_let_else_match.rs function f (line 11) | fn f() -> Result { function g (line 15) | fn g() -> Option<()> { function h (line 19) | fn h() -> (Option<()>, Option<()>) { type Variant (line 23) | enum Variant { function build_enum (line 29) | fn build_enum() -> Variant { function main (line 33) | fn main() {} function fire (line 35) | fn fire() { function not_fire (line 100) | fn not_fire() { function issue11579 (line 173) | fn issue11579() { type Issue9939 (line 182) | struct Issue9939 { function issue9939 (line 186) | fn issue9939() { type Issue9939b (line 218) | struct Issue9939b { function issue9939b (line 223) | fn issue9939b() { type A (line 256) | struct A { function foo (line 261) | fn foo() { FILE: tests/ui/manual_let_else_question_mark.rs type Variant (line 11) | enum Variant { function g (line 17) | fn g() -> Option<(u8, u8)> { function e (line 21) | fn e() -> Variant { function main (line 25) | fn main() {} function foo (line 27) | fn foo() -> Option<()> { function issue11993 (line 76) | fn issue11993(y: Option) -> Option { FILE: tests/ui/manual_main_separator_str.rs function len (line 6) | fn len(s: &str) -> usize { type U (line 10) | struct U<'a> { type V (line 15) | struct V { function main (line 19) | fn main() { FILE: tests/ui/manual_map_option.rs function main (line 13) | fn main() { FILE: tests/ui/manual_map_option_2.rs function main (line 4) | fn main() { type DummyTrait (line 85) | trait DummyTrait {} function foo (line 87) | fn foo Result>(f: F) { function bar (line 124) | fn bar() { function with_fn_ret (line 143) | fn with_fn_ret(s: &Option) -> Option<(String, &str)> { function with_fn_ret_2 (line 151) | fn with_fn_ret_2(s: &Option) -> Option<(String, &str)> { function with_fn_ret_3 (line 163) | fn with_fn_ret_3<'a>(s: &'a Option) -> Option<(String, &'a str)> { FILE: tests/ui/manual_memcpy/with_loop_counters.rs function manual_copy_with_counters (line 4) | pub fn manual_copy_with_counters(src: &[i32], dst: &mut [i32], dst2: &mu... function main (line 111) | fn main() {} FILE: tests/ui/manual_memcpy/without_loop_counters.rs constant LOOP_OFFSET (line 10) | const LOOP_OFFSET: usize = 5000; function manual_copy (line 12) | pub fn manual_copy(src: &[i32], dst: &mut [i32], dst2: &mut [i32]) { function manual_clone (line 239) | pub fn manual_clone(src: &[String], dst: &mut [String]) { function main (line 247) | fn main() {} FILE: tests/ui/manual_midpoint.rs function older_msrv (line 22) | fn older_msrv() { function main (line 28) | fn main() { function older_signed_midpoint (line 66) | fn older_signed_midpoint(i: i32) { function signed_midpoint (line 72) | fn signed_midpoint(i: i32) { FILE: tests/ui/manual_next_back.rs type FakeIter (line 4) | struct FakeIter(std::ops::Range); method rev (line 7) | fn rev(self) -> Self { method next (line 11) | fn next(&self) {} method next_back (line 15) | fn next_back(&mut self) -> Option { type Item (line 21) | type Item = i32; method next (line 22) | fn next(&mut self) -> Option { function main (line 27) | fn main() { FILE: tests/ui/manual_non_exhaustive_enum.rs type E (line 4) | pub enum E { type Ep (line 14) | pub enum Ep { type NoDocHidden (line 22) | pub enum NoDocHidden { type NoUnderscore (line 29) | pub enum NoUnderscore { type NotUnit (line 38) | pub enum NotUnit { type OnlyMarker (line 46) | pub enum OnlyMarker { type MultipleMarkers (line 52) | pub enum MultipleMarkers { type NonExhaustive (line 62) | pub enum NonExhaustive { type UsedHidden (line 68) | pub enum UsedHidden { function foo (line 74) | fn foo(x: &mut UsedHidden) { type ExpectLint (line 81) | pub enum ExpectLint { FILE: tests/ui/manual_non_exhaustive_struct.rs type S (line 5) | pub struct S { type Sp (line 14) | pub struct Sp { type PrivateFields (line 22) | pub struct PrivateFields { type NoUnderscore (line 28) | pub struct NoUnderscore { type NotUnit (line 36) | pub struct NotUnit { type OnlyMarker (line 43) | pub struct OnlyMarker { type NonExhaustive (line 49) | pub struct NonExhaustive { type T (line 56) | pub struct T(pub i32, pub i32, ()); type Tp (line 61) | pub struct Tp(pub i32, pub i32, ()); type PrivateFields (line 65) | pub struct PrivateFields(pub i32, i32, ()); type NotUnit (line 68) | pub struct NotUnit(pub i32, pub i32, i32); type OnlyMarker (line 71) | pub struct OnlyMarker(()); type NonExhaustive (line 75) | pub struct NonExhaustive(pub i32, pub i32); type NotPublic (line 81) | pub struct NotPublic { FILE: tests/ui/manual_ok_err.rs function funcall (line 3) | fn funcall() -> Result { function main (line 7) | fn main() { function no_lint (line 75) | fn no_lint() { function cf (line 126) | const fn cf(x: Result) -> Option { function issue14239 (line 134) | fn issue14239() { type Container (line 146) | struct Container { function with_addr_of (line 151) | fn with_addr_of(x: &Container) -> Option<&bool> { function from_fn (line 159) | fn from_fn(x: &Container) -> Option<&bool> { function result_with_ref_mut (line 168) | fn result_with_ref_mut(x: &mut Container) -> &mut Result { function from_fn_mut (line 172) | fn from_fn_mut(x: &mut Container) -> Option<&mut bool> { function wrongly_unmangled_macros (line 181) | fn wrongly_unmangled_macros() { FILE: tests/ui/manual_ok_or.rs function main (line 8) | fn main() { FILE: tests/ui/manual_option_as_slice.rs function check (line 4) | fn check(x: Option) { function check_msrv (line 65) | fn check_msrv(x: Option) { function main (line 69) | fn main() {} FILE: tests/ui/manual_pattern_char_comparison.rs type NotStr (line 3) | struct NotStr; method find (line 6) | fn find(&self, _: impl FnMut(char) -> bool) {} function main (line 9) | fn main() { function msrv_1_57 (line 61) | fn msrv_1_57() { function msrv_1_58 (line 67) | fn msrv_1_58() { FILE: tests/ui/manual_pop_if.rs type FakeVec (line 8) | struct FakeVec(PhantomData); function last (line 11) | fn last(&self) -> Option<&T> { function pop (line 15) | fn pop(&mut self) -> Option { function is_some_and_pattern_positive (line 20) | fn is_some_and_pattern_positive(mut vec: Vec, mut deque: VecDeque, mut deque: VecDeque, mut deque: VecDeque) { function if_let_pattern_negative (line 111) | fn if_let_pattern_negative(mut vec: Vec) { function let_chain_pattern_positive (line 150) | fn let_chain_pattern_positive(mut vec: Vec, mut deque: VecDeque) { function map_unwrap_or_pattern_positive (line 216) | fn map_unwrap_or_pattern_positive(mut vec: Vec, mut deque: VecDeque... function map_unwrap_or_pattern_negative (line 238) | fn map_unwrap_or_pattern_negative(mut vec: Vec) { function handle_macro_in_closure (line 275) | fn handle_macro_in_closure(mut vec: Vec>) { function msrv_too_low_vec (line 283) | fn msrv_too_low_vec(mut vec: Vec) { function msrv_too_low_vecdeque (line 290) | fn msrv_too_low_vecdeque(mut deque: VecDeque) { function msrv_high_enough_vec (line 301) | fn msrv_high_enough_vec(mut vec: Vec) { function msrv_high_enough_vecdeque (line 309) | fn msrv_high_enough_vecdeque(mut deque: VecDeque) { FILE: tests/ui/manual_range_patterns.rs function main (line 5) | fn main() { FILE: tests/ui/manual_rem_euclid.rs function main (line 10) | fn main() { function rem_euclid_4 (line 54) | pub fn rem_euclid_4(num: i32) -> i32 { function const_rem_euclid_4 (line 60) | pub const fn const_rem_euclid_4(num: i32) -> i32 { function msrv_1_37 (line 66) | pub fn msrv_1_37() { function msrv_1_38 (line 72) | pub fn msrv_1_38() { function msrv_1_51 (line 80) | pub const fn msrv_1_51() { function msrv_1_52 (line 86) | pub const fn msrv_1_52() { FILE: tests/ui/manual_repeat_n.rs function main (line 5) | fn main() { function iter (line 23) | pub fn iter() -> std::iter::Take> { function foo (line 28) | fn foo() { FILE: tests/ui/manual_retain.rs function main (line 5) | fn main() {} function binary_heap_retain (line 7) | fn binary_heap_retain() { function btree_map_retain (line 49) | fn btree_map_retain() { function btree_set_retain (line 78) | fn btree_set_retain() { function hash_map_retain (line 121) | fn hash_map_retain() { function hash_set_retain (line 150) | fn hash_set_retain() { function string_retain (line 191) | fn string_retain() { function vec_retain (line 204) | fn vec_retain() { function vec_deque_retain (line 236) | fn vec_deque_retain() { function _msrv_169 (line 272) | fn _msrv_169() { function _msrv_153 (line 278) | fn _msrv_153() { function _msrv_126 (line 287) | fn _msrv_126() { function _msrv_118 (line 293) | fn _msrv_118() { function issue_10393 (line 300) | fn issue_10393() { function issue_11457 (line 312) | fn issue_11457() { function issue_12081 (line 322) | fn issue_12081() { FILE: tests/ui/manual_rotate.rs function main (line 3) | fn main() { function issue13028 (line 48) | fn issue13028() { FILE: tests/ui/manual_saturating_arithmetic.rs function main (line 3) | fn main() { function issue15655 (line 77) | fn issue15655() { FILE: tests/ui/manual_slice_fill.rs type NoClone (line 16) | struct NoClone; function num (line 18) | fn num() -> usize { function should_lint (line 22) | fn should_lint() { function should_not_lint (line 50) | fn should_not_lint() { function issue_14192 (line 116) | fn issue_14192() { function issue14189 (line 132) | fn issue14189() { type ZipList (line 144) | struct ZipList(T); function len (line 147) | fn len(&self) -> usize { function is_empty (line 151) | fn is_empty(&self) -> bool { type Output (line 157) | type Output = T; function index (line 159) | fn index(&self, _: usize) -> &Self::Output { function index_mut (line 165) | fn index_mut(&mut self, _: usize) -> &mut Self::Output { function index_mut (line 170) | fn index_mut(mut zl: ZipList) { FILE: tests/ui/manual_slice_size_calculation.rs function main (line 10) | fn main() { function const_ok (line 64) | const fn const_ok(s_i32: &[i32]) { function const_before_msrv (line 70) | const fn const_before_msrv(s_i32: &[i32]) { function issue_14802 (line 74) | fn issue_14802() { FILE: tests/ui/manual_split_once.rs function main (line 9) | fn main() { function indirect (line 54) | fn indirect() -> Option<()> { function _msrv_1_51 (line 145) | fn _msrv_1_51() { function _msrv_1_52 (line 155) | fn _msrv_1_52() { FILE: tests/ui/manual_str_repeat.rs function main (line 7) | fn main() { function _msrv_1_15 (line 65) | fn _msrv_1_15() { function _msrv_1_16 (line 71) | fn _msrv_1_16() { FILE: tests/ui/manual_string_new.rs function main (line 12) | fn main() { type SomeOtherStruct (line 65) | struct SomeOtherStruct {} method from (line 68) | fn from(_value: &str) -> Self { FILE: tests/ui/manual_strip.rs function main (line 3) | fn main() { function msrv_1_44 (line 97) | fn msrv_1_44() { function msrv_1_45 (line 105) | fn msrv_1_45() { FILE: tests/ui/manual_strip_fixable.rs function main (line 4) | fn main() { FILE: tests/ui/manual_swap_auto_fix.rs function swap1 (line 4) | fn swap1() { function swap2 (line 13) | fn swap2() { function swap3 (line 23) | fn swap3() { function swap4 (line 33) | fn swap4() { function swap5 (line 43) | fn swap5() { function swap6 (line 53) | fn swap6() { function swap7 (line 62) | fn swap7() { function swap8 (line 72) | fn swap8() { function issue_14931 (line 82) | fn issue_14931() { FILE: tests/ui/manual_take.rs function main (line 3) | fn main() { function msrv_1_39 (line 47) | fn msrv_1_39() -> bool { function msrv_1_40 (line 58) | fn msrv_1_40() -> bool { FILE: tests/ui/manual_take_nocore.rs type PointeeSized (line 11) | pub trait PointeeSized {} type MetaSized (line 14) | pub trait MetaSized: PointeeSized {} type Sized (line 17) | pub trait Sized: MetaSized {} type Copy (line 19) | pub trait Copy {} type Freeze (line 21) | pub unsafe trait Freeze {} function start (line 24) | fn start(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _si... function main (line 28) | fn main() { FILE: tests/ui/manual_take_nostd.rs function manual_mem_take_should_reference_core (line 4) | pub fn manual_mem_take_should_reference_core() { FILE: tests/ui/manual_try_fold.rs type NotOption (line 12) | struct NotOption(i32, i32); method from_residual (line 15) | fn from_residual(_: R) -> Self { type Output (line 21) | type Output = (); type Residual (line 22) | type Residual = (); method from_output (line 24) | fn from_output(_: Self::Output) -> Self { method branch (line 28) | fn branch(self) -> ControlFlow { type NotOptionButWorse (line 35) | struct NotOptionButWorse(i32); method from_residual (line 38) | fn from_residual(_: R) -> Self { type Output (line 44) | type Output = (); type Residual (line 45) | type Residual = (); method from_output (line 47) | fn from_output(_: Self::Output) -> Self { method branch (line 51) | fn branch(self) -> ControlFlow { function main (line 56) | fn main() { function msrv_too_low (line 88) | fn msrv_too_low() { function msrv_juust_right (line 96) | fn msrv_juust_right() { type Foo (line 105) | struct Foo; type Bar (line 111) | trait Bar: Sized { type Output (line 108) | type Output = u32; method fold (line 113) | fn fold(self, init: A, func: F) -> Fold type Fold (line 123) | struct Fold { function main (line 129) | fn main() { FILE: tests/ui/manual_unwrap_or.rs function option_unwrap_or (line 9) | fn option_unwrap_or() { function result_unwrap_or (line 124) | fn result_unwrap_or() { function const_fn_option_unwrap_or (line 258) | const fn const_fn_option_unwrap_or() { function const_fn_result_unwrap_or (line 265) | const fn const_fn_result_unwrap_or() { function test (line 279) | fn test() { function format_name (line 289) | fn format_name(name: Option<&Rc>) -> &str { function implicit_deref_ref (line 296) | fn implicit_deref_ref() { type RefName (line 306) | type RefName = i32; function get (line 307) | pub fn get(index: &HashMap>, id: usize) -> &[RefName] { function get_match (line 311) | pub fn get_match(index: &HashMap>, id: usize) -> &[R... function implicit_deref (line 319) | fn implicit_deref(v: Vec) { function allowed_manual_unwrap_or_zero (line 323) | fn allowed_manual_unwrap_or_zero() -> u32 { function issue_15807 (line 332) | fn issue_15807() { function main (line 346) | fn main() {} FILE: tests/ui/manual_unwrap_or_default.rs function main (line 4) | fn main() { function no_deref_ptr (line 79) | unsafe fn no_deref_ptr(a: Option, b: *const Option) -> i32 { function issue_12568 (line 93) | const fn issue_12568(opt: Option) -> bool { function issue_12569 (line 100) | fn issue_12569() { function issue_12928 (line 130) | fn issue_12928() { function allowed_manual_unwrap_or_zero (line 151) | fn allowed_manual_unwrap_or_zero() -> u32 { type Foo (line 161) | struct Foo { function bar (line 165) | fn bar(project: &Foo) { function issue_15807 (line 173) | fn issue_15807() { FILE: tests/ui/manual_unwrap_or_default_unfixable.rs function issue_12670 (line 2) | fn issue_12670() { FILE: tests/ui/manual_while_let_some.rs type VecInStruct (line 4) | struct VecInStruct { type Foo (line 9) | struct Foo { function accept_i32 (line 14) | fn accept_i32(_: i32) {} function accept_optional_i32 (line 15) | fn accept_optional_i32(_: Option) {} function accept_i32_tuple (line 16) | fn accept_i32_tuple(_: (i32, i32)) {} function main (line 18) | fn main() { FILE: tests/ui/many_single_char_names.rs function bla (line 4) | fn bla() { function bindings (line 34) | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i... function bindings2 (line 37) | fn bindings2() { function shadowing (line 42) | fn shadowing() { function patterns (line 54) | fn patterns() { function issue_3198_allow_works (line 76) | fn issue_3198_allow_works() { function main (line 80) | fn main() {} FILE: tests/ui/map_all_any_identity.rs function main (line 3) | fn main() { FILE: tests/ui/map_clone.rs function main (line 13) | fn main() { FILE: tests/ui/map_collect_result_unit.rs function main (line 3) | fn main() { function _ignore (line 14) | fn _ignore() { FILE: tests/ui/map_err.rs type Errors (line 7) | enum Errors { method fmt (line 14) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { function main (line 19) | fn main() -> Result<(), Errors> { FILE: tests/ui/map_flatten.rs function long_span (line 6) | fn long_span() { function no_suggestion_if_comments_present (line 63) | fn no_suggestion_if_comments_present() { function main (line 74) | fn main() {} FILE: tests/ui/map_flatten_fixable.rs function main (line 9) | fn main() { function issue8734 (line 41) | fn issue8734() { function issue8878 (line 62) | fn issue8878() { FILE: tests/ui/map_identity.rs function main (line 5) | fn main() { function issue7189 (line 34) | fn issue7189() { function not_identity (line 64) | fn not_identity(x: &u16) -> u16 { function issue11764 (line 68) | fn issue11764() { function issue13904 (line 81) | fn issue13904() { function issue15198 (line 112) | fn issue15198() { type Foo (line 125) | pub struct Foo { type Foo2 (line 131) | pub struct Foo2(pub u8, pub u8); type Bar (line 135) | struct Bar { type Bar2 (line 140) | struct Bar2(u8, u8); function structs (line 142) | fn structs() { function tuple_structs (line 168) | fn tuple_structs() { FILE: tests/ui/map_unit_fn.rs type Mappable (line 4) | struct Mappable; method map (line 7) | pub fn map(&self) {} function main (line 10) | fn main() { FILE: tests/ui/map_unwrap_or.rs function option_methods (line 12) | fn option_methods() { function result_methods (line 76) | fn result_methods() { function main (line 95) | fn main() {} function msrv_1_40 (line 98) | fn msrv_1_40() { function msrv_1_41 (line 105) | fn msrv_1_41() { function msrv_1_69 (line 113) | fn msrv_1_69() { function msrv_1_70 (line 121) | fn msrv_1_70() { function v1 (line 130) | fn v1() { function v2 (line 135) | fn v2() { function v3 (line 140) | fn v3() { function v4 (line 146) | fn v4() { function issue15752 (line 157) | fn issue15752() { FILE: tests/ui/map_unwrap_or_fixable.rs function option_methods (line 16) | fn option_methods() { function result_methods (line 47) | fn result_methods() { function main (line 61) | fn main() {} function issue15714 (line 63) | fn issue15714() { function issue15713 (line 79) | fn issue15713() { FILE: tests/ui/map_with_unused_argument_over_ranges.rs function do_something (line 9) | fn do_something() -> usize { function do_something_interesting (line 13) | fn do_something_interesting(x: usize, y: usize) -> usize { function main (line 23) | fn main() { function msrv_1_27 (line 77) | fn msrv_1_27() { function msrv_1_28 (line 82) | fn msrv_1_28() { function msrv_1_82 (line 88) | fn msrv_1_82() { FILE: tests/ui/map_with_unused_argument_over_ranges_nostd.rs function nostd (line 6) | fn nostd(v: &mut [i32]) { FILE: tests/ui/match_as_ref.rs function match_as_ref (line 4) | fn match_as_ref() { type E (line 26) | struct E { method fmt (line 41) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method source (line 31) | fn source(&self) -> Option<&(dyn Error + 'static)> { function main (line 47) | fn main() { type A (line 60) | struct A(B); type B (line 61) | struct B; type Target (line 64) | type Target = B; method deref (line 65) | fn deref(&self) -> &Self::Target { method deref_mut (line 71) | fn deref_mut(&mut self) -> &mut Self::Target { function func (line 76) | fn func() { function recv_requiring_parens (line 87) | fn recv_requiring_parens() { function issue15932 (line 104) | fn issue15932() { function wrongly_unmangled_macros (line 118) | fn wrongly_unmangled_macros() { FILE: tests/ui/match_bool.rs function match_bool (line 4) | fn match_bool() { function issue14099 (line 106) | fn issue14099() { function issue15351 (line 116) | fn issue15351() { function wrongly_unmangled_macros (line 129) | fn wrongly_unmangled_macros() { function main (line 144) | fn main() {} FILE: tests/ui/match_like_matches_macro.rs function main (line 10) | fn main() { function msrv_1_41 (line 256) | fn msrv_1_41() { function msrv_1_42 (line 264) | fn msrv_1_42() { function issue15841 (line 273) | fn issue15841(opt: Option>>, value: i32) { function issue16015 (line 282) | fn issue16015() -> bool { FILE: tests/ui/match_like_matches_macro_if_let_guard.rs function issue15841 (line 5) | fn issue15841(opt: Option>>, value: i32) { FILE: tests/ui/match_overlapping_arm.rs function overlapping (line 5) | fn overlapping() { function main (line 139) | fn main() {} FILE: tests/ui/match_ref_pats.rs function ref_pats (line 11) | fn ref_pats() { type Foo (line 62) | enum Foo { method get (line 68) | fn get(idx: u8) -> Option<&'static Self> { function ice_3719 (line 77) | fn ice_3719() { type FooBar (line 91) | enum FooBar { method get (line 99) | fn get(idx: u8) -> Option<&'static Self> { function issue_7740 (line 110) | fn issue_7740() { function never_in_match (line 130) | fn never_in_match() { function main (line 157) | fn main() {} FILE: tests/ui/match_result_ok.rs function str_to_int (line 12) | fn str_to_int(x: &str) -> i32 { function str_to_int_ok (line 17) | fn str_to_int_ok(x: &str) -> i32 { function strange_some_no_else (line 22) | fn strange_some_no_else(x: &str) -> i32 { type Wat (line 34) | struct Wat { method next (line 39) | fn next(&mut self) -> Result { function base_1 (line 49) | fn base_1(x: i32) { function base_2 (line 57) | fn base_2(x: i32) { function base_3 (line 64) | fn base_3(test_func: Box>) { function main (line 69) | fn main() {} FILE: tests/ui/match_same_arms.rs type Abc (line 4) | pub enum Abc { function match_same_arms (line 10) | fn match_same_arms() { type CommandInfo (line 55) | pub enum CommandInfo { method name (line 61) | pub fn name(&self) -> String { function main (line 86) | fn main() { function issue16678 (line 153) | fn issue16678() { function issue16698 (line 169) | fn issue16698() { FILE: tests/ui/match_same_arms2.rs function bar (line 10) | fn bar(_: T) {} function foo (line 11) | fn foo() -> bool { function match_same_arms (line 15) | fn match_same_arms() { function match_expr_like_matches_macro_priority (line 183) | fn match_expr_like_matches_macro_priority() { function main (line 197) | fn main() { type MaybeStaticStr (line 280) | enum MaybeStaticStr<'a> { function get (line 286) | fn get(&self) -> &'a str { function lint_levels (line 296) | fn lint_levels() { FILE: tests/ui/match_same_arms_non_exhaustive.rs function repeat (line 6) | fn repeat() -> ! { function f (line 11) | pub fn f(x: Ordering) { function f (line 36) | pub fn f(x: Ordering) { function g (line 50) | pub fn g(x: Ordering) { function g (line 64) | pub fn g(x: Ordering) { FILE: tests/ui/match_single_binding.rs type Point (line 10) | struct Point { function coords (line 15) | fn coords() -> Point { function main (line 27) | fn main() { function issue_8723 (line 146) | fn issue_8723() { function side_effects (line 160) | fn side_effects() {} function issue_9575 (line 162) | fn issue_9575() { function issue_9725 (line 169) | fn issue_9725(r: Option) { function issue_10447 (line 183) | fn issue_10447() -> usize { function issue14634 (line 232) | fn issue14634() { type AnnoConstWOBlock (line 253) | struct AnnoConstWOBlock { type AnnoConstWBlock (line 260) | struct AnnoConstWBlock { function used_later (line 271) | fn used_later(a: i32, b: i32, c: i32) { function not_used_later (line 280) | fn not_used_later(a: i32, b: i32, c: i32) { function not_used_later_but_shadowed (line 288) | fn not_used_later_but_shadowed(a: i32, b: i32, c: i32) { function not_used_later_but_shadowed_nested (line 298) | fn not_used_later_but_shadowed_nested(a: i32, b: i32, c: i32) { function issue15269 (line 332) | fn issue15269(a: usize, b: usize, c: usize) -> bool { function issue15537 (line 354) | fn issue15537(a: i32) -> ((), (), ()) { FILE: tests/ui/match_single_binding2.rs function main (line 4) | fn main() { FILE: tests/ui/match_str_case_mismatch.rs function as_str_match (line 6) | fn as_str_match() { function non_alphabetic (line 16) | fn non_alphabetic() { function unicode_cased (line 27) | fn unicode_cased() { function titlecase (line 39) | fn titlecase() { function no_case_equivalent (line 49) | fn no_case_equivalent() { function addrof_unary_match (line 59) | fn addrof_unary_match() { function alternating_chain (line 69) | fn alternating_chain() { function unrelated_method (line 84) | fn unrelated_method() { function as_str_match_mismatch (line 107) | fn as_str_match_mismatch() { function non_alphabetic_mismatch (line 118) | fn non_alphabetic_mismatch() { function unicode_cased_mismatch (line 130) | fn unicode_cased_mismatch() { function titlecase_mismatch (line 143) | fn titlecase_mismatch() { function no_case_equivalent_mismatch (line 154) | fn no_case_equivalent_mismatch() { function addrof_unary_match_mismatch (line 165) | fn addrof_unary_match_mismatch() { function alternating_chain_mismatch (line 176) | fn alternating_chain_mismatch() { function main (line 192) | fn main() {} FILE: tests/ui/match_wild_err_arm.rs function issue_10635 (line 4) | fn issue_10635() { function match_wild_err_arm (line 17) | fn match_wild_err_arm() { function main (line 82) | fn main() {} FILE: tests/ui/match_wildcard_for_single_variants.rs type Foo (line 4) | enum Foo { type Color (line 10) | enum Color { method f (line 17) | fn f(self) { function main (line 28) | fn main() { type Foo (line 144) | enum Foo { function test (line 149) | fn test() { FILE: tests/ui/mem_forget.rs function main (line 9) | fn main() { FILE: tests/ui/mem_replace.rs function replace_option_with_none (line 11) | fn replace_option_with_none() { function replace_with_default (line 20) | fn replace_with_default() { function dont_lint_primitive (line 88) | fn dont_lint_primitive() { function dont_lint_not_used (line 99) | fn dont_lint_not_used() { function main (line 104) | fn main() {} function msrv_1_39 (line 107) | fn msrv_1_39() { function msrv_1_40 (line 113) | fn msrv_1_40() { function issue9824 (line 119) | fn issue9824() { function mem_replace_option_with_some (line 158) | fn mem_replace_option_with_some() { function mem_replace_option_with_some_bad_msrv (line 174) | fn mem_replace_option_with_some_bad_msrv() { function issue15785 (line 179) | fn issue15785() { FILE: tests/ui/mem_replace_macro.rs function main (line 8) | fn main() { FILE: tests/ui/mem_replace_no_std.rs function eh_personality (line 14) | extern "C" fn eh_personality() {} function panic (line 17) | fn panic(info: &PanicInfo) -> ! { function replace_option_with_none (line 21) | fn replace_option_with_none() { function replace_with_default (line 30) | fn replace_with_default() { function dont_lint_primitive (line 42) | fn dont_lint_primitive() { function main (line 50) | fn main() {} function issue9824 (line 52) | fn issue9824() { FILE: tests/ui/methods.rs type Lt (line 34) | struct Lt<'a> { function new (line 41) | pub fn new<'b>(s: &'b str) -> Lt<'b> { type Lt2 (line 46) | struct Lt2<'a> { function new (line 52) | pub fn new(s: &str) -> Lt2<'_> { type Lt3 (line 57) | struct Lt3<'a> { function new (line 63) | pub fn new() -> Lt3<'static> { type U (line 69) | struct U; method new (line 72) | fn new() -> Self { method to_something (line 76) | fn to_something(self) -> u32 { type V (line 81) | struct V { function new (line 86) | fn new() -> Option> { type AsyncNew (line 91) | struct AsyncNew; method new (line 94) | async fn new() -> Option { type BadNew (line 99) | struct BadNew; method new (line 102) | fn new() -> i32 { type T (line 108) | struct T; type Output (line 111) | type Output = T; method mul (line 113) | fn mul(self, other: T) -> T { function filter_next (line 120) | fn filter_next() { function filter_next_back (line 139) | fn filter_next_back() { function main (line 157) | fn main() {} FILE: tests/ui/methods_fixable.rs function main (line 5) | fn main() { function msrv_1_27 (line 17) | fn msrv_1_27() { function msrv_1_26 (line 23) | fn msrv_1_26() { FILE: tests/ui/methods_unfixable.rs function main (line 3) | fn main() {} function issue10029 (line 5) | pub fn issue10029() { FILE: tests/ui/min_ident_chars.rs type A (line 9) | struct A { type B (line 20) | struct B(u32); type O (line 23) | struct O { type i (line 29) | struct i; type C (line 31) | enum C { type Vec4 (line 42) | struct Vec4 { type AA (line 49) | struct AA(T, E); type Trait (line 51) | trait Trait { constant A (line 52) | const A: u32 = 0; method a (line 56) | fn a() {} function main (line 60) | fn main() { function b (line 116) | fn b() {} function wrong_pythagoras (line 118) | fn wrong_pythagoras(a: f32, b: f32) -> f32 { type Array (line 125) | struct Array([T; N]); type Issue13396 (line 128) | struct Issue13396; method fmt (line 131) | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { method fmt (line 137) | fn fmt(&self, g: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { function issue13396 (line 143) | fn issue13396() { type D (line 149) | trait D { method f (line 151) | fn f(g: i32); method long (line 154) | fn long(long: i32); method g (line 156) | fn g(arg: i8) { method f (line 165) | fn f(g: i32) { method long (line 174) | fn long(long: i32) {} FILE: tests/ui/min_max.rs constant LARGE (line 5) | const LARGE: usize = 3; type NotOrd (line 7) | struct NotOrd(u64); method min (line 10) | fn min(self, x: u64) -> NotOrd { method max (line 14) | fn max(self, x: u64) -> NotOrd { function main (line 19) | fn main() { FILE: tests/ui/min_rust_version_attr.rs function main (line 4) | fn main() {} function just_under_msrv (line 7) | fn just_under_msrv() { function meets_msrv (line 12) | fn meets_msrv() { function just_above_msrv (line 18) | fn just_above_msrv() { function no_patch_under (line 24) | fn no_patch_under() { function no_patch_meets (line 29) | fn no_patch_meets() { function inner_attr_under (line 34) | fn inner_attr_under() { function inner_attr_meets (line 39) | fn inner_attr_meets() { function scoping (line 46) | fn scoping() { FILE: tests/ui/min_rust_version_invalid_attr.rs function main (line 7) | fn main() {} function outer_attr (line 11) | fn outer_attr() {} FILE: tests/ui/mismatching_type_param_order.rs function main (line 4) | fn main() { FILE: tests/ui/misnamed_getters.rs type A (line 5) | struct A { method a (line 12) | fn a(&self) -> &u8 { method a_mut (line 17) | fn a_mut(&mut self) -> &mut u8 { method b (line 23) | fn b(self) -> u8 { method b_mut (line 29) | fn b_mut(&mut self) -> &mut u8 { method c (line 35) | fn c(&self) -> &u8 { method c_mut (line 41) | fn c_mut(&mut self) -> &mut u8 { method a (line 54) | unsafe fn a(&self) -> &u8 { method a_mut (line 59) | unsafe fn a_mut(&mut self) -> &mut u8 { method b (line 65) | unsafe fn b(self) -> u8 { method b_mut (line 71) | unsafe fn b_mut(&mut self) -> &mut u8 { method c (line 77) | unsafe fn c(&self) -> &u8 { method c_mut (line 81) | unsafe fn c_mut(&mut self) -> &mut u8 { method a_unchecked (line 85) | unsafe fn a_unchecked(&self) -> &u8 { method a_unchecked_mut (line 90) | unsafe fn a_unchecked_mut(&mut self) -> &mut u8 { method b_unchecked (line 96) | unsafe fn b_unchecked(self) -> u8 { method b_unchecked_mut (line 102) | unsafe fn b_unchecked_mut(&mut self) -> &mut u8 { method c_unchecked (line 108) | unsafe fn c_unchecked(&self) -> &u8 { method c_unchecked_mut (line 112) | unsafe fn c_unchecked_mut(&mut self) -> &mut u8 { type D (line 117) | struct D { type Target (line 123) | type Target = A; method deref (line 124) | fn deref(&self) -> &A { method deref_mut (line 130) | fn deref_mut(&mut self) -> &mut A { method a (line 136) | fn a(&self) -> &u8 { method a_mut (line 141) | fn a_mut(&mut self) -> &mut u8 { method d (line 147) | fn d(&self) -> &u8 { method d_mut (line 152) | fn d_mut(&mut self) -> &mut u8 { function main (line 159) | fn main() { FILE: tests/ui/misnamed_getters_2021.rs method a (line 15) | unsafe fn a(&self) -> &u8 { function main (line 22) | fn main() { FILE: tests/ui/misrefactored_assign_op.rs function main (line 4) | fn main() { FILE: tests/ui/missing_assert_message.rs function asserts_without_message (line 14) | fn asserts_without_message() { function asserts_without_message_but_with_macro_calls (line 30) | fn asserts_without_message_but_with_macro_calls() { function asserts_with_trailing_commas (line 42) | fn asserts_with_trailing_commas() { function asserts_with_message_and_with_macro_calls (line 58) | fn asserts_with_message_and_with_macro_calls() { function asserts_with_message (line 66) | fn asserts_with_message() { function asserts_without_message_but_inside_a_test_function (line 77) | fn asserts_without_message_but_inside_a_test_function() { function foo (line 86) | fn foo() -> bool { function asserts_without_message_but_inside_a_test_module (line 94) | fn asserts_without_message_but_inside_a_test_module() { FILE: tests/ui/missing_asserts_for_indexing.rs function sum_with_assert (line 5) | fn sum_with_assert(v: &[u8]) -> u8 { function sum_with_assert_other_way (line 11) | fn sum_with_assert_other_way(v: &[u8]) -> u8 { function sum_with_assert_ge (line 17) | fn sum_with_assert_ge(v: &[u8]) -> u8 { function sum_with_assert_ge_other_way (line 23) | fn sum_with_assert_ge_other_way(v: &[u8]) -> u8 { function sum_with_assert_lt (line 28) | fn sum_with_assert_lt(v: &[u8]) -> u8 { function sum_with_assert_le (line 34) | fn sum_with_assert_le(v: &[u8]) -> u8 { function sum_with_incorrect_assert_len (line 40) | fn sum_with_incorrect_assert_len(v: &[u8]) -> u8 { function sum_with_incorrect_assert_len2 (line 46) | fn sum_with_incorrect_assert_len2(v: &[u8]) -> u8 { function single_access (line 53) | fn single_access(v: &[u8]) -> u8 { function subslice_ok (line 58) | fn subslice_ok(v: &[u8]) { function subslice_bad (line 64) | fn subslice_bad(v: &[u8]) { function subslice_inclusive_ok (line 73) | fn subslice_inclusive_ok(v: &[u8]) { function subslice_inclusive_bad (line 79) | fn subslice_inclusive_bad(v: &[u8]) { function index_different_slices_ok (line 87) | fn index_different_slices_ok(v1: &[u8], v2: &[u8]) { function index_different_slices_wrong_len (line 94) | fn index_different_slices_wrong_len(v1: &[u8], v2: &[u8]) { function index_different_slices_one_wrong_len (line 103) | fn index_different_slices_one_wrong_len(v1: &[u8], v2: &[u8]) { function side_effect (line 112) | fn side_effect() -> &'static [u8] { function index_side_effect_expr (line 116) | fn index_side_effect_expr() { function index_different_slice_in_same_expr (line 121) | fn index_different_slice_in_same_expr(v1: &[u8], v2: &[u8]) { function issue11835 (line 125) | fn issue11835(v1: &[u8], v2: &[u8], v3: &[u8], v4: &[u8]) { function same_index_multiple_times (line 143) | fn same_index_multiple_times(v1: &[u8]) { function highest_index_first (line 148) | fn highest_index_first(v1: &[u8]) { function issue14255 (line 152) | fn issue14255(v1: &[u8], v2: &[u8], v3: &[u8], v4: &[u8]) { function assert_eq_len (line 170) | fn assert_eq_len(v: &[i32]) { function debug_assert_eq_len (line 176) | fn debug_assert_eq_len(v: &[i32]) { function main (line 183) | fn main() {} FILE: tests/ui/missing_asserts_for_indexing_unfixable.rs function sum (line 4) | fn sum(v: &[u8]) -> u8 { function subslice (line 9) | fn subslice(v: &[u8]) { function variables (line 16) | fn variables(v: &[u8]) -> u8 { function index_different_slices (line 25) | fn index_different_slices(v1: &[u8], v2: &[u8]) { function index_different_slices2 (line 32) | fn index_different_slices2(v1: &[u8], v2: &[u8]) { type Foo (line 39) | struct Foo<'a> { function index_struct_field (line 44) | fn index_struct_field(f: &Foo<'_>) { function index_struct_different_fields (line 49) | fn index_struct_different_fields(f: &Foo<'_>) { function shadowing (line 54) | fn shadowing() { function issue11856 (line 63) | pub fn issue11856(values: &[i32]) -> usize { function assert_after_indexing (line 76) | fn assert_after_indexing(v1: &[u8]) { function issue14255 (line 82) | fn issue14255(v1: &[u8]) { function main (line 89) | fn main() {} FILE: tests/ui/missing_const_for_fn/auxiliary/helper.rs function unstably_const_fn (line 8) | pub const fn unstably_const_fn() {} FILE: tests/ui/missing_const_for_fn/cant_be_const.rs type Game (line 17) | struct Game; method already_const (line 26) | pub const fn already_const() -> i32 { function already_const (line 20) | const fn already_const() -> i32 { function random (line 33) | fn random() -> u32 { function random_caller (line 38) | fn random_caller() -> u32 { function get_y (line 46) | fn get_y() -> u32 { type Foo (line 53) | pub struct Foo { method new (line 59) | pub const fn new(n: u32) -> Foo { method f (line 77) | fn f() -> u32; method g (line 80) | fn g() -> u32 { method deref_ptr_cannot_be_const (line 194) | fn deref_ptr_cannot_be_const(self) -> usize { method deref_mut_ptr_cannot_be_const (line 198) | fn deref_mut_ptr_cannot_be_const(self) -> usize { function foo_is_copy (line 65) | fn foo_is_copy() { type Foo (line 74) | trait Foo { method new (line 59) | pub const fn new(n: u32) -> Foo { method f (line 77) | fn f() -> u32; method g (line 80) | fn g() -> u32 { method deref_ptr_cannot_be_const (line 194) | fn deref_ptr_cannot_be_const(self) -> usize { method deref_mut_ptr_cannot_be_const (line 198) | fn deref_mut_ptr_cannot_be_const(self) -> usize { type Point (line 87) | struct Point(isize, isize); type Output (line 90) | type Output = Self; method add (line 93) | fn add(self, other: Self) -> Self { type A (line 99) | pub struct A; method b (line 107) | pub fn b(self) -> B { type B (line 100) | pub struct B; method a (line 114) | pub fn a(self, a: A) -> B { method drop (line 102) | fn drop(&mut self) {} function const_generic_params (line 120) | fn const_generic_params(t: &[T; N]) -> &[T; N] { function const_generic_return (line 124) | fn const_generic_return(t: &[T]) -> &[T; N] { function unstably_const_fn (line 131) | fn unstably_const_fn() { function const_fn_stabilized_after_msrv (line 138) | fn const_fn_stabilized_after_msrv(byte: u8) { function a (line 149) | fn a(this: String) {} type A (line 151) | enum A { method b (line 107) | pub fn b(self) -> B { function b (line 157) | fn b(this: A) {} function c (line 160) | fn c(this: Vec) {} type F (line 162) | struct F(A); function f (line 165) | fn f(this: F) {} function g (line 168) | fn g(this: T) {} type Issue10617 (line 170) | struct Issue10617(String); method name (line 174) | pub fn name(self) -> String { function h (line 185) | fn h(u: U) -> u32 { type Foo (line 190) | struct Foo(*const u8, *mut u8); method new (line 59) | pub const fn new(n: u32) -> Foo { method f (line 77) | fn f() -> u32; method g (line 80) | fn g() -> u32 { method deref_ptr_cannot_be_const (line 194) | fn deref_ptr_cannot_be_const(self) -> usize { method deref_mut_ptr_cannot_be_const (line 198) | fn deref_mut_ptr_cannot_be_const(self) -> usize { function c (line 204) | extern "C" fn c() {} type Foo (line 208) | type Foo = impl std::fmt::Debug; method new (line 59) | pub const fn new(n: u32) -> Foo { method f (line 77) | fn f() -> u32; method g (line 80) | fn g() -> u32 { method deref_ptr_cannot_be_const (line 194) | fn deref_ptr_cannot_be_const(self) -> usize { method deref_mut_ptr_cannot_be_const (line 198) | fn deref_mut_ptr_cannot_be_const(self) -> usize { function foo (line 211) | fn foo(_: Foo) { function mut_add (line 218) | fn mut_add(x: &mut i32) { function f (line 226) | fn f(a: T, b: T) -> ::Output { type Wrapper (line 235) | struct Wrapper { type Target (line 240) | type Target = T; method deref (line 242) | fn deref(&self) -> &Self::Target { method deref_mut (line 247) | fn deref_mut(&mut self) -> &mut Self::Target { type Example (line 252) | struct Example(bool); function do_something (line 254) | fn do_something(mut a: Wrapper) { type Stream (line 258) | pub struct Stream(Vec); method bytes (line 261) | pub fn bytes(&self) -> &[u8] { type BucketSlotGuard (line 271) | struct BucketSlotGuard<'a> { function into_inner (line 277) | fn into_inner(self) -> u32 { type Wrap (line 285) | struct Wrap(T); type Target (line 288) | type Target = T; method deref (line 289) | fn deref(&self) -> &T { method deref_mut (line 295) | fn deref_mut(&mut self) -> &mut T { function smart_two_field (line 300) | fn smart_two_field(v: &mut Wrap<(i32, i32)>) { function smart_destructure (line 305) | fn smart_destructure(v: &mut Wrap<(i32, i32)>) { FILE: tests/ui/missing_const_for_fn/const_trait.rs function method (line 7) | fn method(self); method method (line 11) | fn method(self) {} method method (line 15) | fn method(self) {} function cannot_be_const (line 18) | fn cannot_be_const() { function can_be_const (line 23) | fn can_be_const() { function could_be_const_but_does_not_trigger (line 28) | fn could_be_const_but_does_not_trigger(t: T) function main (line 35) | fn main() {} FILE: tests/ui/missing_const_for_fn/could_be_const.rs type Game (line 7) | struct Game { method new (line 13) | pub fn new() -> Self { method const_generic_params (line 18) | fn const_generic_params<'a, T, const N: usize>(&self, b: &'a [T; N]) -... function one (line 25) | fn one() -> i32 { function two (line 31) | fn two() -> i32 { function string (line 38) | fn string() -> String { function four (line 44) | unsafe fn four() -> i32 { function generic (line 50) | fn generic(t: T) -> T { function sub (line 55) | fn sub(x: u32) -> usize { function generic_arr (line 59) | fn generic_arr(t: [T; 1]) -> T { type A (line 65) | pub struct A; type B (line 66) | pub struct B; method b (line 73) | pub fn b(self, a: &A) -> B { method drop (line 68) | fn drop(&mut self) {} function const_fn_stabilized_before_msrv (line 83) | fn const_fn_stabilized_before_msrv(byte: u8) { function msrv_1_45 (line 90) | fn msrv_1_45() -> i32 { function msrv_1_46 (line 95) | fn msrv_1_46() -> i32 { function main (line 101) | fn main() {} type D (line 103) | struct D; function d (line 115) | fn d(this: D) {} type Foo (line 119) | struct Foo(*const u8, &'static u8); method deref_ptr_can_be_const (line 123) | fn deref_ptr_can_be_const(self) -> usize { method deref_copied_val (line 128) | fn deref_copied_val(self) -> usize { function union_access_can_be_const (line 139) | fn union_access_can_be_const() { function c (line 147) | unsafe extern "C" fn c() {} function implicit_c (line 152) | extern fn implicit_c() {} function c_in_block (line 157) | fn c_in_block(); type Wrapper (line 163) | pub struct Wrapper { method new (line 169) | pub fn new(strings: Vec) -> Self { method empty (line 175) | pub fn empty() -> Self { type Other (line 181) | pub struct Other { method new (line 187) | pub fn new(text: String) -> Self { type FooTrait (line 196) | trait FooTrait { method bar (line 198) | fn bar(_: Self::Foo) {} type Foo (line 201) | type Foo = i32; function alias_ty_is_projection (line 207) | fn alias_ty_is_projection(bar: <() as FooTrait>::Foo) {} function c_unwind (line 212) | extern "C-unwind" fn c_unwind() {} function system (line 214) | extern "system" fn system() {} function system_unwind (line 216) | extern "system-unwind" fn system_unwind() {} function mut_add (line 220) | fn mut_add(x: &mut i32) { type Trait (line 226) | pub trait Trait {} type Struct (line 228) | pub struct Struct { function new_1_60 (line 234) | pub fn new_1_60() -> Self { function new_1_61 (line 239) | pub fn new_1_61() -> Self { type S2 (line 245) | pub struct S2 { function new_1_60 (line 251) | pub fn new_1_60() -> Self { function new_1_61 (line 257) | pub fn new_1_61() -> Self { type S3 (line 263) | pub struct S3 { function new_1_60 (line 269) | pub fn new_1_60() -> Self { function new_1_61 (line 275) | pub fn new_1_61() -> Self { FILE: tests/ui/missing_const_for_thread_local.rs function main (line 5) | fn main() { function issue_12637 (line 41) | fn issue_12637() { function f (line 73) | fn f() { FILE: tests/ui/missing_fields_in_debug.rs type NamedStruct1Ignored (line 9) | struct NamedStruct1Ignored { method fmt (line 18) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type NamedStructMultipleIgnored (line 26) | struct NamedStructMultipleIgnored { method fmt (line 38) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type Unit (line 47) | struct Unit; method fmt (line 51) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type UnnamedStruct1Ignored (line 56) | struct UnnamedStruct1Ignored(String); method fmt (line 59) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type UnnamedStructMultipleIgnored (line 64) | struct UnnamedStructMultipleIgnored(String, Vec, i32); method fmt (line 68) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type NamedStructNonExhaustive (line 76) | struct NamedStructNonExhaustive { method fmt (line 83) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type MultiExprDebugImpl (line 91) | struct MultiExprDebugImpl { method fmt (line 100) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { type DerivedStruct (line 108) | struct DerivedStruct { type Inner (line 115) | struct Inner { type HasInner (line 120) | struct HasInner { method get (line 125) | fn get(&self) -> &Inner { method fmt (line 131) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Foo (line 142) | struct Foo { method fmt (line 148) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Inner (line 157) | struct Inner { type Wrapper (line 161) | struct Wrapper(Inner); method fmt (line 172) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Target (line 164) | type Target = Inner; method deref (line 166) | fn deref(&self) -> &Self::Target { type WithPD (line 183) | struct WithPD { method fmt (line 190) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type InClosure (line 198) | struct InClosure { method fmt (line 204) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { function main (line 215) | fn main() {} FILE: tests/ui/missing_inline.rs type Typedef (line 7) | type Typedef = String; type PubTypedef (line 8) | pub type PubTypedef = String; type Foo (line 10) | struct Foo; method FooImpl (line 70) | fn FooImpl() {} method foo (line 104) | fn foo(&self) {} type PubFoo (line 11) | pub struct PubFoo; method PubFooImpl (line 76) | pub fn PubFooImpl() {} type FooE (line 12) | enum FooE {} type PubFooE (line 13) | pub enum PubFooE {} function foo (line 18) | fn foo() {} function pub_foo (line 20) | pub fn pub_foo() {} function pub_foo_inline (line 24) | pub fn pub_foo_inline() {} function pub_foo_inline_always (line 26) | pub fn pub_foo_inline_always() {} function pub_foo_no_inline (line 29) | pub fn pub_foo_no_inline() {} type Bar (line 31) | trait Bar { method Bar_a (line 32) | fn Bar_a(); method Bar_b (line 33) | fn Bar_b() {} type PubBar (line 36) | pub trait PubBar { method PubBar_a (line 37) | fn PubBar_a(); method PubBar_b (line 39) | fn PubBar_b() {} method PubBar_c (line 43) | fn PubBar_c() {} method PubBar_a (line 48) | fn PubBar_a() {} method PubBar_b (line 49) | fn PubBar_b() {} method PubBar_c (line 50) | fn PubBar_c() {} method PubBar_a (line 56) | fn PubBar_a() {} method PubBar_b (line 60) | fn PubBar_b() {} method PubBar_c (line 64) | fn PubBar_c() {} type S (line 82) | pub struct S; function call_from_c (line 86) | pub extern "C" fn call_from_c() { function call_from_rust (line 91) | pub extern "Rust" fn call_from_rust() { function call_from_rust_no_extern (line 96) | pub fn call_from_rust_no_extern() { type Foo (line 102) | pub trait Foo { method FooImpl (line 70) | fn FooImpl() {} method foo (line 104) | fn foo(&self) {} FILE: tests/ui/missing_inline_executable.rs function foo (line 3) | pub fn foo() {} function main (line 6) | fn main() {} FILE: tests/ui/missing_inline_proc_macro.rs function _foo (line 9) | fn _foo() {} function function_like (line 12) | pub fn function_like(_: TokenStream) -> TokenStream { function attribute (line 17) | pub fn attribute(_: TokenStream, _: TokenStream) -> TokenStream { function derive (line 22) | pub fn derive(_: TokenStream) -> TokenStream { FILE: tests/ui/missing_inline_test_crate.rs function foo (line 6) | pub fn foo() -> u32 { function private_function (line 10) | fn private_function() {} FILE: tests/ui/missing_panics_doc.rs function main (line 10) | fn main() {} function unwrap (line 13) | pub fn unwrap() { function panic (line 20) | pub fn panic() { function inner_body (line 26) | pub fn inner_body(opt: Option) { function unreachable_and_panic (line 36) | pub fn unreachable_and_panic() { function assert_eq (line 42) | pub fn assert_eq() { function assert_ne (line 49) | pub fn assert_ne() { function unwrap_documented (line 60) | pub fn unwrap_documented() { function panic_documented (line 70) | pub fn panic_documented() { function inner_body_documented (line 79) | pub fn inner_body_documented(opt: Option) { function unreachable_amd_panic_documented (line 92) | pub fn unreachable_amd_panic_documented() { function assert_eq_documented (line 101) | pub fn assert_eq_documented() { function assert_ne_documented (line 111) | pub fn assert_ne_documented() { function todo (line 117) | pub fn todo() { function unwrap_private (line 122) | fn unwrap_private() { function panic_private (line 128) | fn panic_private() { function inner_body_private (line 133) | fn inner_body_private(opt: Option) { function unreachable (line 142) | pub fn unreachable() { function debug_assertions (line 148) | pub fn debug_assertions() { function partially_const (line 154) | pub fn partially_const(n: usize) { function expect_allow (line 164) | pub fn expect_allow(i: Option) { function expect_allow_with_error (line 172) | pub fn expect_allow_with_error(i: Option) { function expect_after_error (line 184) | pub fn expect_after_error(x: Option, y: Option) { function option_unwrap (line 196) | pub fn option_unwrap(v: &[T]) -> &T { function option_expect (line 202) | pub fn option_expect(v: &[T]) -> &T { function result_unwrap (line 208) | pub fn result_unwrap(v: &[T]) -> &T { function result_expect (line 214) | pub fn result_expect(v: &[T]) -> &T { function last_unwrap (line 220) | pub fn last_unwrap(v: &[u32]) -> u32 { function last_expect (line 225) | pub fn last_expect(v: &[u32]) -> u32 { function from_external_macro_should_not_lint (line 231) | fn from_external_macro_should_not_lint() { function from_declared_macro_should_lint_at_macrosite (line 241) | fn from_declared_macro_should_lint_at_macrosite() { function issue_12760 (line 246) | pub fn issue_12760() { function unwrap_expect_etc_in_const (line 255) | pub fn unwrap_expect_etc_in_const() { function unwrap_expect_etc_in_const_fn_fails (line 262) | pub const fn unwrap_expect_etc_in_const_fn_fails() { function assert_in_const_fn_fails (line 268) | pub const fn assert_in_const_fn_fails() { function in_const_fn (line 277) | pub const fn in_const_fn(n: usize) { FILE: tests/ui/missing_spin_loop.rs function main (line 7) | fn main() { FILE: tests/ui/missing_spin_loop_no_std.rs function main (line 7) | pub fn main(_argc: isize, _argv: *const *const u8) -> isize { FILE: tests/ui/missing_trait_methods.rs type A (line 4) | trait A { method provided (line 5) | fn provided() {} method provided (line 38) | fn provided() {} type B (line 8) | trait B { method required (line 9) | fn required(); method a (line 11) | fn a(_: usize) -> usize { method b (line 15) | fn b<'a, T: AsRef<[u8]>>(a: &'a T) -> &'a [u8] { method required (line 28) | fn required() {} method a (line 30) | fn a(_: usize) -> usize { method required (line 42) | fn required() {} method a (line 44) | fn a(_: usize) -> usize { method b (line 48) | fn b>(a: &T) -> &[u8] { type Partial (line 20) | struct Partial; method eq (line 68) | fn eq(&self, other: &Partial) -> bool { type Complete (line 35) | struct Complete; type MissingMultiple (line 53) | trait MissingMultiple { method one (line 54) | fn one() {} method two (line 55) | fn two() {} method three (line 56) | fn three() {} function main (line 64) | fn main() {} FILE: tests/ui/missing_transmute_annotations.rs function bar (line 16) | fn bar(x: i32) -> i32 { function foo1 (line 20) | unsafe fn foo1() -> i32 { constant _ (line 28) | const _: i32 = unsafe { std::mem::transmute([1u16, 2u16]) }; type Foo (line 31) | enum Foo { function foo2 (line 35) | unsafe fn foo2() -> i32 { function main (line 67) | fn main() { FILE: tests/ui/missing_transmute_annotations_unfixable.rs function issue14984 (line 3) | fn issue14984() { FILE: tests/ui/mistyped_literal_suffix.rs function main (line 15) | fn main() { FILE: tests/ui/mixed_attributes_style.rs function foo1 (line 11) | fn foo1() { function foo2 (line 17) | fn foo2() {} function foo3 (line 19) | fn foo3() { function foo4 (line 26) | fn foo4() { function foo5 (line 32) | fn foo5() {} function foo6 (line 34) | fn foo6() { function main (line 44) | fn main() { constant FOO (line 56) | const FOO: u8 = 0; function use_dummy (line 98) | fn use_dummy() { FILE: tests/ui/mixed_attributes_style/global_allow.rs function main (line 8) | fn main() {} FILE: tests/ui/mixed_read_write_in_expression.rs function main (line 9) | fn main() { function issue_6925 (line 116) | async fn issue_6925() { FILE: tests/ui/module_inception.rs type S (line 42) | struct S; method f (line 44) | fn f() { function main (line 50) | fn main() {} FILE: tests/ui/module_name_repetitions.rs function foo (line 7) | pub fn foo() {} function foo_bar (line 8) | pub fn foo_bar() {} function bar_foo (line 11) | pub fn bar_foo() {} type FooCake (line 14) | pub struct FooCake; type CakeFoo (line 17) | pub enum CakeFoo {} type Foo7Bar (line 20) | pub struct Foo7Bar; type Foobar (line 24) | pub struct Foobar; type Error (line 28) | pub struct Error; type FooError (line 29) | pub struct FooError; type FooIter (line 38) | pub struct FooIter; function to_foo (line 43) | pub fn to_foo() {} function into_foo (line 44) | pub fn into_foo() {} function as_foo (line 45) | pub fn as_foo() {} function from_foo (line 46) | pub fn from_foo() {} function try_into_foo (line 47) | pub fn try_into_foo() {} function try_from_foo (line 48) | pub fn try_from_foo() {} type IntoFoo (line 49) | pub trait IntoFoo {} type ToFoo (line 50) | pub trait ToFoo {} type AsFoo (line 51) | pub trait AsFoo {} type FromFoo (line 52) | pub trait FromFoo {} type TryIntoFoo (line 53) | pub trait TryIntoFoo {} type TryFromFoo (line 54) | pub trait TryFromFoo {} function main (line 57) | fn main() {} FILE: tests/ui/modulo_arithmetic_float.rs function main (line 6) | fn main() { FILE: tests/ui/modulo_arithmetic_integral.rs function main (line 4) | fn main() { FILE: tests/ui/modulo_arithmetic_integral_const.rs function main (line 9) | fn main() { FILE: tests/ui/modulo_one.rs function main (line 8) | fn main() { FILE: tests/ui/msrv_attributes_without_early_lints.rs function f (line 12) | fn f(p: *const i32) { FILE: tests/ui/multi_assignments.rs function main (line 2) | fn main() { FILE: tests/ui/multiple_bound_locations.rs function ty (line 3) | fn ty(a: F) function lifetime (line 10) | fn lifetime<'a, 'b: 'a, 'c>(a: &'b str, b: &'a str, c: &'c str) function ty_pred (line 17) | fn ty_pred() type B (line 24) | struct B; method ty (line 27) | fn ty(a: F) method lifetime (line 34) | fn lifetime<'a, 'b: 'a, 'c>(a: &'b str, b: &'a str, c: &'c str) method ty_pred (line 41) | fn ty_pred() type C (line 49) | struct C(F); function foo (line 52) | fn foo(_f: F) -> Self function main (line 60) | fn main() {} FILE: tests/ui/multiple_inherent_impl_cfg.rs function main (line 6) | fn main() {} type A (line 8) | struct A; type B (line 22) | struct B; type C (line 37) | struct C; FILE: tests/ui/multiple_unsafe_ops_per_block.rs function raw_ptr (line 15) | fn raw_ptr() -> *const () { function not_very_safe (line 19) | unsafe fn not_very_safe() {} type Sample (line 21) | struct Sample; method not_very_safe (line 24) | unsafe fn not_very_safe(&self) {} constant sample (line 28) | const sample: Sample = Sample; function test1 (line 37) | fn test1() { function test2 (line 45) | fn test2() { function test3 (line 55) | fn test3() { function test_all (line 64) | fn test_all() { function correct1 (line 78) | fn correct1() { function correct2 (line 85) | fn correct2() { function correct3 (line 96) | fn correct3() { function with_adjustment (line 108) | fn with_adjustment(f: &unsafe fn()) { function issue10064 (line 116) | fn issue10064() { function issue10259 (line 130) | fn issue10259() { function issue10367 (line 137) | fn issue10367() { function issue11312 (line 171) | async fn issue11312() { function issue13879 (line 177) | async fn issue13879() { function issue16076 (line 220) | fn issue16076() { function check_closures (line 301) | fn check_closures() { function issue16116 (line 315) | fn issue16116() { function main (line 448) | fn main() {} FILE: tests/ui/must_use_candidates.rs type MyAtomic (line 13) | pub struct MyAtomic(AtomicBool); type MyPure (line 14) | pub struct MyPure; method inherent_pure (line 22) | pub fn inherent_pure(&self) -> u8 { function pure (line 16) | pub fn pure(i: u8) -> u8 { type MyPureTrait (line 28) | pub trait MyPureTrait { method trait_pure (line 29) | fn trait_pure(&self, i: u32) -> u32 { method trait_impl_pure (line 33) | fn trait_impl_pure(&self, i: u32) -> u32; method trait_impl_pure (line 37) | fn trait_impl_pure(&self, i: u32) -> u32 { function without_result (line 42) | pub fn without_result() { function impure_primitive (line 46) | pub fn impure_primitive(i: &mut u8) -> u8 { function with_callback (line 50) | pub fn with_callback bool>(f: &F) -> bool { function with_marker (line 54) | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool { function quoth_the_raven (line 59) | pub fn quoth_the_raven(_more: !) -> u32 { function atomics (line 63) | pub fn atomics(b: &AtomicBool) -> bool { function rcd (line 67) | pub fn rcd(_x: Rc) -> bool { function rcmut (line 72) | pub fn rcmut(_x: Rc<&mut u32>) -> bool { function arcd (line 76) | pub fn arcd(_x: Arc) -> bool { function inner_types (line 81) | pub fn inner_types(_m: &MyAtomic) -> bool { function mutates_static (line 90) | pub unsafe fn mutates_static() -> usize { function unmangled (line 98) | pub extern "C" fn unmangled(i: bool) -> bool { function main (line 102) | pub fn main() -> std::process::ExitCode { function result_uninhabited (line 108) | pub fn result_uninhabited() -> Result { function controlflow_uninhabited (line 113) | pub fn controlflow_uninhabited() -> std::ops::ControlFlow () {} function must_use_with_note (line 18) | pub fn must_use_with_note() {} function main (line 27) | fn main() {} FILE: tests/ui/must_use_unit_unfixable.rs function issue_12320 (line 2) | fn issue_12320() {} function issue_12320_2 (line 6) | fn issue_12320_2() {} function main (line 9) | fn main() {} FILE: tests/ui/mut_from_ref.rs type Foo (line 10) | struct Foo; method this_wont_hurt_a_bit (line 13) | fn this_wont_hurt_a_bit(&self) -> &mut Foo { type Ouch (line 20) | trait Ouch { method ouch (line 21) | fn ouch(x: &Foo) -> &mut Foo; method ouch (line 26) | fn ouch(x: &Foo) -> &mut Foo { function fail (line 31) | fn fail(x: &u32) -> &mut u16 { function fail_lifetime (line 37) | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 { function fail_double (line 43) | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mu... function fail_tuples (line 49) | fn fail_tuples<'a>(x: (&'a u32, &'a u32)) -> &'a mut u32 { function fail_box (line 55) | fn fail_box<'a>(x: Box<&'a u32>) -> &'a mut u32 { function works (line 62) | fn works<'a>(x: &u32, y: &'a mut u32) -> &'a mut u32 { function also_works (line 67) | fn also_works<'a>(x: &'a u32, y: &'a mut u32) -> &'a mut u32 { function works_tuples (line 71) | fn works_tuples<'a>(x: (&'a u32, &'a mut u32)) -> &'a mut u32 { function works_box (line 75) | fn works_box<'a>(x: &'a u32, y: Box<&'a mut u32>) -> &'a mut u32 { type RefMut (line 79) | struct RefMut<'a>(&'a mut u32); function works_parameter (line 81) | fn works_parameter<'a>(x: &'a u32, y: RefMut<'a>) -> &'a mut u32 { function also_broken (line 85) | unsafe fn also_broken(x: &u32) -> &mut u32 { function without_unsafe (line 91) | fn without_unsafe(x: &u32) -> &mut u32 { function main (line 95) | fn main() { FILE: tests/ui/mut_key.rs type Key (line 9) | struct Key(AtomicUsize); method clone (line 12) | fn clone(&self) -> Self { method eq (line 18) | fn eq(&self, other: &Self) -> bool { method hash (line 26) | fn hash(&self, h: &mut H) { function should_not_take_this_arg (line 31) | fn should_not_take_this_arg(m: &mut HashMap, _n: usize) -> H... function this_is_ok (line 41) | fn this_is_ok(_m: &mut HashMap) {} function raw_ptr_is_ok (line 48) | fn raw_ptr_is_ok(_m: &mut HashMap<*const Key, ()>) {} function raw_mut_ptr_is_ok (line 49) | fn raw_mut_ptr_is_ok(_m: &mut HashMap<*mut Key, ()>) {} type Trait (line 52) | trait Trait { method trait_fn (line 55) | fn trait_fn(&self, set: HashSet); function generics_are_ok_too (line 58) | fn generics_are_ok_too(_m: &mut HashSet) { function tuples (line 62) | fn tuples(_m: &mut HashMap<((), U), ()>) {} function tuples_bad (line 64) | fn tuples_bad(_m: &mut HashMap<(Key, U), bool>) {} function main (line 67) | fn main() { FILE: tests/ui/mut_mut.rs function fun (line 15) | fn fun(x: &mut &mut u32) { function less_fun (line 19) | fn less_fun(x: *mut *mut u32) { function main (line 31) | fn main() { function issue939 (line 54) | fn issue939() { function issue6922 (line 67) | fn issue6922() { type Foo (line 75) | struct Foo<'a> { function foo (line 80) | fn foo(&mut self) { function bar (line 86) | fn bar(_: &mut impl Display) {} function allow_works (line 89) | fn allow_works() { FILE: tests/ui/mut_mut_unfixable.rs function fun (line 9) | fn fun(x: &mut &mut u32) -> bool { function main (line 14) | fn main() { FILE: tests/ui/mut_mutex_lock.rs function mut_mutex_lock (line 6) | fn mut_mutex_lock() { function no_owned_mutex_lock (line 21) | fn no_owned_mutex_lock() { function issue9415 (line 27) | fn issue9415() { function mut_ref_ref_mutex_lock (line 34) | fn mut_ref_ref_mutex_lock() { function main (line 41) | fn main() {} FILE: tests/ui/mut_range_bound.rs function main (line 3) | fn main() {} function mut_range_bound_upper (line 5) | fn mut_range_bound_upper() { function mut_range_bound_lower (line 13) | fn mut_range_bound_lower() { function mut_range_bound_both (line 21) | fn mut_range_bound_both() { function mut_range_bound_no_mutation (line 33) | fn mut_range_bound_no_mutation() { function mut_borrow_range_bound (line 40) | fn mut_borrow_range_bound() { function immut_borrow_range_bound (line 50) | fn immut_borrow_range_bound() { function immut_range_bound (line 57) | fn immut_range_bound() { function mut_range_bound_break (line 64) | fn mut_range_bound_break() { function mut_range_bound_no_immediate_break (line 74) | fn mut_range_bound_no_immediate_break() { FILE: tests/ui/mutex_atomic.rs function main (line 7) | fn main() { function issue13378 (line 52) | fn issue13378() { function wrongly_unmangled_macros (line 69) | fn wrongly_unmangled_macros() { FILE: tests/ui/mutex_atomic_unfixable.rs function issue13378 (line 6) | fn issue13378() { FILE: tests/ui/needless_arbitrary_self_type.rs type ValType (line 4) | pub enum ValType { method bad (line 10) | pub fn bad(self: Self) { method good (line 15) | pub fn good(self) { method mut_bad (line 19) | pub fn mut_bad(mut self: Self) { method mut_good (line 24) | pub fn mut_good(mut self) { method ref_bad (line 28) | pub fn ref_bad(self: &Self) { method ref_good (line 33) | pub fn ref_good(&self) { method ref_bad_with_lifetime (line 37) | pub fn ref_bad_with_lifetime<'a>(self: &'a Self) { method ref_good_with_lifetime (line 42) | pub fn ref_good_with_lifetime<'a>(&'a self) { method mut_ref_bad (line 46) | pub fn mut_ref_bad(self: &mut Self) { method mut_ref_good (line 51) | pub fn mut_ref_good(&mut self) { method mut_ref_bad_with_lifetime (line 55) | pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) { method mut_ref_good_with_lifetime (line 60) | pub fn mut_ref_good_with_lifetime<'a>(&'a mut self) { method mut_ref_mut_good (line 64) | pub fn mut_ref_mut_good(mut self: &mut Self) { method mut_ref_mut_ref_good (line 68) | pub fn mut_ref_mut_ref_good(self: &&mut &mut Self) { type Foo (line 73) | trait Foo<'r#struct> { method f1 (line 74) | fn f1(self: &'r#struct Self) {} method f2 (line 76) | fn f2(self: &'r#struct mut Self) {} function main (line 80) | fn main() {} FILE: tests/ui/needless_arbitrary_self_type_unfixable.rs type T2 (line 31) | trait T2 { method call_with_mut_self (line 32) | fn call_with_mut_self(&mut self); method call_with_mut_self (line 42) | fn call_with_mut_self(self: &mut Self) {} type S2 (line 35) | struct S2; function main (line 47) | fn main() {} FILE: tests/ui/needless_as_bytes.rs type S (line 5) | struct S; method as_bytes (line 8) | fn as_bytes(&self) -> &[u8] { method bytes (line 11) | fn bytes(&self) -> &[u8] { function main (line 16) | fn main() { type AsBytes (line 72) | pub trait AsBytes { method as_bytes (line 73) | fn as_bytes(&self) -> &[u8]; method as_bytes (line 77) | fn as_bytes(&self) -> &[u8] { type Bytes (line 82) | pub trait Bytes { method bytes (line 83) | fn bytes(&self) -> &[u8]; method bytes (line 87) | fn bytes(&self) -> &[u8] { FILE: tests/ui/needless_bitwise_bool.rs function returns_bool (line 4) | fn returns_bool() -> bool { function const_returns_bool (line 8) | const fn const_returns_bool() -> bool { function main (line 12) | fn main() { FILE: tests/ui/needless_bool/fixable.rs function main (line 38) | fn main() { function bool_ret3 (line 120) | fn bool_ret3(x: bool) -> bool { function bool_ret4 (line 129) | fn bool_ret4(x: bool) -> bool { function bool_ret5 (line 138) | fn bool_ret5(x: bool, y: bool) -> bool { function bool_ret6 (line 147) | fn bool_ret6(x: bool, y: bool) -> bool { function needless_bool (line 156) | fn needless_bool(x: bool) { function needless_bool2 (line 161) | fn needless_bool2(x: bool) { function needless_bool3 (line 166) | fn needless_bool3(x: bool) { function needless_bool_in_the_suggestion_wraps_the_predicate_of_if_else_statement_in_brackets (line 179) | fn needless_bool_in_the_suggestion_wraps_the_predicate_of_if_else_statem... function no (line 193) | unsafe fn no(v: u8) -> u8 { function needless_bool_condition (line 198) | fn needless_bool_condition() -> bool { function issue12846 (line 216) | fn issue12846() { FILE: tests/ui/needless_bool/simple.rs function main (line 11) | fn main() { function bool_ret (line 35) | fn bool_ret(x: bool) -> bool { function bool_ret2 (line 44) | fn bool_ret2(x: bool) -> bool { FILE: tests/ui/needless_bool_assign.rs function random (line 4) | fn random() -> bool { function main (line 8) | fn main() { function issue15063 (line 49) | fn issue15063(x: bool, y: bool) { function wrongly_unmangled_macros (line 62) | fn wrongly_unmangled_macros(must_keep: fn(usize, usize) -> bool, x: usiz... FILE: tests/ui/needless_borrow.rs function main (line 12) | fn main() { function x (line 161) | fn x(y: &i32) -> i32 { function mut_ref (line 165) | fn mut_ref(y: &mut i32) { function f (line 169) | fn f(y: &T) -> T { function g (line 173) | fn g(y: &[u8]) -> u8 { type Trait (line 177) | trait Trait {} function h (line 181) | fn h(_: &dyn Trait) {} function check_expect_suppression (line 183) | fn check_expect_suppression() { type S (line 190) | pub struct S { function calls_field (line 198) | fn calls_field(&self) -> T { function calls_mut_field (line 208) | fn calls_mut_field(&mut self) -> T { function issue9383 (line 215) | fn issue9383() { type S (line 269) | struct S; type X (line 270) | trait X { method f (line 271) | fn f(&self); method f (line 274) | fn f(&self) {} function f (line 276) | fn f() { function issue_12268 (line 281) | fn issue_12268() { function issue_14743 (line 290) | fn issue_14743(slice: &[T]) { FILE: tests/ui/needless_borrow_pat.rs function f1 (line 4) | fn f1(_: &str) {} function main (line 34) | fn main() { function f2 (line 136) | fn f2<'a>(&ref x: &&'a String) -> &'a String { type T1 (line 143) | trait T1 { method f (line 145) | fn f(&ref x: &&String) { method f (line 155) | fn f(&ref x: &&String) { type S (line 152) | struct S; type Foo (line 165) | enum Foo<'a> { FILE: tests/ui/needless_borrowed_ref.rs function main (line 10) | fn main() {} type Struct (line 12) | struct Struct { type TupleStruct (line 18) | struct TupleStruct(u8, u8, u8); function should_lint (line 20) | fn should_lint( function should_not_lint (line 83) | fn should_not_lint( type Animal (line 127) | enum Animal { function foo (line 132) | fn foo(a: &Animal, b: &Animal) { FILE: tests/ui/needless_borrows_for_generic_args.rs function main (line 15) | fn main() { FILE: tests/ui/needless_character_iteration.rs type S (line 5) | struct S { method field (line 10) | fn field(&self) -> &str { function magic (line 15) | fn magic(_: char) {} function main (line 17) | fn main() { FILE: tests/ui/needless_collect.rs function main (line 13) | fn main() { function foo (line 130) | fn foo(_: impl IntoIterator) {} function bar (line 131) | fn bar>(_: Vec, _: I) {} function baz (line 132) | fn baz>(_: I, _: (), _: impl IntoIterator<... function captures_ref_mut (line 141) | fn captures_ref_mut(xs: Vec, mut ys: HashSet) { type MyRef (line 148) | struct MyRef<'a>(PhantomData<&'a mut Cell>>, *mut Cell>) -> Self { function get (line 155) | fn get(&mut self) -> &mut Cell> { function captures_phantom (line 160) | fn captures_phantom(xs: Vec, mut ys: Cell>) { function issue8055 (line 176) | pub fn issue8055(v: impl IntoIterator) -> Result { type Item (line 202) | type Item = T::Item; method next (line 203) | fn next(&mut self) -> Option { function foo (line 208) | fn foo() { function issue16270 (line 218) | fn issue16270() { function vec_push (line 227) | fn vec_push(iter: impl Iterator) -> Vec { function vec_push_no_iter (line 234) | fn vec_push_no_iter(iter: impl Iterator) { function vec_push_multiple (line 239) | fn vec_push_multiple(iter: impl Iterator) -> Vec { function linked_list_push (line 247) | fn linked_list_push(iter: impl Iterator) -> LinkedList { function binary_heap_push (line 254) | fn binary_heap_push(iter: impl Iterator) -> BinaryHeap { function vec_push_mixed (line 260) | fn vec_push_mixed(iter: impl Iterator) -> bool { function linked_list_extend (line 267) | fn linked_list_extend(iter: impl Iterator, s: Vec) -> L... function deque_push_front (line 274) | fn deque_push_front(iter: impl Iterator) -> VecDeque { function linked_list_push_front_mixed (line 282) | fn linked_list_push_front_mixed( FILE: tests/ui/needless_collect_indirect.rs function main (line 12) | fn main() { function lint_vec (line 70) | fn lint_vec(string: &str) -> usize { function lint_vec_deque (line 76) | fn lint_vec_deque() -> usize { function lint_linked_list (line 83) | fn lint_linked_list() -> usize { function lint_binary_heap (line 90) | fn lint_binary_heap() -> usize { function dont_lint (line 97) | fn dont_lint(string: &str) -> usize { function direct_mapping_with_used_mutable_reference (line 109) | fn direct_mapping_with_used_mutable_reference() -> Vec<()> { function indirectly_mapping_with_used_mutable_reference (line 117) | fn indirectly_mapping_with_used_mutable_reference() -> Vec<()> { function indirect_collect_after_indirect_mapping_with_used_mutable_reference (line 126) | fn indirect_collect_after_indirect_mapping_with_used_mutable_reference()... function allow_test (line 137) | fn allow_test() { function test_for (line 144) | fn test_for() { function test_while (line 170) | fn test_while() { function test_loop (line 196) | fn test_loop() { function test_while_let (line 234) | fn test_while_let() { function test_if_cond (line 274) | fn test_if_cond() { function test_if_cond_false_case (line 286) | fn test_if_cond_false_case() { function test_while_cond (line 298) | fn test_while_cond() { function test_while_cond_false_case (line 310) | fn test_while_cond_false_case() { function test_while_let_cond (line 322) | fn test_while_let_cond() { function test_while_let_cond_false_case (line 334) | fn test_while_let_cond_false_case() { FILE: tests/ui/needless_continue.rs function main (line 17) | fn main() { function simple_loop (line 60) | fn simple_loop() { function simple_loop2 (line 67) | fn simple_loop2() { function simple_loop3 (line 76) | fn simple_loop3() { function simple_loop4 (line 85) | fn simple_loop4() { function simple_loop5 (line 94) | fn simple_loop5() { function condition (line 103) | fn condition() -> bool { function update_condition (line 106) | fn update_condition() {} function foo (line 109) | fn foo() { function bar (line 133) | fn bar() { function issue_13641 (line 169) | fn issue_13641() { function main (line 187) | fn main() { function do_something (line 239) | fn do_something() { function some_expr (line 243) | fn some_expr() -> bool { function match_with_value (line 250) | fn match_with_value(mut producer: impl Iterator>... function inside_macro (line 264) | fn inside_macro() { function issue15548 (line 336) | fn issue15548() { function issue16256 (line 346) | fn issue16256() { FILE: tests/ui/needless_doc_main.rs function bad_doctests (line 37) | fn bad_doctests() {} function no_false_positives (line 129) | fn no_false_positives() {} function issue_6022 (line 135) | fn issue_6022() {} function main (line 137) | fn main() {} FILE: tests/ui/needless_else.rs function main (line 18) | fn main() { FILE: tests/ui/needless_for_each_fixable.rs function should_lint (line 12) | fn should_lint() { function should_not_lint (line 56) | fn should_not_lint() { function main (line 130) | fn main() {} function let_desugar (line 133) | fn let_desugar(rows: &[u8]) { function do_something (line 139) | fn do_something(_: &u8, _: u8) {} function single_expr (line 141) | fn single_expr(rows: &[u8]) { function issue15256 (line 147) | fn issue15256() { function issue16294 (line 153) | fn issue16294() { FILE: tests/ui/needless_for_each_unfixable.rs function main (line 5) | fn main() { function issue9912 (line 19) | fn issue9912() { FILE: tests/ui/needless_ifs.rs function maybe_side_effect (line 20) | fn maybe_side_effect() -> bool { function main (line 24) | fn main() { function issue15960 (line 109) | fn issue15960() -> i32 { FILE: tests/ui/needless_late_init.rs type SignificantDrop (line 17) | struct SignificantDrop; method drop (line 19) | fn drop(&mut self) { function simple (line 24) | fn simple() { function main (line 45) | fn main() { function in_async (line 122) | async fn in_async() -> &'static str { function in_const (line 140) | const fn in_const() -> &'static str { function does_not_lint (line 159) | fn does_not_lint() { function issue8911 (line 269) | fn issue8911() -> u32 { function issue13776 (line 292) | fn issue13776() { function issue9895 (line 297) | fn issue9895() { FILE: tests/ui/needless_lifetimes.rs function distinct_lifetimes (line 19) | fn distinct_lifetimes<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: u8) {} function distinct_and_static (line 22) | fn distinct_and_static<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: &'static u8) {} function same_lifetime_on_input (line 26) | fn same_lifetime_on_input<'a>(_x: &'a u8, _y: &'a u8) {} function only_static_on_input (line 29) | fn only_static_on_input(_x: &u8, _y: &u8, _z: &'static u8) {} function mut_and_static_input (line 31) | fn mut_and_static_input(_x: &mut u8, _y: &'static str) {} function in_and_out (line 33) | fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 { function multiple_in_and_out_1 (line 39) | fn multiple_in_and_out_1<'a>(x: &'a u8, _y: &'a u8) -> &'a u8 { function multiple_in_and_out_2a (line 46) | fn multiple_in_and_out_2a<'a, 'b>(x: &'a u8, _y: &'b u8) -> &'a u8 { function multiple_in_and_out_2b (line 54) | fn multiple_in_and_out_2b<'a, 'b>(_x: &'a u8, y: &'b u8) -> &'b u8 { function func (line 60) | async fn func<'a>(args: &[&'a str]) -> Option<&'a str> { function in_static_and_out (line 65) | fn in_static_and_out<'a>(x: &'a u8, _y: &'static u8) -> &'a u8 { function deep_reference_1a (line 72) | fn deep_reference_1a<'a, 'b>(x: &'a u8, _y: &'b u8) -> Result<&'a u8, ()> { function deep_reference_1b (line 80) | fn deep_reference_1b<'a, 'b>(_x: &'a u8, y: &'b u8) -> Result<&'b u8, ()> { function deep_reference_2 (line 86) | fn deep_reference_2<'a>(x: Result<&'a u8, &'a u8>) -> &'a u8 { function deep_reference_3 (line 90) | fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> { function where_clause_without_lt (line 96) | fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> function fn_bound_3 (line 105) | fn fn_bound_3<'a, F: FnOnce(&'a i32)>(x: &'a i32, f: F) { function fn_bound_3_cannot_elide (line 109) | fn fn_bound_3_cannot_elide() { function fn_bound_4 (line 118) | fn fn_bound_4<'a, F: FnOnce() -> &'a ()>(cond: bool, x: &'a (), f: F) ->... type X (line 122) | struct X { method self_and_out (line 127) | fn self_and_out<'s>(&'s self) -> &'s u8 { method self_and_in_out_1 (line 135) | fn self_and_in_out_1<'s, 't>(&'s self, _x: &'t u8) -> &'s u8 { method self_and_in_out_2 (line 143) | fn self_and_in_out_2<'s, 't>(&'s self, x: &'t u8) -> &'t u8 { method distinct_self_and_in (line 148) | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) {} method self_and_same_in (line 152) | fn self_and_same_in<'s>(&'s self, _x: &'s u8) {} type Foo (line 155) | struct Foo<'a>(&'a u8); method implicit (line 365) | fn implicit<'a>(&'a self) -> &'a () { method implicit_mut (line 369) | fn implicit_mut<'a>(&'a mut self) -> &'a () { method explicit (line 374) | fn explicit<'a>(self: &'a Arc) -> &'a () { method explicit_mut (line 379) | fn explicit_mut<'a>(self: &'a mut Rc) -> &'a () { method explicit_older (line 384) | fn explicit_older<'a>(self: &'a Arc) -> &'a () { method explicit_mut_older (line 388) | fn explicit_mut_older<'a>(self: &'a mut Rc) -> &'a () { method lifetime_elsewhere (line 392) | fn lifetime_elsewhere<'a>(self: Box, here: &'a ()) -> &'a () { method wait (line 517) | pub async fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuar... function self_shared_lifetime (line 159) | fn self_shared_lifetime(&self, _: &'a u8) {} function self_bound_lifetime (line 161) | fn self_bound_lifetime<'b: 'a>(&self, _: &'b u8) {} function already_elided (line 164) | fn already_elided<'a>(_: &u8, _: &'a u8) -> &'a u8 { function struct_with_lt4b (line 172) | fn struct_with_lt4b<'a, 'b>(_foo: &'a Foo<'b>) -> &'b str { type WithLifetime (line 177) | trait WithLifetime<'a> {} type WithLifetimeAlias (line 179) | type WithLifetimeAlias<'a> = dyn WithLifetime<'a>; function trait_obj_elided (line 182) | fn trait_obj_elided<'a>(_arg: &'a dyn WithLifetime) -> &'a str { function trait_obj_elided2 (line 188) | fn trait_obj_elided2<'a>(_arg: &'a dyn Drop) -> &'a str { type FooAlias (line 193) | type FooAlias<'a> = Foo<'a>; function alias_with_lt4b (line 199) | fn alias_with_lt4b<'a, 'b>(_foo: &'a FooAlias<'b>) -> &'b str { function named_input_elided_output (line 204) | fn named_input_elided_output<'a>(_arg: &'a str) -> &str { function elided_input_named_output (line 209) | fn elided_input_named_output<'a>(_arg: &str) -> &'a str { function trait_bound_ok (line 213) | fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { function trait_bound (line 217) | fn trait_bound<'a, T: WithLifetime<'a>>(_: &'a u8, _: T) { function trait_bound_bug (line 222) | fn trait_bound_bug<'a, T: WithLifetime<'a>>() { type Test (line 227) | struct Test { method iter (line 232) | fn iter<'a>(&'a self) -> Box + 'a> { type LintContext (line 237) | trait LintContext<'a> {} function f (line 239) | fn f<'a, T: LintContext<'a>>(_: &T) {} function test (line 241) | fn test<'a>(x: &'a [u8]) -> u8 { type BadTrait (line 248) | trait BadTrait { method needless_lt (line 249) | fn needless_lt<'a>(x: &'a u8) {} method needless_lt (line 254) | fn needless_lt<'a>(_x: &'a u8) {} function trait_fn (line 264) | fn trait_fn<'a>(i: &'a i32) -> impl Fn() -> &'a i32 { function trait_fn_mut (line 267) | fn trait_fn_mut<'a>(i: &'a i32) -> impl FnMut() -> &'a i32 { function trait_fn_once (line 270) | fn trait_fn_once<'a>(i: &'a i32) -> impl FnOnce() -> &'a i32 { function impl_trait_in_input_position (line 275) | fn impl_trait_in_input_position<'a>(f: impl Fn() -> &'a i32) -> &'a i32 { function impl_trait_in_output_position (line 278) | fn impl_trait_in_output_position<'a>(i: &'a i32) -> impl Fn() -> &'a i32 { function impl_trait_elidable_nested_named_lifetimes (line 282) | fn impl_trait_elidable_nested_named_lifetimes<'a>(i: &'a i32, f: impl fo... function impl_trait_elidable_nested_anonymous_lifetimes (line 285) | fn impl_trait_elidable_nested_anonymous_lifetimes<'a>(i: &'a i32, f: imp... function generics_not_elidable (line 291) | fn generics_not_elidable<'a, T: Fn() -> &'a i32>(f: T) -> &'a i32 { function generics_elidable (line 295) | fn generics_elidable<'a, T: Fn(&i32) -> &i32>(i: &'a i32, f: T) -> &'a i... function where_clause_not_elidable (line 301) | fn where_clause_not_elidable<'a, T>(f: T) -> &'a i32 function where_clause_elidable (line 308) | fn where_clause_elidable<'a, T>(i: &'a i32, f: T) -> &'a i32 function pointer_fn_in_input_position (line 317) | fn pointer_fn_in_input_position<'a>(f: fn(&'a i32) -> &'a i32, i: &'a i3... function pointer_fn_in_output_position (line 320) | fn pointer_fn_in_output_position<'a>(_: &'a i32) -> fn(&'a i32) -> &'a i... function pointer_fn_elidable (line 324) | fn pointer_fn_elidable<'a>(i: &'a i32, f: fn(&i32) -> &i32) -> &'a i32 { function nested_fn_pointer_1 (line 330) | fn nested_fn_pointer_1<'a>(_: &'a i32) -> fn(fn(&'a i32) -> &'a i32) -> ... function nested_fn_pointer_2 (line 333) | fn nested_fn_pointer_2<'a>(_: &'a i32) -> impl Fn(fn(&'a i32)) { function nested_fn_pointer_3 (line 338) | fn nested_fn_pointer_3<'a>(_: &'a i32) -> fn(fn(&i32) -> &i32) -> i32 { function nested_fn_pointer_4 (line 342) | fn nested_fn_pointer_4<'a>(_: &'a i32) -> impl Fn(fn(&i32)) { function apply_deref (line 350) | pub fn apply_deref<'a, T, F, R>(x: &'a T, f: F) -> R type Foo (line 363) | struct Foo; method implicit (line 365) | fn implicit<'a>(&'a self) -> &'a () { method implicit_mut (line 369) | fn implicit_mut<'a>(&'a mut self) -> &'a () { method explicit (line 374) | fn explicit<'a>(self: &'a Arc) -> &'a () { method explicit_mut (line 379) | fn explicit_mut<'a>(self: &'a mut Rc) -> &'a () { method explicit_older (line 384) | fn explicit_older<'a>(self: &'a Arc) -> &'a () { method explicit_mut_older (line 388) | fn explicit_mut_older<'a>(self: &'a mut Rc) -> &'a () { method lifetime_elsewhere (line 392) | fn lifetime_elsewhere<'a>(self: Box, here: &'a ()) -> &'a () { method wait (line 517) | pub async fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuar... type Bar (line 398) | trait Bar { method implicit (line 399) | fn implicit<'a>(&'a self) -> &'a (); method implicit_provided (line 401) | fn implicit_provided<'a>(&'a self) -> &'a () { method explicit (line 407) | fn explicit<'a>(self: &'a Arc) -> &'a (); method explicit_provided (line 410) | fn explicit_provided<'a>(self: &'a Arc) -> &'a () { method explicit_older (line 415) | fn explicit_older<'a>(self: &'a Arc) -> &'a (); method explicit_provided_older (line 417) | fn explicit_provided_older<'a>(self: &'a Arc) -> &'a () { method lifetime_elsewhere (line 421) | fn lifetime_elsewhere<'a>(self: Box, here: &'a ()) -> &'a (); method lifetime_elsewhere_provided (line 423) | fn lifetime_elsewhere_provided<'a>(self: Box, here: &'a ()) -> &... function foo (line 433) | fn foo<'a>(x: &'a u8, y: &'_ u8) {} function bar (line 436) | fn bar<'a>(x: &'a u8, y: &'_ u8, z: &'_ u8) {} function one_input (line 444) | fn one_input<'a>(x: &'a u8) -> &'a u8 { function multiple_inputs_output_not_elided (line 450) | fn multiple_inputs_output_not_elided<'a, 'b>(x: &'a u8, y: &'b u8, z: &'... function multiple_inputs_output_would_be_elided (line 456) | fn multiple_inputs_output_would_be_elided<'a, 'b>(x: &'a u8, y: &'b u8, ... type Foo (line 513) | struct Foo; method implicit (line 365) | fn implicit<'a>(&'a self) -> &'a () { method implicit_mut (line 369) | fn implicit_mut<'a>(&'a mut self) -> &'a () { method explicit (line 374) | fn explicit<'a>(self: &'a Arc) -> &'a () { method explicit_mut (line 379) | fn explicit_mut<'a>(self: &'a mut Rc) -> &'a () { method explicit_older (line 384) | fn explicit_older<'a>(self: &'a Arc) -> &'a () { method explicit_mut_older (line 388) | fn explicit_mut_older<'a>(self: &'a mut Rc) -> &'a () { method lifetime_elsewhere (line 392) | fn lifetime_elsewhere<'a>(self: Box, here: &'a ()) -> &'a () { method wait (line 517) | pub async fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuar... function foo (line 522) | async fn foo<'a>(_x: &i32, y: &'a str) -> &'a str { type ParallelIterator (line 529) | trait ParallelIterator { type Item (line 542) | type Item = T; type Copied (line 533) | struct Copied { type Generic (line 547) | pub struct Generic(T); type Generic (line 554) | pub struct Generic(T); function issue14607 (line 560) | pub fn issue14607<'s>(x: &'s u8) { function main (line 567) | fn main() {} FILE: tests/ui/needless_match.rs type Simple (line 6) | enum Simple { function useless_match (line 13) | fn useless_match() { function custom_type_match (line 31) | fn custom_type_match() { function option_match (line 55) | fn option_match(x: Option) { function func_ret_err (line 68) | fn func_ret_err(err: T) -> Result { function result_match (line 72) | fn result_match() { function if_let_option (line 91) | fn if_let_option() { function if_let_option_result (line 117) | fn if_let_option_result() -> Result<(), ()> { function if_let_result (line 126) | fn if_let_result() { function if_let_custom_enum (line 137) | fn if_let_custom_enum(x: Simple) { type E (line 161) | enum E { type Complex (line 166) | enum Complex { function match_test (line 173) | fn match_test() { type Trait (line 208) | trait Trait {} type Struct (line 209) | struct Struct; function optmap (line 212) | fn optmap(s: Option<&Struct>) -> Option<&dyn Trait> { function lint_tests (line 219) | fn lint_tests() { type Tr (line 245) | trait Tr { method as_mut (line 246) | fn as_mut(&mut self) -> Result<&mut i32, &mut i32>; method as_mut (line 249) | fn as_mut(&mut self) -> Result<&mut i32, &mut i32> { function wildcard_if (line 258) | fn wildcard_if() { function a (line 305) | fn a() -> Option<()> { function b (line 308) | fn b() -> Option<()> { function c (line 311) | fn c() -> Option<()> { function issue13574 (line 316) | pub fn issue13574() -> Option<()> { function issue14754 (line 367) | fn issue14754(t: Result) -> Result { function main (line 382) | fn main() {} FILE: tests/ui/needless_maybe_sized.rs function directly (line 9) | fn directly(t: &T) {} type A (line 12) | trait A: Sized {} type B (line 13) | trait B: A {} function depth_1 (line 15) | fn depth_1(t: &T) {} function depth_2 (line 17) | fn depth_2(t: &T) {} function multiple_paths (line 21) | fn multiple_paths(t: &T) {} function in_where (line 24) | fn in_where(t: &T) function mixed_1 (line 31) | fn mixed_1(t: &T) function mixed_2 (line 38) | fn mixed_2(t: &T) function mixed_3 (line 45) | fn mixed_3(t: &T) type Struct (line 53) | struct Struct(T); function method (line 58) | fn method(&self) {} type Enum (line 62) | enum Enum { type Trait (line 72) | trait Trait { method trait_method (line 74) | fn trait_method() {} type SecondInTrait (line 83) | trait SecondInTrait: Send + Sized {} function second_in_trait (line 84) | fn second_in_trait() {} function impl_trait (line 87) | fn impl_trait(_: &(impl Sized + ?Sized)) {} type GenericTrait (line 90) | trait GenericTrait: Sized {} function in_generic_trait (line 91) | fn in_generic_trait + ?Sized, U>() {} type C1 (line 101) | trait C1 {} type C2 (line 102) | trait C2 {} type B1 (line 103) | trait B1: C1 + C2 {} type B2 (line 104) | trait B2: C2 + Sized {} type A1 (line 105) | trait A1: B1 + B2 {} function larger_graph (line 107) | fn larger_graph() {} function sized (line 113) | fn sized() {} function maybe_sized (line 114) | fn maybe_sized() {} type SeparateBounds (line 116) | struct SeparateBounds(T); type P (line 119) | trait P {} type Q (line 120) | trait Q: P {} function ok_depth_1 (line 122) | fn ok_depth_1() {} function ok_depth_2 (line 123) | fn ok_depth_2() {} type InDerive (line 132) | struct InDerive { type Refined (line 136) | struct Refined(T); function issue13360 (line 140) | fn issue13360() { function main (line 148) | fn main() {} FILE: tests/ui/needless_option_as_deref.rs function main (line 5) | fn main() { type S (line 51) | struct S<'a> { function from_field (line 55) | fn from_field<'a>(s: &'a mut S<'a>) -> Option<&'a mut usize> { function something (line 60) | pub fn something(mut maybe_side_effect: Option<&mut String>) { function other (line 68) | fn other(_maybe_side_effect: Option<&mut String>) { type S (line 72) | pub struct S { type SomeTrait (line 78) | pub trait SomeTrait { method something (line 79) | fn something(&self, mut maybe_side_effect: Option<&mut String>) { function other (line 85) | fn other(_maybe_side_effect: Option<&mut String>) { FILE: tests/ui/needless_option_take.rs type MyStruct (line 1) | struct MyStruct; method get_option (line 4) | pub fn get_option() -> Option { function return_option (line 9) | fn return_option() -> Option { function main (line 13) | fn main() { FILE: tests/ui/needless_parens_on_range_literals.rs function main (line 6) | fn main() { FILE: tests/ui/needless_pass_by_ref_mut.rs function foo (line 12) | fn foo(s: &mut Vec, b: &u32, x: &mut u32) { function foo2 (line 19) | fn foo2(s: &mut Vec) { function foo3 (line 24) | fn foo3(s: &mut Vec) -> &mut Vec { function foo4 (line 29) | fn foo4(s: &mut Vec) { function foo5 (line 34) | fn foo5(s: &mut Vec) { function foo6 (line 38) | fn foo6(s: &mut Vec) { function non_mut_ref (line 44) | fn non_mut_ref(_: &Vec) {} type Bar (line 46) | struct Bar; method bar (line 49) | fn bar(&mut self) {} method mushroom (line 52) | fn mushroom(&self, vec: &mut Vec) -> usize { type Babar (line 59) | trait Babar { method method (line 61) | fn method(arg: &mut u32); method method (line 66) | fn method(a: &mut u32) {} function alias_check (line 70) | fn alias_check(s: &mut Vec) { function alias_check2 (line 78) | fn alias_check2(mut s: &mut Vec) { type Mut (line 83) | struct Mut { function new (line 89) | fn new(ptr: &mut T) -> Self { function unused (line 97) | fn unused(_: &mut u32, _b: &mut u8) {} function f1 (line 100) | async fn f1(x: &mut i32) { function f2 (line 104) | async fn f2(x: &mut i32, y: String) { function f3 (line 108) | async fn f3(x: &mut i32, y: String, z: String) { function f4 (line 112) | async fn f4(x: &mut i32, y: i32) { function f5 (line 116) | async fn f5(x: i32, y: &mut i32) { function f6 (line 120) | async fn f6(x: i32, y: &mut i32, z: &mut i32) { function f7 (line 125) | async fn f7(x: &mut i32, y: i32, z: &mut i32, a: i32) { function a1 (line 130) | async fn a1(x: &mut i32) { function a2 (line 135) | async fn a2(x: &mut i32, y: String) { function a3 (line 140) | async fn a3(x: &mut i32, y: String, z: String) { function a4 (line 145) | async fn a4(x: &mut i32, y: i32) { function a5 (line 150) | async fn a5(x: i32, y: &mut i32) { function a6 (line 155) | async fn a6(x: i32, y: &mut i32) { function a7 (line 160) | async fn a7(x: i32, y: i32, z: &mut i32) { function a8 (line 165) | async fn a8(x: i32, a: &mut i32, y: i32, z: &mut i32) { function passed_as_closure (line 173) | fn passed_as_closure(s: &mut u32) {} function passed_as_local (line 176) | fn passed_as_local(s: &mut u32) {} function ty_unify_1 (line 179) | fn ty_unify_1(s: &mut u32) {} function ty_unify_2 (line 182) | fn ty_unify_2(s: &mut u32) {} function passed_as_field (line 185) | fn passed_as_field(s: &mut u32) {} function closure_takes_mut (line 187) | fn closure_takes_mut(s: fn(&mut u32)) {} type A (line 189) | struct A { function used_as_path (line 194) | fn used_as_path(s: &mut u32) {} function lint_attr (line 198) | fn lint_attr(s: &mut u32) {} function cfg_warn (line 201) | fn cfg_warn(s: &mut u32) {} function cfg_warn (line 206) | fn cfg_warn(s: &mut u32) {} function inner_async (line 211) | async fn inner_async(x: &mut i32, y: &mut u32) { function inner_async2 (line 219) | async fn inner_async2(x: &mut i32, y: &mut u32) { function inner_async3 (line 228) | async fn inner_async3(x: &mut i32, y: &mut u32) { function async_vec (line 238) | async fn async_vec(b: &mut Vec) { function async_vec2 (line 243) | async fn async_vec2(b: &mut Vec) { function non_mut (line 246) | fn non_mut(n: &str) {} function call_in_closure1 (line 248) | async fn call_in_closure1(n: &mut str) { function str_mut (line 252) | fn str_mut(str: &mut String) -> bool { function call_in_closure2 (line 256) | async fn call_in_closure2(str: &mut String) { function closure (line 261) | async fn closure(n: &mut usize) -> impl '_ + FnMut() { function closure2 (line 268) | fn closure2(n: &mut usize) -> impl '_ + FnMut() -> usize { function closure3 (line 275) | async fn closure3(n: &mut usize) { function closure4 (line 280) | async fn closure4(n: &mut usize) { function pub_foo (line 289) | pub fn pub_foo(s: &mut Vec, b: &u32, x: &mut u32) { function _f (line 294) | async fn _f(v: &mut Vec<()>) { type Data (line 299) | struct Data { function get_mut_unchecked (line 303) | unsafe fn get_mut_unchecked(ptr: &mut NonNull>) -> &mut T { function get_mut_unchecked2 (line 307) | fn get_mut_unchecked2(ptr: &mut NonNull>) -> &mut T { function set_true (line 311) | fn set_true(b: &mut bool) { function true_setter (line 316) | fn true_setter(b: &mut bool) -> impl FnOnce() + '_ { function filter_copy (line 321) | fn filter_copy(predicate: &mut impl FnMut(T) -> bool) -> impl F... type MutSelfTrait (line 325) | trait MutSelfTrait { method mut_self (line 327) | fn mut_self(&mut self); method mut_self (line 360) | fn mut_self(&mut self) {} type MutSelf (line 330) | struct MutSelf { method bar (line 335) | fn bar(&mut self) {} method foo (line 338) | async fn foo(&mut self, u: &mut i32, v: &mut u32) { method foo2 (line 347) | async fn foo2(&mut self, u: &mut i32, v: &mut u32) { function _empty_tup (line 364) | fn _empty_tup(x: &mut (())) {} function _single_tup (line 366) | fn _single_tup(x: &mut ((i32,))) {} function _multi_tup (line 368) | fn _multi_tup(x: &mut ((i32, u32))) {} function _fn (line 370) | fn _fn(x: &mut (fn())) {} function _extern_rust_fn (line 373) | fn _extern_rust_fn(x: &mut extern "Rust" fn()) {} function _extern_c_fn (line 375) | fn _extern_c_fn(x: &mut extern "C" fn()) {} function _unsafe_fn (line 377) | fn _unsafe_fn(x: &mut unsafe fn()) {} function _unsafe_extern_fn (line 379) | fn _unsafe_extern_fn(x: &mut unsafe extern "C" fn()) {} function _fn_with_arg (line 381) | fn _fn_with_arg(x: &mut unsafe extern "C" fn(i32)) {} function _fn_with_ret (line 383) | fn _fn_with_ret(x: &mut unsafe extern "C" fn() -> (i32)) {} function main (line 386) | fn main() { FILE: tests/ui/needless_pass_by_ref_mut2.rs function inner_async3 (line 8) | async fn inner_async3(x: &mut i32, y: &mut u32) { function inner_async4 (line 17) | async fn inner_async4(u: &mut i32, v: &mut u32) { function main (line 26) | fn main() {} function issue16267 (line 29) | fn issue16267<'a>(msg: &str, slice: &'a mut [i32]) -> &'a [i32] { FILE: tests/ui/needless_pass_by_ref_mut_2021.rs type Data (line 5) | struct Data { function get_mut_unchecked (line 10) | unsafe fn get_mut_unchecked(ptr: &mut std::ptr::NonNull>) -> ... FILE: tests/ui/needless_pass_by_value.rs function foo (line 19) | fn foo(v: Vec, w: Vec, mut x: Vec, y: Vec) -> Ve... function consume (line 31) | fn consume(_: T) {} type Wrapper (line 33) | struct Wrapper(String); function bar (line 35) | fn bar(x: String, y: Wrapper) { function test_borrow_trait (line 44) | fn test_borrow_trait, U: AsRef, V>(t: T, u: U, v: V) { function test_fn (line 53) | fn test_fn i32>(f: F) { function test_match (line 58) | fn test_match(x: Option>, y: Option>) { function test_destructure (line 73) | fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { type Foo (line 85) | trait Foo {} type Serialize (line 88) | trait Serialize {} function test_blanket_ref (line 92) | fn test_blanket_ref(vals: T, serializable: S) {} function issue_2114 (line 95) | fn issue_2114(s: String, t: String, u: Vec, v: Vec) { type S (line 107) | struct S(T, U); function foo (line 110) | fn foo( function bar (line 121) | fn bar(_t: T, // Ok, since `&T: Serialize` too function baz (line 125) | fn baz(&self, uu: U, ss: Self) {} type FalsePositive (line 130) | trait FalsePositive { method visit_str (line 131) | fn visit_str(s: &str); method visit_string (line 132) | fn visit_string(s: String) { function ext (line 138) | extern "C" fn ext(x: MaybeUninit) -> usize { function range (line 143) | fn range>(range: T) { type CopyWrapper (line 147) | struct CopyWrapper(u32); function bar_copy (line 149) | fn bar_copy(x: u32, y: CopyWrapper) { function test_destructure_copy (line 157) | fn test_destructure_copy(x: CopyWrapper, y: CopyWrapper, z: CopyWrapper) { type Bar (line 171) | trait Bar<'a, A> {} function some_fun (line 173) | fn some_fun<'b, S: Bar<'b, ()>>(items: S) {} type Club (line 177) | trait Club<'a, A> {} function more_fun (line 179) | fn more_fun(items: impl Club<'static, i32>) {} function is_sync (line 182) | fn is_sync(_: T) type Obj (line 188) | struct Obj(String); function prefix_test (line 190) | fn prefix_test(_unused_with_prefix: Obj) {} function option_inner_ref (line 194) | fn option_inner_ref(x: Option) { type Option (line 201) | pub struct Option(T); function non_standard_option (line 204) | fn non_standard_option(x: non_standard::Option) { function option_by_name (line 209) | fn option_by_name(x: Option; function non_option (line 216) | fn non_option(x: OptStr) { type Opt (line 221) | type Opt = Option; function non_option_either (line 223) | fn non_option_either(x: Opt) { function main (line 228) | fn main() { FILE: tests/ui/needless_pass_by_value_proc_macro.rs function foo (line 10) | pub fn foo(_input: TokenStream) -> TokenStream { function bar (line 15) | pub fn bar(_input: TokenStream) -> TokenStream { function baz (line 20) | pub fn baz(_args: TokenStream, _input: TokenStream) -> TokenStream { FILE: tests/ui/needless_pub_self.rs function a (line 13) | pub(self) fn a() {} function b (line 15) | pub(in self) fn b() {} function c (line 18) | pub fn c() {} function d (line 20) | pub(in super) fn d() {} function e (line 21) | pub(super) fn e() {} function f (line 22) | pub(self) fn f() {} FILE: tests/ui/needless_question_mark.rs type TO (line 10) | struct TO { type TR (line 14) | struct TR { function simple_option_bad1 (line 18) | fn simple_option_bad1(to: TO) -> Option { function simple_option_bad2 (line 27) | fn simple_option_bad2(to: TO) -> Option { function simple_option_bad3 (line 33) | fn simple_option_bad3(to: TO) -> Option { function simple_option_bad4 (line 39) | fn simple_option_bad4(to: Option) -> Option { function simple_option_bad5 (line 48) | fn simple_option_bad5(to: Option) -> Option { function simple_result_bad1 (line 56) | fn simple_result_bad1(tr: TR) -> Result { function simple_result_bad2 (line 64) | fn simple_result_bad2(tr: TR) -> Result { function simple_result_bad3 (line 69) | fn simple_result_bad3(tr: TR) -> Result { function simple_result_bad4 (line 74) | fn simple_result_bad4(tr: Result) -> Result { function simple_result_bad5 (line 82) | fn simple_result_bad5(tr: Result) -> Result { function also_bad (line 89) | fn also_bad(tr: Result) -> Result { function false_positive_test (line 98) | fn false_positive_test(x: Result<(), U>) -> Result<(), T> function deref_ref (line 106) | fn deref_ref(s: Option<&String>) -> Option<&str> { function main (line 110) | fn main() {} function test1 (line 120) | pub fn test1() { function test2 (line 133) | pub fn test2() { function async_option_bad (line 138) | async fn async_option_bad(to: TO) -> Option { function async_deref_ref (line 144) | async fn async_deref_ref(s: Option<&String>) -> Option<&str> { function async_result_bad (line 148) | async fn async_result_bad(s: TR) -> Result { function async_wrapped (line 153) | async fn async_wrapped(a: Option) -> Option { FILE: tests/ui/needless_range_loop.rs constant CONST (line 10) | const CONST: [usize; 4] = [0, 1, 8, 16]; constant MAX_LEN (line 11) | const MAX_LEN: usize = 42; function main (line 13) | fn main() { type Test (line 143) | struct Test { type Output (line 148) | type Output = usize; method index (line 149) | fn index(&self, index: usize) -> &Self::Output { function partition (line 154) | fn partition(v: &mut [T]) -> usize { function manual_copy_same_destination (line 167) | pub fn manual_copy_same_destination(dst: &mut [i32], d: usize, s: usize) { type Handle (line 175) | pub trait Handle { method new_for_index (line 176) | fn new_for_index(index: usize) -> Self; method index (line 177) | fn index(&self) -> usize; function test (line 180) | pub fn test() -> H { function needless_loop (line 189) | fn needless_loop() { function issue_15068 (line 214) | fn issue_15068() { FILE: tests/ui/needless_range_loop2.rs function calc_idx (line 4) | fn calc_idx(i: usize) -> usize { function main (line 8) | fn main() { function example (line 119) | pub fn example(list: &[[f64; 3]]) { FILE: tests/ui/needless_raw_string.rs function main (line 4) | fn main() { function issue_13503 (line 33) | fn issue_13503() { FILE: tests/ui/needless_raw_string_hashes.rs function main (line 4) | fn main() { function issue_13503 (line 43) | fn issue_13503() { FILE: tests/ui/needless_return.rs function test_end_of_fn (line 25) | fn test_end_of_fn() -> bool { function test_no_semicolon (line 34) | fn test_no_semicolon() -> bool { function test_multiple_semicolon (line 40) | fn test_multiple_semicolon() -> bool { function test_multiple_semicolon_with_spaces (line 46) | fn test_multiple_semicolon_with_spaces() -> bool { function test_if_block (line 51) | fn test_if_block() -> bool { function test_match (line 61) | fn test_match(x: bool) -> bool { function test_closure (line 72) | fn test_closure() { function test_macro_call (line 81) | fn test_macro_call() -> i32 { function test_void_fun (line 86) | fn test_void_fun() { function test_void_if_fun (line 91) | fn test_void_if_fun(b: bool) { function test_void_match (line 101) | fn test_void_match(x: u32) { function test_nested_match (line 109) | fn test_nested_match(x: u32) { function temporary_outlives_local (line 122) | fn temporary_outlives_local() -> String { function borrows_but_not_last (line 127) | fn borrows_but_not_last(value: bool) -> String { function test_return_in_macro (line 147) | fn test_return_in_macro() { function foo (line 156) | fn foo(bar: Result<(), ()>) { function test_closure (line 161) | fn test_closure() { type Foo (line 170) | struct Foo; function bar (line 172) | fn bar(res: Result) -> Foo { function async_test_end_of_fn (line 178) | async fn async_test_end_of_fn() -> bool { function async_test_no_semicolon (line 187) | async fn async_test_no_semicolon() -> bool { function async_test_if_block (line 192) | async fn async_test_if_block() -> bool { function async_test_match (line 202) | async fn async_test_match(x: bool) -> bool { function async_test_closure (line 213) | async fn async_test_closure() { function async_test_macro_call (line 222) | async fn async_test_macro_call() -> i32 { function async_test_void_fun (line 227) | async fn async_test_void_fun() { function async_test_void_if_fun (line 232) | async fn async_test_void_if_fun(b: bool) { function async_test_void_match (line 242) | async fn async_test_void_match(x: u32) { function async_temporary_outlives_local (line 250) | async fn async_temporary_outlives_local() -> String { function async_borrows_but_not_last (line 255) | async fn async_borrows_but_not_last(value: bool) -> String { function async_test_return_in_macro (line 267) | async fn async_test_return_in_macro() { function let_else (line 272) | fn let_else() { function needless_return_macro (line 276) | fn needless_return_macro() -> String { function issue_9361 (line 283) | fn issue_9361(n: i32) -> i32 { function expect_lint (line 289) | fn expect_lint() -> i32 { function expect_group (line 296) | fn expect_group() -> i32 { function expect_all (line 303) | fn expect_all() -> i32 { function expect_warnings (line 310) | fn expect_warnings() -> i32 { function issue8336 (line 318) | fn issue8336(x: i32) -> bool { function issue8156 (line 329) | fn issue8156(x: u8) -> u64 { function issue9192 (line 343) | fn issue9192() -> i32 { function issue9503 (line 350) | fn issue9503(x: usize) -> isize { function with_newline (line 363) | pub fn with_newline() { function oneline (line 370) | pub fn oneline() { function issue9947 (line 376) | fn issue9947() -> Result<(), String> { function issue10051 (line 382) | fn issue10051() -> Result { function single (line 393) | fn single() -> u32 { function multiple (line 398) | fn multiple(b1: bool, b2: bool, b3: bool) -> u32 { function test_match_as_stmt (line 404) | fn test_match_as_stmt() { function allow_works (line 413) | fn allow_works() -> i32 { function conjunctive_blocks (line 420) | fn conjunctive_blocks() -> String { function issue12907 (line 425) | fn issue12907() -> String { function issue13458 (line 430) | fn issue13458() { function main (line 434) | fn main() {} function a (line 436) | fn a(x: Option) -> Option { function b (line 446) | fn b(x: Option) -> Option { function todo (line 456) | unsafe fn todo() -> *const u8 { function issue_12157 (line 460) | pub unsafe fn issue_12157() -> *const i32 { function test1 (line 466) | fn test1(a: i32) -> u32 { function test2 (line 479) | fn test2(a: i32) -> u32 { function test3 (line 491) | fn test3(a: i32) -> u32 { function test4 (line 504) | fn test4(a: i32) -> u32 { function issue14474 (line 530) | fn issue14474() -> u64 { FILE: tests/ui/needless_return_with_question_mark.rs function a (line 15) | fn a() -> u32 { function b (line 19) | fn b() -> Result { function c (line 24) | fn c() -> Option<()> { function main (line 28) | fn main() -> Result<(), ()> { function issue11616 (line 65) | fn issue11616() -> Result<(), ()> { function issue11982 (line 82) | fn issue11982() { function issue11982_no_conversion (line 106) | fn issue11982_no_conversion() { function general_return (line 122) | fn general_return() { FILE: tests/ui/needless_splitn.rs function main (line 11) | fn main() { function _question_mark (line 40) | fn _question_mark(s: &str) -> Option<()> { function _test_msrv (line 54) | fn _test_msrv() { FILE: tests/ui/needless_type_cast.rs function takes_i32 (line 4) | fn takes_i32(x: i32) -> i32 { function generic (line 8) | fn generic(x: T) -> T { function returns_u8 (line 12) | fn returns_u8() -> u8 { function main (line 16) | fn main() { function test_function_call (line 42) | fn test_function_call() { function test_generic_call (line 49) | fn test_generic_call() { function test_method_on_cast (line 55) | fn test_method_on_cast() { function test_iterator_sum (line 62) | fn test_iterator_sum() { function test_closure (line 69) | fn test_closure() { function test_struct_field (line 75) | fn test_struct_field() { function test_option (line 89) | fn test_option() { function test_mixed_context (line 95) | fn test_mixed_context() { function test_nested_block (line 101) | fn test_nested_block() { function test_match_expr (line 110) | fn test_match_expr() { function test_return_expr (line 119) | fn test_return_expr() -> i32 { function test_closure_always_cast (line 125) | fn test_closure_always_cast() { function test_closure_mixed_usage (line 132) | fn test_closure_mixed_usage() { function test_nested_generic_call (line 138) | fn test_nested_generic_call() { function test_generic_initializer (line 144) | fn test_generic_initializer() { function test_unsafe_transmute (line 151) | fn test_unsafe_transmute() { function test_if_with_generic (line 158) | fn test_if_with_generic() { function test_match_with_generic (line 164) | fn test_match_with_generic() { function test_default (line 173) | fn test_default() { function test_loop_with_generic (line 179) | fn test_loop_with_generic() { function test_size_of_cast (line 188) | fn test_size_of_cast() { function test_suffixed_literal_cast (line 197) | fn test_suffixed_literal_cast() { function test_negative_literal (line 205) | fn test_negative_literal() { function test_suffixed_negative_literal (line 213) | fn test_suffixed_negative_literal() { function test_binary_op (line 221) | fn test_binary_op() { function test_fn_return_as_init (line 229) | fn test_fn_return_as_init() { function test_method_as_init (line 236) | fn test_method_as_init() { function test_const_as_init (line 243) | fn test_const_as_init() { function test_single_use_fn_call (line 251) | fn test_single_use_fn_call() { function test_single_use_suffixed_literal (line 258) | fn test_single_use_suffixed_literal() { function test_single_use_binary_op (line 264) | fn test_single_use_binary_op() { FILE: tests/ui/needless_type_cast_unfixable.rs type Foo (line 4) | struct Foo(*mut core::ffi::c_void); type Bar (line 6) | enum Bar { function issue_16243 (line 12) | fn issue_16243() { FILE: tests/ui/needless_update.rs type S (line 4) | struct S { type T (line 10) | struct T { function main (line 15) | fn main() { FILE: tests/ui/neg_cmp_op_on_partial_ord.rs function main (line 9) | fn main() { FILE: tests/ui/neg_multiply.rs type X (line 7) | struct X; type Output (line 10) | type Output = X; method mul (line 12) | fn mul(self, _r: isize) -> Self { type Output (line 18) | type Output = X; function mul (line 20) | fn mul(self, _r: X) -> X { function main (line 25) | fn main() { function float (line 57) | fn float() { type Y (line 86) | struct Y { function nested (line 90) | fn nested() { FILE: tests/ui/never_loop.rs function test1 (line 7) | fn test1() { function test2 (line 21) | fn test2() { function test3 (line 31) | fn test3() { function test4 (line 42) | fn test4() { function test5 (line 53) | fn test5() { function test6 (line 69) | fn test6() { function test7 (line 86) | fn test7() { function test8 (line 98) | fn test8() { function test9 (line 109) | fn test9() { function test10 (line 119) | fn test10() { function test11 (line 131) | fn test11 i32>(mut f: F) { function test12 (line 140) | pub fn test12(a: bool, b: bool) { function test13 (line 154) | pub fn test13() { function test14 (line 168) | pub fn test14() { function test15 (line 185) | pub fn test15() { function test16 (line 196) | pub fn test16() { function test17 (line 207) | pub fn test17() { function test18 (line 224) | pub fn test18() { function test19 (line 252) | pub fn test19() { function test20 (line 262) | pub fn test20() { function test21 (line 275) | pub fn test21() { function test22 (line 287) | pub fn test22() { function test23 (line 297) | pub fn test23() { function test24 (line 310) | pub fn test24() { function test25 (line 323) | pub fn test25() { function test26 (line 334) | pub fn test26() { function test27 (line 345) | pub fn test27() { function test29 (line 358) | pub fn test29() { function test30 (line 369) | pub fn test30() { function test31 (line 382) | pub fn test31(b: bool) { function test32 (line 396) | pub fn test32() { function issue12205 (line 413) | pub fn issue12205() -> Option<()> { function stmt_after_return (line 422) | fn stmt_after_return() { function loop_label (line 430) | fn loop_label() { function main (line 450) | fn main() {} function issue15059 (line 452) | fn issue15059() { function issue15350 (line 484) | fn issue15350() { function issue15673 (line 508) | fn issue15673() { function issue16462 (line 536) | fn issue16462() { FILE: tests/ui/never_loop_fixable.rs function no_break_or_continue_loop (line 3) | fn no_break_or_continue_loop() { function no_break_or_continue_loop_outer (line 10) | fn no_break_or_continue_loop_outer() { FILE: tests/ui/never_loop_iterator_reduction.rs function main (line 5) | fn main() { FILE: tests/ui/new_ret_no_self.rs function main (line 5) | fn main() {} type R (line 7) | trait R { type Item (line 19) | type Item = Self; type Item (line 32) | type Item = Self; type Item (line 45) | type Item = u32; type Q (line 11) | trait Q { type Item (line 60) | type Item = u32; type Item2 (line 61) | type Item2 = Self; type S (line 16) | struct S; method new (line 24) | pub fn new() -> impl R { type S2 (line 29) | struct S2; method new (line 37) | pub fn new(_: String) -> impl R { type S3 (line 42) | struct S3; method new (line 50) | pub fn new(_: String) -> impl R { type S4 (line 57) | struct S4; method new (line 66) | pub fn new(_: String) -> impl Q { type T (line 71) | struct T; method new (line 75) | pub fn new() -> Self { type U (line 80) | struct U; method new (line 84) | pub fn new() -> u32 { type V (line 91) | struct V; method new (line 95) | pub fn new(_: String) -> u32 { type TupleReturnerOk (line 102) | struct TupleReturnerOk; method new (line 106) | pub fn new() -> (Self, u32) { method new (line 256) | fn new() -> (Self, u32) type TupleReturnerOk2 (line 111) | struct TupleReturnerOk2; method new (line 115) | pub fn new() -> (u32, Self) { method new (line 266) | fn new() -> (u32, Self) type TupleReturnerOk3 (line 120) | struct TupleReturnerOk3; method new (line 124) | pub fn new() -> (Self, Self) { method new (line 276) | fn new() -> (Self, Self) type TupleReturnerBad (line 129) | struct TupleReturnerBad; method new (line 133) | pub fn new() -> (u32, u32) { method new (line 286) | fn new() -> (u32, u32) { type MutPointerReturnerOk (line 140) | struct MutPointerReturnerOk; method new (line 144) | pub fn new() -> *mut Self { method new (line 295) | fn new() -> *mut Self type ConstPointerReturnerOk2 (line 149) | struct ConstPointerReturnerOk2; method new (line 153) | pub fn new() -> *const Self { method new (line 305) | fn new() -> *const Self type MutPointerReturnerBad (line 158) | struct MutPointerReturnerBad; method new (line 162) | pub fn new() -> *mut V { method new (line 315) | fn new() -> *mut V { type GenericReturnerOk (line 169) | struct GenericReturnerOk; method new (line 173) | pub fn new() -> Option { method new (line 324) | fn new() -> Option type GenericReturnerBad (line 178) | struct GenericReturnerBad; method new (line 182) | pub fn new() -> Option { type NestedReturnerOk (line 189) | struct NestedReturnerOk; method new (line 193) | pub fn new() -> (Option, u32) { method new (line 334) | fn new() -> (Option, u32) type NestedReturnerOk2 (line 198) | struct NestedReturnerOk2; method new (line 202) | pub fn new() -> ((Self, u32), u32) { method new (line 344) | fn new() -> ((Self, u32), u32) type NestedReturnerOk3 (line 207) | struct NestedReturnerOk3; method new (line 211) | pub fn new() -> Option<(Self, u32)> { method new (line 354) | fn new() -> Option<(Self, u32)> type WithLifetime (line 216) | struct WithLifetime<'a> { function new (line 222) | pub fn new<'b: 'a>(s: &'b str) -> WithLifetime<'b> { type V (line 228) | struct V; method new (line 95) | pub fn new(_: String) -> u32 { type TraitRetSelf (line 230) | pub trait TraitRetSelf { method new (line 232) | fn new() -> Self; type TraitRet (line 235) | pub trait TraitRet { method new (line 237) | fn new() -> String; method new (line 243) | fn new() -> String { type StructRet (line 240) | pub struct StructRet; type TraitRet2 (line 248) | pub trait TraitRet2 { method new (line 250) | fn new(_: String) -> String; type TupleReturnerOk (line 254) | trait TupleReturnerOk { method new (line 106) | pub fn new() -> (Self, u32) { method new (line 256) | fn new() -> (Self, u32) type TupleReturnerOk2 (line 264) | trait TupleReturnerOk2 { method new (line 115) | pub fn new() -> (u32, Self) { method new (line 266) | fn new() -> (u32, Self) type TupleReturnerOk3 (line 274) | trait TupleReturnerOk3 { method new (line 124) | pub fn new() -> (Self, Self) { method new (line 276) | fn new() -> (Self, Self) type TupleReturnerBad (line 284) | trait TupleReturnerBad { method new (line 133) | pub fn new() -> (u32, u32) { method new (line 286) | fn new() -> (u32, u32) { type MutPointerReturnerOk (line 293) | trait MutPointerReturnerOk { method new (line 144) | pub fn new() -> *mut Self { method new (line 295) | fn new() -> *mut Self type ConstPointerReturnerOk2 (line 303) | trait ConstPointerReturnerOk2 { method new (line 153) | pub fn new() -> *const Self { method new (line 305) | fn new() -> *const Self type MutPointerReturnerBad (line 313) | trait MutPointerReturnerBad { method new (line 162) | pub fn new() -> *mut V { method new (line 315) | fn new() -> *mut V { type GenericReturnerOk (line 322) | trait GenericReturnerOk { method new (line 173) | pub fn new() -> Option { method new (line 324) | fn new() -> Option type NestedReturnerOk (line 332) | trait NestedReturnerOk { method new (line 193) | pub fn new() -> (Option, u32) { method new (line 334) | fn new() -> (Option, u32) type NestedReturnerOk2 (line 342) | trait NestedReturnerOk2 { method new (line 202) | pub fn new() -> ((Self, u32), u32) { method new (line 344) | fn new() -> ((Self, u32), u32) type NestedReturnerOk3 (line 352) | trait NestedReturnerOk3 { method new (line 211) | pub fn new() -> Option<(Self, u32)> { method new (line 354) | fn new() -> Option<(Self, u32)> type RetOtherSelf (line 364) | struct RetOtherSelf(T); type RetOtherSelfWrapper (line 365) | struct RetOtherSelfWrapper(T); function new (line 368) | fn new(t: T) -> RetOtherSelf> { type RetImplTraitSelf (line 374) | struct RetImplTraitSelf(T); function new (line 378) | fn new(t: T) -> impl Into { type RetImplTraitNoSelf (line 383) | struct RetImplTraitNoSelf(T); function new (line 387) | fn new(t: T) -> impl Into { type Trait2 (line 394) | trait Trait2 {} type RetImplTraitSelf2 (line 397) | struct RetImplTraitSelf2(T); function new (line 401) | fn new(t: T) -> impl Trait2<(), Self> {} type RetImplTraitNoSelf2 (line 404) | struct RetImplTraitNoSelf2(T); function new (line 408) | fn new(t: T) -> impl Trait2<(), i32> { type RetImplTraitSelfAdt (line 413) | struct RetImplTraitSelfAdt<'a>(&'a str); function new (line 417) | fn new<'b: 'a>(s: &'b str) -> impl Into> { FILE: tests/ui/new_ret_no_self_overflow.rs type Bomb (line 5) | struct Bomb; method new (line 9) | pub fn new() -> impl PartialOrd { type X (line 15) | type X = impl std::ops::Add; type Bomb2 (line 17) | struct Bomb2; method new (line 21) | pub fn new() -> X { function main (line 28) | fn main() {} FILE: tests/ui/new_without_default.rs type Foo (line 9) | pub struct Foo; method new (line 12) | pub fn new() -> Foo { method new (line 312) | pub fn new() -> Self { type Bar (line 19) | pub struct Bar; method new (line 22) | pub fn new() -> Self { type Ok (line 29) | pub struct Ok; method new (line 32) | pub fn new() -> Self { method default (line 38) | fn default() -> Self { type Params (line 43) | pub struct Params; method new (line 46) | pub fn new(_: u32) -> Self { type GenericsOk (line 51) | pub struct GenericsOk { method default (line 56) | fn default() -> Self { function new (line 62) | pub fn new() -> GenericsOk { type LtOk (line 67) | pub struct LtOk<'a> { method default (line 72) | fn default() -> Self { function new (line 78) | pub fn new() -> LtOk<'c> { type LtKo (line 83) | pub struct LtKo<'a> { function new (line 88) | pub fn new() -> LtKo<'c> { type Private (line 95) | struct Private; method new (line 98) | fn new() -> Private { type PrivateStruct (line 103) | struct PrivateStruct; method new (line 106) | pub fn new() -> PrivateStruct { type PrivateItem (line 111) | pub struct PrivateItem; method new (line 114) | fn new() -> PrivateItem { type Const (line 119) | pub struct Const; method new (line 122) | pub const fn new() -> Const { type IgnoreGenericNew (line 128) | pub struct IgnoreGenericNew; method new (line 131) | pub fn new() -> Self { type TraitWithNew (line 136) | pub trait TraitWithNew: Sized { method new (line 137) | fn new() -> Self { type IgnoreUnsafeNew (line 142) | pub struct IgnoreUnsafeNew; method new (line 145) | pub unsafe fn new() -> Self { type OptionRefWrapper (line 151) | pub struct OptionRefWrapper<'a, T>(Option<&'a T>); function new (line 154) | pub fn new() -> Self { type Allow (line 159) | pub struct Allow(Foo); method new (line 163) | pub fn new() -> Self { type AllowDerive (line 168) | pub struct AllowDerive; method new (line 172) | pub fn new() -> Self { type NewNotEqualToDerive (line 177) | pub struct NewNotEqualToDerive { method new (line 183) | pub fn new() -> Self { type FooGenerics (line 191) | pub struct FooGenerics(std::marker::PhantomData); function new (line 193) | pub fn new() -> Self { type BarGenerics (line 200) | pub struct BarGenerics(std::marker::PhantomData); function new (line 202) | pub fn new() -> Self { type Foo (line 210) | pub struct Foo { method new (line 12) | pub fn new() -> Foo { method new (line 312) | pub fn new() -> Self { function new (line 215) | pub fn new() -> Self { type DocHidden (line 225) | pub struct DocHidden; method new (line 228) | pub fn new() -> Self { function main (line 233) | fn main() {} type IgnoreConstGenericNew (line 235) | pub struct IgnoreConstGenericNew(usize); method new (line 237) | pub fn new() -> Self { type IgnoreLifetimeNew (line 242) | pub struct IgnoreLifetimeNew; method new (line 244) | pub fn new<'a>() -> Self { type MyStruct (line 251) | pub struct MyStruct function new (line 262) | pub fn new() -> Self { type NewWithCfg (line 270) | pub struct NewWithCfg; method new (line 273) | pub fn new() -> Self { type NewWith2Cfgs (line 279) | pub struct NewWith2Cfgs; method new (line 283) | pub fn new() -> Self { type NewWithExtraneous (line 289) | pub struct NewWithExtraneous; method new (line 292) | pub fn new() -> Self { type NewWithCfgAndExtraneous (line 298) | pub struct NewWithCfgAndExtraneous; method new (line 302) | pub fn new() -> Self { type Foo (line 309) | pub struct Foo(Vec); method new (line 12) | pub fn new() -> Foo { method new (line 312) | pub fn new() -> Self { type Item (line 318) | type Item = &'a i32; type IntoIter (line 320) | type IntoIter = std::slice::Iter<'a, i32>; method into_iter (line 322) | fn into_iter(self) -> Self::IntoIter { type Foo (line 332) | pub struct Foo { method new (line 12) | pub fn new() -> Foo { method new (line 312) | pub fn new() -> Self { function new (line 340) | pub fn new() -> Self type Bar (line 349) | pub struct Bar { method new (line 22) | pub fn new() -> Self { function new (line 354) | pub fn new() -> Self FILE: tests/ui/no_effect.rs type Cout (line 14) | struct Cout; type Output (line 20) | type Output = Self; method shl (line 21) | fn shl(self, rhs: T) -> Self::Output { type Output (line 28) | type Output = Self; method neg (line 29) | fn neg(self) -> Self::Output { type Tuple (line 35) | struct Tuple(i32); type Struct (line 36) | struct Struct { type Enum (line 39) | enum Enum { type DropStruct (line 43) | struct DropStruct { method drop (line 47) | fn drop(&mut self) {} type DropTuple (line 49) | struct DropTuple(i32); method drop (line 51) | fn drop(&mut self) {} type DropEnum (line 53) | enum DropEnum { method drop (line 58) | fn drop(&mut self) {} type FooString (line 60) | struct FooString { function get_number (line 68) | fn get_number() -> i32 { function get_struct (line 71) | fn get_struct() -> Struct { function get_drop_struct (line 74) | fn get_drop_struct() -> DropStruct { function unsafe_fn (line 78) | unsafe fn unsafe_fn() -> i32 { type GreetStruct1 (line 82) | struct GreetStruct1; type Output (line 85) | type Output = (); method call_once (line 87) | extern "rust-call" fn call_once(self, (who,): (&str,)) -> Self::Output { type GreetStruct2 (line 92) | struct GreetStruct2(); type Output (line 95) | type Output = (); method call_once (line 97) | extern "rust-call" fn call_once(self, (who,): (&str,)) -> Self::Output { type GreetStruct3 (line 102) | struct GreetStruct3; type Output (line 105) | type Output = (); method call_once (line 107) | extern "rust-call" fn call_once(self, (who,): (&str,)) -> Self::Output { function main (line 112) | fn main() { function issue14592 (line 225) | fn issue14592() { FILE: tests/ui/no_effect_async_fn.rs type AsyncTrait (line 4) | trait AsyncTrait { method bar (line 5) | async fn bar(i: u64); method bar (line 12) | async fn bar(_i: u64) { type Bar (line 8) | struct Bar; function foo (line 31) | async fn foo(_i: u64) { function num (line 48) | fn num() -> usize { FILE: tests/ui/no_effect_replace.rs function main (line 3) | fn main() { type X (line 40) | struct X {} method f (line 43) | fn f(&mut self) -> String { method ff (line 47) | fn ff(&mut self) -> String { function y (line 52) | fn y() -> String { function z (line 56) | fn z() -> String { type Replaceme (line 60) | struct Replaceme; method replace (line 62) | pub fn replace(&mut self, a: &str, b: &str) -> Self { FILE: tests/ui/no_effect_return.rs function a (line 7) | fn a() -> u32 { function b (line 15) | async fn b() -> u32 { type C (line 23) | type C = i32; function c (line 24) | async fn c() -> C { function d (line 32) | fn d() -> u128 { function e (line 43) | fn e() -> u32 { function f (line 52) | fn f() -> [u16; 1] { function g (line 60) | fn g() -> ControlFlow<()> { function h (line 68) | fn h() -> Vec { function i (line 77) | fn i() -> () { function j (line 86) | fn j() { FILE: tests/ui/no_mangle_with_rust_abi.rs function rust_abi_fn_one (line 6) | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {} function rust_abi_fn_two (line 10) | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {} function rust_abi_fn_three (line 16) | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {} function rust_abi_fn_four (line 22) | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {} function rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines (line 26) | fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_mult... function rust_abi_fn_explicit_opt_in (line 37) | extern "Rust" fn rust_abi_fn_explicit_opt_in(arg_one: u32, arg_two: usiz... function rust_abi_fn_again (line 39) | fn rust_abi_fn_again(arg_one: u32, arg_two: usize) {} function c_abi_fn (line 42) | extern "C" fn c_abi_fn(arg_one: u32, arg_two: usize) {} function c_abi_fn_again (line 44) | extern "C" fn c_abi_fn_again(arg_one: u32, arg_two: usize) {} function c_abi_in_block (line 47) | fn c_abi_in_block(arg_one: u32, arg_two: usize); function with_some_fn_around (line 52) | pub(in super::r#fn) fn with_some_fn_around() {} function main (line 56) | fn main() { FILE: tests/ui/no_mangle_with_rust_abi_2021.rs function rust_abi_fn_one (line 10) | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {} function rust_abi_fn_two (line 14) | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {} function rust_abi_fn_three (line 20) | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {} function rust_abi_fn_four (line 26) | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {} function rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines (line 30) | fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_mult... function rust_abi_fn_explicit_opt_in (line 41) | extern "Rust" fn rust_abi_fn_explicit_opt_in(arg_one: u32, arg_two: usiz... function rust_abi_fn_again (line 43) | fn rust_abi_fn_again(arg_one: u32, arg_two: usize) {} function c_abi_fn (line 46) | extern "C" fn c_abi_fn(arg_one: u32, arg_two: usize) {} function c_abi_fn_again (line 48) | extern "C" fn c_abi_fn_again(arg_one: u32, arg_two: usize) {} function c_abi_in_block (line 51) | fn c_abi_in_block(arg_one: u32, arg_two: usize); function main (line 54) | fn main() { FILE: tests/ui/non_canonical_clone_impl.rs type A (line 11) | struct A(u32); method clone (line 14) | fn clone(&self) -> Self { method clone_from (line 19) | fn clone_from(&mut self, source: &Self) { type B (line 30) | struct B(u32); method clone (line 33) | fn clone(&self) -> Self { type C (line 43) | struct C(u32); type D (line 47) | struct D(u32); method clone (line 51) | fn clone(&self) -> Self { method clone_from (line 55) | fn clone_from(&mut self, source: &Self) { type E (line 65) | struct E(u32); method clone (line 69) | fn clone(&self) -> Self { method clone_from (line 73) | fn clone_from(&mut self, source: &Self) { type F (line 84) | struct F(u32); method clone (line 87) | fn clone(&self) -> Self { method clone_from (line 92) | fn clone_from(&mut self, source: &Self) { type Uwu (line 102) | struct Uwu(A); method clone (line 105) | fn clone(&self) -> Self { method clone_from (line 109) | fn clone_from(&mut self, source: &Self) { type C (line 148) | pub struct C; FILE: tests/ui/non_canonical_partial_ord_impl.rs type A (line 12) | struct A(u32); method cmp (line 15) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 22) | fn partial_cmp(&self, other: &Self) -> Option { type B (line 30) | struct B(u32); method cmp (line 33) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 39) | fn partial_cmp(&self, other: &Self) -> Option { type C (line 47) | struct C(u32); method cmp (line 50) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 57) | fn partial_cmp(&self, _: &Self) -> Option { type D (line 65) | struct D(u32); type E (line 70) | struct E(u32); method partial_cmp (line 73) | fn partial_cmp(&self, other: &Self) -> Option { type Uwu (line 81) | struct Uwu(A); method cmp (line 84) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 90) | fn partial_cmp(&self, other: &Self) -> Option { type F (line 98) | struct F(u32); method eq (line 113) | fn eq(&self, other: &u32) -> bool { method partial_cmp (line 119) | fn partial_cmp(&self, other: &u32) -> Option { method cmp (line 101) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 107) | fn partial_cmp(&self, other: &Self) -> Option { type G (line 127) | struct G(u32); method cmp (line 130) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 136) | fn partial_cmp(&self, other: &Self) -> Option { type H (line 142) | struct H(u32); method cmp (line 145) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 151) | fn partial_cmp(&self, other: &Self) -> Option { type I (line 159) | struct I(u32); method cmp (line 162) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 169) | fn partial_cmp(&self, other: &Self) -> Option { type C (line 220) | pub struct C; type J (line 246) | struct J(u32); method cmp (line 249) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 255) | fn partial_cmp(&self, other: &Self) -> Option { type K (line 263) | struct K(u32); method cmp (line 266) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 273) | fn partial_cmp(&self, other: &Self) -> Option { type L (line 281) | struct L(u32); method cmp (line 284) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 291) | fn partial_cmp(&self, other: &Self) -> Option { FILE: tests/ui/non_canonical_partial_ord_impl_fully_qual.rs type A (line 15) | struct A(u32); method cmp (line 18) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 25) | fn partial_cmp(&self, other: &Self) -> Option { type B (line 33) | struct B(u32); method cmp (line 36) | fn cmp(&self, other: &Self) -> Ordering { method cmp (line 42) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 49) | fn partial_cmp(&self, other: &Self) -> Option { FILE: tests/ui/non_expressive_names.rs type MaybeInst (line 4) | enum MaybeInst { method fill (line 15) | fn fill(&mut self) { type InstSplit (line 10) | struct InstSplit { function underscores_and_numbers (line 26) | fn underscores_and_numbers() { function issue2927 (line 36) | fn issue2927() { function issue3078 (line 41) | fn issue3078() { type Bar (line 49) | struct Bar; method bar (line 52) | fn bar() { function main (line 63) | fn main() {} FILE: tests/ui/non_expressive_names_error_recovery.rs type Aa (line 4) | pub struct Aa(PhantomData); function aa (line 6) | fn aa(a: Aa { type MvccRwLock (line 20) | pub struct MvccRwLock { type ArcGuard (line 29) | pub struct ArcGuard { type UsbContext (line 42) | pub trait UsbContext { type DeviceHandle (line 46) | pub struct DeviceHandle { type NoGeneric (line 55) | pub struct NoGeneric { type MultiField (line 62) | pub struct MultiField { type MyOption (line 71) | pub enum MyOption { type WrappedNonNull (line 80) | pub struct WrappedNonNull(UnsafeCell>); type MultiParam (line 85) | pub struct MultiParam { type HeuristicTest (line 97) | pub struct HeuristicTest { type AttrTest1 (line 113) | pub struct AttrTest1(T); type AttrTest2 (line 115) | pub struct AttrTest2 { type AttrTest3 (line 120) | pub enum AttrTest3 { type Complex (line 132) | pub struct Complex { function main (line 144) | fn main() {} FILE: tests/ui/non_std_lazy_static/auxiliary/once_cell.rs type Lazy (line 6) | pub struct Lazy T> { function new (line 12) | pub const fn new(f: F) -> Lazy { function into_value (line 19) | pub fn into_value(this: Lazy) -> Result { function force (line 23) | pub fn force(_this: &Lazy) -> &T { function force_mut (line 27) | pub fn force_mut(_this: &mut Lazy) -> &mut T { function get (line 31) | pub fn get(_this: &Lazy) -> Option<&T> { function get_mut (line 35) | pub fn get_mut(_this: &mut Lazy) -> Option<&mut T> { type OnceBox (line 41) | pub struct OnceBox(T); function get (line 44) | pub fn get(&self) -> Option<&T> { FILE: tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs function main (line 9) | fn main() {} function non_static (line 31) | fn non_static() { function calling_replaceable_fns (line 48) | fn calling_replaceable_fns() { FILE: tests/ui/non_std_lazy_static/non_std_lazy_static_no_std.rs function main (line 11) | fn main() {} FILE: tests/ui/non_std_lazy_static/non_std_lazy_static_other_once_cell.rs function use_once_cell_race (line 7) | fn use_once_cell_race(x: once_cell::race::OnceBox) { FILE: tests/ui/non_std_lazy_static/non_std_lazy_static_unfixable.rs function calling_irreplaceable_fns (line 18) | fn calling_irreplaceable_fns() { function main (line 43) | fn main() {} FILE: tests/ui/non_zero_suggestions.rs function main (line 4) | fn main() { function divide_numbers (line 51) | fn divide_numbers(x: u64, y: NonZeroU32) -> u64 { type Calculator (line 56) | struct Calculator { method divide (line 61) | fn divide(&self, divisor: NonZeroU32) -> u64 { FILE: tests/ui/non_zero_suggestions_unfixable.rs function main (line 5) | fn main() { function return_non_zero (line 19) | fn return_non_zero(x: u64, y: NonZeroU32) -> u64 { function some_fn_that_only_takes_u64 (line 24) | fn some_fn_that_only_takes_u64(_: u64) {} FILE: tests/ui/nonminimal_bool.rs function main (line 11) | fn main() { function equality_stuff (line 42) | fn equality_stuff() { function issue3847 (line 63) | fn issue3847(a: u32, b: u32) -> bool { function issue4548 (line 72) | fn issue4548() { function check_expect (line 83) | fn check_expect() { function issue9428 (line 89) | fn issue9428() { function issue_10523 (line 97) | fn issue_10523() { function issue_10523_1 (line 107) | fn issue_10523_1() { function issue_10523_2 (line 117) | fn issue_10523_2() { function issue_10435 (line 126) | fn issue_10435() { function issue10836 (line 144) | fn issue10836() { function issue11932 (line 158) | fn issue11932() { function issue_5794 (line 169) | fn issue_5794() { function issue_12371 (line 200) | fn issue_12371(x: usize) -> bool { function many_ops (line 207) | fn many_ops(a: bool, b: bool, c: bool, d: bool, e: bool, f: bool) -> bool { function issue14184 (line 211) | fn issue14184(a: f32, b: bool) { type TyKind (line 219) | enum TyKind { type Expr (line 224) | struct Expr; function is_mutable (line 226) | fn is_mutable(expr: &Expr) -> bool { function should_not_give_macro (line 230) | fn should_not_give_macro(ty: TyKind, expr: Expr) { function dont_simplify_double_not_if_types_differ (line 238) | fn dont_simplify_double_not_if_types_differ() { FILE: tests/ui/nonminimal_bool_methods.rs function methods_with_negation (line 4) | fn methods_with_negation() { type CustomResultOk (line 35) | enum CustomResultOk { type CustomResultErr (line 39) | enum CustomResultErr { type CustomSomeSome (line 43) | enum CustomSomeSome { type CustomSomeNone (line 47) | enum CustomSomeNone { function is_ok (line 53) | pub fn is_ok(&self) -> bool { function is_err (line 59) | pub fn is_err(&self) -> bool { function is_some (line 65) | pub fn is_some(&self) -> bool { function is_none (line 71) | pub fn is_none(&self) -> bool { function dont_warn_for_custom_methods_with_negation (line 76) | fn dont_warn_for_custom_methods_with_negation() { function warn_for_built_in_methods_with_negation (line 99) | fn warn_for_built_in_methods_with_negation() { function dont_warn_for_negated_partial_ord_comparison (line 114) | fn dont_warn_for_negated_partial_ord_comparison() { function issue_12625 (line 123) | fn issue_12625() { function issue_12761 (line 134) | fn issue_12761() { function issue_13436 (line 165) | fn issue_13436() { function issue16014 (line 245) | fn issue16014() { function main (line 250) | fn main() {} FILE: tests/ui/nonminimal_bool_methods_unfixable.rs function issue_13436 (line 4) | fn issue_13436() { function main (line 11) | fn main() {} FILE: tests/ui/obfuscated_if_else.rs function main (line 9) | fn main() { function issue11141 (line 63) | fn issue11141() { function issue16288 (line 92) | fn issue16288() { FILE: tests/ui/octal_escapes.rs function main (line 4) | fn main() { FILE: tests/ui/ok_expect.rs type MyError (line 5) | struct MyError(()); type MyErrorWithParam (line 8) | struct MyErrorWithParam { function main (line 12) | fn main() { FILE: tests/ui/only_used_in_recursion.rs function _simple (line 4) | fn _simple(x: u32) -> u32 { function _simple2 (line 8) | fn _simple2(x: u32) -> u32 { function _one_unused (line 12) | fn _one_unused(flag: u32, a: usize) -> usize { function _two_unused (line 18) | fn _two_unused(flag: u32, a: u32, b: i32) -> usize { function _with_calc (line 25) | fn _with_calc(flag: u32, a: i64) -> usize { function _used_with_flag (line 36) | fn _used_with_flag(flag: u32, a: u32) -> usize { function _used_with_unused (line 40) | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize { function _codependent_unused (line 51) | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize { function _not_primitive (line 62) | fn _not_primitive(flag: u32, b: String) -> usize { type A (line 68) | struct A; method _method (line 71) | fn _method(flag: usize, a: usize) -> usize { method _method_self (line 77) | fn _method_self(&self, flag: usize, a: usize) -> usize { type B (line 85) | trait B { method method (line 86) | fn method(flag: u32, a: usize) -> usize; method method_self (line 87) | fn method_self(&self, flag: u32, a: usize) -> usize; method method (line 91) | fn method(flag: u32, a: usize) -> usize { method method_self (line 97) | fn method_self(&self, flag: u32, a: usize) -> usize { method method (line 105) | fn method(flag: u32, a: usize) -> usize { method method_self (line 109) | fn method_self(&self, flag: u32, a: usize) -> usize { method method (line 115) | fn method(flag: u32, a: usize) -> usize { method method_self (line 119) | fn method_self(&self, flag: u32, a: usize) -> usize { type C (line 124) | trait C { method method (line 125) | fn method(flag: u32, a: usize) -> usize { method method_self (line 131) | fn method_self(&self, flag: u32, a: usize) -> usize { function _ignore (line 138) | fn _ignore(flag: usize, _a: usize) -> usize { function main (line 142) | fn main() {} FILE: tests/ui/only_used_in_recursion2.rs function _with_inner (line 3) | fn _with_inner(flag: u32, a: u32, b: u32) -> usize { function _with_closure (line 16) | fn _with_closure(a: Option, b: u32, f: impl Fn(u32, u32) -> Option<... type D (line 27) | trait D { method foo (line 28) | fn foo(&mut self, arg: u32) -> u32; method foo (line 41) | fn foo(&mut self, arg: u32) -> u32 { type S (line 32) | pub struct S(u32); method foo (line 34) | pub fn foo(&mut self, arg: u32) -> u32 { function only_let (line 47) | fn only_let(x: u32) { type E (line 52) | trait E> { method method (line 53) | fn method(flag: u32, a: usize) -> usize { function method (line 63) | fn method(flag: u32, a: usize) -> usize { function overwritten_param (line 68) | fn overwritten_param(flag: u32, mut a: usize) -> usize { function field_direct (line 81) | fn field_direct(flag: u32, mut a: (usize,)) -> usize { function field_deref (line 92) | fn field_deref(flag: u32, a: &mut Box<(usize,)>) -> usize { function main (line 101) | fn main() {} FILE: tests/ui/op_ref.rs function main (line 6) | fn main() { type A (line 62) | struct A(i32); type Output (line 80) | type Output = i32; method mul (line 81) | fn mul(self, rhs: &A) -> Self::Output { type Output (line 86) | type Output = i32; method mul (line 87) | fn mul(self, rhs: A) -> Self::Output { type B (line 64) | struct B(i32); type Output (line 67) | type Output = i32; method mul (line 68) | fn mul(self, rhs: &A) -> Self::Output { type Output (line 73) | type Output = i32; method mul (line 74) | fn mul(self, rhs: A) -> Self::Output { function ex1 (line 103) | fn ex1() { function ex2 (line 109) | pub fn ex2(array: &[T], val: &T, idx: usize) -> bool { function issue15063 (line 115) | fn issue15063() { FILE: tests/ui/open_options.rs type OpenOptionsExt (line 6) | trait OpenOptionsExt { method truncate_write (line 7) | fn truncate_write(&mut self, opt: bool) -> &mut Self; method truncate_write (line 11) | fn truncate_write(&mut self, opt: bool) -> &mut Self { function main (line 16) | fn main() { FILE: tests/ui/open_options_fixable.rs function main (line 4) | fn main() { FILE: tests/ui/option_as_ref_cloned.rs function main (line 4) | fn main() { FILE: tests/ui/option_as_ref_deref.rs function main (line 8) | fn main() { function msrv_1_39 (line 65) | fn msrv_1_39() { function msrv_1_40 (line 71) | fn msrv_1_40() { FILE: tests/ui/option_env_unwrap.rs function main (line 9) | fn main() { FILE: tests/ui/option_filter_map.rs function main (line 4) | fn main() { function odds_out (line 37) | fn odds_out(x: i32) -> Option { FILE: tests/ui/option_if_let_else.rs function bad1 (line 13) | fn bad1(string: Option<&str>) -> (bool, &str) { function else_if_option (line 22) | fn else_if_option(string: Option<&str>) -> Option<(bool, &str)> { function unop_bad (line 32) | fn unop_bad(string: &Option<&str>, mut num: Option) { function longer_body (line 62) | fn longer_body(arg: Option) -> u32 { function impure_else (line 72) | fn impure_else(arg: Option) { function test_map_or_else (line 86) | fn test_map_or_else(arg: Option) { function negative_tests (line 98) | fn negative_tests(arg: Option) -> u32 { function pattern_to_vec (line 116) | fn pattern_to_vec(pattern: &str) -> Vec { function test_result_impure_else (line 132) | fn test_result_impure_else(variable: Result) -> bool { type DummyEnum (line 143) | enum DummyEnum { function complex_subpat (line 150) | fn complex_subpat() -> DummyEnum { function test_result_err_ignored_1 (line 157) | pub fn test_result_err_ignored_1(r: Result<&[u8], &[u8]>) -> Vec { function test_result_err_ignored_2 (line 166) | pub fn test_result_err_ignored_2(r: Result<&[u8], &[u8]>) -> Vec { function main (line 172) | fn main() { function issue9742 (line 286) | fn issue9742() -> Option<&'static str> { function reproduce (line 297) | pub fn reproduce(initial: &Option) { function reproduce2 (line 306) | pub fn reproduce2(initial: &mut Option) { function do_something (line 314) | fn do_something(_value: &str) -> u32 { function do_something2 (line 317) | fn do_something2(_value: &mut str) -> u32 { function issue11429 (line 322) | fn issue11429() { function issue11893 (line 342) | fn issue11893() { type A (line 354) | struct A(Option); function foo (line 356) | fn foo(a: A) { function bar (line 363) | fn bar(a: A) { function box_coercion_unsize (line 375) | fn box_coercion_unsize(o: Option) -> Box { function deref_with_overload (line 381) | fn deref_with_overload(o: Option<&str>) -> &str { function issue15379 (line 386) | fn issue15379() { function issue15002 (line 393) | fn issue15002() { FILE: tests/ui/option_map_or_none.rs function main (line 3) | fn main() { FILE: tests/ui/option_map_unit_fn_fixable.rs function do_nothing (line 4) | fn do_nothing(_: T) {} function diverge (line 6) | fn diverge(_: T) -> ! { function plus_one (line 10) | fn plus_one(value: usize) -> usize { function option (line 14) | fn option() -> Option { type HasOption (line 18) | struct HasOption { method do_option_nothing (line 23) | fn do_option_nothing(&self, value: usize) {} method do_option_plus_one (line 25) | fn do_option_plus_one(&self, value: usize) -> usize { function option_map_unit_fn (line 30) | fn option_map_unit_fn() { function issue15568 (line 104) | fn issue15568() { function main (line 113) | fn main() {} FILE: tests/ui/option_map_unit_fn_unfixable.rs function do_nothing (line 5) | fn do_nothing(_: T) {} function diverge (line 7) | fn diverge(_: T) -> ! { function plus_one (line 11) | fn plus_one(value: usize) -> usize { type HasOption (line 15) | struct HasOption { function option_map_unit_fn (line 20) | fn option_map_unit_fn() { function main (line 53) | fn main() {} FILE: tests/ui/option_option.rs constant C (line 4) | const C: Option> = None; function input (line 9) | fn input(_: Option>) {} function output (line 12) | fn output() -> Option> { function output_nested (line 17) | fn output_nested() -> Vec>> { function output_nested_nested (line 23) | fn output_nested_nested() -> Option>> { type Struct (line 28) | struct Struct { method struct_fn (line 34) | fn struct_fn() -> Option> { type Trait (line 40) | trait Trait { method trait_fn (line 41) | fn trait_fn() -> Option>; method trait_fn (line 62) | fn trait_fn() -> Option> { type Enum (line 45) | enum Enum { type OptionOption (line 53) | type OptionOption = Option>; function output_type_alias (line 56) | fn output_type_alias() -> OptionOption { function main (line 67) | fn main() { type Foo (line 85) | struct Foo<'a> { function func (line 95) | fn func<'a, D>(_: D) -> Result>>, D::Error> FILE: tests/ui/or_fun_call.rs function or_fun_call (line 16) | fn or_fun_call() { type Foo (line 149) | struct Foo(u8); type Bar (line 150) | struct Bar(String, Duration); function test_or_with_ctors (line 152) | fn test_or_with_ctors() { function f (line 188) | fn f() -> Option<()> { function ptr_to_ref (line 198) | unsafe fn ptr_to_ref<'a, T>(p: *const T) -> &'a T { function foo (line 206) | unsafe fn foo() { function bar (line 215) | fn bar() { function more_than_max_suggestion_highest_lines_0 (line 227) | fn more_than_max_suggestion_highest_lines_0() { function more_to_max_suggestion_highest_lines_1 (line 239) | fn more_to_max_suggestion_highest_lines_1() { function equal_to_max_suggestion_highest_lines (line 252) | fn equal_to_max_suggestion_highest_lines() { function less_than_max_suggestion_highest_lines (line 264) | fn less_than_max_suggestion_highest_lines() { function sig_drop (line 277) | fn sig_drop() { function g (line 288) | fn g() -> i32 { function f (line 292) | fn f(n: i32) -> i32 { function test_map_or (line 296) | fn test_map_or() { function foo (line 310) | fn foo() { function host_effect (line 369) | fn host_effect() { type Entry (line 377) | struct Entry; method or_insert (line 380) | fn or_insert(self, _default: i32) {} method or_default (line 381) | fn or_default(self) { function fn_call_in_nested_expr (line 389) | fn fn_call_in_nested_expr() { function g (line 432) | fn g() -> i32 { function f (line 436) | fn f(n: i32) -> i32 { function test_map_or (line 440) | fn test_map_or() { function test_option_get_or_insert (line 452) | fn test_option_get_or_insert() { function test_option_and (line 462) | fn test_option_and() { function test_result_and (line 472) | fn test_result_and() { function below_msrv (line 483) | fn below_msrv(opt: Option, res: Result) { function above_msrv (line 491) | fn above_msrv(opt: Option, res: Result) { function main (line 497) | fn main() {} FILE: tests/ui/or_then_unwrap.rs type SomeStruct (line 4) | struct SomeStruct; method or (line 6) | fn or(self, _: Option) -> Self { method unwrap (line 9) | fn unwrap(&self) {} type SomeOtherStruct (line 12) | struct SomeOtherStruct; method or (line 14) | fn or(self) -> Self { method unwrap (line 17) | fn unwrap(&self) {} function main (line 20) | fn main() { FILE: tests/ui/out_of_bounds_indexing/issue-3102.rs function main (line 4) | fn main() { FILE: tests/ui/out_of_bounds_indexing/simple.rs function main (line 4) | fn main() { FILE: tests/ui/overly_complex_bool_expr.rs function main (line 4) | fn main() { function equality_stuff (line 23) | fn equality_stuff() { function check_expect (line 38) | fn check_expect() { function check_never_type (line 46) | fn check_never_type() { FILE: tests/ui/owned_cow.rs function main (line 7) | fn main() { FILE: tests/ui/panic_in_result_fn.rs type A (line 3) | struct A; method result_with_panic (line 6) | fn result_with_panic() -> Result // should emit lint method result_with_unimplemented (line 12) | fn result_with_unimplemented() -> Result // should emit ... method result_with_unreachable (line 17) | fn result_with_unreachable() -> Result // should emit lint method result_with_todo (line 22) | fn result_with_todo() -> Result // should emit lint method other_with_panic (line 27) | fn other_with_panic() // should not emit lint method other_with_unreachable (line 32) | fn other_with_unreachable() // should not emit lint method other_with_unimplemented (line 37) | fn other_with_unimplemented() // should not emit lint method other_with_todo (line 42) | fn other_with_todo() // should not emit lint method result_without_banned_functions (line 47) | fn result_without_banned_functions() -> Result // should... function function_result_with_panic (line 53) | fn function_result_with_panic() -> Result // should emit lint function in_closure (line 59) | fn in_closure() -> Result { function todo (line 65) | fn todo() { function function_result_with_custom_todo (line 69) | fn function_result_with_custom_todo() -> Result // should ... function issue_13381 (line 75) | fn issue_13381() -> Result<(), String> { function main (line 84) | fn main() -> Result<(), String> { FILE: tests/ui/panic_in_result_fn_assertions.rs type A (line 4) | struct A; method result_with_assert_with_message (line 7) | fn result_with_assert_with_message(x: i32) -> Result // ... method result_with_assert_eq (line 14) | fn result_with_assert_eq(x: i32) -> Result // should emi... method result_with_assert_ne (line 21) | fn result_with_assert_ne(x: i32) -> Result // should emi... method other_with_assert_with_message (line 28) | fn other_with_assert_with_message(x: i32) // should not emit lint method other_with_assert_eq (line 33) | fn other_with_assert_eq(x: i32) // should not emit lint method other_with_assert_ne (line 38) | fn other_with_assert_ne(x: i32) // should not emit lint method result_without_banned_functions (line 43) | fn result_without_banned_functions() -> Result // should... function main (line 51) | fn main() {} FILE: tests/ui/panic_in_result_fn_debug_assertions.rs type A (line 8) | struct A; method result_with_debug_assert_with_message (line 11) | fn result_with_debug_assert_with_message(x: i32) -> Result Result { method result_with_debug_assert_ne (line 21) | fn result_with_debug_assert_ne(x: i32) -> Result { method other_with_debug_assert_with_message (line 26) | fn other_with_debug_assert_with_message(x: i32) { method other_with_debug_assert_eq (line 30) | fn other_with_debug_assert_eq(x: i32) { method other_with_debug_assert_ne (line 34) | fn other_with_debug_assert_ne(x: i32) { method result_without_banned_functions (line 38) | fn result_without_banned_functions() -> Result { function main (line 45) | fn main() {} FILE: tests/ui/panicking_macros.rs constant _ (line 6) | const _: () = { function inline_const (line 12) | fn inline_const() { function panic (line 20) | fn panic() { function panic_const (line 34) | const fn panic_const() { function todo (line 48) | fn todo() { function unimplemented (line 62) | fn unimplemented() { function unreachable (line 76) | fn unreachable() { function core_versions (line 90) | fn core_versions() { function assert (line 105) | fn assert() { function assert_msg (line 111) | fn assert_msg() { function debug_assert (line 117) | fn debug_assert() { function debug_assert_msg (line 123) | fn debug_assert_msg() { function main (line 129) | fn main() {} FILE: tests/ui/panicking_overflow_checks.rs function test (line 4) | fn test(a: u32, b: u32, c: u32) { function main (line 31) | fn main() {} FILE: tests/ui/partial_pub_fields.rs function main (line 4) | fn main() { FILE: tests/ui/partialeq_ne_impl.rs type Foo (line 3) | struct Foo; method eq (line 6) | fn eq(&self, _: &Foo) -> bool { method ne (line 9) | fn ne(&self, _: &Foo) -> bool { type Bar (line 16) | struct Bar; method eq (line 19) | fn eq(&self, _: &Bar) -> bool { method ne (line 23) | fn ne(&self, _: &Bar) -> bool { function main (line 28) | fn main() {} FILE: tests/ui/partialeq_to_none.rs type Foobar (line 4) | struct Foobar; method eq (line 7) | fn eq(&self, _: &Option<()>) -> bool { function foo (line 13) | fn foo(f: Option) -> &'static str { function foobar (line 18) | fn foobar() -> Option<()> { function bar (line 22) | fn bar() -> Result<(), ()> { function optref (line 26) | fn optref() -> &'static &'static Option<()> { function macro_expansion (line 30) | pub fn macro_expansion() { function main (line 42) | fn main() { FILE: tests/ui/path_buf_push_overwrite.rs function main (line 5) | fn main() { FILE: tests/ui/path_ends_with_ext.rs function test (line 10) | fn test(path: &Path) { function under_msv (line 31) | fn under_msv(path: &Path) -> bool { function main (line 36) | fn main() {} FILE: tests/ui/pathbuf_init_then_push.rs function main (line 5) | fn main() { FILE: tests/ui/pattern_type_mismatch/mutability.rs function main (line 4) | fn main() {} function should_lint (line 6) | fn should_lint() { function should_not_lint (line 22) | fn should_not_lint() { FILE: tests/ui/pattern_type_mismatch/pattern_alternatives.rs function main (line 3) | fn main() {} function alternatives (line 5) | fn alternatives() { FILE: tests/ui/pattern_type_mismatch/pattern_structs.rs function main (line 3) | fn main() {} function struct_types (line 5) | fn struct_types() { function struct_enum_variants (line 28) | fn struct_enum_variants() { FILE: tests/ui/pattern_type_mismatch/pattern_tuples.rs function main (line 3) | fn main() {} function tuple_types (line 5) | fn tuple_types() { function tuple_enum_variants (line 26) | fn tuple_enum_variants() { function plain_tuples (line 55) | fn plain_tuples() { FILE: tests/ui/pattern_type_mismatch/syntax.rs function main (line 12) | fn main() {} function syntax_match (line 14) | fn syntax_match() { function syntax_if_let (line 35) | fn syntax_if_let() { function syntax_while_let (line 47) | fn syntax_while_let() { function syntax_for (line 66) | fn syntax_for() { function syntax_let (line 78) | fn syntax_let() { function syntax_fn (line 90) | fn syntax_fn() { function syntax_closure (line 99) | fn syntax_closure() { function macro_with_expression (line 114) | fn macro_with_expression() { function macro_expansion (line 140) | fn macro_expansion() { function external_macro_expansion (line 166) | fn external_macro_expansion() { FILE: tests/ui/patterns.rs function main (line 7) | fn main() { FILE: tests/ui/permissions_set_readonly_false.rs type A (line 6) | struct A; method set_readonly (line 9) | pub fn set_readonly(&mut self, b: bool) {} function set_readonly (line 12) | fn set_readonly(b: bool) {} function main (line 14) | fn main() { FILE: tests/ui/pointer_format.rs type ContainsPointerDeep (line 7) | struct ContainsPointerDeep { type ManualDebug (line 11) | struct ManualDebug { method fmt (line 22) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type WithPointer (line 16) | struct WithPointer { type Foo (line 27) | trait Foo { type S (line 32) | struct S(&'static S, PhantomData); function unbounded (line 35) | fn unbounded(s: &S) { function main (line 39) | fn main() { FILE: tests/ui/pointers_in_nomem_asm_block.rs function nomem_bad (line 8) | unsafe fn nomem_bad(p: &i32) { function nomem_good (line 22) | unsafe fn nomem_good(p: &i32) { function nomem_bad2 (line 30) | unsafe fn nomem_bad2(p: &mut i32) { function nomem_fn (line 37) | unsafe fn nomem_fn(p: extern "C" fn()) { FILE: tests/ui/precedence.rs function main (line 20) | fn main() { type W (line 44) | struct W(u8); method clone (line 46) | fn clone(&self) -> Self { function closure_method_call (line 51) | fn closure_method_call() { FILE: tests/ui/precedence_bits.rs function main (line 20) | fn main() { FILE: tests/ui/print_in_format_impl.rs type Foo (line 15) | struct Foo; method fmt (line 17) | fn fmt(&self, f: &mut Formatter) -> Result<(), Error> { method fmt (line 47) | fn fmt(&self, f: &mut Formatter) -> Result<(), Error> { type UnnamedFormatter (line 57) | struct UnnamedFormatter; method fmt (line 59) | fn fmt(&self, _: &mut Formatter) -> Result<(), Error> { function main (line 67) | fn main() { FILE: tests/ui/print_literal.rs function main (line 4) | fn main() { function issue_13959 (line 82) | fn issue_13959() { function issue_14930 (line 99) | fn issue_14930() { function issue_15576 (line 110) | fn issue_15576() { FILE: tests/ui/print_stderr.rs function main (line 3) | fn main() { FILE: tests/ui/print_stdout.rs function main (line 4) | fn main() { FILE: tests/ui/print_stdout_build_script.rs function main (line 6) | fn main() { FILE: tests/ui/print_with_newline.rs function main (line 6) | fn main() { FILE: tests/ui/println_empty_string.rs function main (line 3) | fn main() { function issue_16167 (line 24) | fn issue_16167() { FILE: tests/ui/println_empty_string_unfixable.rs function issue_16167 (line 5) | fn issue_16167() { FILE: tests/ui/proc_macro.rs function f (line 8) | fn f() { function mybangmacro (line 14) | pub fn mybangmacro(t: TokenStream) -> TokenStream { function myderive (line 19) | pub fn myderive(t: TokenStream) -> TokenStream { function myattribute (line 24) | pub fn myattribute(t: TokenStream, a: TokenStream) -> TokenStream { FILE: tests/ui/ptr_arg.rs function do_vec (line 13) | fn do_vec(x: &Vec) { function do_vec_mut (line 19) | fn do_vec_mut(x: &mut Vec) { function do_vec_mut2 (line 25) | fn do_vec_mut2(x: &mut Vec) { function do_str (line 32) | fn do_str(x: &String) { function do_str_mut (line 38) | fn do_str_mut(x: &mut String) { function do_path (line 44) | fn do_path(x: &PathBuf) { function do_path_mut (line 50) | fn do_path_mut(x: &mut PathBuf) { function main (line 56) | fn main() {} type Foo (line 58) | trait Foo { method do_vec (line 60) | fn do_vec(x: &Vec); method do_item (line 63) | fn do_item(x: &Self::Item); type Item (line 70) | type Item = Vec; method do_vec (line 71) | fn do_vec(x: &Vec) {} method do_item (line 72) | fn do_item(x: &Vec) {} type Bar (line 66) | struct Bar; function cloned (line 75) | fn cloned(x: &Vec) -> Vec { function str_cloned (line 86) | fn str_cloned(x: &String) -> String { function path_cloned (line 96) | fn path_cloned(x: &PathBuf) -> PathBuf { function false_positive_capacity (line 106) | fn false_positive_capacity(x: &Vec, y: &String) { function false_positive_capacity_too (line 114) | fn false_positive_capacity_too(x: &String) -> String { function test_cow_with_ref (line 122) | fn test_cow_with_ref(c: &Cow<[i32]>) {} function test_cow (line 125) | fn test_cow(c: Cow<[i32]>) { type Foo2 (line 129) | trait Foo2 { method do_string (line 130) | fn do_string(&self); method do_string (line 135) | fn do_string(&self) {} function allowed (line 143) | fn allowed( function some_allowed (line 152) | fn some_allowed(#[allow(clippy::ptr_arg)] v: &Vec, s: &String) {} type S (line 155) | struct S; method allowed (line 157) | fn allowed( method allowed (line 325) | extern "C" fn allowed(_v: &Vec) {} type T (line 167) | trait T { method allowed (line 168) | fn allowed( method allowed (line 329) | extern "C" fn allowed(_v: &Vec) {} function foo_vec (line 182) | fn foo_vec(vec: &Vec) { function foo_path (line 189) | fn foo_path(path: &PathBuf) { function foo_str (line 196) | fn foo_str(str: &String) { function mut_vec_slice_methods (line 204) | fn mut_vec_slice_methods(v: &mut Vec) { function mut_vec_vec_methods (line 210) | fn mut_vec_vec_methods(v: &mut Vec) { function vec_contains (line 214) | fn vec_contains(v: &Vec) -> bool { function fn_requires_vec (line 218) | fn fn_requires_vec(v: &Vec) -> bool { function impl_fn_requires_vec (line 222) | fn impl_fn_requires_vec(v: &Vec, f: impl Fn(&Vec)) { function dyn_fn_requires_vec (line 226) | fn dyn_fn_requires_vec(v: &Vec, f: &dyn Fn(&Vec)) { type A (line 231) | type A = Vec; function aliased (line 232) | fn aliased(a: &A) {} type Trait (line 235) | pub trait Trait { method f (line 236) | fn f(v: &mut Vec); method f2 (line 237) | fn f2(v: &mut Vec) {} function two_vecs (line 241) | fn two_vecs(a: &mut Vec, b: &mut Vec) { function cow_conditional_to_mut (line 249) | fn cow_conditional_to_mut(a: &mut Cow) { function dyn_trait_ok (line 256) | fn dyn_trait_ok(a: &mut Vec, b: &mut String, c: &mut PathBuf) { function dyn_trait (line 268) | fn dyn_trait(a: &mut Vec, b: &mut String, c: &mut PathBuf) { function cow_non_elided_lifetime (line 290) | fn cow_non_elided_lifetime<'a>(input: &Cow<'a, str>) -> &'a str { function cow_elided_lifetime (line 295) | fn cow_elided_lifetime<'a>(input: &'a Cow) -> &'a str { function cow_bad_ret_ty_1 (line 302) | fn cow_bad_ret_ty_1<'a>(input: &'a Cow<'a, str>) -> &'static str { function cow_bad_ret_ty_2 (line 307) | fn cow_bad_ret_ty_2<'a, 'b>(input: &'a Cow<'a, str>) -> &'b str { function cow_good_ret_ty (line 314) | fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &str { function allowed (line 321) | extern "C" fn allowed(_v: &Vec) {} type S (line 323) | struct S; method allowed (line 157) | fn allowed( method allowed (line 325) | extern "C" fn allowed(_v: &Vec) {} type T (line 328) | trait T { method allowed (line 168) | fn allowed( method allowed (line 329) | extern "C" fn allowed(_v: &Vec) {} function repro (line 336) | fn repro(source: &str, destination: &mut String) { function repro2 (line 339) | fn repro2(source: &str, destination: &mut String) { function h1 (line 343) | fn h1(x: &::Target) {} function h2 (line 344) | fn h2(x: T, y: &T::Target) {} function good (line 347) | fn good(v1: &String, v2: &String) { function foo (line 358) | fn foo(_x: &Vec) { function foo_used (line 363) | fn foo_used(x: &Vec) { function foo_local (line 370) | fn foo_local(x: &Vec) { function foo_local_used (line 377) | fn foo_local_used(x: &Vec) { function foofoo (line 386) | fn foofoo(_x: &Vec, y: &String) { function foofoo_local (line 393) | fn foofoo_local(_x: &Vec, y: &String) { function bar (line 402) | fn bar(_x: &mut Vec) { function bar_used (line 407) | fn bar_used(x: &mut Vec) { function bar_local (line 414) | fn bar_local(x: &mut Vec) { function bar_local_used (line 421) | fn bar_local_used(x: &mut Vec) { function barbar (line 430) | fn barbar(_x: &mut Vec, y: &mut String) { function barbar_local (line 437) | fn barbar_local(_x: &mut Vec, y: &mut String) { FILE: tests/ui/ptr_as_ptr.rs type T (line 10) | pub struct T { function f (line 16) | pub fn f(o: &mut super::issue_11278_a::T) -> super:... function main (line 24) | fn main() { function _msrv_1_37 (line 66) | fn _msrv_1_37() { function _msrv_1_38 (line 76) | fn _msrv_1_38() { function use_path_mut (line 88) | fn use_path_mut() -> *mut u32 { function full_path_mut (line 94) | fn full_path_mut() -> *mut u32 { function core_path_mut (line 99) | fn core_path_mut() -> *mut u32 { function full_core_path_mut (line 105) | fn full_core_path_mut() -> *mut u32 { function use_path (line 110) | fn use_path() -> *const u32 { function full_path (line 116) | fn full_path() -> *const u32 { function core_path (line 121) | fn core_path() -> *const u32 { function full_core_path (line 127) | fn full_core_path() -> *const u32 { function use_path_mut (line 134) | fn use_path_mut() -> *mut u32 { function full_path_mut (line 140) | fn full_path_mut() -> *mut u32 { function core_path_mut (line 145) | fn core_path_mut() -> *mut u32 { function full_core_path_mut (line 151) | fn full_core_path_mut() -> *mut u32 { function use_path (line 156) | fn use_path() -> *const u32 { function full_path (line 162) | fn full_path() -> *const u32 { function core_path (line 167) | fn core_path() -> *const u32 { function full_core_path (line 173) | fn full_core_path() -> *const u32 { function use_path_mut (line 180) | fn use_path_mut() -> *mut u32 { function full_path_mut (line 186) | fn full_path_mut() -> *mut u32 { function core_path_mut (line 191) | fn core_path_mut() -> *mut u32 { function full_core_path_mut (line 197) | fn full_core_path_mut() -> *mut u32 { function use_path (line 202) | fn use_path() -> *const u32 { function full_path (line 208) | fn full_path() -> *const u32 { function core_path (line 213) | fn core_path() -> *const u32 { function full_core_path (line 219) | fn full_core_path() -> *const u32 { function issue15283 (line 226) | fn issue15283() { function issue15232 (line 233) | fn issue15232() { FILE: tests/ui/ptr_cast_constness.rs function ptr_to_ref (line 14) | unsafe fn ptr_to_ref(p: *const T, om: *mut U) { function main (line 25) | fn main() { function lifetime_to_static (line 56) | fn lifetime_to_static(v: *mut &()) -> *const &'static () { function _msrv_1_64 (line 61) | fn _msrv_1_64() { function _msrv_1_65 (line 71) | fn _msrv_1_65() { function null_pointers (line 82) | fn null_pointers() { function issue14621 (line 104) | fn issue14621() { function issue11317 (line 110) | fn issue11317() { FILE: tests/ui/ptr_eq.rs function main (line 19) | fn main() { FILE: tests/ui/ptr_eq_no_std.rs function eh_personality (line 8) | extern "C" fn eh_personality() {} function panic (line 11) | fn panic(info: &PanicInfo) -> ! { function main (line 27) | fn main() { FILE: tests/ui/ptr_offset_by_literal.rs function main (line 4) | fn main() { FILE: tests/ui/ptr_offset_with_cast.rs function main (line 3) | fn main() { type S (line 33) | struct S; method offset (line 36) | fn offset(self, _: isize) -> Self { method wrapping_offset (line 39) | fn wrapping_offset(self, _: isize) -> Self { FILE: tests/ui/pub_use.rs type Test (line 7) | pub struct Test {} FILE: tests/ui/pub_with_shorthand.rs function a (line 13) | pub(self) fn a() {} function b (line 15) | pub(in self) fn b() {} function c (line 17) | pub fn c() {} function d (line 19) | pub(in super) fn d() {} function e (line 20) | pub(super) fn e() {} function f (line 22) | pub(self) fn f() {} function k (line 24) | pub(crate) fn k() {} function m (line 26) | pub(in crate) fn m() {} function l (line 28) | pub(in crate::a) fn l() {} FILE: tests/ui/pub_without_shorthand.rs function a (line 13) | pub(self) fn a() {} function b (line 14) | pub(in self) fn b() {} function c (line 17) | pub fn c() {} function d (line 19) | pub(in super) fn d() {} function e (line 21) | pub(super) fn e() {} function f (line 22) | pub(self) fn f() {} function k (line 23) | pub(crate) fn k() {} function m (line 24) | pub(in crate) fn m() {} function l (line 27) | pub(in crate::a) fn l() {} FILE: tests/ui/question_mark.rs function some_func (line 6) | fn some_func(a: Option) -> Option { function some_other_func (line 15) | fn some_other_func(a: Option) -> Option { type SeemsOption (line 24) | pub enum SeemsOption { function is_none (line 30) | pub fn is_none(&self) -> bool { function returns_something_similar_to_option (line 38) | fn returns_something_similar_to_option(a: SeemsOption) -> SeemsOpti... type CopyStruct (line 46) | pub struct CopyStruct { method func (line 52) | pub fn func(&self) -> Option { type MoveStruct (line 82) | pub struct MoveStruct { method ref_func (line 87) | pub fn ref_func(&self) -> Option> { method mov_func_reuse (line 96) | pub fn mov_func_reuse(self) -> Option> { method mov_func_no_use (line 105) | pub fn mov_func_no_use(self) -> Option> { method if_let_ref_func (line 113) | pub fn if_let_ref_func(self) -> Option> { method if_let_mov_func (line 124) | pub fn if_let_mov_func(self) -> Option> { function func (line 136) | fn func() -> Option { function func_returning_result (line 191) | fn func_returning_result() -> Result { function result_func (line 195) | fn result_func(x: Result) -> Result { function infer_check (line 259) | fn infer_check() { type NotOption (line 282) | pub enum NotOption { function obj (line 288) | fn obj(_: i32) -> Result<(), NotOption> { function f (line 292) | fn f() -> NotOption { function do_something (line 299) | fn do_something() {} function err_immediate_return (line 301) | fn err_immediate_return() -> Result { function err_immediate_return_and_do_something (line 309) | fn err_immediate_return_and_do_something() -> Result { function no_immediate_return (line 319) | fn no_immediate_return() -> Result { function mixed_result_and_option (line 328) | fn mixed_result_and_option() -> Option { function else_if_check (line 336) | fn else_if_check() -> Result { function option_map (line 349) | fn option_map() -> Option { type PatternedError (line 357) | pub struct PatternedError { function pattern (line 362) | fn pattern() -> Result<(), PatternedError> { function expect_expr (line 372) | fn expect_expr(a: Option) -> Option { function main (line 377) | fn main() {} function issue8628 (line 380) | fn issue8628(a: Option) -> Option { function issue6828_nested_body (line 390) | fn issue6828_nested_body() -> Option { function issue9175 (line 406) | const fn issue9175(option: Option<()>) -> Option<()> { function issue12337 (line 414) | fn issue12337() -> Option { function issue11983 (line 424) | fn issue11983(option: &Option) -> Option<()> { type Foo (line 437) | struct Foo { type Bar (line 440) | struct Bar { function issue12412 (line 444) | fn issue12412(foo: &Foo, bar: &Bar) -> Option<()> { type StructWithOptionString (line 461) | struct StructWithOptionString { type WrapperStructWithString (line 465) | struct WrapperStructWithString(String); function issue_13417 (line 468) | fn issue_13417(foo: &mut StructWithOptionString) -> Option { function issue_13417_mut (line 478) | fn issue_13417_mut(foo: &mut StructWithOptionString) -> Option { function issue_13417_weirder (line 489) | fn issue_13417_weirder(foo: &mut StructWithOptionString, mut bar: Option... function msrv_1_12 (line 506) | fn msrv_1_12(arg: Option) -> Option { function msrv_1_13 (line 519) | fn msrv_1_13(arg: Option) -> Option { function issue_14615 (line 533) | fn issue_14615(a: MutexGuard>) -> Option { function const_in_pattern (line 541) | fn const_in_pattern(x: Option<(i32, i32)>) -> Option<()> { function issue_13642 (line 551) | fn issue_13642(x: Option) -> Option<()> { function issue_15679 (line 563) | fn issue_15679() -> Result { function use_after_question_mark (line 588) | fn use_after_question_mark(do_something_else: impl Fn() -> Result R... function wrongly_unmangled_macros (line 619) | fn wrongly_unmangled_macros() -> Option { function issue16429 (line 639) | fn issue16429(b: i32) -> Option { function issue16654 (line 653) | fn issue16654() -> Result<(), i32> { FILE: tests/ui/question_mark_used.rs function other_function (line 6) | fn other_function() -> Option { function my_function (line 10) | fn my_function() -> Option { function main (line 17) | fn main() {} FILE: tests/ui/range.rs function main (line 3) | fn main() { function no_panic_with_fake_range_types (line 25) | fn no_panic_with_fake_range_types() { FILE: tests/ui/range_contains.rs function main (line 9) | fn main() { function in_range (line 83) | pub const fn in_range(a: i32) -> bool { function msrv_1_34 (line 88) | fn msrv_1_34() { function msrv_1_35 (line 94) | fn msrv_1_35() { FILE: tests/ui/range_plus_minus_one.rs function f (line 7) | fn f() -> usize { function main (line 27) | fn main() { function take_arg (line 116) | fn take_arg>(_: T) {} function take_args (line 117) | fn take_args>(_: T, _: T) {} type S (line 119) | struct S { function take_arg_and_struct (line 122) | fn take_arg_and_struct>(_: T, _: S) {} function no_index_by_range_inclusive (line 124) | fn no_index_by_range_inclusive(a: usize) { function no_index_mut_with_switched_range (line 137) | fn no_index_mut_with_switched_range(a: usize) { function issue9908 (line 163) | fn issue9908() { function issue9908_2 (line 179) | fn issue9908_2(n: usize) -> usize { FILE: tests/ui/range_unfixable.rs function main (line 4) | fn main() { FILE: tests/ui/rc_buffer.rs type S (line 8) | struct S { function func_bad1 (line 23) | fn func_bad1(_: Rc) {} function func_bad2 (line 25) | fn func_bad2(_: Rc) {} function func_bad3 (line 27) | fn func_bad3(_: Rc>) {} function func_bad4 (line 29) | fn func_bad4(_: Rc) {} function func_good1 (line 32) | fn func_good1(_: Rc>) {} function foo (line 35) | fn foo(_: std::rc::Rc>) {} function main (line 39) | fn main() {} FILE: tests/ui/rc_buffer_arc.rs type S (line 7) | struct S { function func_bad1 (line 22) | fn func_bad1(_: Arc) {} function func_bad2 (line 24) | fn func_bad2(_: Arc) {} function func_bad3 (line 26) | fn func_bad3(_: Arc>) {} function func_bad4 (line 28) | fn func_bad4(_: Arc) {} function func_good1 (line 31) | fn func_good1(_: Arc>) {} function foo (line 34) | fn foo(_: std::sync::Arc>) {} function main (line 38) | fn main() {} FILE: tests/ui/rc_buffer_redefined_string.rs type String (line 7) | struct String; type S (line 9) | struct S { function main (line 14) | fn main() {} FILE: tests/ui/rc_clone_in_vec_init/arc.rs function main (line 6) | fn main() {} function should_warn_simple_case (line 8) | fn should_warn_simple_case() { function should_warn_simple_case_with_big_indentation (line 13) | fn should_warn_simple_case_with_big_indentation() { function should_warn_complex_case (line 24) | fn should_warn_complex_case() { function should_not_warn_custom_arc (line 50) | fn should_not_warn_custom_arc() { function should_not_warn_vec_from_elem_but_not_arc (line 63) | fn should_not_warn_vec_from_elem_but_not_arc() { function should_not_warn_vec_macro_but_not_from_elem (line 76) | fn should_not_warn_vec_macro_but_not_from_elem() { FILE: tests/ui/rc_clone_in_vec_init/rc.rs function main (line 7) | fn main() {} function should_warn_simple_case (line 9) | fn should_warn_simple_case() { function should_warn_simple_case_with_big_indentation (line 14) | fn should_warn_simple_case_with_big_indentation() { function should_warn_complex_case (line 25) | fn should_warn_complex_case() { function should_not_warn_custom_arc (line 51) | fn should_not_warn_custom_arc() { function should_not_warn_vec_from_elem_but_not_rc (line 64) | fn should_not_warn_vec_from_elem_but_not_rc() { function should_not_warn_vec_macro_but_not_from_elem (line 77) | fn should_not_warn_vec_macro_but_not_from_elem() { FILE: tests/ui/rc_clone_in_vec_init/weak.rs function main (line 7) | fn main() {} function should_warn_simple_case (line 9) | fn should_warn_simple_case() { function should_warn_simple_case_with_big_indentation (line 23) | fn should_warn_simple_case_with_big_indentation() { function should_warn_complex_case (line 37) | fn should_warn_complex_case() { function should_not_warn_custom_weak (line 63) | fn should_not_warn_custom_weak() { function should_not_warn_vec_from_elem_but_not_weak (line 76) | fn should_not_warn_vec_from_elem_but_not_weak() { function should_not_warn_vec_macro_but_not_from_elem (line 97) | fn should_not_warn_vec_macro_but_not_from_elem() { FILE: tests/ui/rc_mutex.rs type MyStructWithPrivItem (line 7) | pub struct MyStructWithPrivItem { type MyStructWithPubItem (line 12) | pub struct MyStructWithPubItem { type SubT (line 16) | pub struct SubT { type MyEnum (line 20) | pub enum MyEnum { function test1 (line 27) | fn test1(foo: Rc>) {} function test2 (line 30) | fn test2(foo: Rc>) {} function test3 (line 33) | fn test3(foo: Rc>>) {} function pub_test1 (line 38) | pub fn pub_test1(foo: Rc>) {} function pub_test2 (line 39) | pub fn pub_test2(foo: Rc>) {} function pub_test3 (line 40) | pub fn pub_test3(foo: Rc>>) {} function main (line 42) | fn main() {} FILE: tests/ui/read_line_without_trim.rs function main (line 4) | fn main() { FILE: tests/ui/read_zero_byte_vec.rs function test (line 16) | fn test() -> io::Result<()> { function test_nested (line 71) | fn test_nested() -> io::Result<()> { function test_futures (line 92) | async fn test_futures(r: &mut R) { function test_tokio (line 104) | async fn test_tokio(r: &mut R) { function allow_works (line 116) | fn allow_works(mut f: F) { function main (line 122) | fn main() {} function issue15575 (line 124) | fn issue15575() -> usize { FILE: tests/ui/readonly_write_lock.rs function mutate_i32 (line 5) | fn mutate_i32(x: &mut i32) { function accept_i32 (line 9) | fn accept_i32(_: i32) {} function main (line 11) | fn main() { function issue12733 (line 48) | fn issue12733(rw: &RwLock<()>) { FILE: tests/ui/recursive_format_impl.rs type A (line 12) | struct A; method fmt (line 14) | fn fmt(&self) { method fmt (line 30) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { type B (line 19) | trait B { method fmt (line 20) | fn fmt(&self) {} method fmt (line 24) | fn fmt(&self) { function fmt (line 36) | fn fmt(a: A) { type C (line 40) | struct C; method to_string (line 45) | fn to_string(&self) -> String { method fmt (line 51) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { type D (line 56) | enum D { method fmt (line 62) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type G (line 72) | struct G; method fmt (line 75) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type H (line 82) | struct H; method fmt (line 85) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method fmt (line 92) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type H2 (line 99) | struct H2; method fmt (line 102) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type I (line 109) | struct I; type Target (line 112) | type Target = str; method deref (line 114) | fn deref(&self) -> &Self::Target { method fmt (line 120) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { method fmt (line 126) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type I2 (line 132) | struct I2; type Target (line 135) | type Target = str; method deref (line 137) | fn deref(&self) -> &Self::Target { method fmt (line 143) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type I3 (line 149) | struct I3; type Target (line 152) | type Target = str; method deref (line 154) | fn deref(&self) -> &Self::Target { method fmt (line 160) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type J (line 166) | struct J; type Target (line 169) | type Target = str; method deref (line 171) | fn deref(&self) -> &Self::Target { method fmt (line 177) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { method fmt (line 184) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type J2 (line 190) | struct J2; type Target (line 193) | type Target = str; method deref (line 195) | fn deref(&self) -> &Self::Target { method fmt (line 201) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type J3 (line 207) | struct J3; type Target (line 210) | type Target = str; method deref (line 212) | fn deref(&self) -> &Self::Target { method fmt (line 218) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type J4 (line 224) | struct J4; type Target (line 227) | type Target = str; method deref (line 229) | fn deref(&self) -> &Self::Target { method fmt (line 235) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type K (line 242) | struct K; method fmt (line 245) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { method fmt (line 251) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type K2 (line 257) | struct K2; method fmt (line 260) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { method fmt (line 266) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type L (line 272) | struct L { method fmt (line 278) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { method fmt (line 284) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type Tree (line 290) | enum Tree { method fmt (line 296) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { method fmt (line 311) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function main (line 325) | fn main() { FILE: tests/ui/redundant_allocation.rs type MyStruct (line 3) | pub struct MyStruct; type SubT (line 5) | pub struct SubT { function box_test6 (line 15) | pub fn box_test6(foo: Box>) {} function box_test7 (line 18) | pub fn box_test7(foo: Box>) {} function box_test8 (line 21) | pub fn box_test8() -> Box>> { function box_test9 (line 27) | pub fn box_test9(foo: Box>) -> Box>> { function rc_test5 (line 41) | pub fn rc_test5(a: Rc>) {} function rc_test7 (line 44) | pub fn rc_test7(a: Rc>) {} function rc_test8 (line 47) | pub fn rc_test8() -> Rc>> { function rc_test9 (line 53) | pub fn rc_test9(foo: Rc>) -> Rc>> { function arc_test5 (line 67) | pub fn arc_test5(a: Arc>) {} function arc_test6 (line 70) | pub fn arc_test6(a: Arc>) {} function arc_test8 (line 73) | pub fn arc_test8() -> Arc>> { function arc_test9 (line 79) | pub fn arc_test9(foo: Arc>) -> Arc>> { type T (line 93) | pub trait T {} type S (line 95) | struct S { function test_box (line 101) | pub fn test_box(_: Box>) {} function test_rc (line 102) | pub fn test_rc(_: Rc>) {} function test_arc (line 103) | pub fn test_arc(_: Arc>) {} function test_rc_box (line 104) | pub fn test_rc_box(_: Rc>>) {} type DynSized (line 115) | pub struct DynSized { type S (line 119) | struct S { function test_box_str (line 129) | pub fn test_box_str(_: Box>) {} function test_rc_str (line 130) | pub fn test_rc_str(_: Rc>) {} function test_arc_str (line 131) | pub fn test_arc_str(_: Arc>) {} function test_box_slice (line 133) | pub fn test_box_slice(_: Box>) {} function test_box_path (line 134) | pub fn test_box_path(_: Box>) {} function test_box_custom (line 135) | pub fn test_box_custom(_: Box>) {} function test_rc_box_str (line 137) | pub fn test_rc_box_str(_: Rc>>) {} function test_rc_box_slice (line 140) | pub fn test_rc_box_slice(_: Rc>>) {} function test_rc_box_path (line 143) | pub fn test_rc_box_path(_: Rc>>) {} function test_rc_box_custom (line 146) | pub fn test_rc_box_custom(_: Rc>>) {} function type_in_closure (line 151) | fn type_in_closure() { function main (line 155) | fn main() {} FILE: tests/ui/redundant_allocation_fixable.rs type MyStruct (line 4) | pub struct MyStruct; type SubT (line 6) | pub struct SubT { type MyEnum (line 10) | pub enum MyEnum { function box_test1 (line 21) | pub fn box_test1(foo: Box<&T>) {} function box_test2 (line 24) | pub fn box_test2(foo: Box<&MyStruct>) {} function box_test3 (line 27) | pub fn box_test3(foo: Box<&MyEnum>) {} function box_test4_neg (line 30) | pub fn box_test4_neg(foo: Box>) {} function box_test5 (line 32) | pub fn box_test5(foo: Box>) {} function rc_test1 (line 42) | pub fn rc_test1(foo: Rc<&T>) {} function rc_test2 (line 45) | pub fn rc_test2(foo: Rc<&MyStruct>) {} function rc_test3 (line 48) | pub fn rc_test3(foo: Rc<&MyEnum>) {} function rc_test4_neg (line 51) | pub fn rc_test4_neg(foo: Rc>) {} function rc_test6 (line 53) | pub fn rc_test6(a: Rc>) {} function arc_test1 (line 63) | pub fn arc_test1(foo: Arc<&T>) {} function arc_test2 (line 66) | pub fn arc_test2(foo: Arc<&MyStruct>) {} function arc_test3 (line 69) | pub fn arc_test3(foo: Arc<&MyEnum>) {} function arc_test4_neg (line 72) | pub fn arc_test4_neg(foo: Arc>) {} function arc_test7 (line 74) | pub fn arc_test7(a: Arc>) {} function main (line 78) | fn main() {} FILE: tests/ui/redundant_as_str.rs function main (line 4) | fn main() { FILE: tests/ui/redundant_async_block.rs function func1 (line 6) | async fn func1(n: usize) -> usize { function func2 (line 10) | async fn func2() -> String { function main (line 18) | fn main() { function capture_local (line 44) | fn capture_local() -> impl Future { function capture_local_closure (line 51) | fn capture_local_closure(s: &str) -> impl Future { function capture_arg (line 58) | fn capture_arg(s: &str) -> impl Future { function capture_future_arg (line 65) | fn capture_future_arg(f: impl Future) -> impl Future(f: FN) -> impl Future function double_future (line 80) | fn double_future(f: impl Future>) -> ... function await_in_async (line 85) | fn await_in_async(f: F) -> impl Future type F (line 96) | struct F {} method run (line 99) | async fn run(&self) {} function run (line 102) | pub async fn run() { function spawn (line 110) | fn spawn(_: F) {} function work (line 112) | async fn work(_: &str) {} function capture (line 114) | fn capture() { function await_from_macro (line 120) | fn await_from_macro() -> impl Future { function async_expr_from_macro (line 131) | fn async_expr_from_macro() -> impl Future { function async_expr_from_macro_deep (line 141) | fn async_expr_from_macro_deep() -> impl Future { function all_from_macro (line 151) | fn all_from_macro() -> impl Future { function parts_from_macro (line 162) | fn parts_from_macro() -> impl Future { function safe_parts_from_macro (line 172) | fn safe_parts_from_macro() -> impl Future { function parts_from_macro_deep (line 183) | fn parts_from_macro_deep() -> impl Future { function await_from_macro_deep (line 194) | fn await_from_macro_deep() -> impl Future { function from_into_future (line 204) | fn from_into_future(a: impl IntoFuture) -> impl Future (Alpha, Alpha) { function cannot_double_move (line 88) | fn cannot_double_move(a: Alpha) -> (Alpha, Alpha) { type TypeWithDrop (line 92) | struct TypeWithDrop { method drop (line 97) | fn drop(&mut self) {} function cannot_move_from_type_with_drop (line 100) | fn cannot_move_from_type_with_drop() -> String { function borrower_propagation (line 105) | fn borrower_propagation() { function not_consumed (line 166) | fn not_consumed() { function issue_5405 (line 191) | fn issue_5405() { function manually_drop (line 199) | fn manually_drop() { function clone_then_move_cloned (line 213) | fn clone_then_move_cloned() { function hashmap_neg (line 237) | fn hashmap_neg() { function false_negative_5707 (line 253) | fn false_negative_5707() { type MyEnum (line 265) | enum MyEnum { function false_positive_on_as (line 269) | fn false_positive_on_as() { function do_something (line 281) | fn do_something(f: impl Display + Clone) -> String { function regression (line 286) | fn regression() { FILE: tests/ui/redundant_closure_call_early.rs function main (line 5) | fn main() { FILE: tests/ui/redundant_closure_call_fixable.rs function something (line 6) | async fn something() -> u32 { function something_else (line 10) | async fn something_else() -> u32 { function main (line 14) | fn main() { function issue9956 (line 48) | fn issue9956() { function issue11357 (line 101) | async fn issue11357() { function spawn_on (line 109) | fn spawn_on(fut: impl Future) {} function demo (line 111) | fn demo() { function avoid_double_parens (line 117) | fn avoid_double_parens() { function fp_11274 (line 122) | fn fp_11274() { function issue_12358 (line 133) | fn issue_12358() { function issue_9583 (line 149) | fn issue_9583() { FILE: tests/ui/redundant_closure_call_late.rs function main (line 6) | fn main() { function fun (line 42) | fn fun(mut f: T) { FILE: tests/ui/redundant_else.rs function main (line 4) | fn main() { function foo (line 166) | fn foo() -> T { FILE: tests/ui/redundant_field_names.rs constant BAR (line 11) | pub const BAR: u8 = 0; type Person (line 14) | struct Person { type S (line 22) | pub struct S { function main (line 26) | fn main() { function issue_3476 (line 87) | fn issue_3476() { function msrv_1_16 (line 98) | fn msrv_1_16() { function msrv_1_17 (line 104) | fn msrv_1_17() { FILE: tests/ui/redundant_guards.rs type A (line 8) | struct A(u32); type B (line 10) | struct B { type C (line 14) | struct C(u32, u32); type FloatWrapper (line 17) | struct FloatWrapper(f32); function issue11304 (line 19) | fn issue11304() { function issue13681 (line 34) | fn issue13681() { function main (line 41) | fn main() { type E (line 116) | enum E { function i (line 122) | fn i() { function h (line 132) | fn h(v: Option) { function negative_literal (line 140) | fn negative_literal(i: i32) { function f (line 152) | fn f(s: Option) { function not_matches (line 160) | fn not_matches() { type S (line 172) | struct S { method eq (line 177) | fn eq(&self, _: &Self) -> bool { function g (line 186) | fn g(opt_s: Option) { type A (line 195) | enum A { type B (line 199) | struct B { function issue11465 (line 204) | fn issue11465() { function issue11807 (line 247) | fn issue11807() { function const_fn (line 312) | pub const fn const_fn(x: &str) { function non_const_fn (line 320) | pub fn non_const_fn(x: &str) { type Bar (line 328) | struct Bar; method const_bar (line 331) | pub const fn const_bar(x: &str) { method non_const_bar (line 339) | pub fn non_const_bar(x: &str) { FILE: tests/ui/redundant_locals.rs function main (line 9) | fn main() {} function immutable (line 11) | fn immutable() { function mutable (line 17) | fn mutable() { function upgraded_mutability (line 23) | fn upgraded_mutability() { function downgraded_mutability (line 28) | fn downgraded_mutability() { function shadow_mutation (line 34) | fn shadow_mutation() { function coercion (line 42) | fn coercion(par: &mut i32) { function parameter (line 49) | fn parameter(x: i32) { function many (line 54) | fn many() { function interleaved (line 66) | fn interleaved() { function block (line 75) | fn block() { function closure (line 83) | fn closure() { function consequential_drop_order (line 95) | fn consequential_drop_order() { function inconsequential_drop_order (line 106) | fn inconsequential_drop_order() { function macros (line 115) | fn macros() { type WithDrop (line 144) | struct WithDrop(usize); method drop (line 146) | fn drop(&mut self) {} type InnerDrop (line 149) | struct InnerDrop(WithDrop); type ComposeDrop (line 151) | struct ComposeDrop { type WithoutDrop (line 155) | struct WithoutDrop(usize); function drop_trait (line 157) | fn drop_trait() { function without_drop (line 163) | fn without_drop() { function drop_inner (line 170) | fn drop_inner() { function drop_compose (line 176) | fn drop_compose() { function issue12225 (line 182) | fn issue12225() { FILE: tests/ui/redundant_pattern_matching_drop_order.rs function main (line 11) | fn main() { FILE: tests/ui/redundant_pattern_matching_if_let_true.rs function main (line 19) | fn main() { FILE: tests/ui/redundant_pattern_matching_ipaddr.rs function main (line 12) | fn main() { function gen_ipaddr (line 89) | fn gen_ipaddr() -> IpAddr { function ipaddr_const (line 93) | const fn ipaddr_const() { FILE: tests/ui/redundant_pattern_matching_option.rs function issue_11174 (line 10) | fn issue_11174(boolean: bool, maybe_some: Option) -> bool { function issue_11174_edge_cases (line 15) | fn issue_11174_edge_cases(boolean: bool, boolean2: bool, maybe_some: ... function main (line 31) | fn main() { function gen_opt (line 104) | fn gen_opt() -> Option<()> { function foo (line 108) | fn foo() {} function bar (line 110) | fn bar() {} function issue6067 (line 115) | const fn issue6067() { function issue7921 (line 142) | fn issue7921() { function issue10726 (line 149) | fn issue10726() { function issue10803 (line 183) | fn issue10803() { function issue13902 (line 196) | fn issue13902() { function issue16045 (line 205) | fn issue16045() { function issue14989 (line 234) | fn issue14989() { FILE: tests/ui/redundant_pattern_matching_poll.rs function main (line 12) | fn main() { function gen_poll (line 82) | fn gen_poll() -> Poll<()> { function foo (line 86) | fn foo() {} function bar (line 88) | fn bar() {} function poll_const (line 90) | const fn poll_const() { FILE: tests/ui/redundant_pattern_matching_result.rs function main (line 12) | fn main() { function gen_res (line 81) | fn gen_res() -> Result<(), ()> { function issue5504 (line 91) | fn issue5504() { function issue6065 (line 112) | fn issue6065() { function issue6067 (line 126) | const fn issue6067() { function issue10726 (line 152) | fn issue10726() { function issue10803 (line 193) | fn issue10803() { function wrongly_unmangled_macros (line 209) | fn wrongly_unmangled_macros() { FILE: tests/ui/redundant_pub_crate.rs function f (line 6) | fn f() {} function g (line 7) | pub(crate) fn g() {} function h (line 10) | pub fn h() {} function f (line 13) | fn f() {} function g (line 14) | pub(crate) fn g() {} function h (line 17) | pub fn h() {} function f (line 23) | fn f() {} function g (line 24) | pub(crate) fn g() {} function h (line 27) | pub fn h() {} function f (line 31) | fn f() {} function g (line 32) | pub(crate) fn g() {} function h (line 35) | pub fn h() {} function f (line 40) | fn f() {} function g (line 41) | pub(crate) fn g() {} function h (line 44) | pub fn h() {} function f (line 47) | fn f() {} function g (line 48) | pub(crate) fn g() {} function h (line 51) | pub fn h() {} function f (line 57) | fn f() {} function g (line 58) | pub(crate) fn g() {} function h (line 61) | pub fn h() {} function f (line 65) | fn f() {} function g (line 66) | pub(crate) fn g() {} function h (line 69) | pub fn h() {} function f (line 74) | fn f() {} function g (line 75) | pub(crate) fn g() {} function h (line 76) | pub fn h() {} function f (line 79) | fn f() {} function g (line 80) | pub(crate) fn g() {} function h (line 83) | pub fn h() {} function f (line 88) | fn f() {} function g (line 89) | pub(crate) fn g() {} function h (line 92) | pub fn h() {} function f (line 96) | fn f() {} function g (line 97) | pub(crate) fn g() {} function h (line 98) | pub fn h() {} function f (line 103) | fn f() {} function g (line 104) | pub(crate) fn g() {} function h (line 107) | pub fn h() {} function f (line 110) | fn f() {} function g (line 111) | pub(crate) fn g() {} function h (line 114) | pub fn h() {} function f (line 120) | fn f() {} function g (line 121) | pub(crate) fn g() {} function h (line 124) | pub fn h() {} function f (line 128) | fn f() {} function g (line 129) | pub(crate) fn g() {} function h (line 130) | pub fn h() {} function main (line 160) | fn main() {} FILE: tests/ui/redundant_slicing.rs function main (line 6) | fn main() { FILE: tests/ui/redundant_static_lifetimes.rs type Foo (line 6) | struct Foo; constant IMPL_VAR (line 74) | const IMPL_VAR: &'static str = "var"; constant VAR_ONE (line 8) | const VAR_ONE: &'static str = "Test constant #1"; constant VAR_TWO (line 11) | const VAR_TWO: &str = "Test constant #2"; constant VAR_THREE (line 13) | const VAR_THREE: &[&'static str] = &["one", "two"]; constant VAR_FOUR (line 16) | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th... constant VAR_SIX (line 20) | const VAR_SIX: &'static u8 = &5; constant VAR_HEIGHT (line 23) | const VAR_HEIGHT: &'static Foo = &Foo {}; constant VAR_SLICE (line 26) | const VAR_SLICE: &'static [u8] = b"Test constant #1"; constant VAR_TUPLE (line 29) | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); constant VAR_ARRAY (line 32) | const VAR_ARRAY: &'static [u8; 1] = b"T"; function main (line 61) | fn main() { type Bar (line 69) | trait Bar { constant TRAIT_VAR (line 70) | const TRAIT_VAR: &'static str; constant TRAIT_VAR (line 78) | const TRAIT_VAR: &'static str = "foo"; function msrv_1_16 (line 82) | fn msrv_1_16() { function msrv_1_17 (line 87) | fn msrv_1_17() { FILE: tests/ui/redundant_static_lifetimes_multiple.rs constant VAR_FIVE (line 4) | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; constant VAR_SEVEN (line 8) | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["oth... function main (line 24) | fn main() {} FILE: tests/ui/redundant_test_prefix.rs function main (line 4) | fn main() { function f1 (line 8) | fn f1() { function test_f2 (line 12) | fn test_f2() { function test_f3 (line 17) | fn test_f3() { function test_f4 (line 26) | fn test_f4() { function f5 (line 34) | pub fn f5() {} function test_f6 (line 39) | fn test_f6() { function test_foo (line 54) | fn test_foo() { function test_foo_with_call (line 59) | fn test_foo_with_call() { function test_f1 (line 66) | fn test_f1() { function test_f2 (line 71) | fn test_f2() { function test_f3 (line 76) | fn test_f3() { function test_f4 (line 81) | fn test_f4() { function test_f5 (line 86) | fn test_f5() { function test_f6 (line 91) | fn test_f6() { function test_foo (line 100) | fn test_foo() { function test_foo_with_call (line 105) | fn test_foo_with_call() { function test_f1 (line 112) | fn test_f1() { function test_f2 (line 117) | fn test_f2() { function test_f3 (line 122) | fn test_f3() { function test_f4 (line 127) | fn test_f4() { function test_f5 (line 132) | fn test_f5() { function test_f6 (line 137) | fn test_f6() { function not_op (line 150) | fn not_op() { FILE: tests/ui/redundant_test_prefix_noautofix.rs function main (line 6) | fn main() { function f1 (line 10) | fn f1() { function test_f2 (line 14) | fn test_f2() { function test_f3 (line 19) | fn test_f3() { function test_f4 (line 28) | fn test_f4() { function f5 (line 35) | fn f5() {} function test_f5 (line 39) | fn test_f5() { function f6 (line 47) | pub fn f6() {} function f7 (line 48) | pub fn f7() {} function test_f6 (line 53) | fn test_f6() { function test_f8 (line 65) | fn test_f8() { function f (line 79) | pub fn f(_: i32) -> i32 { function test_f (line 88) | fn test_f() { function test_m3_1 (line 96) | fn test_m3_1() { function test_m3_2 (line 101) | fn test_m3_2() { function test_foo (line 114) | fn test_foo() { function test_foo_with_call (line 119) | fn test_foo_with_call() { function test_f1 (line 126) | fn test_f1() { function test_f2 (line 131) | fn test_f2() { function test_f3 (line 136) | fn test_f3() { function test_f4 (line 141) | fn test_f4() { function test_f5 (line 146) | fn test_f5() { function test_f6 (line 151) | fn test_f6() { function test_1 (line 156) | fn test_1() { function test_const (line 163) | fn test_const() { function test_async (line 170) | fn test_async() { function test_yield (line 177) | fn test_yield() { function test_ (line 184) | fn test_() { function test_foo (line 195) | fn test_foo() { function test_foo_with_call (line 200) | fn test_foo_with_call() { function test_f1 (line 207) | fn test_f1() { function test_f2 (line 212) | fn test_f2() { function test_f3 (line 217) | fn test_f3() { function test_f4 (line 222) | fn test_f4() { function test_f5 (line 227) | fn test_f5() { function test_f6 (line 232) | fn test_f6() { function test_1 (line 237) | fn test_1() { function test_const (line 244) | fn test_const() { function test_async (line 251) | fn test_async() { function test_yield (line 258) | fn test_yield() { function test_ (line 265) | fn test_() { function not_op (line 280) | fn not_op() { FILE: tests/ui/redundant_type_annotations.rs type Cake (line 5) | struct Cake { function make_something (line 9) | fn make_something() -> T { function make_cake (line 13) | fn make_cake() -> Cake { function plus_one (line 17) | fn plus_one>(val: T) -> T { type Slice (line 22) | struct Slice { type Pie (line 27) | struct Pie { method return_an_int (line 54) | fn return_an_int(&self) -> u32 { method return_a_ref (line 58) | fn return_a_ref(&self) -> &u32 { method return_a_ref_to_struct (line 62) | fn return_a_ref_to_struct(&self) -> &Slice { method associated_return_an_int (line 66) | fn associated_return_an_int() -> u32 { method new (line 70) | fn new() -> Self { method associated_return_a_string (line 74) | fn associated_return_a_string() -> String { method test_method_call (line 78) | fn test_method_call(&self) { type Pizza (line 32) | enum Pizza { function return_a_string (line 37) | fn return_a_string() -> String { function return_a_struct (line 41) | fn return_a_struct() -> Pie { function return_an_enum (line 45) | fn return_an_enum() -> Pizza { function return_an_int (line 49) | fn return_an_int() -> u32 { function test_generics (line 92) | fn test_generics() { function test_non_locals (line 115) | fn test_non_locals() { type Trait (line 125) | trait Trait { type AssocTy (line 130) | type AssocTy = String; function test_complex_types (line 133) | fn test_complex_types() { function test_functions (line 157) | fn test_functions() { function test_simple_types (line 188) | fn test_simple_types() { function issue12212 (line 207) | fn issue12212() { function issue11190 (line 212) | fn issue11190() {} function main (line 214) | fn main() {} FILE: tests/ui/ref_as_ptr.rs function f (line 4) | fn f(_: T) {} function main (line 6) | fn main() { function _msrv_1_75 (line 105) | fn _msrv_1_75() { function _msrv_1_76 (line 115) | fn _msrv_1_76() { function foo (line 125) | fn foo(val: &[u8]) { function bar (line 132) | fn bar(val: &mut str) { type X (line 139) | struct X<'a>(&'a i32); function foo (line 142) | fn foo(&self) -> *const i64 { function bar (line 147) | fn bar(&mut self) -> *const i64 { type Y (line 153) | struct Y<'a>(&'a mut i32); function foo (line 156) | fn foo(&self) -> *const i64 { function bar (line 161) | fn bar(&mut self) -> *const i64 { function baz (line 166) | fn baz(&mut self) -> *const i64 { FILE: tests/ui/ref_binding_to_reference.rs function f1 (line 6) | fn f1(_: &str) {} function main (line 19) | fn main() { function f2 (line 63) | fn f2<'a>(&ref x: &&'a String) -> &'a String { type T1 (line 70) | trait T1 { method f (line 72) | fn f(&ref x: &&String) { method f (line 82) | fn f(&ref x: &&String) { type S (line 79) | struct S; function check_expect_suppression (line 89) | fn check_expect_suppression() { FILE: tests/ui/ref_option_ref.rs constant CONST_THRESHOLD (line 13) | const CONST_THRESHOLD: &i32 = &10; constant REF_CONST (line 14) | const REF_CONST: &Option<&i32> = &Some(CONST_THRESHOLD); type RefOptRefU32 (line 17) | type RefOptRefU32<'a> = &'a Option<&'a u32>; type RefOptRef (line 20) | type RefOptRef<'a, T> = &'a Option<&'a T>; function foo (line 23) | fn foo(data: &Option<&u32>) {} function bar (line 26) | fn bar(data: &u32) -> &Option<&u32> { type StructRef (line 32) | struct StructRef<'a> { type StructTupleRef (line 37) | struct StructTupleRef<'a>(u32, &'a Option<&'a u32>); type EnumRef (line 40) | enum EnumRef<'a> { type RefOptTrait (line 46) | trait RefOptTrait { method foo (line 48) | fn foo(&self, _: Self::A); type A (line 52) | type A = &'static Option<&'static Self>; method foo (line 55) | fn foo(&self, _: Self::A) {} function main (line 58) | fn main() { function issue9682 (line 63) | fn issue9682(arg: &Option<&mut String>) { FILE: tests/ui/ref_patterns.rs function use_in_pattern (line 4) | fn use_in_pattern() { function use_in_binding (line 13) | fn use_in_binding() { function use_in_parameter (line 19) | fn use_in_parameter(ref x: i32) {} function main (line 22) | fn main() {} FILE: tests/ui/regex.rs constant OPENING_PAREN (line 16) | const OPENING_PAREN: &str = "("; constant NOT_A_REAL_REGEX (line 17) | const NOT_A_REAL_REGEX: &str = "foobar"; function syntax_error (line 19) | fn syntax_error() { function trivial_regex (line 73) | fn trivial_regex() { function regex_creation_in_loops (line 128) | fn regex_creation_in_loops() { function main (line 155) | fn main() {} FILE: tests/ui/rename.rs function main (line 147) | fn main() {} FILE: tests/ui/renamed_builtin_attr.rs function main (line 5) | fn main() {} FILE: tests/ui/repeat_once.rs function main (line 3) | fn main() { FILE: tests/ui/repeat_vec_with_capacity.rs function main (line 4) | fn main() { function msrv_check (line 42) | fn msrv_check() { FILE: tests/ui/repeat_vec_with_capacity_nostd.rs function nostd (line 8) | fn nostd() { FILE: tests/ui/repl_uninit.rs function might_panic (line 6) | fn might_panic(x: X) -> X { function main (line 11) | fn main() { FILE: tests/ui/replace_box.rs function with_default (line 3) | fn with_default(b: &mut Box) { function with_sized (line 8) | fn with_sized(b: &mut Box, t: T) { function with_unsized (line 13) | fn with_unsized(b: &mut Box<[u32]>) { function main (line 42) | fn main() { function issue15951 (line 74) | fn issue15951() { function field (line 100) | fn field() { FILE: tests/ui/repr_packed_without_abi.rs type NetworkPacketHeader (line 4) | struct NetworkPacketHeader { type NoLintCNetworkPacketHeader (line 18) | struct NoLintCNetworkPacketHeader { type NoLintRustNetworkPacketHeader (line 24) | struct NoLintRustNetworkPacketHeader { FILE: tests/ui/reserve_after_initialization.rs function standard (line 9) | fn standard() { function capacity_as_expr (line 16) | fn capacity_as_expr() { function vec_init_with_argument (line 24) | fn vec_init_with_argument() { function called_with_capacity (line 30) | fn called_with_capacity() { function assign_expression (line 35) | fn assign_expression() { function in_macros (line 42) | fn in_macros() { FILE: tests/ui/rest_pat_in_fully_bound_structs.rs type A (line 4) | struct A { function main (line 19) | fn main() { FILE: tests/ui/result_filter_map.rs function odds_out (line 4) | fn odds_out(x: i32) -> Result { function main (line 8) | fn main() { FILE: tests/ui/result_large_err.rs function small_err (line 6) | pub fn small_err() -> Result<(), u128> { function large_err (line 10) | pub fn large_err() -> Result<(), [u8; 512]> { type FullyDefinedLargeError (line 16) | pub struct FullyDefinedLargeError { method ret (line 23) | pub fn ret() -> Result<(), Self> { function struct_error (line 30) | pub fn struct_error() -> Result<(), FullyDefinedLargeError> { type Fdlr (line 36) | type Fdlr = std::result::Result; function large_err_via_type_alias (line 37) | pub fn large_err_via_type_alias(x: T) -> Fdlr { function param_small_error (line 43) | pub fn param_small_error() -> Result<(), (R, u128)> { function param_large_error (line 47) | pub fn param_large_error() -> Result<(), (u128, R, FullyDefinedLargeE... type LargeErrorVariants (line 53) | pub enum LargeErrorVariants { function large_enum_error (line 60) | pub fn large_enum_error() -> Result<(), Self> { type MultipleLargeVariants (line 67) | enum MultipleLargeVariants { method large_enum_error (line 74) | fn large_enum_error() -> Result<(), Self> { type TraitForcesLargeError (line 81) | trait TraitForcesLargeError { method large_error (line 82) | fn large_error() -> Result<(), [u8; 512]> { method large_error (line 93) | fn large_error() -> Result<(), [u8; 512]> { type TraitImpl (line 89) | struct TraitImpl; function large_union_err (line 103) | pub fn large_union_err() -> Result<(), FullyDefinedUnionError> { function param_large_union (line 114) | pub fn param_large_union() -> Result<(), UnionError> { type ArrayError (line 120) | pub struct ArrayError { function array_error_subst (line 125) | pub fn array_error_subst() -> Result<(), ArrayError> { function array_error (line 131) | pub fn array_error() -> Result<(), ArrayError<(i32, T), U>> { type Empty (line 138) | enum Empty {} function _empty_error (line 139) | fn _empty_error() -> Result<(), Empty> { function main (line 143) | fn main() {} function issue16249 (line 145) | fn issue16249() { FILE: tests/ui/result_map_or_into_option.rs function main (line 3) | fn main() { FILE: tests/ui/result_map_unit_fn_fixable.rs function do_nothing (line 3) | fn do_nothing(_: T) {} function diverge (line 5) | fn diverge(_: T) -> ! { function plus_one (line 9) | fn plus_one(value: usize) -> usize { type HasResult (line 13) | struct HasResult { method do_result_nothing (line 18) | fn do_result_nothing(&self, value: usize) {} method do_result_plus_one (line 20) | fn do_result_plus_one(&self, value: usize) -> usize { function result_map_unit_fn (line 26) | fn result_map_unit_fn() { function main (line 97) | fn main() {} FILE: tests/ui/result_map_unit_fn_unfixable.rs type HasResult (line 6) | struct HasResult { function do_nothing (line 10) | fn do_nothing(_: T) {} function diverge (line 12) | fn diverge(_: T) -> ! { function plus_one (line 16) | fn plus_one(value: usize) -> usize { function result_map_unit_fn (line 21) | fn result_map_unit_fn() { function main (line 60) | fn main() {} FILE: tests/ui/result_unit_error.rs function returns_unit_error (line 3) | pub fn returns_unit_error() -> Result { function private_unit_errors (line 9) | fn private_unit_errors() -> Result { type HasUnitError (line 13) | pub trait HasUnitError { method get_that_error (line 14) | fn get_that_error(&self) -> Result; method get_this_one_too (line 17) | fn get_this_one_too(&self) -> Result { method get_that_error (line 25) | fn get_that_error(&self) -> Result { type PrivateUnitError (line 30) | trait PrivateUnitError { method no_problem (line 31) | fn no_problem(&self) -> Result; type UnitErrorHolder (line 34) | pub struct UnitErrorHolder; method unit_error (line 37) | pub fn unit_error(&self) -> Result { type ResInv (line 46) | type ResInv = Result; function should_lint (line 48) | pub fn should_lint() -> ResInv<(), usize> { function should_not_lint (line 54) | pub fn should_not_lint() -> ResInv { type MyRes (line 58) | type MyRes = Result<(A, B), Box>; function should_not_lint2 (line 60) | pub fn should_not_lint2(x: i32) -> MyRes { function main (line 65) | fn main() {} FILE: tests/ui/result_unit_error_no_std.rs function returns_unit_error_no_lint (line 7) | pub fn returns_unit_error_no_lint() -> Result { function returns_unit_error_lint (line 12) | pub fn returns_unit_error_lint() -> Result { function main (line 18) | extern "C" fn main(_argc: core::ffi::c_int, _argv: *const *const u8) -> ... function panic (line 23) | fn panic(_info: &core::panic::PanicInfo) -> ! { function eh_personality (line 28) | extern "C" fn eh_personality() {} FILE: tests/ui/return_and_then.rs function main (line 3) | fn main() { function gen_option (line 164) | fn gen_option(n: i32) -> Option { function foo (line 169) | fn foo(_: &str, _: (u32, u32)) -> Result<(u32, u32), ()> { function bug (line 173) | fn bug(_: Option<&str>) -> Result<(), ()> { type EvenOdd (line 190) | struct EvenOdd { method new (line 196) | fn new(i: Option) -> Self { function with_if_let (line 204) | fn with_if_let(i: Option) -> u32 { function main (line 212) | fn main() { type A (line 219) | struct A { constant MY_A (line 222) | const MY_A: A = A { FILE: tests/ui/return_self_not_must_use.rs type Bar (line 5) | pub struct Bar; method not_new (line 17) | pub fn not_new() -> Self { method foo (line 20) | pub fn foo(&self) -> Self { method bar (line 25) | pub fn bar(self) -> Self { method foo2 (line 31) | fn foo2(&self) -> Self { method foo3 (line 35) | pub fn foo3(&self) -> &Self { method foo4 (line 40) | pub fn foo4(&self) -> Self { type Whatever (line 7) | pub trait Whatever { method what (line 8) | fn what(&self) -> Self; method what2 (line 12) | fn what2(&self) -> &Self; method what (line 47) | fn what(&self) -> Self { method what2 (line 51) | fn what2(&self) -> &Self { type Foo (line 57) | pub struct Foo; method foo (line 61) | fn foo(&self) -> Self { FILE: tests/ui/reversed_empty_ranges_fixable.rs constant ANSWER (line 4) | const ANSWER: i32 = 42; function main (line 6) | fn main() { FILE: tests/ui/reversed_empty_ranges_loops_fixable.rs function main (line 4) | fn main() { FILE: tests/ui/reversed_empty_ranges_loops_unfixable.rs function main (line 4) | fn main() { FILE: tests/ui/reversed_empty_ranges_unfixable.rs constant ANSWER (line 3) | const ANSWER: i32 = 42; constant SOME_NUM (line 4) | const SOME_NUM: usize = 3; function main (line 6) | fn main() { FILE: tests/ui/same_functions_in_if_condition.rs function function (line 10) | fn function() -> bool { function fn_arg (line 14) | fn fn_arg(_arg: u8) -> bool { type Struct (line 18) | struct Struct; method method (line 21) | fn method(&self) -> bool { method method_arg (line 24) | fn method_arg(&self, _arg: u8) -> bool { function ifs_same_cond_fn (line 29) | fn ifs_same_cond_fn() { function main (line 85) | fn main() { FILE: tests/ui/same_item_push.rs constant VALUE (line 3) | const VALUE: u8 = 7; function mutate_increment (line 5) | fn mutate_increment(x: &mut u8) -> u8 { function increment (line 10) | fn increment(x: u8) -> u8 { function fun (line 14) | fn fun() -> usize { function main (line 18) | fn main() { FILE: tests/ui/same_length_and_capacity.rs function main (line 3) | fn main() { FILE: tests/ui/same_name_method.rs type T1 (line 4) | trait T1 { method foo (line 5) | fn foo() {} method foo (line 25) | fn foo() {} method foo (line 51) | fn foo() {} method foo (line 93) | fn foo() {} method foo (line 128) | fn foo() {} type T2 (line 8) | trait T2 { method foo (line 9) | fn foo() {} method foo (line 97) | fn foo() {} type S (line 17) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type S (line 32) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type S (line 43) | struct S(U); method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} function foo (line 46) | fn foo() {} type S (line 58) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type S (line 71) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type S (line 90) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type T3 (line 102) | trait T3 { type foo (line 112) | type foo = usize; type S (line 106) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} type S (line 120) | struct S; method foo (line 20) | fn foo() {} method clone (line 35) | fn clone() {} method foo (line 61) | fn foo() {} method foo (line 74) | fn foo() {} method foo (line 109) | fn foo() {} method foo (line 124) | fn foo() {} function main (line 132) | fn main() {} FILE: tests/ui/search_is_some.rs function main (line 10) | fn main() { function is_none (line 26) | fn is_none() { FILE: tests/ui/search_is_some_fixable_none.rs function main (line 4) | fn main() { type Player (line 91) | struct Player { function filter (line 94) | fn filter() { type PlayerTuple (line 108) | struct PlayerTuple { function filter_tuple (line 111) | fn filter_tuple() { function field_projection (line 125) | fn field_projection() { function index_projection (line 142) | fn index_projection() { function slice_projection (line 149) | fn slice_projection() { function please (line 155) | fn please(x: &u32) -> bool { function deref_enough (line 159) | fn deref_enough(x: u32) -> bool { function arg_no_deref (line 163) | fn arg_no_deref(x: &&u32) -> bool { function more_projections (line 167) | fn more_projections() { function field_index_projection (line 189) | fn field_index_projection() { function index_field_projection (line 213) | fn index_field_projection() { function double_deref_index_projection (line 227) | fn double_deref_index_projection() { function method_call_by_ref (line 233) | fn method_call_by_ref() { function ref_bindings (line 247) | fn ref_bindings() { function test_string_1 (line 255) | fn test_string_1(s: &str) -> bool { function test_u32_1 (line 259) | fn test_u32_1(s: &u32) -> bool { function test_u32_2 (line 263) | fn test_u32_2(s: u32) -> bool { function projection_in_args_test (line 267) | fn projection_in_args_test() { function computations (line 293) | fn computations() -> u32 { type Foo (line 297) | struct Foo; method bar (line 299) | fn bar(&self, _: bool) {} function test_normal_for_iter (line 302) | fn test_normal_for_iter() { function test_then_for_iter (line 310) | fn test_then_for_iter() { function test_then_some_for_iter (line 316) | fn test_then_some_for_iter() { function test_normal_for_str (line 322) | fn test_normal_for_str() { function test_then_for_str (line 335) | fn test_then_for_str() { function test_then_some_for_str (line 344) | fn test_then_some_for_str() { FILE: tests/ui/search_is_some_fixable_none_2021.rs function main (line 4) | fn main() { FILE: tests/ui/search_is_some_fixable_some.rs function main (line 4) | fn main() { type Player (line 90) | struct Player { function filter (line 93) | fn filter() { type PlayerTuple (line 107) | struct PlayerTuple { function filter_tuple (line 110) | fn filter_tuple() { function field_projection (line 124) | fn field_projection() { function index_projection (line 141) | fn index_projection() { function slice_projection (line 148) | fn slice_projection() { function please (line 154) | fn please(x: &u32) -> bool { function deref_enough (line 158) | fn deref_enough(x: u32) -> bool { function arg_no_deref (line 162) | fn arg_no_deref(x: &&u32) -> bool { function more_projections (line 166) | fn more_projections() { function field_index_projection (line 188) | fn field_index_projection() { function index_field_projection (line 212) | fn index_field_projection() { function double_deref_index_projection (line 226) | fn double_deref_index_projection() { function method_call_by_ref (line 232) | fn method_call_by_ref() { function ref_bindings (line 246) | fn ref_bindings() { function test_string_1 (line 254) | fn test_string_1(s: &str) -> bool { function test_u32_1 (line 258) | fn test_u32_1(s: &u32) -> bool { function test_u32_2 (line 262) | fn test_u32_2(s: u32) -> bool { function projection_in_args_test (line 266) | fn projection_in_args_test() { function make_arg_no_deref_impl (line 292) | fn make_arg_no_deref_impl() -> impl Fn(&&u32) -> bool { function make_arg_no_deref_dyn (line 296) | fn make_arg_no_deref_dyn() -> Box bool> { function wrapper (line 300) | fn wrapper bool>(v: Vec, func: T) -> bool { function do_tests (line 306) | fn do_tests() { FILE: tests/ui/search_is_some_fixable_some_2021.rs function main (line 4) | fn main() { FILE: tests/ui/seek_from_current.rs function _msrv_1_50 (line 7) | fn _msrv_1_50() -> io::Result<()> { function _msrv_1_51 (line 16) | fn _msrv_1_51() -> io::Result<()> { function main (line 25) | fn main() {} FILE: tests/ui/seek_to_start_instead_of_rewind.rs type StructWithSeekMethod (line 7) | struct StructWithSeekMethod {} method seek (line 10) | fn seek(&mut self, from: SeekFrom) {} type MySeekTrait (line 13) | trait MySeekTrait { method seek (line 14) | fn seek(&mut self, from: SeekFrom) {} type StructWithSeekTrait (line 17) | struct StructWithSeekTrait {} function seek_to_start_false_method (line 22) | fn seek_to_start_false_method(t: &mut StructWithSeekMethod) { function seek_to_start_method_owned_false (line 28) | fn seek_to_start_method_owned_false(mut t: StructWithSeekMethod) { function seek_to_start_false_trait (line 34) | fn seek_to_start_false_trait(t: &mut StructWithSeekTrait) { function seek_to_start_false_trait_owned (line 40) | fn seek_to_start_false_trait_owned(mut t: StructWithSeekTrait) { function seek_to_start_false_trait_bound (line 46) | fn seek_to_start_false_trait_bound(t: &mut T) { function seek_to_start (line 51) | fn seek_to_start(t: &mut T) { function owned_seek_to_start (line 57) | fn owned_seek_to_start(mut t: T) { function seek_to_5 (line 64) | fn seek_to_5(t: &mut T) { function seek_to_end (line 70) | fn seek_to_end(t: &mut T) { function seek_to_start_in_let (line 76) | fn seek_to_start_in_let(t: &mut T) { function main (line 80) | fn main() { function msrv_1_54 (line 105) | fn msrv_1_54() { function msrv_1_55 (line 126) | fn msrv_1_55() { FILE: tests/ui/self_assignment.rs type S (line 4) | pub struct S<'a> { function positives (line 12) | pub fn positives(mut a: usize, b: &mut u32, mut s: S) { function negatives_not_equal (line 48) | pub fn negatives_not_equal(mut a: usize, b: &mut usize, mut s: S) { function negatives_side_effects (line 64) | pub fn negatives_side_effects() { function main (line 88) | fn main() {} FILE: tests/ui/self_named_constructors.rs type ShouldSpawn (line 3) | struct ShouldSpawn; method should_spawn (line 7) | pub fn should_spawn() -> ShouldSpawn { method should_not_spawn (line 13) | fn should_not_spawn() -> ShouldNotSpawn { type ShouldNotSpawn (line 4) | struct ShouldNotSpawn; method new (line 19) | pub fn new() -> ShouldNotSpawn { type ShouldNotSpawnWithTrait (line 24) | struct ShouldNotSpawnWithTrait; method should_not_spawn_with_trait (line 35) | pub fn should_not_spawn_with_trait() -> impl ShouldNotSpawnTrait Self; method should_not_spawn (line 48) | fn should_not_spawn() -> Self { type SelfMethodShouldNotSpawn (line 53) | struct SelfMethodShouldNotSpawn; method self_method_should_not_spawn (line 56) | fn self_method_should_not_spawn(self) -> Self { function main (line 61) | fn main() {} FILE: tests/ui/semicolon_if_nothing_returned.rs function get_unit (line 14) | fn get_unit() {} function main (line 17) | fn main() { function hello (line 22) | fn hello() { function basic101 (line 27) | fn basic101(x: i32) { function closure_error (line 34) | fn closure_error() { function unsafe_checks_error (line 42) | fn unsafe_checks_error() { function print_sum (line 54) | fn print_sum(a: i32, b: i32) { function foo (line 59) | fn foo(x: i32) { function bar (line 68) | fn bar(x: i32) { function foobar (line 76) | fn foobar(x: i32) { function loop_test (line 83) | fn loop_test(x: i32) { function closure (line 90) | fn closure() { function closure_block (line 95) | fn closure_block() { function some_unsafe_op (line 99) | unsafe fn some_unsafe_op() {} function some_other_unsafe_fn (line 100) | unsafe fn some_other_unsafe_fn() {} function do_something (line 102) | fn do_something() { function unsafe_checks (line 108) | fn unsafe_checks() { function macro_with_semicolon (line 118) | fn macro_with_semicolon() { function function_returning_option (line 128) | fn function_returning_option() -> Option { function let_else_stmts (line 133) | fn let_else_stmts() { function main (line 143) | async fn main() { function main (line 150) | async fn main() { function main (line 158) | async fn main() { function main (line 164) | async fn main() {} FILE: tests/ui/semicolon_inside_block.rs function unit_fn_block (line 27) | fn unit_fn_block() { function main (line 32) | fn main() { function issue15380 (line 93) | fn issue15380() { function issue15388 (line 106) | pub fn issue15388() { function issue_try_blocks (line 111) | fn issue_try_blocks() { FILE: tests/ui/semicolon_inside_block_stmt_expr_attrs.rs function issue15388 (line 7) | pub fn issue15388() { FILE: tests/ui/semicolon_outside_block.rs function unit_fn_block (line 25) | fn unit_fn_block() { function main (line 30) | fn main() { function issue14926 (line 100) | fn issue14926() { FILE: tests/ui/serde.rs type A (line 6) | struct A; type Value (line 9) | type Value = (); method expecting (line 11) | fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Resu... method visit_str (line 15) | fn visit_str(self, _v: &str) -> Result method visit_string (line 22) | fn visit_string(self, _v: String) -> Result type B (line 30) | struct B; type Value (line 33) | type Value = (); method expecting (line 35) | fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Resu... method visit_string (line 39) | fn visit_string(self, _v: String) -> Result function main (line 48) | fn main() {} FILE: tests/ui/set_contains_or_insert.rs function should_warn_hashset (line 8) | fn should_warn_hashset() { function should_not_warn_hashset (line 53) | fn should_not_warn_hashset() { function should_warn_btreeset (line 82) | fn should_warn_btreeset() { function should_not_warn_btreeset (line 127) | fn should_not_warn_btreeset() { function simply_true (line 156) | fn simply_true() -> bool { function main (line 160) | fn main() {} function issue15990 (line 162) | fn issue15990(s: &mut HashSet, v: usize) { FILE: tests/ui/shadow.rs type Nothing (line 14) | pub struct Nothing; function shadow_same (line 22) | fn shadow_same() { function shadow_reuse (line 34) | fn shadow_reuse() -> Option<()> { function shadow_reuse_macro (line 59) | fn shadow_reuse_macro() { function shadow_unrelated (line 65) | fn shadow_unrelated() { function syntax (line 71) | fn syntax() { function negative (line 100) | fn negative() { function foo (line 121) | fn foo(_: T) {} function question_mark (line 123) | fn question_mark() -> Option<()> { function foo1 (line 130) | pub async fn foo1(_a: i32) {} function foo2 (line 132) | pub async fn foo2(_a: i32, _b: i64) { function ice_8748 (line 137) | fn ice_8748() { function shadow_closure (line 146) | fn shadow_closure() { type Issue13795 (line 161) | struct Issue13795 { function issue13795 (line 165) | fn issue13795(value: Issue13795) { function issue14377 (line 170) | fn issue14377() { function main (line 185) | fn main() {} FILE: tests/ui/short_circuit_statement.rs function main (line 4) | fn main() { function f (line 42) | fn f() -> bool { function g (line 46) | fn g() -> bool { type H (line 50) | struct H; type Output (line 53) | type Output = bool; method mul (line 54) | fn mul(self, other: u32) -> Self::Output { FILE: tests/ui/should_impl_trait/corner_cases.rs function main (line 20) | fn main() {} type T1 (line 22) | pub struct T1; method drop (line 27) | pub(crate) fn drop(&mut self) {} method neg (line 30) | fn neg(self) -> Self { method eq (line 35) | fn eq(&self, other: Self) -> bool { method sub (line 40) | fn sub(&self, other: Self) -> &Self { method div (line 45) | fn div(self) -> Self { method rem (line 50) | fn rem(self, other: Self) {} method into_u32 (line 53) | fn into_u32(self) -> u32 { method into_u16 (line 57) | fn into_u16(&self) -> u16 { method to_something (line 61) | fn to_something(self) -> u32 { method new (line 65) | fn new(self) -> Self { method next (line 69) | pub fn next<'b>(&'b mut self) -> Option<&'b mut T1> { type T2 (line 74) | pub struct T2; method add (line 77) | pub unsafe fn add(self, rhs: Self) -> Self { method next (line 82) | pub async fn next(&mut self) -> Option { FILE: tests/ui/should_impl_trait/method_list_1.rs function main (line 20) | fn main() {} type T (line 21) | pub struct T; method add (line 27) | pub fn add(self, other: T) -> T { method as_mut (line 33) | pub fn as_mut(&mut self) -> &mut T { method as_ref (line 39) | pub fn as_ref(&self) -> &T { method bitand (line 45) | pub fn bitand(self, rhs: T) -> T { method bitor (line 51) | pub fn bitor(self, rhs: Self) -> Self { method bitxor (line 57) | pub fn bitxor(self, rhs: Self) -> Self { method borrow (line 63) | pub fn borrow(&self) -> &str { method borrow_mut (line 69) | pub fn borrow_mut(&mut self) -> &mut str { method clone (line 75) | pub fn clone(&self) -> Self { method cmp (line 81) | pub fn cmp(&self, other: &Self) -> Self { method default (line 87) | pub fn default() -> Self { method deref (line 93) | pub fn deref(&self) -> &Self { method deref_mut (line 99) | pub fn deref_mut(&mut self) -> &mut Self { method div (line 105) | pub fn div(self, rhs: Self) -> Self { method drop (line 111) | pub fn drop(&mut self) { FILE: tests/ui/should_impl_trait/method_list_2.rs function main (line 20) | fn main() {} type T (line 21) | pub struct T; method eq (line 28) | pub fn eq(&self, other: &Self) -> bool { method from_iter (line 34) | pub fn from_iter(iter: T) -> Self { method from_str (line 40) | pub fn from_str(s: &str) -> Result { method hash (line 46) | pub fn hash(&self, state: &mut T) { method index (line 52) | pub fn index(&self, index: usize) -> &Self { method index_mut (line 58) | pub fn index_mut(&mut self, index: usize) -> &mut Self { method into_iter (line 64) | pub fn into_iter(self) -> Self { method mul (line 70) | pub fn mul(self, rhs: Self) -> Self { method neg (line 76) | pub fn neg(self) -> Self { method next (line 82) | pub fn next(&mut self) -> Option { method not (line 88) | pub fn not(self) -> Self { method rem (line 94) | pub fn rem(self, rhs: Self) -> Self { method shl (line 100) | pub fn shl(self, rhs: Self) -> Self { method shr (line 106) | pub fn shr(self, rhs: Self) -> Self { method sub (line 112) | pub fn sub(self, rhs: Self) -> Self { FILE: tests/ui/should_panic_without_expect.rs function no_message (line 7) | fn no_message() {} function no_message_cfg_false (line 12) | fn no_message_cfg_false() {} function metastr (line 16) | fn metastr() {} function metalist (line 20) | fn metalist() {} function main (line 22) | fn main() {} FILE: tests/ui/significant_drop_in_scrutinee.rs type State (line 17) | struct State {} method foo (line 20) | fn foo(&self) -> bool { method bar (line 24) | fn bar(&self) {} function should_not_trigger_lint_with_mutex_guard_outside_match (line 27) | fn should_not_trigger_lint_with_mutex_guard_outside_match() { function should_not_trigger_lint_with_mutex_guard_when_taking_ownership_in_match (line 40) | fn should_not_trigger_lint_with_mutex_guard_when_taking_ownership_in_mat... function should_trigger_lint_with_mutex_guard_in_match_scrutinee (line 54) | fn should_trigger_lint_with_mutex_guard_in_match_scrutinee() { function should_not_trigger_lint_with_mutex_guard_in_match_scrutinee_when_lint_allowed (line 69) | fn should_not_trigger_lint_with_mutex_guard_in_match_scrutinee_when_lint... function should_not_trigger_lint_for_insignificant_drop (line 82) | fn should_not_trigger_lint_for_insignificant_drop() { type StateWithMutex (line 95) | struct StateWithMutex { method lock_m (line 120) | fn lock_m(&self) -> MutexGuardWrapper<'_> { method lock_m_m (line 126) | fn lock_m_m(&self) -> MutexGuardWrapperWrapper<'_> { method foo (line 134) | fn foo(&self) -> bool { method bar (line 138) | fn bar(&self) {} type MutexGuardWrapper (line 99) | struct MutexGuardWrapper<'a> { function get_the_value (line 104) | fn get_the_value(&self) -> u64 { type MutexGuardWrapperWrapper (line 109) | struct MutexGuardWrapperWrapper<'a> { function get_the_value (line 114) | fn get_the_value(&self) -> u64 { function should_trigger_lint_with_wrapped_mutex (line 141) | fn should_trigger_lint_with_wrapped_mutex() { function should_trigger_lint_with_double_wrapped_mutex (line 162) | fn should_trigger_lint_with_double_wrapped_mutex() { type Counter (line 184) | struct Counter { method temp_increment (line 207) | fn temp_increment(&self) -> Vec> { type CounterWrapper (line 189) | struct CounterWrapper<'a> { function new (line 194) | fn new(counter: &Counter) -> CounterWrapper<'_> { method drop (line 201) | fn drop(&mut self) { function should_trigger_lint_for_vec (line 212) | fn should_trigger_lint_for_vec() { type StateWithField (line 231) | struct StateWithField { function should_trigger_lint_for_tuple_in_scrutinee (line 238) | fn should_trigger_lint_for_tuple_in_scrutinee() { function should_not_trigger_lint_for_string_as_str (line 280) | fn should_not_trigger_lint_for_string_as_str() { function should_trigger_lint_for_accessing_field_in_mutex_in_one_side_of_binary_op (line 313) | fn should_trigger_lint_for_accessing_field_in_mutex_in_one_side_of_binar... function should_trigger_lint_for_accessing_fields_in_mutex_in_both_sides_of_binary_op (line 337) | fn should_trigger_lint_for_accessing_fields_in_mutex_in_both_sides_of_bi... function should_not_trigger_lint_for_closure_in_scrutinee (line 370) | fn should_not_trigger_lint_for_closure_in_scrutinee() { function should_trigger_lint_for_return_from_closure_in_scrutinee (line 386) | fn should_trigger_lint_for_return_from_closure_in_scrutinee() { function should_trigger_lint_for_return_from_match_in_scrutinee (line 402) | fn should_trigger_lint_for_return_from_match_in_scrutinee() { function should_trigger_lint_for_return_from_if_in_scrutinee (line 429) | fn should_trigger_lint_for_return_from_if_in_scrutinee() { function should_not_trigger_lint_for_if_in_scrutinee (line 455) | fn should_not_trigger_lint_for_if_in_scrutinee() { type StateWithBoxedMutexGuard (line 475) | struct StateWithBoxedMutexGuard { method new (line 480) | fn new() -> StateWithBoxedMutexGuard { method lock (line 483) | fn lock(&self) -> Box> { function should_trigger_lint_for_boxed_mutex_guard (line 488) | fn should_trigger_lint_for_boxed_mutex_guard() { type StateStringWithBoxedMutexGuard (line 500) | struct StateStringWithBoxedMutexGuard { method new (line 505) | fn new() -> StateStringWithBoxedMutexGuard { method lock (line 510) | fn lock(&self) -> Box> { function should_not_trigger_lint_for_string_ref (line 515) | fn should_not_trigger_lint_for_string_ref() { type StateWithIntField (line 529) | struct StateWithIntField { function should_trigger_lint_in_assign_expr (line 537) | fn should_trigger_lint_in_assign_expr() { type RecursiveEnum (line 572) | enum RecursiveEnum { type GenericRecursiveEnum (line 577) | enum GenericRecursiveEnum { function should_not_cause_stack_overflow (line 581) | fn should_not_cause_stack_overflow() { function should_not_produce_lint_for_try_desugar (line 605) | fn should_not_produce_lint_for_try_desugar() -> Result Result { function should_trigger_lint_for_non_ref_move_and_clone_suggestion (line 625) | fn should_trigger_lint_for_non_ref_move_and_clone_suggestion() { function should_not_trigger_lint_for_read_write_lock_for_loop (line 634) | fn should_not_trigger_lint_for_read_write_lock_for_loop() { function do_bar (line 644) | fn do_bar(mutex: &Mutex) { function should_trigger_lint_without_significant_drop_in_arm (line 648) | fn should_trigger_lint_without_significant_drop_in_arm() { function should_not_trigger_on_significant_iterator_drop (line 661) | fn should_not_trigger_on_significant_iterator_drop() { function should_not_trigger_lint_if_place_expr_has_significant_drop (line 669) | fn should_not_trigger_lint_if_place_expr_has_significant_drop() { type Guard (line 684) | struct Guard<'a, T>(MutexGuard<'a, T>); type Ref (line 686) | struct Ref<'a, T>(&'a T); function guard (line 689) | fn guard(&self) -> &MutexGuard<'_, T> { function guard_ref (line 693) | fn guard_ref(&self) -> Ref<'_, MutexGuard<'_, T>> { function take (line 697) | fn take(self) -> Box> { function should_not_trigger_for_significant_drop_ref (line 702) | fn should_not_trigger_for_significant_drop_ref() { type Foo (line 723) | struct Foo<'a>(&'a Vec); function copy_old_lifetime (line 726) | fn copy_old_lifetime(&self) -> &'a Vec { function reborrow_new_lifetime (line 730) | fn reborrow_new_lifetime(&self) -> &Vec { function should_trigger_lint_if_and_only_if_lifetime_is_irrelevant (line 735) | fn should_trigger_lint_if_and_only_if_lifetime_is_irrelevant() { function should_not_trigger_lint_for_complex_lifetime (line 753) | fn should_not_trigger_lint_for_complex_lifetime() { function should_not_trigger_lint_with_explicit_drop (line 771) | fn should_not_trigger_lint_with_explicit_drop() { function should_trigger_lint_in_if_let (line 786) | fn should_trigger_lint_in_if_let() { function should_trigger_lint_in_while_let (line 801) | fn should_trigger_lint_in_while_let() { function foo_async (line 810) | async fn foo_async(mutex: &Mutex) -> Option> { function should_trigger_lint_for_async (line 814) | async fn should_trigger_lint_for_async(mutex: Mutex) -> i32 { function should_not_trigger_lint_in_async_expansion (line 822) | async fn should_not_trigger_lint_in_async_expansion(mutex: Mutex) -... function should_trigger_lint_in_match_expr (line 829) | fn should_trigger_lint_in_match_expr() { function main (line 842) | fn main() {} FILE: tests/ui/significant_drop_tightening.rs function complex_return_triggers_the_lint (line 5) | pub fn complex_return_triggers_the_lint() -> i32 { function issue_10413 (line 17) | pub fn issue_10413() { function issue_11128 (line 29) | pub fn issue_11128() { function issue_11160 (line 52) | pub fn issue_11160() -> bool { function issue_11189 (line 59) | pub fn issue_11189() { function path_return_can_be_ignored (line 79) | pub fn path_return_can_be_ignored() -> i32 { function post_bindings_can_be_ignored (line 87) | pub fn post_bindings_can_be_ignored() { function unnecessary_contention_with_multiple_owned_results (line 95) | pub fn unnecessary_contention_with_multiple_owned_results() { function unnecessary_contention_with_single_owned_results (line 113) | pub fn unnecessary_contention_with_single_owned_results() { function do_heavy_computation_that_takes_time (line 142) | pub fn do_heavy_computation_that_takes_time(_: T) {} function main (line 144) | fn main() {} function issue15574 (line 146) | fn issue15574() { function issue16343 (line 165) | fn issue16343() { FILE: tests/ui/similar_names.rs type Foo (line 11) | struct Foo { function main (line 16) | fn main() { function foo (line 98) | fn foo() { type DirSizes (line 111) | pub(crate) struct DirSizes { function ignore_underscore_prefix (line 127) | fn ignore_underscore_prefix() { FILE: tests/ui/single_call_fn.rs function f (line 11) | pub fn f() {} function i (line 13) | fn i() {} function j (line 15) | fn j() {} function h (line 18) | fn h() { function g (line 32) | fn g() { function c (line 36) | fn c() { function d (line 43) | fn d() { function a (line 47) | fn a() {} function b (line 50) | fn b() { function e (line 68) | fn e() { function k (line 74) | fn k() {} function print_foo (line 78) | fn print_foo(text: &str) { function use_print_foo (line 82) | fn use_print_foo() { function l (line 88) | fn l() { type Trait (line 92) | trait Trait { method default (line 93) | fn default() {} method foo (line 95) | fn foo(&self); function rand (line 99) | fn rand() -> std::ffi::c_int; function m (line 101) | fn m(v: T) { FILE: tests/ui/single_char_add_str.rs function main (line 10) | fn main() { FILE: tests/ui/single_char_lifetime_names.rs type DiagnosticCtx (line 5) | struct DiagnosticCtx<'a, 'b> function new (line 20) | fn new(source: &'a str, unit: &'b ()) -> DiagnosticCtx<'a, 'b> { function new_pass (line 30) | fn new_pass(source: &'src str, unit: &'unit ()) -> DiagnosticCtx<'src, '... function split_once (line 39) | fn split_once<'a>(base: &'a str, other: &'_ str) -> (&'a str, Option<&'a... function main (line 47) | fn main() { FILE: tests/ui/single_char_pattern.rs function main (line 5) | fn main() { FILE: tests/ui/single_component_path_imports.rs function main (line 21) | fn main() { function hello_mod (line 36) | fn hello_mod() {} function hi_mod (line 43) | fn hi_mod() {} FILE: tests/ui/single_component_path_imports_macro.rs function main (line 19) | fn main() { FILE: tests/ui/single_component_path_imports_nested_first.rs function main (line 11) | fn main() { function root_nested_use_mod (line 22) | fn root_nested_use_mod() {} FILE: tests/ui/single_component_path_imports_self_after.rs type SomeType (line 15) | pub struct SomeType; function main (line 18) | fn main() {} FILE: tests/ui/single_component_path_imports_self_before.rs type SomeType (line 16) | pub struct SomeType; function main (line 19) | fn main() {} FILE: tests/ui/single_element_loop.rs function main (line 6) | fn main() { FILE: tests/ui/single_match.rs function dummy (line 11) | fn dummy() {} function single_match (line 13) | fn single_match() { type Foo (line 55) | enum Foo { function single_match_know_enum (line 62) | fn single_match_know_enum() { function if_suggestion (line 100) | fn if_suggestion() { function ranges (line 171) | fn ranges() { function skip_type_aliases (line 225) | fn skip_type_aliases() { function main (line 260) | fn main() { function issue10808 (line 272) | fn issue10808(bar: Option) { type SomeError (line 296) | struct SomeError(i32, i32); function foo (line 298) | fn foo(x: Result) { function bar (line 309) | fn bar(x: Result) { function block_comment (line 320) | fn block_comment(x: Result) { function issue11365 (line 335) | fn issue11365() { function issue12758 (line 386) | fn issue12758(s: &[u8]) { type Data (line 395) | pub struct Data([u8; 4]); constant DATA (line 397) | const DATA: Data = Data([1, 2, 3, 4]); constant CONST_I32 (line 398) | const CONST_I32: i32 = 1; function irrefutable_match (line 401) | fn irrefutable_match() { function issue14493 (line 466) | fn issue14493() { FILE: tests/ui/single_match_else.rs type ExprNode (line 9) | enum ExprNode { function unwrap_addr (line 17) | fn unwrap_addr() -> Option<&'static ExprNode> { function main (line 50) | fn main() { function issue_10808 (line 136) | fn issue_10808(bar: Option) { function irrefutable_match (line 224) | fn irrefutable_match() -> Option<&'static ExprNode> { FILE: tests/ui/single_match_else_deref_patterns.rs function string (line 12) | fn string() { function int (line 44) | fn int() { FILE: tests/ui/single_option_map.rs function h (line 8) | fn h(arg: Option) -> Option { function j (line 14) | fn j(arg: Option) -> Option { function mul_args (line 20) | fn mul_args(a: String, b: u64) -> String { function mul_args_opt (line 24) | fn mul_args_opt(a: Option, b: u64) -> Option { function maps_static_option (line 31) | fn maps_static_option() -> Option { function manipulate (line 36) | fn manipulate(i: i32) -> i32 { function manipulate_opt (line 40) | fn manipulate_opt(opt_i: Option) -> Option { function map_not_arg (line 45) | fn map_not_arg(arg: Option) -> Option { function manipulate_opt_explicit (line 51) | fn manipulate_opt_explicit(opt_i: Option) -> Option { function multi_args (line 56) | fn multi_args(a: String, b: bool, c: u64) -> String { function multi_args_opt (line 61) | fn multi_args_opt(a: Option, b: bool, c: u64) -> Option { function main (line 65) | fn main() { FILE: tests/ui/single_range_in_vec_init.rs function awa (line 14) | fn awa(start: T, end: T) { function awa_vec (line 18) | fn awa_vec(start: T, end: T) { function main (line 22) | fn main() { function issue16042 (line 69) | fn issue16042() { function issue16044 (line 75) | fn issue16044() { FILE: tests/ui/single_range_in_vec_init_unfixable.rs function issue16306 (line 6) | fn issue16306(v: &[i32]) { FILE: tests/ui/size_of_in_element_count/expressions.rs function main (line 7) | fn main() { FILE: tests/ui/size_of_in_element_count/functions.rs function main (line 10) | fn main() { FILE: tests/ui/size_of_ref.rs function main (line 6) | fn main() { type S (line 20) | struct S { method size (line 27) | pub fn size(&self) -> usize { FILE: tests/ui/skip_while_next.rs function skip_while_next (line 10) | fn skip_while_next() { function main (line 29) | fn main() {} FILE: tests/ui/sliced_string_as_bytes.rs type Foo (line 6) | struct Foo; type Output (line 17) | type Output = Bar; method index (line 19) | fn index(&self, _: Range) -> &Self::Output { type Bar (line 8) | struct Bar; method as_bytes (line 11) | fn as_bytes(&self) -> &[u8] { function main (line 24) | fn main() { FILE: tests/ui/slow_vector_initialization.rs function main (line 5) | fn main() {} function extend_vector (line 7) | fn extend_vector() { function mixed_extend_resize_vector (line 31) | fn mixed_extend_resize_vector() { function resize_vector (line 48) | fn resize_vector() { function from_empty_vec (line 78) | fn from_empty_vec() { function do_stuff (line 114) | fn do_stuff(vec: &mut [u8]) {} function extend_vector_with_manipulations_between (line 116) | fn extend_vector_with_manipulations_between() { FILE: tests/ui/stable_sort_primitive.rs function main (line 4) | fn main() { FILE: tests/ui/starts_ends_with.rs function main (line 3) | fn main() {} function starts_with (line 6) | fn starts_with() { function chars_cmp_with_unwrap (line 19) | fn chars_cmp_with_unwrap() { function ends_with (line 54) | fn ends_with() { FILE: tests/ui/std_instead_of_core.rs function std_instead_of_core (line 11) | fn std_instead_of_core() { function std_instead_of_alloc (line 56) | fn std_instead_of_alloc() { function alloc_instead_of_core (line 65) | fn alloc_instead_of_core() { type B (line 74) | struct B {} function intrinsic (line 79) | fn intrinsic(a: *mut u8, b: *mut u8) { function msrv_1_76 (line 87) | fn msrv_1_76(_: std::net::IpAddr) {} function msrv_1_77 (line 90) | fn msrv_1_77(_: std::net::IpAddr) {} function issue15579 (line 94) | fn issue15579() { FILE: tests/ui/std_instead_of_core_unfixable.rs function issue14982 (line 6) | fn issue14982() { function issue15143 (line 12) | fn issue15143() { FILE: tests/ui/str_split.rs type NotStr (line 5) | struct NotStr<'a> { function trim (line 10) | fn trim(&'a self) -> &'a str { type DerefsIntoNotStr (line 15) | struct DerefsIntoNotStr<'a> { type Target (line 20) | type Target = NotStr<'a>; method deref (line 22) | fn deref(&self) -> &Self::Target { type DerefsIntoStr (line 27) | struct DerefsIntoStr<'a> { type Target (line 32) | type Target = str; method deref (line 34) | fn deref(&self) -> &Self::Target { function main (line 51) | fn main() { FILE: tests/ui/str_to_string.rs function main (line 3) | fn main() { function issue16271 (line 12) | fn issue16271(key: &[u8]) { type GenericWrapper (line 26) | struct GenericWrapper(T); function mapper (line 29) | fn mapper U>(self, f: F) -> U { function issue16511 (line 34) | fn issue16511(x: Option<&str>) { function no_lint_non_str (line 56) | fn no_lint_non_str() { FILE: tests/ui/string_add.rs function main (line 8) | fn main() { FILE: tests/ui/string_add_assign.rs function main (line 3) | fn main() { FILE: tests/ui/string_extend.rs type HasChars (line 2) | struct HasChars; method chars (line 5) | fn chars(self) -> std::str::Chars<'static> { function main (line 10) | fn main() { FILE: tests/ui/string_from_utf8_as_bytes.rs function main (line 9) | fn main() { FILE: tests/ui/string_lit_as_bytes.rs function str_lit_as_bytes (line 16) | fn str_lit_as_bytes() { function main (line 56) | fn main() {} FILE: tests/ui/string_lit_chars_any.rs type NotStringLit (line 8) | struct NotStringLit; method chars (line 11) | fn chars(&self) -> impl Iterator { function main (line 16) | fn main() { FILE: tests/ui/string_slice.rs function main (line 6) | fn main() { FILE: tests/ui/strlen_on_c_strings.rs function main (line 7) | fn main() { function adjusted (line 39) | fn adjusted(box_cstring: Box, box_cstr: Box, arc_cstring:... function msrv_1_78 (line 49) | fn msrv_1_78() { function msrv_1_79 (line 60) | fn msrv_1_79() { FILE: tests/ui/struct_excessive_bools.rs type Foo (line 16) | struct Foo { type BadFoo (line 22) | struct BadFoo { type Bar (line 31) | struct Bar { function main (line 38) | fn main() { FILE: tests/ui/struct_fields.rs type Data1 (line 9) | struct Data1 { type Data2 (line 17) | struct Data2 { type StructData (line 25) | struct StructData { type DataStruct (line 32) | struct DataStruct { type DoublePrefix (line 39) | struct DoublePrefix { type DoublePostfix (line 46) | struct DoublePostfix { type NotSnakeCase (line 54) | struct NotSnakeCase { type NotSnakeCase2 (line 61) | struct NotSnakeCase2 { type Fooo (line 69) | struct Fooo { type NonCaps (line 74) | struct NonCaps { type PubAllowed (line 84) | pub struct PubAllowed { type SomeData (line 92) | struct SomeData { type NetworkLayer (line 100) | pub struct NetworkLayer { type North (line 108) | struct North { type Phase (line 116) | struct Phase { type DoLint (line 124) | struct DoLint { type DoLint2 (line 132) | struct DoLint2 { type DoLint3 (line 140) | struct DoLint3 { type DoLint4 (line 148) | struct DoLint4 { type DoLint5 (line 156) | struct DoLint5 { type DoLint6 (line 164) | struct DoLint6 { type DoLintToo (line 172) | struct DoLintToo { type DoNotLint (line 179) | struct DoNotLint { type DoNotLint2 (line 185) | struct DoNotLint2 { type Struct (line 193) | struct Struct { type Foo (line 203) | struct Foo { type Proxy (line 209) | struct Proxy { type RegexT (line 217) | pub struct RegexT { type Config (line 332) | struct Config { type Use (line 338) | struct Use { type PubStructFieldNamedAfterStruct (line 348) | pub struct PubStructFieldNamedAfterStruct { type PubStructFieldPrefix (line 354) | pub struct PubStructFieldPrefix { type PubStructPubAndPrivateFields (line 361) | pub struct PubStructPubAndPrivateFields { type PubStructPubAndPrivateFieldPrefix (line 368) | pub struct PubStructPubAndPrivateFieldPrefix { function main (line 374) | fn main() {} FILE: tests/ui/suspicious_arithmetic_impl.rs type Foo (line 8) | struct Foo(u32); type Output (line 11) | type Output = Foo; method add (line 13) | fn add(self, other: Self) -> Self { method add_assign (line 20) | fn add_assign(&mut self, other: Foo) { method bitor_assign (line 27) | fn bitor_assign(&mut self, other: Foo) { method mul_assign (line 34) | fn mul_assign(&mut self, other: Foo) { method div_assign (line 41) | fn div_assign(&mut self, other: Foo) { type Output (line 47) | type Output = Foo; method mul (line 49) | fn mul(self, other: Foo) -> Foo { type Output (line 55) | type Output = Foo; method sub (line 57) | fn sub(self, other: Self) -> Self { type Output (line 63) | type Output = Foo; method div (line 65) | fn div(self, other: Self) -> Self { type Output (line 71) | type Output = Foo; method rem (line 73) | fn rem(self, other: Self) -> Self { type Output (line 80) | type Output = Foo; method bitand (line 82) | fn bitand(self, other: Self) -> Self { type Output (line 89) | type Output = Foo; method bitor (line 91) | fn bitor(self, other: Self) -> Self { type Output (line 98) | type Output = Foo; method bitxor (line 100) | fn bitxor(self, other: Self) -> Self { type Output (line 107) | type Output = Foo; method shl (line 109) | fn shl(self, other: Self) -> Self { type Output (line 116) | type Output = Foo; method shr (line 118) | fn shr(self, other: Self) -> Self { type Bar (line 124) | struct Bar(i32); type Output (line 127) | type Output = Bar; method add (line 129) | fn add(self, other: Self) -> Self { type Output (line 135) | type Output = Bar; method sub (line 137) | fn sub(self, other: Self) -> Self { function main (line 146) | fn main() {} function do_nothing (line 148) | fn do_nothing(x: u32) -> u32 { type MultipleBinops (line 152) | struct MultipleBinops(u32); type Output (line 155) | type Output = MultipleBinops; method add (line 158) | fn add(self, other: Self) -> Self::Output { type Output (line 168) | type Output = MultipleBinops; method mul (line 171) | fn mul(self, other: Self) -> Self::Output { FILE: tests/ui/suspicious_command_arg_space.rs function main (line 2) | fn main() { FILE: tests/ui/suspicious_doc_comments.rs function baz (line 8) | fn baz() {} function bar (line 14) | pub fn bar() {} function bar (line 20) | pub fn bar() {} function bar (line 28) | pub fn bar() {} function bar (line 35) | pub fn bar() {} function bar (line 44) | pub fn bar() {} function bar (line 53) | pub fn bar() {} function bar (line 60) | pub fn bar() {} function bar (line 68) | pub fn bar() {} function bar (line 73) | pub fn bar() {} function issue14265 (line 92) | fn issue14265() {} function main (line 94) | fn main() {} FILE: tests/ui/suspicious_doc_comments_unfixable.rs function foo (line 10) | pub fn foo() {} function main (line 20) | fn main() {} FILE: tests/ui/suspicious_else_formatting.rs function foo (line 14) | fn foo() -> bool { function main (line 19) | fn main() { type _Foo (line 163) | struct _Foo(u32, u32); FILE: tests/ui/suspicious_map.rs function main (line 4) | fn main() { function negative (line 13) | fn negative() { function do_something (line 33) | fn do_something(t: T) -> String { FILE: tests/ui/suspicious_operation_groupings.rs type Vec3 (line 6) | struct Vec3 { method eq (line 15) | fn eq(&self, other: &Self) -> bool { type S (line 22) | struct S { method a (line 40) | fn a(&self) -> i32 { function buggy_ab_cmp (line 29) | fn buggy_ab_cmp(s1: &S, s2: &S) -> bool { type SaOnly (line 35) | struct SaOnly { function do_not_give_bad_suggestions_for_this_unusual_expr (line 45) | fn do_not_give_bad_suggestions_for_this_unusual_expr(s1: &S, s2: &SaOnly... function do_not_give_bad_suggestions_for_this_macro_expr (line 51) | fn do_not_give_bad_suggestions_for_this_macro_expr(s1: &S, s2: &SaOnly) ... function do_not_give_bad_suggestions_for_this_incorrect_expr (line 68) | fn do_not_give_bad_suggestions_for_this_incorrect_expr(s1: &S, s2: &SaOn... function permissable (line 73) | fn permissable(s1: &S, s2: &S) -> bool { function non_boolean_operators (line 78) | fn non_boolean_operators(s1: &S, s2: &S) -> i32 { function odd_number_of_pairs (line 84) | fn odd_number_of_pairs(s1: &S, s2: &S) -> i32 { function not_caught_by_eq_op_middle_change_left (line 91) | fn not_caught_by_eq_op_middle_change_left(s1: &S, s2: &S) -> i32 { function not_caught_by_eq_op_middle_change_right (line 97) | fn not_caught_by_eq_op_middle_change_right(s1: &S, s2: &S) -> i32 { function not_caught_by_eq_op_start (line 103) | fn not_caught_by_eq_op_start(s1: &S, s2: &S) -> i32 { function not_caught_by_eq_op_end (line 109) | fn not_caught_by_eq_op_end(s1: &S, s2: &S) -> i32 { function the_cross_product_should_not_lint (line 115) | fn the_cross_product_should_not_lint(s1: &S, s2: &S) -> (i32, i32, i32) { function outer_parens_simple (line 123) | fn outer_parens_simple(s1: &S, s2: &S) -> i32 { function outer_parens (line 129) | fn outer_parens(s1: &S, s2: &S) -> i32 { function inner_parens (line 135) | fn inner_parens(s1: &S, s2: &S) -> i32 { function outer_and_some_inner_parens (line 141) | fn outer_and_some_inner_parens(s1: &S, s2: &S) -> i32 { function all_parens_balanced_tree (line 147) | fn all_parens_balanced_tree(s1: &S, s2: &S) -> i32 { function all_parens_left_tree (line 154) | fn all_parens_left_tree(s1: &S, s2: &S) -> i32 { function all_parens_right_tree (line 160) | fn all_parens_right_tree(s1: &S, s2: &S) -> i32 { function inside_other_binop_expression (line 166) | fn inside_other_binop_expression(s1: &S, s2: &S) -> i32 { function inside_function_call (line 172) | fn inside_function_call(s1: &S, s2: &S) -> i32 { function inside_larger_boolean_expression (line 178) | fn inside_larger_boolean_expression(s1: &S, s2: &S) -> bool { function inside_larger_boolean_expression_with_unsorted_ops (line 184) | fn inside_larger_boolean_expression_with_unsorted_ops(s1: &S, s2: &S) ->... type Nested (line 190) | struct Nested { function changed_middle_ident (line 194) | fn changed_middle_ident(n1: &Nested, n2: &Nested) -> bool { function changed_initial_ident (line 201) | fn changed_initial_ident(n1: &Nested, n2: &Nested) -> bool { function inside_fn_with_similar_expression (line 206) | fn inside_fn_with_similar_expression(s1: &S, s2: &S, strict: bool) -> bo... function inside_an_if_statement (line 216) | fn inside_an_if_statement(s1: &mut S, s2: &S) { function maximum_unary_minus_right_tree (line 224) | fn maximum_unary_minus_right_tree(s1: &S, s2: &S) -> i32 { function unary_minus_and_an_if_expression (line 230) | fn unary_minus_and_an_if_expression(s1: &S, s2: &S) -> i32 { function main (line 236) | fn main() {} FILE: tests/ui/suspicious_splitn.rs function main (line 4) | fn main() { FILE: tests/ui/suspicious_to_owned.rs function main (line 7) | fn main() { FILE: tests/ui/suspicious_unary_op_formatting.rs function main (line 5) | fn main() { FILE: tests/ui/suspicious_xor_used_as_pow.rs function main (line 19) | fn main() { FILE: tests/ui/swap.rs type Foo (line 12) | struct Foo(u32); type Bar (line 15) | struct Bar { function field (line 20) | fn field() { function array (line 34) | fn array() { function slice (line 44) | fn slice() { function unswappable_slice (line 54) | fn unswappable_slice() { function vec (line 64) | fn vec() { function xor_swap_locals (line 74) | fn xor_swap_locals() { function xor_field_swap (line 84) | fn xor_field_swap() { function xor_slice_swap (line 93) | fn xor_slice_swap() { function xor_no_swap (line 102) | fn xor_no_swap() { function xor_unswappable_slice (line 113) | fn xor_unswappable_slice() { function distinct_slice (line 123) | fn distinct_slice() { function main (line 133) | fn main() { function issue_8154 (line 189) | fn issue_8154() { function issue_9864 (line 225) | const fn issue_9864(mut u: u32) -> u32 { function issue_10421 (line 237) | const fn issue_10421(x: u32) -> u32 { FILE: tests/ui/swap_ptr_to_ref.rs function main (line 5) | fn main() { FILE: tests/ui/swap_ptr_to_ref_unfixable.rs function main (line 9) | fn main() { FILE: tests/ui/swap_with_temporary.rs function func (line 5) | fn func() -> String { function func_returning_refmut (line 9) | fn func_returning_refmut(s: &mut String) -> &mut String { function main (line 13) | fn main() { type S (line 66) | struct S { function dont_lint_those (line 70) | fn dont_lint_those(s: &mut S, v: &mut [String], w: Option<&mut String>) { function issue15166 (line 76) | fn issue15166() { function multiple_deref (line 98) | fn multiple_deref() { FILE: tests/ui/swap_with_temporary_unfixable.rs function func (line 6) | fn func() -> String { function func_returning_refmut (line 10) | fn func_returning_refmut(s: &mut String) -> &mut String { function main (line 14) | fn main() { function bug (line 55) | fn bug(v1: &mut [i32], v2: &mut [i32]) { FILE: tests/ui/tabs_in_doc_comments.rs type DoubleString (line 11) | pub struct DoubleString { function main (line 27) | fn main() {} FILE: tests/ui/temporary_assignment.rs type TupleStruct (line 6) | struct TupleStruct(i32); type Struct (line 8) | struct Struct { type MultiStruct (line 12) | struct MultiStruct { type Wrapper (line 16) | struct Wrapper<'a> { type Target (line 21) | type Target = Struct; method deref (line 22) | fn deref(&self) -> &Struct { method deref_mut (line 28) | fn deref_mut(&mut self) -> &mut Struct { type ArrayStruct (line 33) | struct ArrayStruct { constant A (line 37) | const A: TupleStruct = TupleStruct(1); constant B (line 38) | const B: Struct = Struct { field: 1 }; constant C (line 39) | const C: MultiStruct = MultiStruct { constant D (line 42) | const D: ArrayStruct = ArrayStruct { array: [1] }; function main (line 44) | fn main() { FILE: tests/ui/test_attr_in_doctest.rs function test_attr_in_doctests (line 48) | fn test_attr_in_doctests() {} function issue16447 (line 56) | pub fn issue16447() {} FILE: tests/ui/tests_outside_test_module.rs function main (line 5) | fn main() { function my_test (line 11) | fn my_test() {} function my_test (line 19) | fn my_test() {} FILE: tests/ui/to_digit_is_some.rs function main (line 3) | fn main() { function without_const (line 15) | fn without_const(c: char) -> bool { function with_const (line 19) | const fn with_const(c: char) -> bool { function with_const (line 25) | const fn with_const(c: char) -> bool { FILE: tests/ui/to_string_trait_impl.rs type Point (line 6) | struct Point { method to_string (line 13) | fn to_string(&self) -> String { type Foo (line 18) | struct Foo; method fmt (line 21) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Bar (line 26) | struct Bar; method to_string (line 30) | fn to_string(&self) -> String { FILE: tests/ui/too_long_first_doc_paragraph-fix.rs type Foo (line 9) | pub struct Foo; FILE: tests/ui/too_long_first_doc_paragraph.rs type Bar (line 20) | pub struct Bar; type Enum (line 34) | pub enum Enum { function f (line 62) | fn f() {} function issue_14274 (line 69) | pub fn issue_14274() {} function main (line 71) | fn main() { FILE: tests/ui/toplevel_ref_arg.rs function main (line 9) | fn main() { FILE: tests/ui/toplevel_ref_arg_non_rustfix.rs function the_answer (line 9) | fn the_answer(ref mut x: u8) { function main (line 15) | fn main() { FILE: tests/ui/track-diagnostics-clippy.rs function main (line 10) | fn main() { FILE: tests/ui/track-diagnostics.rs type A (line 8) | struct A; type B (line 9) | struct B; constant S (line 10) | const S: A = B; function main (line 14) | fn main() {} FILE: tests/ui/trailing_empty_array.rs type RarelyUseful (line 6) | struct RarelyUseful { type OnlyField (line 12) | struct OnlyField { type GenericArrayType (line 17) | struct GenericArrayType { type OnlyAnotherAttribute (line 24) | struct OnlyAnotherAttribute { type OnlyADeriveAttribute (line 31) | struct OnlyADeriveAttribute { constant ZERO (line 37) | const ZERO: usize = 0; type ZeroSizedWithConst (line 38) | struct ZeroSizedWithConst { function compute_zero (line 45) | const fn compute_zero() -> usize { type ZeroSizedWithConstFunction (line 48) | struct ZeroSizedWithConstFunction { function compute_zero_from_arg (line 54) | const fn compute_zero_from_arg(x: usize) -> usize { type ZeroSizedWithConstFunction2 (line 57) | struct ZeroSizedWithConstFunction2 { type ZeroSizedArrayWrapper (line 63) | struct ZeroSizedArrayWrapper([usize; 0]); type TupleStruct (line 66) | struct TupleStruct(i32, [usize; 0]); type LotsOfFields (line 69) | struct LotsOfFields { type GoodReason (line 93) | struct GoodReason { type OnlyFieldWithReprC (line 99) | struct OnlyFieldWithReprC { type NonZeroSizedArray (line 103) | struct NonZeroSizedArray { type NotLastField (line 108) | struct NotLastField { constant ONE (line 114) | const ONE: usize = 1; type NonZeroSizedWithConst (line 115) | struct NonZeroSizedWithConst { type AlsoADeriveAttribute (line 122) | struct AlsoADeriveAttribute { type AlsoAnotherAttribute (line 129) | struct AlsoAnotherAttribute { type ReprPacked (line 135) | struct ReprPacked { type ReprCPacked (line 141) | struct ReprCPacked { type ReprAlign (line 147) | struct ReprAlign { type ReprCAlign (line 152) | struct ReprCAlign { type DontLintAnonymousStructsFromDesugaring (line 159) | enum DontLintAnonymousStructsFromDesugaring { type TupleStructReprC (line 166) | struct TupleStructReprC(i32, [usize; 0]); type NamedTuple (line 168) | type NamedTuple = (i32, [usize; 0]); type ConstParamZeroDefault (line 170) | struct ConstParamZeroDefault { type ConstParamNoDefault (line 175) | struct ConstParamNoDefault { type ConstParamNonZeroDefault (line 180) | struct ConstParamNonZeroDefault { type TwoGenericParams (line 185) | struct TwoGenericParams { type A (line 190) | type A = ConstParamZeroDefault; type B (line 191) | type B = ConstParamZeroDefault<0>; type C (line 192) | type C = ConstParamNoDefault<0>; type D (line 193) | type D = ConstParamNonZeroDefault<0>; function main (line 195) | fn main() {} type Friend (line 199) | pub struct Friend { function oldest_empty_is_none (line 204) | fn oldest_empty_is_none() { FILE: tests/ui/trailing_zeros.rs function main (line 4) | fn main() { FILE: tests/ui/trait_duplication_in_bounds.rs function bad_foo (line 7) | fn bad_foo(arg0: T, ar... function bad_bar (line 12) | fn bad_bar(arg0: T, arg1: U) function good_bar (line 21) | fn good_bar(arg0: T, arg1: U) { function good_foo (line 25) | fn good_foo(arg0: T, arg1: U) type GoodSelfTraitBound (line 33) | trait GoodSelfTraitBound: Clone + Copy { method f (line 34) | fn f(); type GoodSelfWhereClause (line 37) | trait GoodSelfWhereClause { method f (line 38) | fn f() type BadSelfTraitBound (line 43) | trait BadSelfTraitBound: Clone + Clone + Clone { method f (line 45) | fn f(); type BadSelfWhereClause (line 48) | trait BadSelfWhereClause { method f (line 49) | fn f() type GoodTraitBound (line 55) | trait GoodTraitBound { method f (line 56) | fn f(); type GoodWhereClause (line 59) | trait GoodWhereClause { method f (line 60) | fn f() type BadTraitBound (line 66) | trait BadTraitBound { method f (line 68) | fn f(); type BadWhereClause (line 71) | trait BadWhereClause { method f (line 72) | fn f() type GoodStructBound (line 79) | struct GoodStructBound { function f (line 86) | fn f() {} type GoodStructWhereClause (line 89) | struct GoodStructWhereClause; method f (line 97) | fn f() {} function no_error_separate_arg_bounds (line 100) | fn no_error_separate_arg_bounds(program: impl AsRef<()>, dir: impl AsRef... type GenericTrait (line 102) | trait GenericTrait {} function good_generic (line 104) | fn good_generic + GenericTrait>(arg0: T) { function bad_generic (line 108) | fn bad_generic + GenericTrait + GenericTrait(arg0: T) { function good_trait_object (line 122) | fn good_trait_object(arg0: &(dyn Any + Send)) { function bad_trait_object (line 126) | fn bad_trait_object(arg0: &(dyn Any + Send + Send)) { type Proj (line 131) | trait Proj { type S (line 136) | type S = (); type S (line 140) | type S = i32; type Base (line 143) | trait Base { method is_base (line 144) | fn is_base(&self); type Derived (line 147) | trait Derived: Base + Base<()> { method is_derived (line 148) | fn is_derived(&self); function f (line 151) | fn f(obj: &dyn Derived

) { type Value (line 158) | trait Value {} function const_generic (line 159) | fn const_generic + Value<1>>() {} function assoc_tys_generics (line 162) | fn assoc_tys_generics<'a, 'b, T, U>() function const_trait_bounds_good (line 171) | const fn const_trait_bounds_good() {} FILE: tests/ui/trait_duplication_in_bounds_assoc_const_eq.rs type AssocConstTrait (line 5) | trait AssocConstTrait { function assoc_const_args (line 8) | fn assoc_const_args() FILE: tests/ui/trait_duplication_in_bounds_unfixable.rs function bad_foo (line 7) | fn bad_foo(arg0: T, arg1: Z) function good_bar (line 17) | fn good_bar(arg: T) { function good_foo (line 21) | fn good_foo(arg: T) function good_foobar (line 28) | fn good_foobar(arg: T) type T (line 35) | trait T: Default { method f (line 36) | fn f() method f (line 79) | fn f() {} type U (line 42) | trait U: Default { method f (line 43) | fn f() method f (line 84) | fn f() {} type ZZ (line 48) | trait ZZ: Default { method g (line 49) | fn g(); method h (line 50) | fn h(); method f (line 51) | fn f() type BadTrait (line 57) | trait BadTrait: Default + Clone { method f (line 58) | fn f() method g (line 64) | fn g() method h (line 69) | fn h() type Life (line 75) | struct Life; type Iter (line 88) | trait Iter: Iterator { method into_group_btreemap (line 89) | fn into_group_btreemap(self) -> BTreeMap> type Foo (line 98) | struct Foo; type FooIter (line 100) | trait FooIter: Iterator { method bar (line 101) | fn bar() function impl_trait (line 110) | fn impl_trait(_: impl AsRef, _: impl AsRef) {} type MultiProductIter (line 114) | struct MultiProductIter type MultiProduct (line 122) | pub struct MultiProduct(Vec>) function multi_cartesian_product (line 127) | pub fn multi_cartesian_product(_: H) -> MultiProduct< method clone (line 159) | fn clone(&self) -> Self { type Trait (line 169) | pub trait Trait {} function f (line 171) | pub fn f(_a: impl Trait, _b: impl Trait) {} type ImplTrait (line 173) | pub trait ImplTrait {} function main (line 177) | fn main() {} FILE: tests/ui/transmute.rs function my_int (line 17) | fn my_int() -> Usize { function my_vec (line 21) | fn my_vec() -> MyVec { function _generic (line 27) | unsafe fn _generic<'a, T, U: 'a>(t: &'a T) { function useless (line 46) | fn useless() { type Usize (line 89) | struct Usize(usize); function crosspointer (line 92) | fn crosspointer() { function int_to_bool (line 113) | fn int_to_bool() { function bytes_to_str (line 118) | fn bytes_to_str(mb: &mut [u8]) { function issue16104 (line 131) | fn issue16104() { function main (line 144) | fn main() {} FILE: tests/ui/transmute_32bit.rs function main (line 4) | fn main() { FILE: tests/ui/transmute_64bit.rs function main (line 4) | fn main() { FILE: tests/ui/transmute_collection.rs function main (line 7) | fn main() { FILE: tests/ui/transmute_int_to_non_zero.rs function main (line 6) | fn main() { FILE: tests/ui/transmute_null_to_fn.rs function one_liners (line 7) | fn one_liners() { constant ZPTR (line 17) | pub const ZPTR: *const usize = 0 as *const _; constant NOT_ZPTR (line 18) | pub const NOT_ZPTR: *const usize = 1 as *const _; function transmute_const (line 20) | fn transmute_const() { function issue_11485 (line 31) | fn issue_11485() { function main (line 44) | fn main() {} FILE: tests/ui/transmute_ptr_to_ptr.rs function transmute_lifetime_to_static (line 10) | unsafe fn transmute_lifetime_to_static<'a, T>(t: &'a T) -> &'static T { function transmute_lifetime (line 15) | unsafe fn transmute_lifetime<'a, 'b, T>(t: &'a T, u: &'b T) -> &'b T { type LifetimeParam (line 19) | struct LifetimeParam<'a> { type GenericParam (line 23) | struct GenericParam { type PtrNamed (line 28) | struct PtrNamed { type Ptr (line 32) | struct Ptr(*const u32); function transmute_ptr_to_ptr (line 34) | fn transmute_ptr_to_ptr() { function issue1966 (line 78) | fn issue1966() { function lifetime_to_static (line 90) | fn lifetime_to_static(v: *mut &()) -> *const &'static () { constant _ (line 96) | const _: &() = { type Ptr8 (line 104) | struct Ptr8(*const u8); function msrv_1_37 (line 106) | fn msrv_1_37(ptr: *const u8) { function msrv_1_38 (line 116) | fn msrv_1_38(ptr: *const u8) { function msrv_1_64 (line 124) | fn msrv_1_64(ptr: *const u8, mut_ptr: *mut u8) { function msrv_1_65 (line 134) | fn msrv_1_65(ptr: *const u8, mut_ptr: *mut u8) { function main (line 143) | fn main() {} FILE: tests/ui/transmute_ptr_to_ref.rs function ptr_to_ref (line 8) | fn ptr_to_ref(p: *const T, m: *mut T, o: *const U, om: *mut U) { function issue1231 (line 40) | fn issue1231() { type PtrRefNamed (line 59) | struct PtrRefNamed<'a> { type PtrRef (line 63) | struct PtrRef<'a>(*const &'a u32); type PtrSliceRef (line 65) | struct PtrSliceRef<'a>(*const [&'a str]); type PtrSlice (line 67) | struct PtrSlice(*const [i32]); type Ptr (line 69) | struct Ptr(*const u32); type Output (line 71) | type Output = Self; method add (line 72) | fn add(self, _: Self) -> Self { type Ptr (line 78) | pub struct Ptr(*const u32); type Output (line 71) | type Output = Self; method add (line 72) | fn add(self, _: Self) -> Self { function issue1966 (line 80) | fn issue1966(u: PtrSlice, v: PtrSliceRef, w: Ptr, x: PtrRefNamed, y: Ptr... function issue8924 (line 104) | fn issue8924<'a, 'b, 'c>(x: *const &'a u32, y: *const &'b u32) -> &'c &'... function meets_msrv (line 120) | fn meets_msrv<'a, 'b, 'c>(x: *const &'a u32) -> &'c &'b u32 { function under_msrv (line 138) | fn under_msrv<'a, 'b, 'c>(x: *const &'a u32, y: PtrRef) -> &'c &'b u32 { function issue13357 (line 162) | fn issue13357(ptr: *const [i32], s_ptr: *const &str, a_s_ptr: *const [&s... function main (line 190) | fn main() {} FILE: tests/ui/transmute_ref_to_ref.rs function main (line 4) | fn main() { function issue16104 (line 20) | fn issue16104(make_ptr: fn() -> *const u32) { FILE: tests/ui/transmute_ref_to_ref_no_std.rs function eh_personality (line 9) | extern "C" fn eh_personality() {} function panic (line 12) | fn panic(info: &PanicInfo) -> ! { function main (line 16) | fn main() { FILE: tests/ui/transmute_undefined_repr.rs function value (line 14) | fn value() -> T { type Empty (line 18) | struct Empty; type Ty (line 19) | struct Ty(T); type Ty2 (line 20) | struct Ty2(T, U); type Ty2C (line 23) | struct Ty2C(T, U); function main (line 25) | fn main() { function _with_generics (line 205) | fn _with_generics() { FILE: tests/ui/transmutes_expressible_as_ptr_casts.rs function main (line 13) | fn main() { function trigger_do_check_to_emit_error (line 70) | fn trigger_do_check_to_emit_error(in_param: &[i32; 1]) -> *const u8 { type Single (line 76) | struct Single(u64); type Pair (line 79) | struct Pair(u32, u32); function cannot_be_expressed_as_pointer_cast (line 81) | fn cannot_be_expressed_as_pointer_cast(in_param: Single) -> Pair { function issue_10449 (line 87) | fn issue_10449() { function issue_12402 (line 99) | const fn issue_12402

(p: P) -> Opaque

function test_str (line 331) | fn test_str(s: &str) -> Box { function test_x (line 336) | fn test_x(x: super::X) -> Box { type Y (line 341) | struct Y(&'static str); method as_ref (line 344) | fn as_ref(&self) -> &str { method to_string (line 351) | fn to_string(&self) -> String { function test_y (line 357) | fn test_y(y: Y) -> Box { type View (line 368) | struct View {} type Owned (line 371) | type Owned = View; method to_owned (line 372) | fn to_owned(&self) -> Self::Owned { type RenderWindow (line 378) | struct RenderWindow { method default_view (line 383) | fn default_view(&self) -> &View { method set_view (line 386) | fn set_view(&mut self, _view: &View) {} method default_view (line 407) | fn default_view(&self) -> &View { method set_view (line 410) | fn set_view(&mut self, _view: &View) {} function main (line 389) | fn main() { type View (line 399) | struct View {} type Owned (line 371) | type Owned = View; method to_owned (line 372) | fn to_owned(&self) -> Self::Owned { type RenderWindow (line 402) | struct RenderWindow { method default_view (line 383) | fn default_view(&self) -> &View { method set_view (line 386) | fn set_view(&mut self, _view: &View) {} method default_view (line 407) | fn default_view(&self) -> &View { method set_view (line 410) | fn set_view(&mut self, _view: &View) {} function main (line 413) | fn main() { type Bytes (line 422) | struct Bytes {} method as_ref (line 432) | fn as_ref(&self) -> &[u8] { method to_string (line 426) | fn to_string(&self) -> String { function consume (line 437) | fn consume>(c: C) { function main (line 441) | pub fn main() { function require_deref_path (line 454) | fn require_deref_path>(x: T) -> T { function generic_arg_used_elsewhere (line 458) | fn generic_arg_used_elsewhere>(_x: T, _y: T) {} function id (line 460) | fn id>(x: T) -> T { function predicates_are_satisfied (line 464) | fn predicates_are_satisfied(_x: impl std::fmt::Write) {} function single_return (line 467) | fn single_return() -> impl AsRef { function multiple_returns (line 473) | fn multiple_returns(b: bool) -> impl AsRef { type S1 (line 481) | struct S1(String); function fields1 (line 484) | fn fields1() -> S1 { type S2 (line 488) | struct S2 { function fields2 (line 493) | fn fields2() { function main (line 498) | pub fn main() { function foo (line 512) | async fn foo>(_: S) {} function bar (line 513) | async fn bar() { type Key (line 523) | pub struct Key, V: ?Sized>(K, PhantomData); function new (line 526) | pub fn new(key: K) -> Key { function pkh (line 531) | pub fn pkh(pkh: &[u8]) -> Key, String> { type Key (line 539) | pub struct Key>(K); function from (line 541) | pub fn from(c: &[u8]) -> Key> { type Iri (line 553) | pub struct Iri(T); function parse (line 556) | pub fn parse(iri: T) -> Result { function parse_w3c_rdf_test_file (line 561) | pub fn parse_w3c_rdf_test_file(url: &str) -> Result<(), ()> { function _main (line 572) | fn _main() { function foo (line 580) | fn foo(s: &str) { type Foo (line 584) | struct Foo; type Target (line 587) | type Target = str; method deref (line 589) | fn deref(&self) -> &Self::Target { method fmt (line 595) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { function foo (line 604) | fn foo<'a, T: AsRef<[u8]>>(x: T, y: &'a i32) -> impl 'a + Future impl IntoIterator { type Foo (line 668) | struct Foo; function rc_slice_provider (line 670) | fn rc_slice_provider() -> Rc<[Foo]> { function iterator_provider (line 674) | fn iterator_provider() -> impl Iterator { function issue14833 (line 679) | fn issue14833() { function issue16351 (line 686) | fn issue16351() { FILE: tests/ui/unnecessary_to_owned_on_split.rs type Issue12068 (line 3) | struct Issue12068; method as_ref (line 6) | fn as_ref(&self) -> &str { method to_string (line 13) | fn to_string(&self) -> String { function main (line 18) | fn main() { FILE: tests/ui/unnecessary_trailing_comma.rs function main (line 4) | fn main() {} function simple (line 8) | fn simple() { function from_macro (line 83) | fn from_macro() { FILE: tests/ui/unnecessary_unsafety_doc.rs function destroy_the_planet (line 10) | pub fn destroy_the_planet() { function apocalypse (line 19) | pub fn apocalypse(universe: &mut ()) { function you_dont_see_me (line 29) | fn you_dont_see_me() { function only_crate_wide_accessible (line 39) | pub fn only_crate_wide_accessible() { function republished (line 46) | pub fn republished() { type SafeTraitSafeMethods (line 54) | pub trait SafeTraitSafeMethods { method woefully_underdocumented (line 55) | fn woefully_underdocumented(self); method documented (line 60) | fn documented(self); method woefully_underdocumented (line 79) | fn woefully_underdocumented(self) { method documented (line 83) | fn documented(self) { type SafeTrait (line 64) | pub trait SafeTrait { method method (line 65) | fn method(); method method (line 89) | fn method() {} type DocumentedSafeTrait (line 71) | pub trait DocumentedSafeTrait { method method2 (line 73) | fn method2(); method method2 (line 93) | fn method2() {} type Struct (line 76) | pub struct Struct; method documented (line 100) | pub fn documented() -> Self { method undocumented (line 105) | pub fn undocumented(&self) { method private (line 114) | fn private(&self) { function main (line 144) | fn main() {} type T (line 150) | pub struct T; method f (line 152) | pub unsafe fn f() {} type DocumentedSafeTraitWithImplementationHeader (line 157) | pub trait DocumentedSafeTraitWithImplementationHeader { method method (line 159) | fn method(); FILE: tests/ui/unnecessary_wraps.rs function func1 (line 9) | fn func1(a: bool, b: bool) -> Option { function func2 (line 24) | fn func2(a: bool, b: bool) -> Option { function func3 (line 34) | pub fn func3(a: bool) -> Option { function func4 (line 39) | fn func4(a: bool) -> Option { function func5 (line 44) | fn func5() -> Option { function func6 (line 51) | fn func6() -> Option { function func7 (line 56) | fn func7() -> Result { function func8 (line 63) | fn func8(a: bool) -> Result { function func9 (line 68) | fn func9(a: bool) -> Result { function func10 (line 73) | fn func10() -> Option<()> { type A (line 77) | pub struct A; method func11 (line 81) | pub fn func11() -> Option { method func12 (line 86) | fn func12() -> Option { type B (line 93) | trait B { method func13 (line 95) | fn func13() -> Option { method func13 (line 102) | fn func13() -> Option { function issue_6384 (line 107) | fn issue_6384(s: &str) -> Option<&str> { function issue_6640_1 (line 115) | fn issue_6640_1(a: bool, b: bool) -> Option<()> { function issue_6640_2 (line 130) | fn issue_6640_2(a: bool, b: bool) -> Result<(), i32> { function issue_6640_3 (line 144) | fn issue_6640_3() -> Option<()> { function issue_6640_4 (line 149) | fn issue_6640_4() -> Result<(), ()> { function main (line 153) | fn main() { FILE: tests/ui/unneeded_field_pattern.rs type Foo (line 8) | struct Foo { function main (line 14) | fn main() { FILE: tests/ui/unneeded_struct_pattern.rs function noop (line 12) | fn noop() {} function main (line 14) | fn main() { function external_crate (line 160) | fn external_crate() { FILE: tests/ui/unneeded_wildcard_pattern.rs function main (line 9) | fn main() { FILE: tests/ui/unnested_or_patterns.rs type S (line 12) | struct S { function main (line 17) | fn main() { function msrv_1_52 (line 59) | fn msrv_1_52() { function msrv_1_53 (line 64) | fn msrv_1_53() { function or_in_local (line 70) | fn or_in_local() { function or_in_param (line 78) | fn or_in_param((x | (x | x)): i32) {} function issue15219 (line 82) | fn issue15219() { FILE: tests/ui/unnested_or_patterns2.rs function main (line 11) | fn main() { FILE: tests/ui/unreadable_literal.rs type Foo (line 3) | struct Foo(u64); type Bar (line 11) | struct Bar(f32); function main (line 19) | fn main() { FILE: tests/ui/unsafe_derive_deserialize.rs type A (line 10) | pub struct A; method new (line 12) | pub unsafe fn new(_a: i32, _b: i32) -> Self { type B (line 19) | pub struct B; method unsafe_method (line 21) | pub unsafe fn unsafe_method(&self) {} type C (line 26) | pub struct C; method unsafe_block (line 28) | pub fn unsafe_block(&self) { type D (line 35) | pub struct D; method inner_unsafe_fn (line 37) | pub fn inner_unsafe_fn(&self) { type E (line 43) | pub struct E; method new (line 45) | pub unsafe fn new(_a: i32, _b: i32) -> Self { method unsafe_method (line 49) | pub unsafe fn unsafe_method(&self) {} method unsafe_block (line 51) | pub fn unsafe_block(&self) { method inner_unsafe_fn (line 55) | pub fn inner_unsafe_fn(&self) { type F (line 62) | pub struct F; type G (line 67) | pub struct G; method unsafe_block (line 69) | pub fn unsafe_block(&self) { type H (line 77) | pub struct H; method unsafe_block (line 79) | pub fn unsafe_block(&self) { function main (line 84) | fn main() {} type Foo (line 94) | struct Foo; method foo (line 97) | fn foo(&self) { type Bar (line 105) | struct Bar; method bar (line 108) | fn bar(&self) { FILE: tests/ui/unsafe_removed_from_name.rs type Safe (line 23) | pub struct Safe; type Unsafe (line 24) | pub struct Unsafe; function main (line 43) | fn main() {} FILE: tests/ui/unseparated_prefix_literals.rs type Foo (line 11) | struct Foo; function main (line 20) | fn main() { FILE: tests/ui/unused_async.rs function async_block_await (line 12) | async fn async_block_await() { function normal_block_await (line 20) | async fn normal_block_await() { type HasAsyncMethod (line 30) | trait HasAsyncMethod { method do_something (line 31) | async fn do_something() -> u32; method do_something (line 35) | async fn do_something() -> u32 { function f (line 44) | async fn f() {} function f2 (line 45) | async fn f2() {} function f3 (line 46) | async fn f3() {} function needs_async_fn (line 49) | fn needs_async_fn>(_: fn() -> F) {} function test (line 51) | fn test() { type Wrap (line 62) | struct Wrap(F); function from (line 64) | fn from(f: F) -> Self { function takes_fut (line 68) | fn takes_fut Fut, Fut: Future>(_: Wrap) {} function unused_async (line 69) | async fn unused_async() {} function fp (line 70) | fn fp() { function foo (line 75) | async fn foo() -> i32 { function bar (line 81) | async fn bar() -> i32 { type S (line 85) | struct S; method unused (line 88) | async fn unused(&self) -> i32 { method used (line 94) | async fn used(&self) -> i32 { type AsyncTrait (line 99) | trait AsyncTrait { method trait_method (line 100) | fn trait_method() -> Pin>>; function main (line 118) | fn main() {} type Action (line 123) | trait Action { method cancel (line 124) | async fn cancel(self: Arc) {} function todo_task (line 129) | async fn todo_task() -> Result<(), String> { function unimplemented_task (line 133) | async fn unimplemented_task() -> Result<(), String> { FILE: tests/ui/unused_enumerate_index.rs function get_enumerate (line 6) | fn get_enumerate() -> Enumerate> { function main (line 10) | fn main() { FILE: tests/ui/unused_format_specs.rs function main (line 10) | fn main() { function should_not_lint (line 27) | fn should_not_lint() { function should_lint_user (line 46) | fn should_lint_user() { function should_not_lint_user (line 63) | fn should_not_lint_user() { FILE: tests/ui/unused_io_amount.rs function question_mark (line 9) | fn question_mark(s: &mut T) -> io::Result<()> { function unwrap (line 18) | fn unwrap(s: &mut T) { function vectored (line 26) | fn vectored(s: &mut T) -> io::Result<()> { function ok (line 34) | fn ok(file: &str) -> Option<()> { function or_else (line 44) | fn or_else(file: &str) -> io::Result<()> { type Error (line 53) | enum Error { function or (line 57) | fn or(file: &str) -> Result<(), Error> { function combine_or (line 65) | fn combine_or(file: &str) -> Result<(), Error> { function is_ok_err (line 77) | fn is_ok_err(s: &mut T) { function bad_async_write (line 89) | async fn bad_async_write(w: &mut W) { function bad_async_read (line 94) | async fn bad_async_read(r: &mut R) { function io_not_ignored_async_write (line 100) | async fn io_not_ignored_async_write(mut w: W) { function bad_async_write_closure (line 108) | fn bad_async_write_closure(w: W) -> imp... function async_read_nested_or (line 117) | async fn async_read_nested_or(r: &mut R, do_it: bo... function bad_async_write_tokio (line 128) | async fn bad_async_write_tokio(w: &mut W) { function bad_async_read_tokio (line 133) | async fn bad_async_read_tokio(r: &mut R) { function undetected_bad_async_write (line 139) | async fn undetected_bad_async_write(w: &mut W) { function match_okay_underscore (line 147) | fn match_okay_underscore(s: &mut T) { function match_okay_underscore_read_expr (line 162) | fn match_okay_underscore_read_expr(s: &mut T) { function match_okay_underscore_write_expr (line 170) | fn match_okay_underscore_write_expr(s: &mut T) { function returned_value_should_not_lint (line 178) | fn returned_value_should_not_lint(s: &mut T) ->... function if_okay_underscore_read_expr (line 182) | fn if_okay_underscore_read_expr(s: &mut T) { function if_okay_underscore_write_expr (line 189) | fn if_okay_underscore_write_expr(s: &mut T) { function if_okay_dots_write_expr (line 196) | fn if_okay_dots_write_expr(s: &mut T) { function if_okay_underscore_write_expr_true_negative (line 203) | fn if_okay_underscore_write_expr_true_negative(... function match_okay_underscore_true_neg (line 209) | fn match_okay_underscore_true_neg(s: &mut T) { function true_negative (line 216) | fn true_negative(s: &mut T) { function on_return_should_not_raise (line 221) | fn on_return_should_not_raise(s: &mut T) -> io:... function unwrap_in_block (line 229) | pub fn unwrap_in_block(rdr: &mut dyn std::io::Read) -> std::io::Result(mut f: F) { type Reader (line 277) | struct Reader {} method read (line 280) | fn read(&mut self, buf: &mut [u8]) -> io::Result { method read_exact (line 284) | fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> { function main (line 291) | fn main() {} FILE: tests/ui/unused_peekable.rs function main (line 6) | fn main() {} function invalid (line 9) | fn invalid() { function valid (line 55) | fn valid() { function allow_works (line 178) | fn allow_works() { FILE: tests/ui/unused_result_ok.rs function bad_style (line 8) | fn bad_style(x: &str) { function good_style (line 13) | fn good_style(x: &str) -> Option { function strange_parse (line 18) | fn strange_parse(x: &str) { function main (line 36) | fn main() { FILE: tests/ui/unused_rounding.rs function main (line 5) | fn main() { FILE: tests/ui/unused_self.rs type A (line 8) | struct A; method unused_self_move (line 11) | fn unused_self_move(self) {} method unused_self_ref (line 14) | fn unused_self_ref(&self) {} method unused_self_mut_ref (line 17) | fn unused_self_mut_ref(&mut self) {} method unused_self_pin_ref (line 20) | fn unused_self_pin_ref(self: Pin<&Self>) {} method unused_self_pin_mut_ref (line 23) | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {} method unused_self_pin_nested (line 26) | fn unused_self_pin_nested(self: Pin>) {} method unused_self_box (line 29) | fn unused_self_box(self: Box) {} method unused_with_other_used_args (line 32) | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 { method unused_self_class_method (line 37) | fn unused_self_class_method(&self) { method static_method (line 43) | fn static_method() {} method unused_self_move (line 53) | fn unused_self_move(self) {} method used_self_move (line 103) | fn used_self_move(self) -> u8 { method used_self_ref (line 106) | fn used_self_ref(&self) -> u8 { method used_self_mut_ref (line 109) | fn used_self_mut_ref(&mut self) { method used_self_pin_ref (line 112) | fn used_self_pin_ref(self: Pin<&Self>) -> u8 { method used_self_box (line 115) | fn used_self_box(self: Box) -> u8 { method used_self_with_other_unused_args (line 118) | fn used_self_with_other_unused_args(&self, x: u8, y: u8) -> u8 { method used_in_nested_closure (line 121) | fn used_in_nested_closure(&self) -> u8 { method used_self_method_nested_conditions (line 127) | fn used_self_method_nested_conditions(&self, a: bool, b: bool, c: bool... method foo (line 139) | fn foo(&self) -> u32 { method bar (line 147) | fn bar(&mut self, x: u8) -> u32 { method fmt (line 163) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method method (line 169) | fn method(x: u8, y: u8) {} type A (line 48) | struct A; method unused_self_move (line 11) | fn unused_self_move(self) {} method unused_self_ref (line 14) | fn unused_self_ref(&self) {} method unused_self_mut_ref (line 17) | fn unused_self_mut_ref(&mut self) {} method unused_self_pin_ref (line 20) | fn unused_self_pin_ref(self: Pin<&Self>) {} method unused_self_pin_mut_ref (line 23) | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {} method unused_self_pin_nested (line 26) | fn unused_self_pin_nested(self: Pin>) {} method unused_self_box (line 29) | fn unused_self_box(self: Box) {} method unused_with_other_used_args (line 32) | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 { method unused_self_class_method (line 37) | fn unused_self_class_method(&self) { method static_method (line 43) | fn static_method() {} method unused_self_move (line 53) | fn unused_self_move(self) {} method used_self_move (line 103) | fn used_self_move(self) -> u8 { method used_self_ref (line 106) | fn used_self_ref(&self) -> u8 { method used_self_mut_ref (line 109) | fn used_self_mut_ref(&mut self) { method used_self_pin_ref (line 112) | fn used_self_pin_ref(self: Pin<&Self>) -> u8 { method used_self_box (line 115) | fn used_self_box(self: Box) -> u8 { method used_self_with_other_unused_args (line 118) | fn used_self_with_other_unused_args(&self, x: u8, y: u8) -> u8 { method used_in_nested_closure (line 121) | fn used_in_nested_closure(&self) -> u8 { method used_self_method_nested_conditions (line 127) | fn used_self_method_nested_conditions(&self, a: bool, b: bool, c: bool... method foo (line 139) | fn foo(&self) -> u32 { method bar (line 147) | fn bar(&mut self, x: u8) -> u32 { method fmt (line 163) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method method (line 169) | fn method(x: u8, y: u8) {} type B (line 56) | struct B; method unused_self_move (line 61) | fn unused_self_move(self) {} method method (line 173) | fn method(&self) {} type C (line 64) | struct C; method some_fn (line 69) | fn some_fn((): ()) {} method unused_self_move (line 72) | fn unused_self_move(self) {} type D (line 75) | pub struct D; method unused_self_move (line 79) | pub fn unused_self_move(self) {} type E (line 82) | pub struct E; method unused_self_todo (line 86) | pub fn unused_self_todo(self) { type A (line 98) | struct A { method unused_self_move (line 11) | fn unused_self_move(self) {} method unused_self_ref (line 14) | fn unused_self_ref(&self) {} method unused_self_mut_ref (line 17) | fn unused_self_mut_ref(&mut self) {} method unused_self_pin_ref (line 20) | fn unused_self_pin_ref(self: Pin<&Self>) {} method unused_self_pin_mut_ref (line 23) | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {} method unused_self_pin_nested (line 26) | fn unused_self_pin_nested(self: Pin>) {} method unused_self_box (line 29) | fn unused_self_box(self: Box) {} method unused_with_other_used_args (line 32) | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 { method unused_self_class_method (line 37) | fn unused_self_class_method(&self) { method static_method (line 43) | fn static_method() {} method unused_self_move (line 53) | fn unused_self_move(self) {} method used_self_move (line 103) | fn used_self_move(self) -> u8 { method used_self_ref (line 106) | fn used_self_ref(&self) -> u8 { method used_self_mut_ref (line 109) | fn used_self_mut_ref(&mut self) { method used_self_pin_ref (line 112) | fn used_self_pin_ref(self: Pin<&Self>) -> u8 { method used_self_box (line 115) | fn used_self_box(self: Box) -> u8 { method used_self_with_other_unused_args (line 118) | fn used_self_with_other_unused_args(&self, x: u8, y: u8) -> u8 { method used_in_nested_closure (line 121) | fn used_in_nested_closure(&self) -> u8 { method used_self_method_nested_conditions (line 127) | fn used_self_method_nested_conditions(&self, a: bool, b: bool, c: bool... method foo (line 139) | fn foo(&self) -> u32 { method bar (line 147) | fn bar(&mut self, x: u8) -> u32 { method fmt (line 163) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method method (line 169) | fn method(x: u8, y: u8) {} type A (line 160) | struct A; method unused_self_move (line 11) | fn unused_self_move(self) {} method unused_self_ref (line 14) | fn unused_self_ref(&self) {} method unused_self_mut_ref (line 17) | fn unused_self_mut_ref(&mut self) {} method unused_self_pin_ref (line 20) | fn unused_self_pin_ref(self: Pin<&Self>) {} method unused_self_pin_mut_ref (line 23) | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {} method unused_self_pin_nested (line 26) | fn unused_self_pin_nested(self: Pin>) {} method unused_self_box (line 29) | fn unused_self_box(self: Box) {} method unused_with_other_used_args (line 32) | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 { method unused_self_class_method (line 37) | fn unused_self_class_method(&self) { method static_method (line 43) | fn static_method() {} method unused_self_move (line 53) | fn unused_self_move(self) {} method used_self_move (line 103) | fn used_self_move(self) -> u8 { method used_self_ref (line 106) | fn used_self_ref(&self) -> u8 { method used_self_mut_ref (line 109) | fn used_self_mut_ref(&mut self) { method used_self_pin_ref (line 112) | fn used_self_pin_ref(self: Pin<&Self>) -> u8 { method used_self_box (line 115) | fn used_self_box(self: Box) -> u8 { method used_self_with_other_unused_args (line 118) | fn used_self_with_other_unused_args(&self, x: u8, y: u8) -> u8 { method used_in_nested_closure (line 121) | fn used_in_nested_closure(&self) -> u8 { method used_self_method_nested_conditions (line 127) | fn used_self_method_nested_conditions(&self, a: bool, b: bool, c: bool... method foo (line 139) | fn foo(&self) -> u32 { method bar (line 147) | fn bar(&mut self, x: u8) -> u32 { method fmt (line 163) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { method method (line 169) | fn method(x: u8, y: u8) {} type B (line 172) | trait B { method unused_self_move (line 61) | fn unused_self_move(self) {} method method (line 173) | fn method(&self) {} function main (line 177) | fn main() {} FILE: tests/ui/unused_trait_names.rs function main (line 9) | fn main() {} function bad (line 11) | fn bad() { function good (line 18) | fn good() { function used_good (line 24) | fn used_good() { function multi_bad (line 31) | fn multi_bad() { function multi_good (line 38) | fn multi_good() { function renamed_bad (line 44) | fn renamed_bad() { function multi_renamed_bad (line 51) | fn multi_renamed_bad() { function foo (line 61) | fn foo() { function foo (line 69) | fn foo() { function mod_import_bad (line 75) | fn mod_import_bad() { function foo (line 87) | fn foo() { function foo (line 99) | fn foo() { function foo (line 111) | fn foo() { function bar (line 121) | fn bar() { function foo (line 128) | fn foo() { function baz (line 143) | fn baz() { function foo (line 150) | fn foo() { function baz (line 163) | fn baz() { function foo (line 170) | fn foo() { type MyTrait (line 178) | pub trait MyTrait { method do_things (line 179) | fn do_things(&self); method do_things (line 185) | fn do_things(&self) {} type MyStruct (line 182) | pub struct MyStruct; function msrv_1_32 (line 191) | fn msrv_1_32() { function msrv_1_33 (line 197) | fn msrv_1_33() { type Foo (line 219) | pub trait Foo { method bar (line 220) | fn bar(&self); method bar (line 223) | fn bar(&self) {} function call_macro_and_trait_good (line 227) | fn call_macro_and_trait_good() { function allow_lint_fn (line 259) | fn allow_lint_fn() { function foo (line 269) | fn foo() { function foo (line 278) | fn foo() { FILE: tests/ui/unused_unit.rs type Unitter (line 19) | struct Unitter; method get_unit (line 22) | pub fn get_unit (), G>(&self, f: F, _g: G) -> () method into (line 35) | fn into(self) -> () { type Trait (line 42) | trait Trait { method redundant (line 43) | fn redundant (), G, H>(&self, _f: F, _g: G, _h: H) method redundant (line 53) | fn redundant (), G, H>(&self, _f: F, _g: G, _h: H) function return_unit (line 62) | fn return_unit() -> () { () } function main (line 69) | fn main() { function foo (line 82) | fn foo() { function test (line 95) | fn test()->(){} function test2 (line 99) | fn test2() ->(){} function test3 (line 103) | fn test3()-> (){} function macro_expr (line 106) | fn macro_expr() { function main (line 114) | fn main() { function main (line 120) | fn main() { type Unit (line 127) | trait Unit {} function bar (line 131) | fn bar() -> () { type UnitStruct (line 136) | struct UnitStruct; method apply (line 138) | fn apply Fn(&'c mut Self)>(&mut self, f: F) { type UnusedParensButNoUnit (line 146) | type UnusedParensButNoUnit = Box; type Convert (line 152) | trait Convert { method from (line 153) | fn from(value: T) -> Self; function from (line 157) | fn from(_value: u64) -> Self {} function handle (line 160) | fn handle>(value: u64) -> T { function f (line 164) | pub fn f() -> Option { FILE: tests/ui/unwrap_expect_used.rs type OptionExt (line 7) | trait OptionExt { method unwrap_err (line 10) | fn unwrap_err(self) -> Self::Item; method expect_err (line 12) | fn expect_err(self, msg: &str) -> Self::Item; type Item (line 16) | type Item = T; method unwrap_err (line 17) | fn unwrap_err(self) -> T { method expect_err (line 21) | fn expect_err(self, msg: &str) -> T { function main (line 26) | fn main() { function test (line 77) | fn test(file: &str) { function issue16484 (line 87) | fn issue16484() { FILE: tests/ui/unwrap_in_result.rs type A (line 4) | struct A; method good_divisible_by_3 (line 8) | fn good_divisible_by_3(i_str: String) -> Result { method bad_divisible_by_3 (line 23) | fn bad_divisible_by_3(i_str: String) -> Result { method example_option_expect (line 34) | fn example_option_expect(i_str: String) -> Option { method in_closure (line 43) | fn in_closure(a: Option) -> Option { method in_const_inside_fn (line 55) | const fn in_const_inside_fn() -> bool { method in_static_inside_fn (line 68) | fn in_static_inside_fn() -> bool { function type_relative_unwrap (line 88) | fn type_relative_unwrap() -> Option<()> { function main (line 98) | fn main() -> Result<(), ()> { FILE: tests/ui/unwrap_or.rs function main (line 4) | fn main() { function new_lines (line 9) | fn new_lines() { FILE: tests/ui/unwrap_or_else_default.rs function unwrap_or_else_default (line 6) | fn unwrap_or_else_default() { function type_certainty (line 80) | fn type_certainty(option: Option>) { function method_call_with_deref (line 130) | fn method_call_with_deref() { function missing_suggested_method (line 148) | fn missing_suggested_method() { function main (line 178) | fn main() {} FILE: tests/ui/upper_case_acronyms.rs type HTTPResponse (line 3) | struct HTTPResponse; type CString (line 5) | struct CString; type Flags (line 7) | enum Flags { type GCCLLVMSomething (line 29) | struct GCCLLVMSomething; type NOWARNINGHERE (line 32) | pub struct NOWARNINGHERE; type ALSONoWarningHERE (line 33) | pub struct ALSONoWarningHERE; type ParseError (line 36) | pub enum ParseError { type ParseErrorPrivate (line 43) | enum ParseErrorPrivate { type JSON (line 51) | struct JSON; type YAML (line 55) | enum YAML { type AllowOnField (line 62) | enum AllowOnField { function main (line 69) | fn main() {} FILE: tests/ui/use_debug.rs type Foo (line 5) | struct Foo; method fmt (line 8) | fn fmt(&self, f: &mut Formatter) -> Result { method fmt (line 15) | fn fmt(&self, f: &mut Formatter) -> Result { function main (line 21) | fn main() { function issue15942 (line 34) | fn issue15942() { FILE: tests/ui/use_self.rs function main (line 20) | fn main() {} type Foo (line 23) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; method default (line 39) | fn default() -> Foo { type Foo (line 48) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; method default (line 60) | fn default() -> Self { type Foo (line 68) | struct Foo<'a> { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; function foo (line 75) | fn foo(s: &str) -> Foo<'_> { function bar (line 79) | fn bar() -> Foo<'static> { function clone (line 83) | fn clone(&self) -> Foo<'a> { function eq (line 89) | fn eq<'b>(&self, other: Foo<'b>) -> bool { function f (line 94) | fn f(&self) -> Foo<'_> { type IntoBytes (line 101) | trait IntoBytes { method to_bytes (line 102) | fn to_bytes(self) -> Vec; method to_bytes (line 107) | fn to_bytes(self) -> Vec { type Foo (line 114) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type TS (line 130) | pub struct TS(i32); method ts (line 133) | pub fn ts() -> Self { type Foo (line 149) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type A (line 156) | struct A; method a (line 745) | fn a() { type Foo (line 160) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Enum (line 191) | enum Enum { method method (line 197) | fn method() { method method2 (line 203) | fn method2() { type A (line 216) | struct A; method a (line 745) | fn a() { type B (line 217) | struct B; method into (line 480) | fn into(self) -> C { type Trait (line 219) | trait Trait { method a (line 220) | fn a(v: T) -> Self; method test (line 547) | fn test(); type Type (line 555) | type Type = I; type Hi (line 556) | type Hi = I::Item; method test (line 558) | fn test() { function a (line 224) | fn a(_: Vec) -> Self { function a (line 233) | fn a(v: Vec) -> Self { type A (line 242) | pub struct A; method a (line 745) | fn a() { constant A (line 246) | const A: bool = true; method a (line 745) | fn a() { function fun_1 (line 248) | fn fun_1() {} function fun_2 (line 250) | fn fun_2() { type TestStruct (line 263) | struct TestStruct; method from_something (line 265) | fn from_something() -> Self { type Test (line 270) | trait Test { method test (line 271) | fn test() -> TestStruct; method test (line 275) | fn test() -> TestStruct { type S (line 285) | struct S; constant A (line 288) | const A: usize = 0; constant B (line 289) | const B: usize = 1; method g (line 291) | async fn g() -> S { method f (line 297) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8] { type T (line 304) | trait T { method f (line 305) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8]; method f (line 309) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8] { method f (line 788) | fn f(self) -> bool; method f (line 792) | fn f(self) -> bool { type Foo (line 317) | struct Foo { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; function foo (line 323) | fn foo(value: T) -> Foo { function bar (line 330) | fn bar(value: i32) -> Foo { type Error (line 337) | pub struct Error { type From (line 342) | pub trait From { method from (line 346) | fn from(value: T) -> Self; type TryFrom (line 349) | pub trait TryFrom method try_from (line 356) | fn try_from(value: T) -> Result>; type From (line 373) | type From = bool; method from (line 346) | fn from(value: T) -> Self; type To (line 374) | type To = Self; function from (line 376) | fn from(value: bool) -> Self { type Foo (line 383) | trait Foo { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Foo (line 397) | pub struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Bar (line 398) | pub struct Bar([usize; 3]); method get_value (line 653) | fn get_value(&self) -> u8 { method use_crate (line 659) | fn use_crate(&self) -> u8 { type Foo (line 411) | trait Foo: 'static {} method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Bar (line 413) | struct Bar; method get_value (line 653) | fn get_value(&self) -> u8 { method use_crate (line 659) | fn use_crate(&self) -> u8 { function from (line 418) | fn from(t: T) -> Self { type Foo (line 425) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; method default (line 436) | fn default() -> Foo { type Foo (line 443) | struct Foo; method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; method default (line 454) | fn default() -> Foo { type X (line 462) | pub struct X { function from (line 467) | fn from(c: X) -> Self { type B (line 476) | pub struct B; method into (line 480) | fn into(self) -> C { type C (line 477) | pub struct C; type A (line 486) | struct A { method a (line 745) | fn a() { function new (line 491) | fn new>(v: V) -> Self { function test (line 497) | fn test() -> Self { type A (line 506) | struct A { method a (line 745) | fn a() { type MyStruct (line 512) | struct MyStruct; function from (line 514) | fn from(_s: MyStruct<'a'>) -> Self { type S (line 520) | struct S<'a> { constant A (line 288) | const A: usize = 0; constant B (line 289) | const B: usize = 1; method g (line 291) | async fn g() -> S { method f (line 297) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8] { type S2 (line 524) | struct S2 { function new (line 529) | fn new() -> Self { function new_again (line 535) | fn new_again() -> Self { type Trait (line 543) | trait Trait { method a (line 220) | fn a(v: T) -> Self; method test (line 547) | fn test(); type Type (line 555) | type Type = I; type Hi (line 556) | type Hi = I::Item; method test (line 558) | fn test() { type Foo (line 566) | enum Foo { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Something (line 592) | pub enum Something { method get_value (line 606) | fn get_value(&self) -> u8 { method use_crate (line 617) | fn use_crate(&self) -> u8 { method imported_values (line 628) | fn imported_values(&self) -> u8 { type Foo (line 598) | struct Foo(u8); method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Bar (line 600) | struct Bar { method get_value (line 653) | fn get_value(&self) -> u8 { method use_crate (line 659) | fn use_crate(&self) -> u8 { type Foo (line 671) | pub enum Foo { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; function msrv_1_36 (line 677) | fn msrv_1_36() { function msrv_1_37 (line 692) | fn msrv_1_37() { type Val (line 708) | struct Val {} function from (line 711) | fn from(_: Val) -> Self { type MyStruct (line 728) | struct MyStruct; type A (line 742) | struct A; method a (line 745) | fn a() { type Foo (line 763) | trait Foo { method new (line 26) | fn new() -> Foo { method test (line 31) | fn test() -> Foo { method new (line 51) | fn new() -> Self { method test (line 54) | fn test() -> Self { method bad (line 117) | fn bad(foos: &[Foo]) -> impl Iterator { method good (line 123) | fn good(foos: &[Self]) -> impl Iterator { method foo (line 162) | fn foo() { method baz (line 184) | fn baz() -> Foo { type Bar (line 388) | type Bar = u8; type Bar (line 392) | type Bar = Option; constant BAR (line 401) | pub const BAR: usize = 3; method foo (line 403) | pub fn foo() { method new (line 429) | fn new() -> Foo { method new (line 447) | fn new() -> Foo { method do_stuff (line 572) | fn do_stuff(self) { method get_value (line 639) | fn get_value(&self) -> u8 { method use_crate (line 645) | fn use_crate(&self) -> u8 { type Item (line 772) | type Item<'foo> = Option>; type Bar (line 766) | struct Bar<'b> { method get_value (line 653) | fn get_value(&self) -> u8 { method use_crate (line 659) | fn use_crate(&self) -> u8 { type Bits (line 777) | trait Bits { method bit (line 778) | fn bit(self) -> bool; method bit (line 782) | fn bit(self) -> bool { type T (line 787) | trait T { method f (line 305) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8]; method f (line 309) | fn f<'a>(&self, p: &'a [u8]) -> &'a [u8] { method f (line 788) | fn f(self) -> bool; method f (line 792) | fn f(self) -> bool { FILE: tests/ui/use_self_structs.rs function main (line 4) | fn main() {} type Basic (line 6) | struct Basic { type BasicSelf (line 11) | struct BasicSelf { type Generic (line 15) | struct Generic<'q, T: From> { type GenericSelf (line 21) | struct GenericSelf<'q, T: From> { type MixedLifetimes (line 26) | struct MixedLifetimes<'q, T: From + 'static> { type ConcreteType (line 31) | struct ConcreteType<'q, T: From> { type ConcreteAndGeneric (line 36) | struct ConcreteAndGeneric<'q, T: From> { type ConcreteAndGenericSelf (line 43) | struct ConcreteAndGenericSelf<'q, T: From> { type Tree (line 61) | struct Tree { type TreeSelf (line 68) | struct TreeSelf { type TreeMixed (line 73) | struct TreeMixed { type Nested (line 79) | struct Nested { type NestedSelf (line 84) | struct NestedSelf { type Tuple (line 88) | struct Tuple(Option>); type TupleSelf (line 91) | struct TupleSelf(Option>); type Containers (line 96) | struct Containers { type ContainersSelf (line 101) | struct ContainersSelf { type Wrappers (line 105) | type Wrappers = Vec>>>>>>; type Alias (line 107) | struct Alias { type AliasSelf (line 112) | struct AliasSelf { type Array (line 116) | struct Array { type ArraySelf (line 121) | struct ArraySelf { type Enum (line 125) | enum Enum { type EnumSelf (line 131) | enum EnumSelf { FILE: tests/ui/use_self_trait.rs type SelfTrait (line 7) | trait SelfTrait { method refs (line 8) | fn refs(p1: &Self) -> &Self; method ref_refs (line 9) | fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self; method mut_refs (line 10) | fn mut_refs(p1: &mut Self) -> &mut Self; method nested (line 11) | fn nested(p1: Box, p2: (&u8, &Self)); method vals (line 12) | fn vals(r: Self) -> Self; method refs (line 19) | fn refs(p1: &Bad) -> &Bad { method ref_refs (line 25) | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { method mut_refs (line 31) | fn mut_refs(p1: &mut Bad) -> &mut Bad { method nested (line 37) | fn nested(_p1: Box, _p2: (&u8, &Bad)) {} method vals (line 41) | fn vals(_: Bad) -> Bad { method refs (line 71) | fn refs(p1: &Self) -> &Self { method ref_refs (line 75) | fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { method mut_refs (line 79) | fn mut_refs(p1: &mut Self) -> &mut Self { method nested (line 83) | fn nested(_p1: Box, _p2: (&u8, &Self)) {} method vals (line 85) | fn vals(_: Self) -> Self { type Bad (line 16) | struct Bad; type Output (line 50) | type Output = Bad; method mul (line 53) | fn mul(self, rhs: Bad) -> Bad { method clone (line 61) | fn clone(&self) -> Self { type Good (line 68) | struct Good; type Output (line 91) | type Output = Self; method mul (line 93) | fn mul(self, rhs: Self) -> Self { type NameTrait (line 98) | trait NameTrait { method refs (line 99) | fn refs(p1: &u8) -> &u8; method ref_refs (line 100) | fn ref_refs<'a>(p1: &'a &'a u8) -> &'a &'a u8; method mut_refs (line 101) | fn mut_refs(p1: &mut u8) -> &mut u8; method nested (line 102) | fn nested(p1: Box, p2: (&u8, &u8)); method vals (line 103) | fn vals(p1: u8) -> u8; method refs (line 108) | fn refs(p1: &Self) -> &Self { method ref_refs (line 112) | fn ref_refs<'a>(p1: &'a &'a Self) -> &'a &'a Self { method mut_refs (line 116) | fn mut_refs(p1: &mut Self) -> &mut Self { method nested (line 120) | fn nested(_p1: Box, _p2: (&Self, &Self)) {} method vals (line 122) | fn vals(_: Self) -> Self { type Foo (line 139) | struct Foo; method bar (line 146) | fn bar() -> Self { type FooTrait (line 141) | trait FooTrait { method new (line 142) | fn new() -> Self; type Error (line 154) | trait Error { method custom (line 155) | fn custom(_msg: T) -> Self; method custom (line 159) | fn custom(_msg: T) -> Self { function main (line 167) | fn main() {} FILE: tests/ui/used_underscore_binding.rs type Baz (line 12) | struct Baz; function prefix_underscore (line 22) | fn prefix_underscore(_foo: u32) -> u32 { function in_macro_or_desugar (line 28) | fn in_macro_or_desugar(_foo: u32) { type StructFieldTest (line 39) | struct StructFieldTest { function in_struct_field (line 44) | fn in_struct_field() { type UnderscoreInStruct (line 52) | pub struct UnderscoreInStruct { function non_prefix_underscore (line 57) | fn non_prefix_underscore(some_foo: u32) -> u32 { function unused_underscore_simple (line 62) | fn unused_underscore_simple(_foo: u32) -> u32 { function unused_underscore_complex (line 68) | fn unused_underscore_complex(mut _foo: u32) -> u32 { function multiple_underscores (line 75) | fn multiple_underscores(__foo: u32) -> u32 { function _fn_test (line 80) | fn _fn_test() {} type _StructTest (line 81) | struct _StructTest; type _EnumTest (line 82) | enum _EnumTest { function non_variables (line 88) | fn non_variables() { function await_desugaring (line 101) | async fn await_desugaring() { type PhantomField (line 115) | struct PhantomField { function fmt (line 120) | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { type AllowedField (line 125) | struct AllowedField { type ExpectedField (line 130) | struct ExpectedField { function lint_levels (line 135) | fn lint_levels(allowed: AllowedField, expected: ExpectedField) { function main (line 140) | fn main() { FILE: tests/ui/used_underscore_items.rs type _FooStruct (line 16) | struct _FooStruct {} method _method_call (line 19) | fn _method_call(self) {} function _foo1 (line 22) | fn _foo1() {} function _foo2 (line 24) | fn _foo2() -> i32 { function _foo3 (line 31) | pub fn _foo3() {} type _FooStruct2 (line 33) | pub struct _FooStruct2 {} method _method_call (line 36) | pub fn _method_call(self) {} function main (line 42) | fn main() { function external_item_call (line 67) | fn external_item_call() { function _exit (line 77) | pub fn _exit(code: i32) -> !; function _f (line 80) | fn _f() { FILE: tests/ui/useful_asref.rs type Trait (line 6) | trait Trait { method as_ptr (line 7) | fn as_ptr(&self); method as_ptr (line 11) | fn as_ptr(&self) { function main (line 16) | fn main() {} FILE: tests/ui/useless_asref.rs type FakeAsRef (line 15) | struct FakeAsRef; method as_ref (line 19) | fn as_ref(&self) -> &Self { type MoreRef (line 24) | struct MoreRef; method as_ref (line 27) | fn as_ref(&self) -> &&'a &'b &'c MoreRef { function foo_rstr (line 32) | fn foo_rstr(x: &str) { function foo_rslice (line 35) | fn foo_rslice(x: &[i32]) { function foo_mrslice (line 38) | fn foo_mrslice(x: &mut [i32]) { function foo_rrrrmr (line 41) | fn foo_rrrrmr(_: &&&&MoreRef) { function not_ok (line 45) | fn not_ok() { function ok (line 94) | fn ok() { function foo_mrt (line 130) | fn foo_mrt(t: &mut T) { function foo_rt (line 133) | fn foo_rt(t: &T) { function generic_not_ok (line 137) | fn generic_not_ok + AsRef + Debug + ?Sized>(mrt: &mut T) { function generic_ok (line 146) | fn generic_ok + AsRef + ?Sized, T: Debug + ?Sized>(mru: &... function foo (line 151) | fn foo() { type Struct (line 164) | pub struct Struct { type Foo (line 169) | pub struct Foo; type InnerStruct (line 172) | struct InnerStruct { method method (line 177) | fn method(&self) -> &Foo { function f (line 182) | pub fn f(x: &Struct) -> Option { function issue_12528 (line 201) | fn issue_12528() { function issue_14088 (line 217) | fn issue_14088() { type Wrap (line 222) | pub struct Wrap { type Target (line 227) | type Target = T; method deref (line 229) | fn deref(&self) -> &Self::Target { type NonCloneableError (line 234) | struct NonCloneableError; type Issue12357 (line 236) | pub struct Issue12357 { method f (line 241) | fn f(&self) -> Option> { method g (line 245) | fn g(&self) { function issue_14828 (line 251) | fn issue_14828() { function issue16098 (line 261) | fn issue16098(exts: Vec<&str>) { function main (line 296) | fn main() {} FILE: tests/ui/useless_attribute.rs function test_indented_attr (line 21) | fn test_indented_attr() { type Bar (line 40) | pub struct Bar; type Baz (line 52) | struct Baz; type C (line 59) | pub struct C; type S (line 77) | pub(crate) struct S; type Struct (line 91) | pub(crate) struct Struct; function main (line 99) | fn main() {} type MyCoolTypeInternal (line 110) | pub struct MyCoolTypeInternal; type MyUncoolType (line 115) | pub(crate) struct MyUncoolType; type MyType (line 131) | pub struct MyType; type MyType (line 135) | pub struct MyType; type SomeType (line 146) | pub struct SomeType; FILE: tests/ui/useless_concat.rs function main (line 15) | fn main() { FILE: tests/ui/useless_conversion.rs function test_generic (line 9) | fn test_generic(val: T) -> T { function test_generic2 (line 16) | fn test_generic2 + Into, U: From>(val: T) { function test_questionmark (line 23) | fn test_questionmark() -> Result<(), ()> { function test_issue_3913 (line 32) | fn test_issue_3913() -> Result<(), std::io::Error> { function dont_lint_on_type_alias (line 42) | fn dont_lint_on_type_alias() { function dont_lint_into_iter_on_immutable_local_implementing_iterator_in_expr (line 47) | fn dont_lint_into_iter_on_immutable_local_implementing_iterator_in_expr() { function lint_into_iter_on_mutable_local_implementing_iterator_in_expr (line 53) | fn lint_into_iter_on_mutable_local_implementing_iterator_in_expr() { function lint_into_iter_on_expr_implementing_iterator (line 60) | fn lint_into_iter_on_expr_implementing_iterator() { function lint_into_iter_on_expr_implementing_iterator_2 (line 67) | fn lint_into_iter_on_expr_implementing_iterator_2() { function lint_into_iter_on_const_implementing_iterator (line 74) | fn lint_into_iter_on_const_implementing_iterator() { function lint_into_iter_on_const_implementing_iterator_2 (line 80) | fn lint_into_iter_on_const_implementing_iterator_2() { type CopiableCounter (line 88) | struct CopiableCounter { type Item (line 93) | type Item = u32; method next (line 95) | fn next(&mut self) -> Option { function dont_lint_into_iter_on_copy_iter (line 101) | fn dont_lint_into_iter_on_copy_iter() { function dont_lint_into_iter_on_static_copy_iter (line 109) | fn dont_lint_into_iter_on_static_copy_iter() { function main (line 119) | fn main() { function issue11065_fp (line 177) | fn issue11065_fp() { function explicit_into_iter_fn_arg (line 191) | fn explicit_into_iter_fn_arg() { function foo (line 225) | pub fn foo(i: I) type Helper (line 232) | trait Helper {} function foo2 (line 237) | fn foo2(_: I) type Helper2 (line 243) | trait Helper2 {} function foo3 (line 246) | fn foo3(_: I) function bar (line 253) | pub fn bar() { function ice (line 273) | fn ice() { type Foo (line 318) | struct Foo; function from (line 321) | fn from(_s: Foo<'a'>) -> Self { function direct_application (line 326) | fn direct_application() { function gen_identity (line 368) | fn gen_identity(x: [T; 3]) -> Vec { function takes_into_iter (line 374) | fn takes_into_iter(_: impl IntoIterator) {} type MyStruct (line 376) | pub struct MyStruct { function with_ref (line 381) | pub fn with_ref<'a>(&'a mut self) function with_ref_mut (line 389) | pub fn with_ref_mut<'a>(&'a mut self) function with_deref (line 397) | pub fn with_deref(&mut self) function with_reborrow (line 406) | pub fn with_reborrow<'a, Y: 'a>(&'a mut self) function with_reborrow_mut (line 415) | pub fn with_reborrow_mut<'a, Y: 'a>(&'a mut self) function issue14739 (line 426) | fn issue14739() { function issue16165 (line 441) | fn issue16165() { function takes_into_iter_usize (line 452) | fn takes_into_iter_usize(_: impl IntoIterator) {} function takes_into_iter_usize_result (line 453) | fn takes_into_iter_usize_result(_: impl IntoIterator) -> R... function issue16590 (line 457) | async fn issue16590() { function in_for_loop (line 465) | fn in_for_loop() { function after_question_mark (line 475) | fn after_question_mark() -> Result<(), ()> { FILE: tests/ui/useless_conversion_try.rs function test_generic (line 8) | fn test_generic(val: T) -> T { function test_generic2 (line 16) | fn test_generic2 + Into, U: From>(val: T) { function main (line 23) | fn main() { FILE: tests/ui/useless_nonzero_new_unchecked.rs function func (line 6) | const fn func() -> NonZeroUsize { function func_older (line 12) | const fn func_older() -> NonZeroUsize { function func_performance_hit_if_linted (line 16) | const fn func_performance_hit_if_linted() -> NonZeroUsize { function func_may_panic_at_run_time_if_linted (line 20) | const fn func_may_panic_at_run_time_if_linted(x: usize) -> NonZeroUsize { function main (line 36) | fn main() { FILE: tests/ui/useless_vec.rs type StructWithVec (line 5) | struct StructWithVec { function on_slice (line 9) | fn on_slice(_: &[u8]) {} function on_mut_slice (line 11) | fn on_mut_slice(_: &mut [u8]) {} function on_vec (line 14) | fn on_vec(_: &Vec) {} function on_mut_vec (line 16) | fn on_mut_vec(_: &mut Vec) {} type Line (line 18) | struct Line { method length (line 23) | fn length(&self) -> usize { function main (line 28) | fn main() { function issue11075 (line 129) | fn issue11075() { function above (line 174) | fn above() { function below (line 187) | fn below() { function func_needing_vec (line 197) | fn func_needing_vec(_bar: usize, _baz: Vec) {} function func_not_needing_vec (line 198) | fn func_not_needing_vec(_bar: usize, _baz: usize) {} function issue11861 (line 200) | fn issue11861() { function issue_11958 (line 232) | fn issue_11958() { function issue_12101 (line 239) | fn issue_12101() { function issue_14531 (line 244) | fn issue_14531() { FILE: tests/ui/useless_vec_unfixable.rs function foo (line 5) | fn foo() { function main (line 14) | fn main() {} FILE: tests/ui/vec_box_sized.rs type SizedStruct (line 9) | struct SizedStruct(i32); type UnsizedStruct (line 10) | struct UnsizedStruct([i32]); type BigStruct (line 11) | struct BigStruct([i32; 10000]); type DummyAllocator (line 13) | struct DummyAllocator; method allocate (line 15) | fn allocate(&self, layout: Layout) -> Result, AllocError> { method deallocate (line 18) | unsafe fn deallocate(&self, ptr: NonNull, layout: Layout) { constant C (line 26) | const C: Vec> = Vec::new(); type StructWithVecBox (line 31) | struct StructWithVecBox { type A (line 36) | struct A(Vec>); type B (line 38) | struct B(Vec>>); function allocator_global_defined_vec (line 41) | fn allocator_global_defined_vec() -> Vec, std::alloc::Global> { function allocator_global_defined_box (line 45) | fn allocator_global_defined_box() -> Vec> { function allocator_match (line 49) | fn allocator_match() -> Vec, DummyAllocator> { type C (line 59) | struct C(Vec>); type D (line 60) | struct D(Vec>); type StructWithVecBoxButItsUnsized (line 62) | struct StructWithVecBoxButItsUnsized { type TraitVec (line 66) | struct TraitVec { function allocator_mismatch (line 71) | fn allocator_mismatch() -> Vec> { function allocator_mismatch_2 (line 74) | fn allocator_mismatch_2() -> Vec, DummyAllocator> { type S (line 81) | pub struct S; function f (line 87) | pub fn f() -> Vec> { function in_closure (line 95) | fn in_closure() { function main (line 99) | fn main() {} FILE: tests/ui/vec_init_then_push.rs function main (line 4) | fn main() { function no_lint (line 48) | pub fn no_lint() -> Vec { function _from_iter (line 62) | fn _from_iter(items: impl Iterator) -> Vec { function _cond_push (line 70) | fn _cond_push(x: bool) -> Vec { function _push_then_edit (line 80) | fn _push_then_edit(x: u32) -> Vec { function _cond_push_with_large_start (line 90) | fn _cond_push_with_large_start(x: bool) -> Vec { function f (line 122) | fn f() { FILE: tests/ui/vec_resize_to_zero.rs function main (line 3) | fn main() { FILE: tests/ui/verbose_file_reads.rs type Struct (line 6) | struct Struct; method read_to_end (line 9) | pub fn read_to_end(&self) {} method read_to_string (line 11) | pub fn read_to_string(&self) {} function main (line 14) | fn main() -> std::io::Result<()> { FILE: tests/ui/volatile_composites.rs type MyDevRegisters (line 9) | struct MyDevRegisters { type Wrapper (line 15) | struct Wrapper((), T, ()); type NonNull (line 18) | struct NonNull(T); function write_volatile (line 21) | fn write_volatile(&self, _arg: &T) { function main (line 26) | fn main() { function do_device_write (line 217) | unsafe fn do_device_write(ptr: *mut T, v: T) { FILE: tests/ui/waker_clone_wake.rs type Custom (line 2) | pub struct Custom; method wake (line 5) | pub fn wake(self) {} function wake (line 14) | pub fn wake(cx: &mut std::task::Context) { function no_lint (line 22) | pub fn no_lint(cx: &mut std::task::Context, c: &Custom) { function main (line 31) | fn main() {} FILE: tests/ui/while_float.rs function main (line 2) | fn main() { FILE: tests/ui/while_immutable_condition.rs function fn_val (line 3) | fn fn_val(i: i32) -> i32 { function fn_constref (line 6) | fn fn_constref(i: &i32) -> i32 { function fn_mutref (line 9) | fn fn_mutref(i: &mut i32) { function fooi (line 12) | fn fooi() -> i32 { function foob (line 15) | fn foob() -> bool { function immutable_condition (line 19) | fn immutable_condition() { function unused_var (line 80) | fn unused_var() { function used_immutable (line 111) | fn used_immutable() { constant N (line 139) | const N: i32 = 5; constant B (line 140) | const B: bool = false; function consts (line 142) | fn consts() { function maybe_i_mutate (line 158) | fn maybe_i_mutate(i: &Cell) { function internally_mutable (line 162) | fn internally_mutable() { type Counter (line 172) | struct Counter { method inc (line 177) | fn inc(&mut self) { method inc_n (line 181) | fn inc_n(&mut self, n: usize) { method print_n (line 188) | fn print_n(&self, n: usize) { function while_loop_with_break_and_return (line 197) | fn while_loop_with_break_and_return() { function immutable_condition_false_positive (line 218) | fn immutable_condition_false_positive(mut n: u64) -> u32 { function main (line 229) | fn main() {} FILE: tests/ui/while_let_loop.rs function main (line 4) | fn main() { function issue771 (line 102) | fn issue771() { function issue1017 (line 117) | fn issue1017() { function issue1948 (line 133) | fn issue1948() { function issue_7913 (line 145) | fn issue_7913(m: &std::sync::Mutex>) { function issue_5715 (line 158) | fn issue_5715(mut m: core::cell::RefCell>) { function merge_sorted (line 172) | pub fn merge_sorted(xs: Vec, ys: Vec) -> Vec function let_assign (line 194) | fn let_assign() { function issue16378 (line 257) | fn issue16378() { FILE: tests/ui/while_let_on_iterator.rs function base (line 13) | fn base() { function refutable (line 59) | fn refutable() { function refutable2 (line 83) | fn refutable2() { function nested_loops (line 142) | fn nested_loops() { function issue1121 (line 154) | fn issue1121() { function issue2965 (line 164) | fn issue2965() { function issue3670 (line 174) | fn issue3670() { function issue1654 (line 183) | fn issue1654() { function issue6491 (line 201) | fn issue6491() { function issue6231 (line 253) | fn issue6231() { function issue1924 (line 269) | fn issue1924() { function issue7249 (line 346) | fn issue7249() { function issue7510 (line 361) | fn issue7510() { function exact_match_with_single_field (line 386) | fn exact_match_with_single_field() { function custom_deref (line 395) | fn custom_deref() { function issue_8113 (line 419) | fn issue_8113() { function fn_once_closure (line 427) | fn fn_once_closure() { function issue13123 (line 485) | fn issue13123() { function issue16089 (line 495) | fn issue16089() { function issue16089_sized_trait_not_reborrowed (line 510) | fn issue16089_sized_trait_not_reborrowed() { function issue16089_nested_derefs (line 526) | fn issue16089_nested_derefs() { function issue16089_nested_derefs_last_not_sized (line 546) | fn issue16089_nested_derefs_last_not_sized() { function issue16089_nested_derefs_last_sized (line 568) | fn issue16089_nested_derefs_last_sized() { function main (line 599) | fn main() { FILE: tests/ui/wild_in_or_pats.rs function main (line 3) | fn main() { FILE: tests/ui/wildcard_enum_match_arm.rs type Color (line 17) | enum Color { method is_monochrome (line 26) | fn is_monochrome(self) -> bool { function main (line 35) | fn main() { function issue15091 (line 124) | fn issue15091() { FILE: tests/ui/wildcard_imports.rs type ReadFoo (line 36) | struct ReadFoo; method read (line 39) | fn read(&mut self, _buf: &mut [u8]) -> std::io::Result { function foo (line 45) | pub fn foo() {} function foo (line 50) | pub fn foo() {} function multi_foo (line 55) | pub fn multi_foo() {} function multi_bar (line 56) | pub fn multi_bar() {} function multi_baz (line 57) | pub fn multi_baz() {} function foo (line 59) | pub fn foo() {} type A (line 64) | pub struct A; type B (line 65) | pub struct B; type C (line 67) | pub struct C; function dummy (line 85) | pub fn dummy() {} function dummy (line 90) | pub fn dummy() {} function does_not_lint (line 93) | fn does_not_lint() { function does_lint (line 99) | fn does_lint() { function main (line 107) | fn main() { function test_intern (line 131) | fn test_intern() { function test_extern (line 138) | fn test_extern() { function test_inner_nested (line 152) | fn test_inner_nested() { function test_extern_reexported (line 162) | fn test_extern_reexported() { function exported (line 172) | pub fn exported() {} type ExportedStruct (line 173) | pub struct ExportedStruct; type ExportedEnum (line 174) | pub enum ExportedEnum { function exported2 (line 180) | pub(crate) fn exported2() {} function inner_foo (line 184) | pub fn inner_foo() {} function inner_bar (line 188) | pub fn inner_bar() {} function test_reexported (line 192) | fn test_reexported() { function test_weird_formatting (line 202) | fn test_weird_formatting() { function foofoo (line 214) | fn foofoo() {} function with_super (line 220) | fn with_super() { function with_super (line 229) | fn with_super() { function with_super_inside_function (line 236) | fn with_super_inside_function() { function insidefoo (line 244) | fn insidefoo() {} function with_super (line 247) | fn with_super() { function insidefoo (line 254) | fn insidefoo() {} function with_super (line 258) | fn with_super() { function with_explicit (line 268) | fn with_explicit() { function with_double_super (line 278) | fn with_double_super() { function with_super_explicit (line 288) | fn with_super_explicit() { function with_explicit (line 297) | fn with_explicit() { FILE: tests/ui/wildcard_imports_2021.rs type ReadFoo (line 31) | struct ReadFoo; method read (line 34) | fn read(&mut self, _buf: &mut [u8]) -> std::io::Result { function foo (line 40) | pub fn foo() {} function foo (line 45) | pub fn foo() {} function multi_foo (line 50) | pub fn multi_foo() {} function multi_bar (line 51) | pub fn multi_bar() {} function multi_baz (line 52) | pub fn multi_baz() {} function foo (line 54) | pub fn foo() {} type A (line 59) | pub struct A; type B (line 60) | pub struct B; type C (line 62) | pub struct C; function dummy (line 80) | pub fn dummy() {} function dummy (line 85) | pub fn dummy() {} function does_not_lint (line 88) | fn does_not_lint() { function does_lint (line 94) | fn does_lint() { function main (line 102) | fn main() { function test_intern (line 125) | fn test_intern() { function test_extern (line 132) | fn test_extern() { function test_inner_nested (line 146) | fn test_inner_nested() { function test_extern_reexported (line 156) | fn test_extern_reexported() { function exported (line 166) | pub fn exported() {} type ExportedStruct (line 167) | pub struct ExportedStruct; type ExportedEnum (line 168) | pub enum ExportedEnum { function exported2 (line 174) | pub(crate) fn exported2() {} function inner_foo (line 178) | pub fn inner_foo() {} function inner_bar (line 182) | pub fn inner_bar() {} function test_reexported (line 186) | fn test_reexported() { function test_weird_formatting (line 196) | fn test_weird_formatting() { function foofoo (line 208) | fn foofoo() {} function with_super (line 214) | fn with_super() { function with_super (line 223) | fn with_super() { function with_super_inside_function (line 230) | fn with_super_inside_function() { function insidefoo (line 238) | fn insidefoo() {} function with_super (line 241) | fn with_super() { function insidefoo (line 248) | fn insidefoo() {} function with_super (line 252) | fn with_super() { function with_explicit (line 262) | fn with_explicit() { function with_double_super (line 272) | fn with_double_super() { function with_super_explicit (line 282) | fn with_super_explicit() { function with_explicit (line 291) | fn with_explicit() { FILE: tests/ui/wildcard_imports_cfgtest.rs function foofoo (line 9) | fn foofoo() {} function barbar (line 14) | fn barbar() { function main (line 20) | fn main() {} FILE: tests/ui/write_literal.rs function main (line 6) | fn main() { function escaping (line 73) | fn escaping() { function issue_13959 (line 126) | fn issue_13959() { function issue_14930 (line 145) | fn issue_14930() { FILE: tests/ui/write_literal_unfixable.rs function escaping (line 7) | fn escaping() { FILE: tests/ui/write_with_newline.rs function main (line 8) | fn main() { FILE: tests/ui/writeln_empty_string.rs function main (line 5) | fn main() { FILE: tests/ui/writeln_empty_string_unfixable.rs function issue_16251 (line 8) | fn issue_16251() { FILE: tests/ui/wrong_self_convention.rs function main (line 4) | fn main() {} type Foo (line 7) | struct Foo; method as_i32 (line 10) | fn as_i32(self) {} method as_u32 (line 11) | fn as_u32(&self) {} method into_i32 (line 12) | fn into_i32(self) {} method is_i32 (line 13) | fn is_i32(self) {} method is_u32 (line 14) | fn is_u32(&self) {} method to_i32 (line 15) | fn to_i32(self) {} method from_i32 (line 16) | fn from_i32(self) {} method as_i64 (line 19) | pub fn as_i64(self) {} method into_i64 (line 20) | pub fn into_i64(self) {} method is_i64 (line 21) | pub fn is_i64(self) {} method to_i64 (line 22) | pub fn to_i64(self) {} method from_i64 (line 23) | pub fn from_i64(self) {} method from_cake (line 28) | pub fn from_cake(self) {} method as_x (line 30) | fn as_x>(_: F) {} method as_y (line 31) | fn as_y>(_: F) {} method into_bar (line 105) | pub async fn into_bar(self) -> Bar { type Bar (line 34) | struct Bar; method as_i32 (line 37) | fn as_i32(self) {} method as_u32 (line 40) | fn as_u32(&self) {} method into_i32 (line 41) | fn into_i32(&self) {} method into_u32 (line 44) | fn into_u32(self) {} method is_i32 (line 45) | fn is_i32(self) {} method is_u32 (line 48) | fn is_u32(&self) {} method to_i32 (line 49) | fn to_i32(self) {} method to_u32 (line 52) | fn to_u32(&self) {} method from_i32 (line 53) | fn from_i32(self) {} method as_i64 (line 56) | pub fn as_i64(self) {} method into_i64 (line 59) | pub fn into_i64(&self) {} method is_i64 (line 62) | pub fn is_i64(self) {} method to_i64 (line 65) | pub fn to_i64(self) {} method from_i64 (line 68) | pub fn from_i64(self) {} method as_ (line 72) | fn as_(self) {} method into_ (line 73) | fn into_(&self) {} method is_ (line 74) | fn is_(self) {} method to_ (line 75) | fn to_(self) {} method from_ (line 76) | fn from_(self) {} method to_mut (line 77) | fn to_mut(&mut self) {} type T (line 86) | struct T; method into_s1 (line 89) | fn into_s1(self: Box) {} method into_s2 (line 90) | fn into_s2(self: Rc) {} method into_s3 (line 91) | fn into_s3(self: Arc) {} method into_t1 (line 93) | fn into_t1(self: Box) {} method into_t2 (line 94) | fn into_t2(self: Rc) {} method into_t3 (line 95) | fn into_t3(self: Arc) {} method as_i32 (line 114) | fn as_i32(self) {} method as_u32 (line 117) | fn as_u32(&self) {} method into_i32 (line 118) | fn into_i32(self) {} method into_i32_ref (line 119) | fn into_i32_ref(&self) {} method into_u32 (line 122) | fn into_u32(self) {} method is_i32 (line 123) | fn is_i32(self) {} method is_u32 (line 126) | fn is_u32(&self) {} method to_i32 (line 127) | fn to_i32(self) {} method to_u32 (line 128) | fn to_u32(&self) {} method from_i32 (line 129) | fn from_i32(self) {} method from_cake (line 134) | fn from_cake(self) {} method as_ (line 137) | fn as_(self) {} method into_ (line 138) | fn into_(&self) {} method is_ (line 139) | fn is_(self) {} method to_ (line 140) | fn to_(self) {} method from_ (line 141) | fn from_(self) {} method to_mut (line 142) | fn to_mut(&mut self) {} type Foo (line 101) | pub struct Foo; method as_i32 (line 10) | fn as_i32(self) {} method as_u32 (line 11) | fn as_u32(&self) {} method into_i32 (line 12) | fn into_i32(self) {} method is_i32 (line 13) | fn is_i32(self) {} method is_u32 (line 14) | fn is_u32(&self) {} method to_i32 (line 15) | fn to_i32(self) {} method from_i32 (line 16) | fn from_i32(self) {} method as_i64 (line 19) | pub fn as_i64(self) {} method into_i64 (line 20) | pub fn into_i64(self) {} method is_i64 (line 21) | pub fn is_i64(self) {} method to_i64 (line 22) | pub fn to_i64(self) {} method from_i64 (line 23) | pub fn from_i64(self) {} method from_cake (line 28) | pub fn from_cake(self) {} method as_x (line 30) | fn as_x>(_: F) {} method as_y (line 31) | fn as_y>(_: F) {} method into_bar (line 105) | pub async fn into_bar(self) -> Bar { type Bar (line 102) | pub struct Bar; method as_i32 (line 37) | fn as_i32(self) {} method as_u32 (line 40) | fn as_u32(&self) {} method into_i32 (line 41) | fn into_i32(&self) {} method into_u32 (line 44) | fn into_u32(self) {} method is_i32 (line 45) | fn is_i32(self) {} method is_u32 (line 48) | fn is_u32(&self) {} method to_i32 (line 49) | fn to_i32(self) {} method to_u32 (line 52) | fn to_u32(&self) {} method from_i32 (line 53) | fn from_i32(self) {} method as_i64 (line 56) | pub fn as_i64(self) {} method into_i64 (line 59) | pub fn into_i64(&self) {} method is_i64 (line 62) | pub fn is_i64(self) {} method to_i64 (line 65) | pub fn to_i64(self) {} method from_i64 (line 68) | pub fn from_i64(self) {} method as_ (line 72) | fn as_(self) {} method into_ (line 73) | fn into_(&self) {} method is_ (line 74) | fn is_(self) {} method to_ (line 75) | fn to_(self) {} method from_ (line 76) | fn from_(self) {} method to_mut (line 77) | fn to_mut(&mut self) {} type T (line 113) | trait T: Sized { method into_s1 (line 89) | fn into_s1(self: Box) {} method into_s2 (line 90) | fn into_s2(self: Rc) {} method into_s3 (line 91) | fn into_s3(self: Arc) {} method into_t1 (line 93) | fn into_t1(self: Box) {} method into_t2 (line 94) | fn into_t2(self: Rc) {} method into_t3 (line 95) | fn into_t3(self: Arc) {} method as_i32 (line 114) | fn as_i32(self) {} method as_u32 (line 117) | fn as_u32(&self) {} method into_i32 (line 118) | fn into_i32(self) {} method into_i32_ref (line 119) | fn into_i32_ref(&self) {} method into_u32 (line 122) | fn into_u32(self) {} method is_i32 (line 123) | fn is_i32(self) {} method is_u32 (line 126) | fn is_u32(&self) {} method to_i32 (line 127) | fn to_i32(self) {} method to_u32 (line 128) | fn to_u32(&self) {} method from_i32 (line 129) | fn from_i32(self) {} method from_cake (line 134) | fn from_cake(self) {} method as_ (line 137) | fn as_(self) {} method into_ (line 138) | fn into_(&self) {} method is_ (line 139) | fn is_(self) {} method to_ (line 140) | fn to_(self) {} method from_ (line 141) | fn from_(self) {} method to_mut (line 142) | fn to_mut(&mut self) {} type U (line 145) | trait U { method as_i32 (line 146) | fn as_i32(self); method as_u32 (line 149) | fn as_u32(&self); method into_i32 (line 150) | fn into_i32(self); method into_i32_ref (line 151) | fn into_i32_ref(&self); method into_u32 (line 154) | fn into_u32(self); method is_i32 (line 155) | fn is_i32(self); method is_u32 (line 158) | fn is_u32(&self); method to_i32 (line 159) | fn to_i32(self); method to_u32 (line 160) | fn to_u32(&self); method from_i32 (line 161) | fn from_i32(self); method from_cake (line 166) | fn from_cake(self); method as_ (line 169) | fn as_(self); method into_ (line 170) | fn into_(&self); method is_ (line 171) | fn is_(self); method to_ (line 172) | fn to_(self); method from_ (line 173) | fn from_(self); method to_mut (line 174) | fn to_mut(&mut self); type C (line 177) | trait C: Copy { method as_i32 (line 178) | fn as_i32(self); method as_u32 (line 179) | fn as_u32(&self); method into_i32 (line 180) | fn into_i32(self); method into_i32_ref (line 181) | fn into_i32_ref(&self); method into_u32 (line 184) | fn into_u32(self); method is_i32 (line 185) | fn is_i32(self); method is_u32 (line 186) | fn is_u32(&self); method to_i32 (line 187) | fn to_i32(self); method to_u32 (line 188) | fn to_u32(&self); method from_i32 (line 189) | fn from_i32(self); method from_cake (line 194) | fn from_cake(self); method as_ (line 197) | fn as_(self); method into_ (line 198) | fn into_(&self); method is_ (line 199) | fn is_(self); method to_ (line 200) | fn to_(self); method from_ (line 201) | fn from_(self); method to_mut (line 202) | fn to_mut(&mut self); type FooCopy (line 208) | struct FooCopy; method to_u64 (line 211) | fn to_u64(self) -> u64 { method to_u64_v2 (line 215) | fn to_u64_v2(&self) -> u64 { type FooNoCopy (line 222) | struct FooNoCopy; method to_u64 (line 226) | fn to_u64(self) -> u64 { method to_u64_v2 (line 231) | fn to_u64_v2(&self) -> u64 { type S (line 238) | struct S; method is_forty_two (line 242) | fn is_forty_two(x: u32) -> bool { method is_test_code (line 247) | fn is_test_code(&self) -> bool { FILE: tests/ui/wrong_self_convention2.rs function main (line 4) | fn main() {} type Thing (line 7) | pub struct Thing; type Trait (line 8) | pub trait Trait { method to_thing (line 9) | fn to_thing(&self) -> Thing; method to_thing (line 14) | fn to_thing(&self) -> Thing { type ToU64 (line 19) | trait ToU64 { method to_u64 (line 20) | fn to_u64(self) -> u64; method to_u64 (line 26) | fn to_u64(self) -> u64 { type FooNoCopy (line 23) | struct FooNoCopy; type Foo (line 33) | trait Foo { method from_usize (line 34) | fn from_usize(x: usize) -> Self; method from_usize (line 38) | fn from_usize(x: usize) -> Self { method as_byte_slice (line 70) | fn as_byte_slice(slice: &[Self]) -> &[u8]; type S (line 45) | pub struct S(i32); method from_be (line 49) | pub fn from_be(s: Self) -> Self { method from_be_self (line 54) | pub fn from_be_self(self) -> Self { method as_mut (line 99) | pub fn as_mut(self: Pin<&mut Self>) {} method as_other_thingy (line 101) | pub fn as_other_thingy(self: Pin<&Self>) {} method is_other_thingy (line 103) | pub fn is_other_thingy(self: Pin<&Self>) {} method to_mut (line 105) | pub fn to_mut(self: Pin<&mut Self>) {} method to_other_thingy (line 107) | pub fn to_other_thingy(self: Pin<&Self>) {} type T (line 61) | trait T { method from_be (line 63) | fn from_be(s: Self) -> Self; method from_be_self (line 65) | fn from_be_self(self) -> Self; type Foo (line 69) | trait Foo: Sized { method from_usize (line 34) | fn from_usize(x: usize) -> Self; method from_usize (line 38) | fn from_usize(x: usize) -> Self { method as_byte_slice (line 70) | fn as_byte_slice(slice: &[Self]) -> &[u8]; type CellLikeThing (line 75) | struct CellLikeThing(T); function into_inner (line 79) | fn into_inner(this: Self) -> T { type Target (line 85) | type Target = T; function deref (line 87) | fn deref(&self) -> &T { type S (line 97) | struct S; method from_be (line 49) | pub fn from_be(s: Self) -> Self { method from_be_self (line 54) | pub fn from_be_self(self) -> Self { method as_mut (line 99) | pub fn as_mut(self: Pin<&mut Self>) {} method as_other_thingy (line 101) | pub fn as_other_thingy(self: Pin<&Self>) {} method is_other_thingy (line 103) | pub fn is_other_thingy(self: Pin<&Self>) {} method to_mut (line 105) | pub fn to_mut(self: Pin<&mut Self>) {} method to_other_thingy (line 107) | pub fn to_other_thingy(self: Pin<&Self>) {} type Cat (line 112) | struct Cat(String); method is_animal (line 115) | fn is_animal(&mut self) -> bool { FILE: tests/ui/wrong_self_conventions_mut.rs function main (line 4) | fn main() {} type Test (line 7) | pub enum Test { function to_many (line 14) | pub fn to_many(&mut self) -> Option<&mut [T]> { function to_many_mut (line 24) | pub fn to_many_mut(&self) -> Option<&[T]> { FILE: tests/ui/zero_div_zero.rs function main (line 3) | fn main() { FILE: tests/ui/zero_offset.rs function main (line 2) | fn main() { FILE: tests/ui/zero_ptr.rs function foo (line 1) | pub fn foo(_const: *const f32, _mut: *mut i64) {} function main (line 3) | fn main() { function in_const_context (line 20) | const fn in_const_context() { FILE: tests/ui/zero_ptr_no_std.rs function main (line 5) | pub fn main(_argc: isize, _argv: *const *const u8) -> isize { FILE: tests/ui/zero_repeat_side_effects.rs function f (line 10) | fn f() -> i32 { function main (line 15) | fn main() { function issue_13110 (line 81) | fn issue_13110() { type S (line 90) | struct S; method new (line 93) | fn new() -> Self { function issue_14681 (line 100) | fn issue_14681() { function issue_15824 (line 111) | fn issue_15824() { FILE: tests/ui/zero_repeat_side_effects_never_pattern.rs function issue_14998 (line 5) | fn issue_14998() { FILE: tests/ui/zero_repeat_side_effects_unfixable.rs function issue_14998 (line 5) | fn issue_14998() { FILE: tests/ui/zero_sized_btreemap_values.rs constant CONST_OK (line 4) | const CONST_OK: Option> = None; constant CONST_NOT_OK (line 5) | const CONST_NOT_OK: Option> = None; type OkMap (line 12) | type OkMap = BTreeMap; type NotOkMap (line 13) | type NotOkMap = BTreeMap; type TestEnum (line 16) | enum TestEnum { type Test (line 22) | struct Test { method ok (line 40) | fn ok(&self) -> BTreeMap { method not_ok (line 44) | fn not_ok(&self) -> BTreeMap { type TestTrait (line 30) | trait TestTrait { method produce_output (line 33) | fn produce_output() -> Self::Output; method weird_map (line 35) | fn weird_map(&self, map: BTreeMap); type Output (line 52) | type Output = BTreeMap; method produce_output (line 54) | fn produce_output() -> Self::Output { method weird_map (line 58) | fn weird_map(&self, map: BTreeMap) { function test (line 63) | fn test(map: BTreeMap, key: &str) -> BTreeMap { function test2 (line 70) | fn test2(map: BTreeMap, key: &str) -> BTreeMap> = None; constant CONST_NOT_OK (line 5) | const CONST_NOT_OK: Option> = None; type OkMap (line 12) | type OkMap = HashMap; type NotOkMap (line 13) | type NotOkMap = HashMap; type TestEnum (line 16) | enum TestEnum { type Test (line 22) | struct Test { method ok (line 40) | fn ok(&self) -> HashMap { method not_ok (line 44) | fn not_ok(&self) -> HashMap { type TestTrait (line 30) | trait TestTrait { method produce_output (line 33) | fn produce_output() -> Self::Output; method weird_map (line 35) | fn weird_map(&self, map: HashMap); type Output (line 52) | type Output = HashMap; method produce_output (line 54) | fn produce_output() -> Self::Output { method weird_map (line 58) | fn weird_map(&self, map: HashMap) { function test (line 63) | fn test(map: HashMap, key: &str) -> HashMap { function test2 (line 70) | fn test2(map: HashMap, key: &str) -> HashMap ExitStatus { function do_something (line 184) | fn do_something Result<(), ()>>(f: F) { function foo (line 188) | fn foo() { function issue14911 (line 202) | fn issue14911() -> std::io::Result { FILE: tests/ui/zombie_processes_fixable.rs function main (line 6) | fn main() { function not_main (line 19) | fn not_main() { function spawn_proc (line 24) | fn spawn_proc() -> Child { function spawn_proc_2 (line 28) | fn spawn_proc_2() -> Child { FILE: tests/ui/{literal_string_with_formatting_args}.rs function another_bad (line 43) | fn another_bad() { function main (line 48) | fn main() {} FILE: tests/versioncheck.rs function consistent_clippy_crate_versions (line 7) | fn consistent_clippy_crate_versions() { function check_that_clippy_has_the_same_major_version_as_rustc (line 39) | fn check_that_clippy_has_the_same_major_version_as_rustc() { function check_host_compiler (line 96) | fn check_host_compiler() { FILE: tests/workspace.rs function test_module_style_with_dep_in_subdir (line 8) | fn test_module_style_with_dep_in_subdir() { function test_no_deps_ignores_path_deps_in_workspaces (line 48) | fn test_no_deps_ignores_path_deps_in_workspaces() { FILE: tests/workspace_test/build.rs function main (line 3) | fn main() { FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/dep_no_mod/src/foo.rs type Thing (line 2) | pub struct Thing; FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/dep_no_mod/src/foo/hello.rs type Hello (line 1) | pub struct Hello; FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/dep_no_mod/src/lib.rs function foo (line 3) | pub fn foo() { FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/src/bad/mod.rs type Thing (line 1) | pub struct Thing; FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/src/main.rs function main (line 7) | fn main() { FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/src/more/foo.rs type Foo (line 1) | pub struct Foo; FILE: tests/workspace_test/module_style/pass_mod_with_dep_in_subdir/src/more/inner/mod.rs type Inner (line 1) | pub struct Inner; FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/dep_with_mod/src/lib.rs function foo (line 3) | pub fn foo() { FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/dep_with_mod/src/with_mod/inner/stuff.rs type Inner (line 3) | pub struct Inner; FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/dep_with_mod/src/with_mod/inner/stuff/most.rs type Snarks (line 1) | pub struct Snarks; FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/dep_with_mod/src/with_mod/mod.rs type Thing (line 3) | pub struct Thing; FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/src/good.rs type Thing (line 1) | pub struct Thing; FILE: tests/workspace_test/module_style/pass_no_mod_with_dep_in_subdir/src/main.rs function main (line 6) | fn main() { FILE: tests/workspace_test/path_dep/src/lib.rs function lint_me (line 4) | pub fn lint_me() { FILE: tests/workspace_test/src/main.rs function main (line 3) | fn main() {} FILE: util/gh-pages/script.js function matchesSearch (line 6) | function matchesSearch(lint, terms, searchStr) { function handleInputChanged (line 55) | function handleInputChanged(event) { function handleShortcut (line 62) | function handleShortcut(ev) { function resetCheckboxes (line 88) | function resetCheckboxes(filter, value) { function onEachLazy (line 95) | function onEachLazy(lazyArray, func) { function expandLint (line 102) | function expandLint(lintId) { function copyToClipboard (line 110) | function copyToClipboard(event) { function toggleExpansion (line 130) | function toggleExpansion(expand) { function setupDropdown (line 196) | function setupDropdown(elem) { function setURL (line 215) | function setURL() { function parseURL (line 259) | function parseURL() { function addResetListeners (line 290) | function addResetListeners(selector, value) { function addListeners (line 301) | function addListeners() { function highlightLazily (line 356) | function highlightLazily() { function findCheckboxes (line 375) | function findCheckboxes(filter) { FILE: util/gh-pages/theme.js function storeValue (line 3) | function storeValue(settingName, value) { function loadValue (line 9) | function loadValue(settingName) { function setTheme (line 13) | function setTheme(theme, store) { FILE: util/versions.py function key (line 8) | def key(v): function main (line 28) | def main():

(ptr: *const P) { FILE: tests/ui/transmuting_null.rs function one_liners (line 9) | fn one_liners() { constant ZPTR (line 19) | pub const ZPTR: *const usize = 0 as *const _; constant NOT_ZPTR (line 20) | pub const NOT_ZPTR: *const usize = 1 as *const _; function transmute_const (line 22) | fn transmute_const() { function transmute_const_int (line 33) | fn transmute_const_int() { function transumute_single_expr_blocks (line 40) | fn transumute_single_expr_blocks() { function transmute_pointer_creators (line 50) | fn transmute_pointer_creators() { function main (line 60) | fn main() {} FILE: tests/ui/trim_split_whitespace.rs type Custom (line 4) | struct Custom; method trim (line 6) | fn trim(self) -> Self { method split_whitespace (line 9) | fn split_whitespace(self) {} type DerefStr (line 12) | struct DerefStr(&'static str); type Target (line 14) | type Target = str; method deref (line 15) | fn deref(&self) -> &Self::Target { type DerefStrAndCustom (line 20) | struct DerefStrAndCustom(&'static str); type Target (line 22) | type Target = str; method deref (line 23) | fn deref(&self) -> &Self::Target { method trim (line 28) | fn trim(self) -> Self { method split_whitespace (line 31) | fn split_whitespace(self) {} type DerefStrAndCustomSplit (line 34) | struct DerefStrAndCustomSplit(&'static str); type Target (line 36) | type Target = str; method deref (line 37) | fn deref(&self) -> &Self::Target { method split_whitespace (line 43) | fn split_whitespace(self) {} type DerefStrAndCustomTrim (line 46) | struct DerefStrAndCustomTrim(&'static str); type Target (line 48) | type Target = str; method deref (line 49) | fn deref(&self) -> &Self::Target { method trim (line 54) | fn trim(self) -> Self { function main (line 59) | fn main() { FILE: tests/ui/trivially_copy_pass_by_ref.rs type Foo (line 14) | struct Foo(u32); method good (line 60) | fn good(self, a: &mut u32, b: u32, c: &Bar) {} method good2 (line 62) | fn good2(&mut self) {} method bad (line 64) | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {} method bad2 (line 70) | fn bad2(x: &u32, y: &Foo, z: &Baz) {} method bad_issue7518 (line 75) | fn bad_issue7518(self, other: &Self) {} method as_ref (line 80) | fn as_ref(&self) -> &u32 { type Bar (line 17) | struct Bar([u8; 24]); method good (line 86) | fn good(&self, a: &mut u32, b: u32, c: &Bar) {} method bad2 (line 88) | fn bad2(x: &u32, y: &Foo, z: &Baz) {} type Color (line 20) | pub struct Color { type FooRef (line 27) | struct FooRef<'a> { type Baz (line 31) | type Baz = u32; function good (line 33) | fn good(a: &mut u32, b: u32, c: &Bar) {} function good_return_implicit_lt_ref (line 35) | fn good_return_implicit_lt_ref(foo: &Foo) -> &u32 { function good_return_explicit_lt_ref (line 40) | fn good_return_explicit_lt_ref<'a>(foo: &'a Foo) -> &'a u32 { function good_return_implicit_lt_struct (line 45) | fn good_return_implicit_lt_struct(foo: &Foo) -> FooRef { function good_return_explicit_lt_struct (line 50) | fn good_return_explicit_lt_struct<'a>(foo: &'a Foo) -> FooRef<'a> { function bad (line 54) | fn bad(x: &u32, y: &Foo, z: &Baz) {} type MyTrait (line 94) | trait MyTrait { method trait_method (line 95) | fn trait_method(&self, foo: &Foo); type MyTrait2 (line 99) | pub trait MyTrait2 { method trait_method2 (line 100) | fn trait_method2(&self, color: &Color); type MyTrait3 (line 103) | trait MyTrait3 { method trait_method (line 105) | fn trait_method(&self, foo: &Foo); method trait_method (line 110) | fn trait_method(&self, foo: &Foo) { type A (line 116) | pub trait A { method a (line 118) | fn a(b: &u16) {} function c (line 122) | pub fn c(d: &u16) {} function foo_always (line 128) | fn foo_always(x: &i32) { function foo_never (line 133) | fn foo_never(x: &i32) { function foo (line 139) | fn foo(x: &i32) { function ref_to_opt_ref_implicit (line 145) | fn ref_to_opt_ref_implicit(x: &u32) -> Option<&u32> { function ref_to_opt_ref_explicit (line 149) | fn ref_to_opt_ref_explicit<'a>(x: &'a u32) -> Option<&'a u32> { function with_constraint (line 153) | fn with_constraint<'a, 'b: 'a>(x: &'b u32, y: &'a u32) -> &'a u32 { function async_implicit (line 157) | async fn async_implicit(x: &u32) -> &u32 { function async_explicit (line 161) | async fn async_explicit<'a>(x: &'a u32) -> &'a u32 { function unrelated_lifetimes (line 165) | fn unrelated_lifetimes<'a, 'b>(_x: &'a u32, y: &'b u32) -> &'b u32 { function return_ptr (line 170) | fn return_ptr(x: &u32) -> *const u32 { function return_field_ptr (line 174) | fn return_field_ptr(x: &(u32, u32)) -> *const u32 { function return_field_ptr_addr_of (line 178) | fn return_field_ptr_addr_of(x: &(u32, u32)) -> *const u32 { FILE: tests/ui/try_err.rs function basic_test (line 18) | pub fn basic_test() -> Result { function into_test (line 29) | pub fn into_test() -> Result { function negative_test (line 40) | pub fn negative_test() -> Result { function closure_matches_test (line 47) | pub fn closure_matches_test() -> Result { function closure_into_test (line 67) | pub fn closure_into_test() -> Result { function nested_error (line 85) | fn nested_error() -> Result { function calling_macro (line 90) | fn calling_macro() -> Result { function main (line 119) | fn main() {} function macro_inside (line 122) | pub fn macro_inside(fail: bool) -> Result { function poll_write (line 130) | pub fn poll_write(n: usize) -> Poll> { function poll_next (line 142) | pub fn poll_next(ready: bool) -> Poll>> { function try_return (line 152) | pub fn try_return(x: bool) -> Result { function try_block (line 161) | pub fn try_block() -> Result<(), i32> { FILE: tests/ui/tuple_array_conversions.rs function main (line 8) | fn main() { function msrv_too_low (line 101) | fn msrv_too_low() { function msrv_juust_right (line 110) | fn msrv_juust_right() { function issue16192 (line 120) | fn issue16192() { FILE: tests/ui/ty_fn_sig.rs function retry (line 4) | pub fn retry(f: F) { function main (line 10) | fn main() { FILE: tests/ui/type_complexity.rs type Alias (line 4) | type Alias = Vec>>; constant CST (line 6) | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); type S (line 12) | struct S { constant A (line 28) | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0)))); method impl_method (line 31) | fn impl_method(&self, p: Vec>>) {} type Ts (line 17) | struct Ts(Vec>>); type E (line 20) | enum E { type T (line 35) | trait T { constant A (line 36) | const A: Vec>>; type B (line 39) | type B = Vec>>; method method (line 42) | fn method(&self, p: Vec>>); method def_method (line 45) | fn def_method(&self, p: Vec>>) {} constant A (line 51) | const A: Vec>> = vec![]; type B (line 53) | type B = Vec>>; method method (line 55) | fn method(&self, p: Vec>>) {} function test1 (line 58) | fn test1() -> Vec>> { function test2 (line 64) | fn test2(_x: Vec>>) {} function test3 (line 67) | fn test3() { type D (line 73) | struct D { function main (line 89) | fn main() {} FILE: tests/ui/type_id_on_box.rs type SomeBox (line 6) | type SomeBox = Box; type BadBox (line 8) | struct BadBox(Box); type Target (line 11) | type Target = Box; method deref (line 13) | fn deref(&self) -> &Self::Target { function existential (line 18) | fn existential() -> impl Any { type AnySubTrait (line 22) | trait AnySubTrait: Any {} function main (line 25) | fn main() { FILE: tests/ui/type_id_on_box_unfixable.rs type AnySubTrait (line 6) | trait AnySubTrait: Any {} type AnySubSubTrait (line 10) | trait AnySubSubTrait: AnySubTrait {} type NormalTrait (line 14) | trait NormalTrait function main (line 21) | fn main() { FILE: tests/ui/type_repetition_in_bounds.rs function foo (line 11) | pub fn foo(_t: T) function bar (line 20) | pub fn bar(_t: T, _u: U) type LintBounds (line 29) | trait LintBounds type LotsOfBounds (line 39) | trait LotsOfBounds type Foo (line 49) | pub struct Foo(A); type Bar (line 50) | pub struct Bar { type Foo (line 68) | trait Foo {} type Bar (line 72) | struct Bar type OpaqueParams (line 91) | struct OpaqueParams(std::marker::PhantomData); type Foo (line 95) | struct Foo function f (line 105) | pub fn f() function g (line 111) | pub fn g() function impl_trait (line 119) | fn impl_trait(_: impl AsRef, _: impl AsRef) {} type Trait (line 123) | pub trait Trait {} function f (line 125) | pub fn f(arg: usize) type Trait (line 135) | pub trait Trait {} function f (line 137) | pub fn f(arg: usize) type Issue14744 (line 146) | struct Issue14744<'a, K: 'a> type ComplexType (line 154) | struct ComplexType function main (line 163) | fn main() {} FILE: tests/ui/unbuffered_bytes.rs function main (line 7) | fn main() { function use_read (line 37) | fn use_read(r: R) { FILE: tests/ui/unchecked_time_subtraction.rs function main (line 5) | fn main() { function issue16230 (line 38) | fn issue16230() { function issue16234 (line 48) | fn issue16234() { function issue16499 (line 64) | fn issue16499() { FILE: tests/ui/unchecked_time_subtraction_unfixable.rs function main (line 6) | fn main() { function issue16499 (line 24) | fn issue16499() { FILE: tests/ui/unconditional_recursion.rs type Foo (line 9) | enum Foo { method as_str (line 356) | fn as_str(&self) -> &str { method eq (line 371) | fn eq(&self, other: &T) -> bool { method ne (line 15) | fn ne(&self, other: &Self) -> bool { method eq (line 20) | fn eq(&self, other: &Self) -> bool { type Foo2 (line 27) | enum Foo2 { method ne (line 33) | fn ne(&self, other: &Self) -> bool { method eq (line 37) | fn eq(&self, other: &Self) -> bool { type Foo3 (line 43) | enum Foo3 { method ne (line 49) | fn ne(&self, other: &Self) -> bool { method eq (line 54) | fn eq(&self, other: &Self) -> bool { type Foo4 (line 62) | enum Foo4 { method ne (line 68) | fn ne(&self, other: &Self) -> bool { method eq (line 71) | fn eq(&self, other: &Self) -> bool { type Foo5 (line 76) | enum Foo5 { method a (line 82) | fn a(&self) -> bool { method ne (line 88) | fn ne(&self, other: &Self) -> bool { method eq (line 91) | fn eq(&self, other: &Self) -> bool { type S (line 96) | struct S; method ne (line 100) | fn ne(&self, other: &Self) -> bool { method eq (line 105) | fn eq(&self, other: &Self) -> bool { type S2 (line 112) | struct S2; method ne (line 116) | fn ne(&self, other: &Self) -> bool { method eq (line 122) | fn eq(&self, other: &Self) -> bool { type S3 (line 130) | struct S3; method ne (line 133) | fn ne(&self, _other: &Self) -> bool { method eq (line 139) | fn eq(&self, _other: &Self) -> bool { type E (line 149) | enum E { type Bar (line 155) | struct Bar(T); type S4 (line 157) | struct S4; method eq (line 160) | fn eq(&self, other: &Self) -> bool { type S5 (line 178) | struct S5; type S6 (line 182) | struct S6 { method eq (line 187) | fn eq(&self, other: &Self) -> bool { type S7 (line 194) | struct S7<'a> { method eq (line 199) | fn eq(&self, other: &Self) -> bool { type S8 (line 208) | struct S8 { method eq (line 214) | fn eq(&self, other: &Self) -> bool { type S9 (line 229) | struct S9; method to_string (line 233) | fn to_string(&self) -> String { type S10 (line 239) | struct S10; method to_string (line 243) | fn to_string(&self) -> String { type S11 (line 250) | struct S11; method to_string (line 254) | fn to_string(&self) -> String { type S12 (line 260) | struct S12; method default (line 263) | fn default() -> Self { method new (line 269) | fn new() -> Self { method bar (line 275) | fn bar() -> Self { type S13 (line 282) | struct S13 { method new (line 287) | fn new() -> Self { type S14 (line 293) | struct S14 { method eq (line 298) | fn eq(&self, other: &Self) -> bool { type S15 (line 304) | struct S15<'a> { method eq (line 309) | fn eq(&self, other: &Self) -> bool { type MyBox (line 319) | struct MyBox(T); type Target (line 322) | type Target = T; function deref (line 323) | fn deref(&self) -> &T { method eq (line 329) | fn eq(&self, other: &Self) -> bool { type HeaderName (line 339) | struct HeaderName; method eq (line 341) | fn eq(&self, other: &&'a HeaderName) -> bool { function eq (line 347) | fn eq(&self, other: &HeaderName) -> bool { type Foo (line 353) | struct Foo; method as_str (line 356) | fn as_str(&self) -> &str { method eq (line 371) | fn eq(&self, other: &T) -> bool { method eq (line 362) | fn eq(&self, other: &Self) -> bool { type BadFromTy1 (line 378) | struct BadFromTy1<'a>(&'a ()); type BadIntoTy1 (line 379) | struct BadIntoTy1<'b>(&'b ()); function from (line 381) | fn from(f: BadFromTy1<'a>) -> Self { type BadFromTy2 (line 388) | struct BadFromTy2<'a>(&'a ()); type BadIntoTy2 (line 389) | struct BadIntoTy2<'b>(&'b ()); function from (line 391) | fn from(f: BadFromTy2<'a>) -> Self { type BadFromTy3 (line 398) | struct BadFromTy3; function from (line 400) | fn from(f: BadFromTy3) -> Self { type BadFromTy4 (line 406) | struct BadFromTy4; function from (line 408) | fn from(f: BadFromTy4) -> Self { function from (line 418) | fn from(f: &BadFromTy4) -> Self { function main (line 423) | fn main() {} FILE: tests/ui/unicode.rs function zero (line 4) | fn zero() { function canon (line 17) | fn canon() { function uni (line 26) | fn uni() { function single_quote (line 33) | fn single_quote() { function issue_7739 (line 41) | pub fn issue_7739() { function allowed (line 51) | fn allowed() { function denied (line 56) | fn denied() { function main (line 63) | fn main() {} FILE: tests/ui/uninhabited_references.rs function ret_uninh_ref (line 5) | fn ret_uninh_ref() -> &'static std::convert::Infallible { function main (line 23) | fn main() { FILE: tests/ui/uninit.rs function main (line 11) | fn main() { FILE: tests/ui/uninit_vec.rs type MyVec (line 7) | struct MyVec { function requires_paramenv (line 17) | unsafe fn requires_paramenv() { function main (line 31) | fn main() { FILE: tests/ui/uninlined_format_args.rs function tester (line 33) | fn tester(fn_arg: i32) { function main (line 246) | fn main() {} function _under_msrv (line 249) | fn _under_msrv() { function _meets_msrv (line 255) | fn _meets_msrv() { function _do_not_fire (line 261) | fn _do_not_fire() { function tester2 (line 331) | fn tester2() { function user_format (line 356) | fn user_format() { function nested_format_args_user (line 380) | fn nested_format_args_user() { FILE: tests/ui/uninlined_format_args_panic.rs function main (line 9) | fn main() { FILE: tests/ui/unit_arg.rs function foo (line 22) | fn foo(t: T) { function foo3 (line 26) | fn foo3(t1: T1, t2: T2, t3: T3) { type Bar (line 30) | struct Bar; method bar (line 33) | fn bar(&self, t: T) { function baz (line 38) | fn baz(t: T) { type Tr (line 42) | trait Tr { method do_it (line 44) | fn do_it(args: Self::Args); type Args (line 49) | type Args = (); method do_it (line 50) | fn do_it(_: Self::Args) {} type Args (line 55) | type Args = ::Args; method do_it (line 57) | fn do_it(args: Self::Args) { type A (line 47) | struct A; type B (line 53) | struct B; function bad (line 62) | fn bad() { function ok (line 106) | fn ok() { function question_mark (line 121) | fn question_mark() -> Result<(), ()> { function unit_fn (line 129) | fn unit_fn() -> Result<(), i32> { function fallible (line 133) | fn fallible() -> Result<(), i32> { function returning_expr (line 139) | fn returning_expr() -> Option<()> { function taking_multiple_units (line 144) | fn taking_multiple_units(a: (), b: ()) {} function proc_macro (line 146) | fn proc_macro() { function main (line 150) | fn main() {} function issue14857 (line 152) | fn issue14857() { FILE: tests/ui/unit_arg_fixable.rs function foo (line 7) | fn foo(t: T) { function foo3 (line 11) | fn foo3(t1: T1, t2: T2, t3: T3) { function bad (line 15) | fn bad() { function taking_two_units (line 26) | fn taking_two_units(a: (), b: ()) {} function taking_three_units (line 27) | fn taking_three_units(a: (), b: (), c: ()) {} function main (line 29) | fn main() {} function issue14857 (line 31) | fn issue14857() { FILE: tests/ui/unit_cmp.rs type ContainsUnit (line 10) | pub struct ContainsUnit(()); function main (line 12) | fn main() { function issue15559 (line 72) | fn issue15559() { FILE: tests/ui/unit_hash.rs type Foo (line 7) | enum Foo { function do_nothing (line 12) | fn do_nothing() {} function main (line 14) | fn main() { FILE: tests/ui/unit_return_expecting_ord.rs type Struct (line 6) | struct Struct { function double (line 10) | fn double(i: isize) -> isize { function unit (line 14) | fn unit(_i: isize) {} function main (line 16) | fn main() { FILE: tests/ui/unknown_attribute.rs function main (line 6) | fn main() {} FILE: tests/ui/unknown_clippy_lints.rs function main (line 27) | fn main() {} FILE: tests/ui/unnecessary_box_returns.rs type Bar (line 3) | trait Bar { method baz (line 5) | fn baz(&self) -> Box; method baz (line 13) | fn baz(&self) -> Box { type Foo (line 9) | pub struct Foo {} method baz (line 19) | fn baz(&self) -> Box { function bxed_usize (line 28) | fn bxed_usize() -> Box { function _bxed_foo (line 35) | fn _bxed_foo() -> Box { function bxed_foo (line 42) | pub fn bxed_foo() -> Box { function bxed_str (line 47) | fn bxed_str() -> Box { function boxed_usize (line 52) | fn boxed_usize() -> Box { function default (line 57) | fn default() {} function string (line 60) | fn string() -> String { type Huge (line 64) | struct Huge([u8; 500]); type HasHuge (line 65) | struct HasHuge(Box); method into_huge (line 69) | fn into_huge(self) -> Box { function main (line 74) | fn main() { FILE: tests/ui/unnecessary_cast.rs type PtrConstU8 (line 15) | type PtrConstU8 = *const u8; type PtrMutU8 (line 16) | type PtrMutU8 = *mut u8; function owo (line 18) | fn owo(ptr: *const T) -> *const T { function uwu (line 23) | fn uwu(ptr: *const T) -> *const U { type pid_t (line 28) | type pid_t = i32; function getpid (line 29) | pub unsafe fn getpid() -> pid_t { function getpid_SAFE_TRUTH (line 33) | pub fn getpid_SAFE_TRUTH(t: &T) -> pid_t function aaa (line 42) | fn aaa() -> ::std::primitive::u32 { function bbb (line 48) | fn bbb() -> UnsignedThirtyTwoBitInteger { function main (line 53) | fn main() { type I32Alias (line 167) | type I32Alias = i32; function main (line 172) | fn main() { type I32Alias (line 232) | type I32Alias = i32; function issue_9380 (line 234) | fn issue_9380() { function issue_9563 (line 245) | fn issue_9563() { function issue_9562_non_literal (line 254) | fn issue_9562_non_literal() { function issue_9603 (line 263) | fn issue_9603() { function issue_11968 (line 269) | fn issue_11968(x: &usize) -> usize { function issue_14640 (line 275) | fn issue_14640() { FILE: tests/ui/unnecessary_cast_unfixable.rs function main (line 3) | fn main() { type Vtbl (line 10) | struct Vtbl { type TearOff (line 14) | struct TearOff { method query (line 19) | unsafe fn query(&self) { FILE: tests/ui/unnecessary_clippy_cfg.rs type Bar (line 23) | pub struct Bar; function main (line 25) | fn main() {} FILE: tests/ui/unnecessary_fallible_conversions.rs function main (line 3) | fn main() { FILE: tests/ui/unnecessary_fallible_conversions_unfixable.rs type Foo (line 7) | struct Foo; type Error (line 9) | type Error = (); method try_from (line 10) | fn try_from(_: i32) -> Result { method from (line 15) | fn from(_: i64) -> Self { function main (line 20) | fn main() { FILE: tests/ui/unnecessary_filter_map.rs function main (line 3) | fn main() { function filter_map_none_changes_item_type (line 32) | fn filter_map_none_changes_item_type() -> impl Iterator { type Severity (line 38) | enum Severity { type ServerError (line 43) | struct ServerError; method severity (line 46) | fn severity(&self) -> Severity { type S (line 51) | struct S { method foo (line 56) | fn foo(&mut self, server_errors: Vec) { method foo (line 101) | fn foo(&mut self, node: Node, now: u8, group_id: u8) { method consume (line 146) | pub fn consume(self) { type PendingRequest (line 74) | struct PendingRequest { type Value (line 81) | enum Value { type Node (line 85) | struct Node; method send_response (line 88) | fn send_response(&self, _reply_to: u8, _token: u8, _value: Value) -> &... method on_error_warn (line 91) | fn on_error_warn(&self) -> &Self { type S (line 96) | struct S { method foo (line 56) | fn foo(&mut self, server_errors: Vec) { method foo (line 101) | fn foo(&mut self, node: Node, now: u8, group_id: u8) { method consume (line 146) | pub fn consume(self) { type Signature (line 129) | struct Signature(u8); function foo (line 131) | fn foo(sig_packets: impl Iterator>) -> impl... type S (line 143) | pub struct S(u8); method foo (line 56) | fn foo(&mut self, server_errors: Vec) { method foo (line 101) | fn foo(&mut self, node: Node, now: u8, group_id: u8) { method consume (line 146) | pub fn consume(self) { function filter_owned (line 151) | pub fn filter_owned() -> impl Iterator { function issue11260 (line 163) | fn issue11260() { FILE: tests/ui/unnecessary_find_map.rs function main (line 1) | fn main() { function find_map_none_changes_item_type (line 25) | fn find_map_none_changes_item_type() -> Option { function issue11260 (line 29) | fn issue11260() { FILE: tests/ui/unnecessary_first_then_check.rs function main (line 4) | fn main() { FILE: tests/ui/unnecessary_fold.rs function is_any (line 3) | fn is_any(acc: bool, x: usize) -> bool { function unnecessary_fold (line 8) | fn unnecessary_fold() { function unnecessary_fold_span_for_multi_element_chain (line 41) | fn unnecessary_fold_span_for_multi_element_chain() { function unnecessary_fold_should_ignore (line 47) | fn unnecessary_fold_should_ignore() { function unnecessary_fold_over_multiple_lines (line 96) | fn unnecessary_fold_over_multiple_lines() { function issue10000 (line 104) | fn issue10000() { function issue16581 (line 171) | fn issue16581() { function wrongly_unmangled_macros (line 191) | fn wrongly_unmangled_macros() { function main (line 202) | fn main() {} FILE: tests/ui/unnecessary_get_then_check.rs function main (line 5) | fn main() { FILE: tests/ui/unnecessary_iter_cloned.rs type FileType (line 6) | enum FileType { function main (line 12) | fn main() { function check_files (line 30) | fn check_files(files: &[(FileType, &std::path::Path)]) -> bool { function check_files_vec (line 46) | fn check_files_vec(files: Vec<(FileType, &std::path::Path)>) -> bool { function check_files_ref (line 62) | fn check_files_ref(files: &[(FileType, &std::path::Path)]) -> bool { function check_files_mut (line 78) | fn check_files_mut(files: &[(FileType, &std::path::Path)]) -> bool { function check_files_ref_mut (line 94) | fn check_files_ref_mut(files: &[(FileType, &std::path::Path)]) -> bool { function check_files_self_and_arg (line 110) | fn check_files_self_and_arg(files: &[(FileType, &std::path::Path)]) -> b... function check_files_mut_path_buf (line 126) | fn check_files_mut_path_buf(files: &[(FileType, std::path::PathBuf)]) ->... function get_file_path (line 142) | fn get_file_path(_file_type: &FileType) -> Result); type SomeStruct (line 20) | struct SomeStruct { method return_some_field (line 25) | fn return_some_field(&self) -> usize { function some_call (line 30) | fn some_call() -> T { type Issue9427 (line 34) | struct Issue9427(i32); method drop (line 37) | fn drop(&mut self) { type Issue9427FollowUp (line 42) | struct Issue9427FollowUp; method drop (line 45) | fn drop(&mut self) { type Issue9427Followup2 (line 50) | struct Issue9427Followup2 { method from_owned (line 54) | fn from_owned(ptr: *const ()) -> Option { method drop (line 59) | fn drop(&mut self) {} type Issue10437 (line 62) | struct Issue10437; type Target (line 64) | type Target = u32; method deref (line 65) | fn deref(&self) -> &Self::Target { function main (line 71) | fn main() { function issue9485 (line 244) | fn issue9485() { function issue9422 (line 249) | fn issue9422(x: usize) -> Option { function panicky_arithmetic_ops (line 254) | fn panicky_arithmetic_ops(x: usize, y: isize) { function issue14578 (line 325) | fn issue14578() { FILE: tests/ui/unnecessary_lazy_eval_unfixable.rs type Deep (line 4) | struct Deep(Option); type SomeStruct (line 7) | struct SomeStruct { function main (line 11) | fn main() { function issue11672 (line 30) | fn issue11672() { FILE: tests/ui/unnecessary_literal_bound.rs type Struct (line 3) | struct Struct<'a> { function returns_lit (line 9) | fn returns_lit(&self) -> &str { function returns_non_lit (line 15) | fn returns_non_lit(&self) -> &str { function conditionally_returns_lit (line 20) | fn conditionally_returns_lit(&self, cond: bool) -> &str { function conditionally_returns_non_lit (line 25) | fn conditionally_returns_non_lit(&self, cond: bool) -> &str { function contionally_returns_literals_explicit (line 30) | fn contionally_returns_literals_explicit(&self, cond: bool) -> &str { function conditionally_returns_non_lit_explicit (line 40) | fn conditionally_returns_non_lit_explicit(&self, cond: bool) -> &str { type ReturnsStr (line 49) | trait ReturnsStr { method trait_method (line 50) | fn trait_method(&self) -> &str; method trait_method (line 55) | fn trait_method(&self) -> &str { method trait_method (line 63) | fn trait_method(&self) -> &str { function main (line 68) | fn main() {} FILE: tests/ui/unnecessary_literal_unwrap.rs function unwrap_option_some (line 10) | fn unwrap_option_some() { function unwrap_option_none (line 23) | fn unwrap_option_none() { function unwrap_result_ok (line 55) | fn unwrap_result_ok() { function unwrap_result_err (line 75) | fn unwrap_result_err() { function unwrap_methods_option (line 95) | fn unwrap_methods_option() { function unwrap_methods_result (line 111) | fn unwrap_methods_result() { function unwrap_from_binding (line 127) | fn unwrap_from_binding() { function unwrap_unchecked (line 137) | fn unwrap_unchecked() { function main (line 155) | fn main() {} FILE: tests/ui/unnecessary_literal_unwrap_unfixable.rs function unwrap_option_some (line 5) | fn unwrap_option_some() { function unwrap_option_some_context (line 14) | fn unwrap_option_some_context() { function unwrap_option_none (line 29) | fn unwrap_option_none() { function unwrap_result_ok (line 44) | fn unwrap_result_ok() { function unwrap_result_ok_context (line 59) | fn unwrap_result_ok_context() { function unwrap_result_err (line 86) | fn unwrap_result_err() { function unwrap_result_err_context (line 101) | fn unwrap_result_err_context() { function unwrap_methods_option (line 128) | fn unwrap_methods_option() { function unwrap_methods_option_context (line 140) | fn unwrap_methods_option_context() { function unwrap_methods_result (line 161) | fn unwrap_methods_result() { function unwrap_methods_result_context (line 173) | fn unwrap_methods_result_context() { function main (line 194) | fn main() {} FILE: tests/ui/unnecessary_map_on_constructor.rs function fun (line 6) | fn fun(t: i32) -> i32 { function notfun (line 10) | fn notfun(e: SimpleError) -> SimpleError { type SimpleError (line 20) | struct SimpleError {} type SimpleResult (line 22) | type SimpleResult = std::result::Result; function main (line 24) | fn main() { FILE: tests/ui/unnecessary_map_or.rs function main (line 11) | fn main() { function msrv_1_69 (line 99) | fn msrv_1_69() { function msrv_1_81 (line 105) | fn msrv_1_81() { function with_refs (line 110) | fn with_refs(o: &mut Option) -> bool { type S (line 116) | struct S; type Target (line 119) | type Target = Option; method deref (line 120) | fn deref(&self) -> &Self::Target { function with_deref (line 125) | fn with_deref(o: &S) -> bool { function issue14201 (line 130) | fn issue14201(a: Option, b: Option, s: &String) -> bool { function issue14714 (line 138) | fn issue14714() { function issue15180 (line 158) | fn issue15180() { FILE: tests/ui/unnecessary_min_or_max.rs constant X (line 9) | const X: i32 = 1; function main (line 11) | fn main() { function random_u32 (line 107) | fn random_u32() -> u32 { type Issue13191 (line 112) | struct Issue13191 { method new (line 118) | fn new() -> Self { method min (line 122) | fn min(mut self, value: u16) -> Self { method max (line 127) | fn max(mut self, value: u16) -> Self { function issue_13191 (line 133) | fn issue_13191() { FILE: tests/ui/unnecessary_mut_passed.rs function takes_ref (line 3) | fn takes_ref(a: &i32) {} function takes_refmut (line 4) | fn takes_refmut(a: &mut i32) {} function takes_ref_ref (line 5) | fn takes_ref_ref(a: &&i32) {} function takes_refmut_ref (line 6) | fn takes_refmut_ref(a: &mut &i32) {} function takes_ref_refmut (line 7) | fn takes_ref_refmut(a: &&mut i32) {} function takes_refmut_refmut (line 8) | fn takes_refmut_refmut(a: &mut &mut i32) {} function takes_raw_const (line 9) | fn takes_raw_const(a: *const i32) {} function takes_raw_mut (line 10) | fn takes_raw_mut(a: *mut i32) {} function f (line 29) | fn f() { type MyStruct (line 40) | struct MyStruct; method takes_nothing (line 43) | fn takes_nothing(&self) {} method takes_ref (line 44) | fn takes_ref(&self, a: &i32) {} method takes_refmut (line 45) | fn takes_refmut(&self, a: &mut i32) {} method takes_ref_ref (line 46) | fn takes_ref_ref(&self, a: &&i32) {} method takes_refmut_ref (line 47) | fn takes_refmut_ref(&self, a: &mut &i32) {} method takes_ref_refmut (line 48) | fn takes_ref_refmut(&self, a: &&mut i32) {} method takes_refmut_refmut (line 49) | fn takes_refmut_refmut(&self, a: &mut &mut i32) {} method takes_raw_const (line 50) | fn takes_raw_const(&self, a: *const i32) {} method takes_raw_mut (line 51) | fn takes_raw_mut(&self, a: *mut i32) {} function main (line 55) | fn main() { function raw_ptrs (line 150) | fn raw_ptrs(my_struct: MyStruct) { function issue15722 (line 174) | fn issue15722(mut my_struct: MyStruct) { FILE: tests/ui/unnecessary_operation.rs type Tuple (line 14) | struct Tuple(i32); type Struct (line 15) | struct Struct { type Enum (line 18) | enum Enum { type DropStruct (line 22) | struct DropStruct { method drop (line 26) | fn drop(&mut self) {} type DropTuple (line 28) | struct DropTuple(i32); method drop (line 30) | fn drop(&mut self) {} type DropEnum (line 32) | enum DropEnum { method drop (line 37) | fn drop(&mut self) {} type FooString (line 39) | struct FooString { function get_number (line 43) | fn get_number() -> i32 { function get_usize (line 47) | const fn get_usize() -> usize { function get_struct (line 50) | fn get_struct() -> Struct { function get_drop_struct (line 53) | fn get_drop_struct() -> DropStruct { type Cout (line 57) | struct Cout; type Output (line 63) | type Output = Self; method shl (line 64) | fn shl(self, rhs: T) -> Self::Output { function main (line 70) | fn main() { constant _ (line 145) | const _: () = { function foo (line 149) | const fn foo() { function issue15173 (line 154) | fn issue15173() { function issue15173_original (line 160) | fn issue15173_original(handler: impl FnOnce() -> MsU + Clone + 'sta... FILE: tests/ui/unnecessary_option_map_or_else.rs function double_it (line 10) | const fn double_it(x: i32) -> i32 { function main (line 14) | fn main() { FILE: tests/ui/unnecessary_os_str_debug_formatting.rs function main (line 6) | fn main() { function msrv_1_86 (line 26) | fn msrv_1_86() { function msrv_1_87 (line 32) | fn msrv_1_87() { FILE: tests/ui/unnecessary_owned_empty_strings.rs function ref_str_argument (line 3) | fn ref_str_argument(_value: &str) {} function ref_string_argument (line 6) | fn ref_string_argument(_value: &String) {} function main (line 8) | fn main() { FILE: tests/ui/unnecessary_path_debug_formatting.rs type DerefPath (line 8) | struct DerefPath<'a> { type Target (line 13) | type Target = Path; method deref (line 14) | fn deref(&self) -> &Self::Target { function main (line 19) | fn main() { function issue_14345 (line 47) | fn issue_14345() { FILE: tests/ui/unnecessary_result_map_or_else.rs function main (line 9) | fn main() { FILE: tests/ui/unnecessary_safety_comment.rs constant CONST (line 6) | const CONST: u32 = 0; type Struct (line 14) | struct Struct; type Enum (line 18) | enum Enum {} type T (line 27) | trait T {} function unnecessary_on_stmt_and_expr (line 50) | fn unnecessary_on_stmt_and_expr() -> u32 { function bar (line 65) | unsafe fn bar() -> i32 { function main (line 76) | fn main() { constant X (line 82) | pub const X: u8 = 0; function point_to_five (line 96) | pub fn point_to_five() -> *const u8 { function main (line 102) | fn main() {} FILE: tests/ui/unnecessary_self_imports.rs function main (line 11) | fn main() {} FILE: tests/ui/unnecessary_semicolon.rs function no_lint (line 9) | fn no_lint(mut x: u32) -> Option { function main (line 25) | fn main() { function borrow_issue (line 40) | fn borrow_issue() { function no_borrow_issue (line 51) | fn no_borrow_issue(a: u32, b: u32) { function issue14100 (line 61) | fn issue14100() -> bool { function issue15426 (line 67) | fn issue15426(x: u32) { FILE: tests/ui/unnecessary_semicolon_feature_stmt_expr_attributes.rs function main (line 4) | fn main() { FILE: tests/ui/unnecessary_sort_by.rs function unnecessary_sort_by (line 5) | fn unnecessary_sort_by() { type Test (line 51) | struct Test(usize); method name (line 57) | fn name(&self) -> &usize { method wrapped (line 61) | fn wrapped(&self) -> Wrapper<'_> { method name (line 88) | fn name(&self) -> String { type Wrapper (line 54) | struct Wrapper<'a>(&'a usize); function test (line 66) | pub fn test() { type Test (line 84) | struct Test(String); method name (line 57) | fn name(&self) -> &usize { method wrapped (line 61) | fn wrapped(&self) -> Wrapper<'_> { method name (line 88) | fn name(&self) -> String { function test (line 93) | pub fn test() { function main (line 109) | fn main() {} function issue16405 (line 111) | fn issue16405() { function issue16348 (line 141) | fn issue16348() { FILE: tests/ui/unnecessary_sort_by_no_core.rs function issue_11524 (line 11) | fn issue_11524() -> Vec { function issue_11524_2 (line 20) | fn issue_11524_2() -> Vec { FILE: tests/ui/unnecessary_sort_by_no_std.rs function issue_11524 (line 6) | fn issue_11524() -> Vec { function issue_11524_2 (line 15) | fn issue_11524_2() -> Vec { FILE: tests/ui/unnecessary_struct_initialization.rs type S (line 4) | struct S { type T (line 9) | struct T { type U (line 13) | struct U { method clone (line 18) | fn clone(&self) -> Self { type V (line 25) | struct V { type W (line 29) | struct W { method clone (line 35) | fn clone(&self) -> Self { function main (line 42) | fn main() { function references (line 117) | fn references() { function shorthand (line 145) | fn shorthand() { FILE: tests/ui/unnecessary_to_owned.rs type X (line 17) | struct X(String); method as_ref (line 27) | fn as_ref(&self) -> &str { method join (line 40) | fn join(&self, other: impl AsRef) -> Self { type Target (line 20) | type Target = [u8]; method deref (line 21) | fn deref(&self) -> &[u8] { method to_string (line 34) | fn to_string(&self) -> String { type FileType (line 49) | enum FileType { function main (line 55) | fn main() { function require_c_str (line 252) | fn require_c_str(_: &CStr) {} function require_os_str (line 253) | fn require_os_str(_: &OsStr) {} function require_path (line 254) | fn require_path(_: &std::path::Path) {} function require_str (line 255) | fn require_str(_: &str) {} function require_slice (line 256) | fn require_slice(_: &[T]) {} function require_x (line 257) | fn require_x(_: &X) {} function require_deref_c_str (line 259) | fn require_deref_c_str>(_: T) {} function require_deref_os_str (line 260) | fn require_deref_os_str>(_: T) {} function require_deref_path (line 261) | fn require_deref_path>(_: T) {} function require_deref_str (line 262) | fn require_deref_str>(_: T) {} function require_deref_slice (line 263) | fn require_deref_slice>(_: U) {} function require_impl_deref_c_str (line 265) | fn require_impl_deref_c_str(_: impl Deref) {} function require_impl_deref_os_str (line 266) | fn require_impl_deref_os_str(_: impl Deref) {} function require_impl_deref_path (line 267) | fn require_impl_deref_path(_: impl Deref) {} function require_impl_deref_str (line 268) | fn require_impl_deref_str(_: impl Deref) {} function require_impl_deref_slice (line 269) | fn require_impl_deref_slice(_: impl Deref) {} function require_deref_str_slice (line 271) | fn require_deref_str_slice, U, V: Deref, V: Deref>(_: T) {} function require_as_ref_os_str (line 275) | fn require_as_ref_os_str>(_: T) {} function require_as_ref_path (line 276) | fn require_as_ref_path>(_: T) {} function require_as_ref_str (line 277) | fn require_as_ref_str>(_: T) {} function require_as_ref_slice (line 278) | fn require_as_ref_slice>(_: U) {} function require_impl_as_ref_c_str (line 280) | fn require_impl_as_ref_c_str(_: impl AsRef) {} function require_impl_as_ref_os_str (line 281) | fn require_impl_as_ref_os_str(_: impl AsRef) {} function require_impl_as_ref_path (line 282) | fn require_impl_as_ref_path(_: impl AsRef) {} function require_impl_as_ref_str (line 283) | fn require_impl_as_ref_str(_: impl AsRef) {} function require_impl_as_ref_slice (line 284) | fn require_impl_as_ref_slice(_: impl AsRef<[T]>) {} function require_as_ref_str_slice (line 286) | fn require_as_ref_str_slice, U, V: AsRef<[U]>>(_: T, _: V) {} function require_as_ref_slice_str (line 287) | fn require_as_ref_slice_str, V: AsRef>(_: U, _: V) {} function check_files (line 291) | fn check_files(file_types: &[FileType]) -> bool { function get_file_path (line 307) | fn get_file_path(_file_type: &FileType) -> Result(P); type Abstracted (line 319) | pub trait Abstracted {} function build (line 323) | fn build