Empowering everyone to build reliable and efficient software.
This report presents the forensic synthetic code analysis of rust-lang/rust, a Rust project with 114,706 GitHub stars. SynthScan v2.0 examined 4,015,479 lines of code across 40582 source files, recording 27151 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 6.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 27151 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | REUSE.toml | 1 | version = 1 | COMMENT |
| LOW | bootstrap.example.toml | 1 | # Sample TOML configuration file for building Rust. | COMMENT |
| LOW | bootstrap.example.toml | 21 | # Global Settings | COMMENT |
| LOW | bootstrap.example.toml | 41 | # you can visit github.com/rust-lang/rust/pull/{change-id} to check for more details. | COMMENT |
| LOW | bootstrap.example.toml | 61 | # Set this to `true` to download if CI llvm available otherwise it builds | COMMENT |
| LOW | bootstrap.example.toml | 81 | # only succeed if you use clang, lld, llvm-ar, and llvm-ranlib in your C/C++ | COMMENT |
| LOW | bootstrap.example.toml | 101 | #llvm.plugins = false | COMMENT |
| LOW | bootstrap.example.toml | 121 | #llvm.ninja = true | COMMENT |
| LOW | bootstrap.example.toml | 141 | # If set to 0, linker invocations are treated like any other job and | COMMENT |
| LOW | bootstrap.example.toml | 161 | #llvm.cxxflags = "" | COMMENT |
| LOW | bootstrap.example.toml | 181 | COMMENT | |
| LOW | bootstrap.example.toml | 201 | # `<libgccjit-libs-dir>/<host>/<target>/libgccjit.so`. | COMMENT |
| LOW | bootstrap.example.toml | 221 | COMMENT | |
| LOW | bootstrap.example.toml | 241 | # The default stage to use for the `install` subcommand | COMMENT |
| LOW | bootstrap.example.toml | 261 | #build.description = "" | COMMENT |
| LOW | bootstrap.example.toml | 281 | COMMENT | |
| LOW | bootstrap.example.toml | 301 | # specified, use this rustc binary instead as the stage0 snapshot compiler. | COMMENT |
| LOW | bootstrap.example.toml | 321 | # Whether to build documentation by default. If false, rustdoc and | COMMENT |
| LOW | bootstrap.example.toml | 341 | # Indicate whether git submodules are managed and updated automatically. | COMMENT |
| LOW | bootstrap.example.toml | 361 | #build.yarn = "yarn" | COMMENT |
| LOW | bootstrap.example.toml | 381 | COMMENT | |
| LOW | bootstrap.example.toml | 401 | # repeatedly in a CI environment. | COMMENT |
| LOW | bootstrap.example.toml | 421 | # "cargo", | COMMENT |
| LOW | bootstrap.example.toml | 441 | #build.tool.TOOL_NAME.features = [FEATURE1, FEATURE2] | COMMENT |
| LOW | bootstrap.example.toml | 461 | # order to run `x check`. | COMMENT |
| LOW | bootstrap.example.toml | 481 | COMMENT | |
| LOW | bootstrap.example.toml | 501 | # this is not intended to be used during local development. | COMMENT |
| LOW | bootstrap.example.toml | 521 | # | COMMENT |
| LOW | bootstrap.example.toml | 541 | # ============================================================================= | COMMENT |
| LOW | bootstrap.example.toml | 561 | # Where to install man pages in `prefix` above | COMMENT |
| LOW | bootstrap.example.toml | 581 | # 2 - Some optimizations. | COMMENT |
| LOW | bootstrap.example.toml | 601 | # to `true`. In practice, everyone leaves `optimize` set to | COMMENT |
| LOW | bootstrap.example.toml | 621 | #rust.download-rustc = false | COMMENT |
| LOW | bootstrap.example.toml | 641 | # Whether or not debug assertions are enabled for the standard library. | COMMENT |
| LOW | bootstrap.example.toml | 661 | # Whether or not to build rustc, tools and the libraries with randomized type layout | COMMENT |
| LOW | bootstrap.example.toml | 681 | # and needs to be enabled separately with `debuginfo-level-tests`. | COMMENT |
| LOW | bootstrap.example.toml | 701 | # Currently, this only works on Linux. | COMMENT |
| LOW | bootstrap.example.toml | 721 | # Whether to always use incremental compilation when building rustc | COMMENT |
| LOW | bootstrap.example.toml | 741 | #rust.channel = if "is a tarball source" { "auto-detect" } else { "dev" } | COMMENT |
| LOW | bootstrap.example.toml | 761 | #rust.rustflags = [] | COMMENT |
| LOW | bootstrap.example.toml | 781 | #rust.optimize-tests = true | COMMENT |
| LOW | bootstrap.example.toml | 801 | # This array serves three distinct purposes: | COMMENT |
| LOW | bootstrap.example.toml | 821 | # will be used. | COMMENT |
| LOW | bootstrap.example.toml | 841 | # Print backtrace on internal compiler errors during bootstrap | COMMENT |
| LOW | bootstrap.example.toml | 861 | # Run tests in various test suites with the "nll compare mode" in addition to | COMMENT |
| LOW | bootstrap.example.toml | 881 | # When no setting is given, the new scheme will be used when compiling the | COMMENT |
| LOW | bootstrap.example.toml | 901 | # Configure `std` features used during bootstrap. | COMMENT |
| LOW | bootstrap.example.toml | 921 | # 1 - Use a single thread for compilation of Rust code (the default) | COMMENT |
| LOW | bootstrap.example.toml | 941 | COMMENT | |
| LOW | bootstrap.example.toml | 961 | COMMENT | |
| LOW | bootstrap.example.toml | 981 | # ============================================================================= | COMMENT |
| LOW | bootstrap.example.toml | 1001 | COMMENT | |
| LOW | bootstrap.example.toml | 1021 | # Linker to be used to bootstrap Rust code. Note that the | COMMENT |
| LOW | bootstrap.example.toml | 1041 | # default since we know it's safe to do so in that case. | COMMENT |
| LOW | bootstrap.example.toml | 1061 | # Override detection of whether this is a Rust-patched LLVM. This would be used | COMMENT |
| LOW | bootstrap.example.toml | 1081 | # Build the sanitizer runtimes for this target. | COMMENT |
| LOW | bootstrap.example.toml | 1101 | COMMENT | |
| LOW | bootstrap.example.toml | 1121 | COMMENT | |
| LOW | bootstrap.example.toml | 1141 | # This configuration is a space-separated list of arguments so `foo bar` would | COMMENT |
| LOW | bootstrap.example.toml | 1161 | # The linker configuration that will *override* the default linker used for Linux | COMMENT |
| 25913 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | triagebot.toml | 5 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | triagebot.toml | 7 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | triagebot.toml | 74 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | triagebot.toml | 76 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | triagebot.toml | 204 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 206 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 672 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 674 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 703 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 705 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 949 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 951 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 1500 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 1502 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 1728 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | triagebot.toml | 1730 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | bootstrap.example.toml | 52 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | bootstrap.example.toml | 54 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 20 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 22 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 188 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 190 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 222 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 224 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 541 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 543 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 567 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 569 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 926 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 931 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 976 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 981 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 994 | # ============================================================================= | COMMENT |
| MEDIUM | bootstrap.example.toml | 999 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 294 | /// ┌───┬───────┬───┬───┬───┬───┬───┬───┬───┬───┬──────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 296 | /// └───┴───────┴───┴───┴───┴───┴───┴───┴───┴───┴──────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 297 | /// │ │ │ │ └─┬───────────────────┘ └─┬──────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 615 | // ┌────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 617 | // ├──────────────────────────────┬─┤ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 619 | // └──────────────────────────────┴─┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 627 | // ┌────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 629 | // ├────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 631 | // └────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 650 | // ┌───┬────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 652 | // └───┴────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 656 | // ┌────┬─────────┬───────────────────────────┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 658 | // └────┴─────────┴───────────────────────────┘ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 665 | // ┌──────────┬┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┬┄┄┄┄┄┄┄┄┄┄┄┬┄┄┄┄┄┄┄┄┄┄┄┬┄┄┄┄┄┄┄┄┄┄┄┐ | COMMENT |
| MEDIUM⚡ | library/core/src/fmt/mod.rs | 667 | // └────││││││┴┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┄┘ | COMMENT |
| MEDIUM | library/core/src/fmt/mod.rs | 680 | // ┌──────────┐ | COMMENT |
| MEDIUM | library/core/src/fmt/mod.rs | 682 | // └──────────┘ | COMMENT |
| MEDIUM⚡ | library/std/src/sys/sync/rwlock/queue.rs | 81 | //! ╭───────╮ next ╭───────╮ next ╭───────╮ next ╭───────╮ | COMMENT |
| MEDIUM⚡ | library/std/src/sys/sync/rwlock/queue.rs | 82 | //! │ ├─────►│ ├─────►│ ├─────►│ count │ | COMMENT |
| MEDIUM⚡ | library/std/src/sys/sync/rwlock/queue.rs | 84 | //! │ │ │ │◄─────┤ │◄─────┤ │ | COMMENT |
| MEDIUM⚡ | library/std/src/sys/sync/rwlock/queue.rs | 85 | //! ╰───────╯ ╰───────╯ prev ╰───────╯ prev ╰───────╯ | COMMENT |
| MEDIUM⚡ | library/std/src/sys/sync/rwlock/queue.rs | 87 | //! └───────────────────────────┘ | COMMENT |
| MEDIUM | …er/rustc_codegen_cranelift/scripts/test_rustc_tests.sh | 26 | # ================ | COMMENT |
| MEDIUM | …er/rustc_codegen_cranelift/scripts/test_rustc_tests.sh | 99 | # ================== | COMMENT |
| MEDIUM | …er/rustc_codegen_cranelift/scripts/test_rustc_tests.sh | 107 | # ====================== | COMMENT |
| MEDIUM | …er/rustc_codegen_cranelift/scripts/test_rustc_tests.sh | 122 | # ============================================= | COMMENT |
| 231 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/codegen-llvm/inject-autocast.rs | 50 | // CHECK: [[A:%[0-9]+]] = call { <2 x i1>, <2 x i1> } @llvm.x86.avx512.vp2intersect.q.128(<2 x i64> {{.*}}, <2 x i64 | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 98 | // CHECK: [[A:%[0-9]+]] = call x86_amx @llvm.x86.cast.vector.to.tile.v1024i8(<1024 x i8> {{.*}}) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 99 | // CHECK: [[B:%[0-9]+]] = call x86_amx @llvm.x86.cast.vector.to.tile.v1024i8(<1024 x i8> {{.*}}) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 100 | // CHECK: [[C:%[0-9]+]] = call x86_amx @llvm.x86.cast.vector.to.tile.v1024i8(<1024 x i8> {{.*}}) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 102 | // CHECK: call <1024 x i8> @llvm.x86.cast.tile.to.vector.v1024i8(x86_amx [[D]]) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 108 | // CHECK: declare { <2 x i1>, <2 x i1> } @llvm.x86.avx512.vp2intersect.q.128(<2 x i64>, <2 x i64>) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 116 | // CHECK: declare x86_amx @llvm.x86.cast.vector.to.tile.v1024i8(<1024 x i8>) | COMMENT |
| CRITICAL⚡ | tests/codegen-llvm/inject-autocast.rs | 118 | // CHECK: declare <1024 x i8> @llvm.x86.cast.tile.to.vector.v1024i8(x86_amx) | COMMENT |
| CRITICAL | compiler/rustc_codegen_cranelift/src/main_shim.rs | 69 | let entry_name = tcx.sess.target.options.entry_name.as_ref(); | CODE |
| CRITICAL | compiler/rustc_codegen_cranelift/src/driver/aot.rs | 62 | tcx.sess.opts.unstable_opts.function_sections.unwrap_or(default_function_sections), | CODE |
| CRITICAL | compiler/rustc_codegen_cranelift/src/abi/mod.rs | 885 | let exception_table = fx.bcx.func.dfg.exception_tables.push(ExceptionTableData::new( | CODE |
| CRITICAL | compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs | 1393 | fx.bcx.func.dfg.exception_tables.push(ExceptionTableData::new( | CODE |
| CRITICAL | compiler/rustc_codegen_gcc/src/consts.rs | 284 | !(self.tcx.sess.opts.cg.linker_plugin_lto.enabled() | CODE |
| CRITICAL | compiler/rustc_resolve/src/diagnostics/impls.rs | 2275 | if self.tcx.sess.opts.externs.get(ident.as_str()).is_some() | CODE |
| CRITICAL | compiler/rustc_infer/src/infer/snapshot/fudge.rs | 192 | let idx = vid.as_usize() - self.snapshot_vars.type_vars.0.start.as_usize(); | CODE |
| CRITICAL | compiler/rustc_infer/src/infer/snapshot/fudge.rs | 216 | let idx = vid.as_usize() - self.snapshot_vars.float_vars.0.start.as_usize(); | CODE |
| CRITICAL | compiler/rustc_infer/src/infer/snapshot/fudge.rs | 238 | let idx = vid.index() - self.snapshot_vars.region_vars.0.start.index(); | CODE |
| CRITICAL | compiler/rustc_infer/src/infer/snapshot/fudge.rs | 254 | let idx = vid.index() - self.snapshot_vars.const_vars.0.start.index(); | CODE |
| CRITICAL⚡ | compiler/rustc_mir_transform/src/inline.rs | 382 | tcx.sess.opts.unstable_opts.inline_mir_forwarder_threshold.unwrap_or(30) | CODE |
| CRITICAL⚡ | compiler/rustc_mir_transform/src/inline.rs | 384 | tcx.sess.opts.unstable_opts.inline_mir_hint_threshold.unwrap_or(100) | CODE |
| CRITICAL⚡ | compiler/rustc_mir_transform/src/inline.rs | 386 | tcx.sess.opts.unstable_opts.inline_mir_threshold.unwrap_or(50) | CODE |
| CRITICAL | compiler/rustc_hir_typeck/src/op.rs | 1014 | self.tcx.sess.psess.ambiguous_block_expr_parse.borrow().get(&sp) | CODE |
| CRITICAL | compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs | 2310 | self.arg_matching_ctxt.args_ctxt.call_ctxt.fn_ctxt.label_fn_like( | CODE |
| CRITICAL | compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 1440 | if let Some(sp) = self.tcx.sess.psess.ambiguous_block_expr_parse.borrow().get(&sp) { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/consts.rs | 437 | && !self.tcx.sess.opts.cg.linker_plugin_lto.enabled(); | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/consts.rs | 442 | !(self.tcx.sess.opts.cg.linker_plugin_lto.enabled() | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/intrinsic.rs | 231 | if tcx.sess.opts.unstable_opts.offload.is_empty() { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/intrinsic.rs | 1473 | if bx.cx.tcx.sess.target.supports_comdat() { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/intrinsic.rs | 1737 | if !tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::Enable) { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/intrinsic.rs | 1748 | if lto != rustc_session::config::Lto::Fat && !tcx.sess.opts.cg.linker_plugin_lto.enabled() { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/attributes.rs | 340 | if tcx.sess.opts.cg.profile_generate.enabled() { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/typetree.rs | 89 | if !tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::Enable) { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/typetree.rs | 92 | if tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::NoTT) { | CODE |
| CRITICAL | compiler/rustc_codegen_llvm/src/declare.rs | 81 | if cx.tcx.sess.opts.cg.no_redzone.unwrap_or(cx.tcx.sess.target.disable_redzone) { | CODE |
| CRITICAL | compiler/rustc_metadata/src/creader.rs | 1027 | tcx.sess.instrument_coverage() || tcx.sess.opts.cg.profile_generate.enabled(); | CODE |
| CRITICAL | compiler/rustc_metadata/src/rmeta/encoder.rs | 733 | extra_filename: tcx.sess.opts.cg.extra_filename.clone(), | CODE |
| CRITICAL | compiler/rustc_metadata/src/rmeta/decoder.rs | 454 | self.tcx.sess.psess.attr_id_generator.mk_attr_id() | CODE |
| CRITICAL | compiler/rustc_metadata/src/rmeta/decoder.rs | 1676 | tcx.sess.opts.unstable_opts.simulate_remapped_rust_src_base.as_deref(), | CODE |
| CRITICAL | compiler/rustc_middle/src/ty/layout.rs | 1275 | if !tcx.sess.opts.unstable_opts.panic_in_drop.unwinds() | CODE |
| CRITICAL | compiler/rustc_middle/src/ty/typetree.rs | 12 | if tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::NoTT) { | CODE |
| CRITICAL | compiler/rustc_middle/src/ty/typetree.rs | 42 | if !tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::Enable) { | CODE |
| CRITICAL | compiler/rustc_middle/src/ty/typetree.rs | 45 | if tcx.sess.opts.unstable_opts.autodiff.contains(&rustc_session::config::AutoDiff::NoTT) { | CODE |
| CRITICAL | compiler/rustc_middle/src/ty/context.rs | 1157 | || self.sess.opts.unstable_opts.metrics_dir.is_some() | CODE |
| CRITICAL | compiler/rustc_middle/src/mir/pretty.rs | 58 | Self { include_extra_comments: tcx.sess.opts.unstable_opts.mir_include_spans.is_enabled() } | CODE |
| CRITICAL | compiler/rustc_expand/src/expand.rs | 656 | if self.cx.sess.opts.incremental.is_some() { | CODE |
| CRITICAL | compiler/rustc_expand/src/proc_macro_server.rs | 475 | self.ecx.sess.opts.logical_env.get(var).cloned() | CODE |
| CRITICAL | compiler/rustc_monomorphize/src/partitioning.rs | 206 | let is_incremental_build = cx.tcx.sess.opts.incremental.is_some(); | CODE |
| CRITICAL | compiler/rustc_monomorphize/src/partitioning.rs | 400 | while cx.tcx.sess.opts.incremental.is_none() | CODE |
| CRITICAL | compiler/rustc_monomorphize/src/partitioning.rs | 423 | if cx.tcx.sess.opts.incremental.is_some() { | CODE |
| CRITICAL | compiler/rustc_borrowck/src/lib.rs | 349 | || infcx.tcx.sess.opts.unstable_opts.polonius.is_legacy_enabled(); | CODE |
| CRITICAL | compiler/rustc_borrowck/src/dataflow.rs | 436 | if !tcx.sess.opts.unstable_opts.polonius.is_next_enabled() { | CODE |
| CRITICAL | compiler/rustc_borrowck/src/nll.rs | 127 | || infcx.tcx.sess.opts.unstable_opts.polonius.is_legacy_enabled(); | CODE |
| CRITICAL | compiler/rustc_borrowck/src/region_infer/mod.rs | 508 | if infcx.tcx.sess.opts.unstable_opts.polonius.is_legacy_enabled() { | CODE |
| CRITICAL | compiler/rustc_borrowck/src/polonius/dump.rs | 28 | if !tcx.sess.opts.unstable_opts.polonius.is_next_enabled() { | CODE |
| CRITICAL | compiler/rustc_borrowck/src/polonius/legacy/facts.rs | 60 | || tcx.sess.opts.unstable_opts.polonius.is_legacy_enabled() | CODE |
| CRITICAL | compiler/rustc_borrowck/src/type_check/mod.rs | 141 | let polonius_context = if infcx.tcx.sess.opts.unstable_opts.polonius.is_next_enabled() { | CODE |
| CRITICAL | …/rustc_borrowck/src/diagnostics/bound_region_errors.rs | 206 | predicate: self.canonical_query.canonical.value.value.predicate.to_string(), | CODE |
| CRITICAL | …/rustc_borrowck/src/diagnostics/bound_region_errors.rs | 250 | value: self.canonical_query.canonical.value.value.value.to_string(), | CODE |
| CRITICAL | …/rustc_borrowck/src/diagnostics/bound_region_errors.rs | 303 | value: self.canonical_query.canonical.value.value.value.to_string(), | CODE |
| CRITICAL | …piler/rustc_borrowck/src/diagnostics/explain_borrow.rs | 635 | assert!(!tcx.sess.opts.unstable_opts.polonius.is_next_enabled()); | CODE |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | typos.toml | 13 | # generated lorem ipsum texts | COMMENT |
| LOW | tests/ui/test-attrs/test-on-not-fn.rs | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | CODE |
| LOW | tests/ui/test-attrs/test-on-not-fn.rs | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | CODE |
| LOW | tests/rustdoc-gui/src/lib2/lib.rs | 125 | /// This also has a really long doccomment. Lorem ipsum dolor sit amet, | COMMENT |
| LOW | tests/rustdoc-gui/src/lib2/lib.rs | 125 | /// This also has a really long doccomment. Lorem ipsum dolor sit amet, | COMMENT |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 3 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 3 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 4 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 4 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 5 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 5 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 6 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 6 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 7 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 7 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 8 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 8 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 9 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 9 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 10 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 10 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 11 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 11 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 12 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-2.rs | 12 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 4 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 4 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 5 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 5 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 6 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 6 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 7 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 7 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 8 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 8 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 9 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 9 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 10 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 10 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 11 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 11 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 12 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 12 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 13 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | …stdoc-gui/src/scrape_examples/examples/check-many-3.rs | 13 | scrape_examples::test_many(); /* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci | CODE |
| LOW⚡ | tests/rustdoc-gui/src/test_docs/lib.rs | 417 | /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | | COMMENT |
| LOW⚡ | tests/rustdoc-gui/src/test_docs/lib.rs | 418 | /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | | COMMENT |
| LOW⚡ | tests/rustdoc-gui/src/test_docs/lib.rs | 419 | /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | | COMMENT |
| LOW⚡ | tests/rustdoc-gui/src/test_docs/lib.rs | 420 | /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | | COMMENT |
| LOW⚡ | tests/rustdoc-gui/src/test_docs/lib.rs | 428 | /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | | COMMENT |
| LOW | tests/rustdoc-gui/src/test_docs/lib.rs | 668 | //! * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et libero ut leo | COMMENT |
| LOW | tests/rustdoc-gui/src/test_docs/lib.rs | 668 | //! * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et libero ut leo | COMMENT |
| LOW | library/coretests/benches/pattern.rs | 44 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem \ | CODE |
| LOW | library/coretests/benches/pattern.rs | 44 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem \ | CODE |
| LOW | library/coretests/benches/hash/sip.rs | 47 | let s = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor \ | CODE |
| LOW | library/coretests/benches/hash/sip.rs | 47 | let s = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor \ | CODE |
| LOW | library/std/src/fs.rs | 413 | /// fs::write("foo.txt", b"Lorem ipsum")?; | COMMENT |
| LOW | library/alloctests/tests/str.rs | 729 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem \ | CODE |
| LOW | library/alloctests/tests/str.rs | 729 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem \ | CODE |
| LOW⚡ | library/alloctests/benches/str.rs | 122 | let haystack = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; | CODE |
| 314 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | REUSE.toml | 9 | # just set a blanket license and copyright notice for a whole sub-tree at a | COMMENT |
| MEDIUM | bootstrap.example.toml | 777 | # Prints each test name as it is executed, to help debug issues in the test harness itself. | COMMENT |
| MEDIUM | bootstrap.example.toml | 1062 | # in conjunction with either an llvm-config or build.submodules = false. | COMMENT |
| MEDIUM | tests/ui/argument-suggestions/invalid_arguments.rs | 1 | // More nuanced test cases for invalid arguments #65853 | COMMENT |
| MEDIUM | tests/ui/privacy/sysroot-private.rs | 4 | //! This test would be more robust if we could patch the sysroot with an "evil" crate that | COMMENT |
| MEDIUM | tests/ui/privacy/sysroot-private.rs | 7 | //! of `std`'s dependencies, but may not be robust against dependency upgrades/changes. | COMMENT |
| MEDIUM | tests/ui/associated-types/issue-47139-2.rs | 7 | // In an effort to make the regr test more robust, I am including both | COMMENT |
| MEDIUM | tests/ui/layout/trivial-bounds-sized.rs | 39 | // FIXME: This could be made more robust, possibly with a variant of `rustc_dump_layout` | COMMENT |
| MEDIUM | …/repeat-expr/can-have-side-effects-consider-element.rs | 16 | () => drop([return; 1]), // Definitely has side effects | CODE |
| MEDIUM | tests/ui/sanitizer/thread.rs | 10 | // is necessary to make the test robust. Without the barrier data race detection | COMMENT |
| MEDIUM | …sts/ui/attributes/reexport-test-harness-entry-point.rs | 1 | //! Check that `#[reexport_test_harness_main]` correctly reexports the test harness entry point | COMMENT |
| MEDIUM | …ts/ui/binop/can-have-side-effects-consider-operands.rs | 16 | () => drop(5 % calls_are_considered_side_effects()), // Definitely has side effects | CODE |
| MEDIUM | tests/rustdoc-js/auxiliary/emptytype.rs | 18 | // robust, in the sense that it actually tests the code and isn't magically | COMMENT |
| MEDIUM | tests/debuginfo/basic-stepping.rs | 14 | // be optimized away. To make regression testing more robust, we also want to | COMMENT |
| MEDIUM | …doc-html/assoc/cross-crate-hidden-assoc-trait-items.rs | 11 | // (by counting the number of `section`s). This is more robust and future-proof. | COMMENT |
| MEDIUM | …stdoc-html/inline_cross/ret-pos-impl-trait-in-trait.rs | 8 | // This is more robust than checking for the absence of the associated type. | COMMENT |
| MEDIUM | tests/mir-opt/jump_threading.rs | 518 | /// Verify that we can leverage the existence of an `Assume` terminator. | COMMENT |
| MEDIUM | library/alloc/src/str.rs | 471 | /// Essentially, this consists of uppercasing the first cased letter | COMMENT |
| MEDIUM | library/alloc/src/fmt.rs | 61 | //! Essentially, parameters that explicitly name their argument do not affect | COMMENT |
| MEDIUM | library/alloc/src/fmt.rs | 72 | //! leverage named parameters. Named parameters are listed at the end of the | COMMENT |
| MEDIUM | library/alloc/src/string.rs | 1304 | /// # process_data("rust").expect("why is the test harness OOMing on 4 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/string.rs | 1345 | /// # process_data("rust").expect("why is the test harness OOMing on 4 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/raw_vec/mod.rs | 872 | /// prevent double-free or use-after-free. Essentially, do not do anything with the caller | COMMENT |
| MEDIUM | library/alloc/src/vec/mod.rs | 1532 | /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/vec/mod.rs | 1575 | /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/collections/vec_deque/mod.rs | 1156 | /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/collections/vec_deque/mod.rs | 1204 | /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/collections/binary_heap/mod.rs | 1261 | /// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/alloc/src/collections/binary_heap/mod.rs | 1297 | /// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?"); | COMMENT |
| MEDIUM | library/core/src/asserting.rs | 5 | // 'specialization' is robust enough (5 years? 10 years? Never?), `Capture` can be specialized | COMMENT |
| MEDIUM | library/core/src/slice/sort/mod.rs | 1 | //! This module and the contained sub-modules contains the code for efficient and robust sort | COMMENT |
| MEDIUM | library/core/src/slice/sort/unstable/quicksort.rs | 143 | // have large leverage e.g. `u64` and `String`. | COMMENT |
| MEDIUM | library/core/src/io/error.rs | 745 | /// tests more robust. In particular, if you want to verify that your code does | COMMENT |
| MEDIUM | library/core/src/io/error.rs | 746 | /// produce an unrecognized error kind, the robust solution is to check for all | COMMENT |
| MEDIUM | library/core/src/num/imp/flt2dec/strategy/grisu.rs | 447 | // i.e., `plus1 - plus1w(n) <= minus0` or `plus1 - plus1w(n) >= plus0`. we utilize the facts | COMMENT |
| MEDIUM | library/core/src/ffi/c_str.rs | 34 | /// Instead, safe wrappers of FFI functions may leverage [`CStr::as_ptr`] and the unsafe | COMMENT |
| MEDIUM | library/core/src/ffi/c_str.rs | 105 | // this an unsized type. Essentially `sizeof(&CStr)` should be the | COMMENT |
| MEDIUM | library/core/src/ptr/const_ptr.rs | 92 | /// pointers. The pointer is cast to a sized pointee to utilize offset operations and then | COMMENT |
| MEDIUM | library/core/src/ptr/mut_ptr.rs | 75 | /// pointers. The pointer is cast to a sized pointee to utilize offset operations and then | COMMENT |
| MEDIUM | library/core/src/ptr/mod.rs | 2349 | // sufficiently for LLVM to be able to utilize the various optimizations it knows about. | COMMENT |
| MEDIUM | library/test/src/stats.rs | 21 | /// [paper]: https://www.cs.cmu.edu/~quake-papers/robust-arithmetic.ps | COMMENT |
| MEDIUM⚡ | library/test/src/stats.rs | 52 | /// Note: this is not a robust statistic for non-normal distributions. Prefer the | COMMENT |
| MEDIUM⚡ | library/test/src/stats.rs | 60 | /// Note: this is not a robust statistic for non-normal distributions. Prefer the | COMMENT |
| MEDIUM⚡ | library/test/src/stats.rs | 65 | /// robust (distribution-agnostic) estimator of sample variability. Use this in preference to | COMMENT |
| MEDIUM | library/std/src/net/socket_addr/tests.rs | 136 | // This form of the test is more robust: even when the DNS server | COMMENT |
| MEDIUM | library/std/src/io/buffered/bufreader.rs | 427 | // If `buf` is empty--the most common case--we can leverage `append_to_string` | COMMENT |
| MEDIUM | library/std/src/sys/sync/once/queue.rs | 181 | // fast path. Essentially, this should help generate more straight line code | COMMENT |
| MEDIUM | library/std/src/ffi/os_str.rs | 400 | /// # process_data("123").expect("why is the test harness OOMing on 3 bytes?"); | COMMENT |
| MEDIUM | library/std/src/ffi/os_str.rs | 471 | /// # process_data("123").expect("why is the test harness OOMing on 3 bytes?"); | COMMENT |
| MEDIUM | library/std/src/collections/mod.rs | 184 | //! are a powerful and robust mechanism used throughout Rust's | COMMENT |
| LOW | library/compiler-builtins/ci/ci-util.py | 416 | # just use `--limit=1`, jq filtering happens after limiting. We also | COMMENT |
| LOW | library/compiler-builtins/ci/ci-util.py | 417 | # cannot just use `--workflow` because GH gets confused from | COMMENT |
| LOW | library/compiler-builtins/.github/workflows/main.yaml | 189 | # Non-linux tests just use our raw script | COMMENT |
| MEDIUM | library/compiler-builtins/libm-test/Cargo.toml | 75 | # No harness so that we can skip tests at runtime based on env. Prefixed with | COMMENT |
| MEDIUM | library/stdarch/crates/core_arch/src/mod.rs | 175 | /// largely left up to you as it can be pretty nuanced depending on | COMMENT |
| MEDIUM | library/stdarch/ci/run.sh | 77 | # harness isn't trying to capture output, otherwise we won't get any useful | COMMENT |
| MEDIUM | compiler/rustc_errors/src/lib.rs | 620 | // if/when we have a more robust macro-friendly replacement for `(span, key)` as a key. | COMMENT |
| MEDIUM | compiler/rustc_resolve/src/diagnostics/impls.rs | 132 | /// `source_map` functions and this function to something more robust. | COMMENT |
| MEDIUM | compiler/rustc_symbol_mangling/src/lib.rs | 88 | //! DefPaths which are much more robust in the face of changes to the code base. | COMMENT |
| MEDIUM | …er/rustc_infer/src/infer/lexical_region_resolve/mod.rs | 493 | // For other cases, leverage the LUB code to find the LUB and | COMMENT |
| 54 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/ui/include-macros/same-file-in-two-crates.rs | 3 | // when there is some auto-generated code that is part of both a library and an | COMMENT |
| HIGH | library/alloc/src/vec/mod.rs | 387 | /// The allocator will return an allocation that is at least as large as requested, but it may be larger. | COMMENT |
| HIGH | …/tools/rustfmt/tests/target/itemized-blocks/no_wrap.rs | 54 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | …/tools/rustfmt/tests/target/itemized-blocks/no_wrap.rs | 64 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | …/tools/rustfmt/tests/target/itemized-blocks/no_wrap.rs | 78 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs | 109 | /// as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs | 127 | /// as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs | 145 | /// as requested by the remote theater | COMMENT |
| HIGH | …/tools/rustfmt/tests/source/itemized-blocks/no_wrap.rs | 54 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | …/tools/rustfmt/tests/source/itemized-blocks/no_wrap.rs | 64 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | …/tools/rustfmt/tests/source/itemized-blocks/no_wrap.rs | 78 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/source/itemized-blocks/wrap.rs | 62 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/source/itemized-blocks/wrap.rs | 72 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| HIGH | src/tools/rustfmt/tests/source/itemized-blocks/wrap.rs | 86 | /// * `to` is the receiving (local) [`ActorId`], as requested by the remote theater | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/rustdoc-html/inherent-projections.rs | 28 | // The current test checks for the buggy behavior for demonstration purposes. | COMMENT |
| MEDIUM | …ts/rustdoc-html/intra-doc/inherent-associated-types.rs | 25 | // The current test checks for the buggy behavior for demonstration purposes. | COMMENT |
| LOW | tests/mir-opt/issue_62289.rs | 2 | // check that we don't forget to drop the Box if we early return before | COMMENT |
| MEDIUM | library/core/src/pin.rs | 250 | //! As discussed above, this promise must be upheld manually by [`unsafe`] code which interacts | COMMENT |
| LOW | library/core/src/fmt/mod.rs | 1743 | #[must_use = "don't forget to write the post padding"] | COMMENT |
| LOW | library/core/src/fmt/mod.rs | 1743 | #[must_use = "don't forget to write the post padding"] | COMMENT |
| MEDIUM | library/core/src/ptr/mod.rs | 335 | //! As discussed above, integer-to-pointer casts are not possible with Strict Provenance APIs. | COMMENT |
| MEDIUM | library/core/src/future/future.rs | 87 | /// `poll(2)` or `select(2)` syscalls on Unix it's worth noting that futures | COMMENT |
| MEDIUM | library/core/src/mem/manually_drop.rs | 177 | #[must_use = "if you don't need the wrapper, you can use `mem::forget` instead"] | COMMENT |
| MEDIUM | library/core/src/mem/manually_drop.rs | 220 | #[must_use = "if you don't need the value, you can use `ManuallyDrop::drop` instead"] | COMMENT |
| MEDIUM | library/std/src/fs.rs | 133 | #[diagnostic::on_move(note = "you can use `File::try_clone` to duplicate a `File` instance")] | COMMENT |
| MEDIUM | library/std/src/os/unix/io/mod.rs | 58 | //! if the API provides `BorrowedFd` access, since as mentioned earlier, | COMMENT |
| MEDIUM | …/compiler-builtins/compiler-builtins/src/probestack.rs | 39 | //! Finally it's worth noting that at the time of this writing LLVM only has | COMMENT |
| MEDIUM | …brary/portable-simd/crates/core_simd/examples/nbody.rs | 175 | // Good enough for demonstration purposes, not going for strictness here. | COMMENT |
| MEDIUM | compiler/rustc_resolve/src/diagnostics/mod.rs | 675 | #[label("you can use `as` to change the binding name of the import")] | COMMENT |
| LOW | compiler/rustc_hir/src/intravisit.rs | 23 | //! `intravisit::Visitor` impl, implement methods like `visit_expr()` (don't forget to invoke | COMMENT |
| LOW | compiler/rustc_trait_selection/src/traits/normalize.rs | 424 | // to make sure we don't forget to fold the args regardless. | COMMENT |
| MEDIUM | compiler/rustc_mir_transform/src/elaborate_drops.rs | 33 | /// It's worth noting that a MIR containing a Drop without an associated move path is probably ill | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 501 | // (But if you implement this, don't forget to take into account that vtables can also | COMMENT |
| LOW | compiler/rustc_const_eval/src/interpret/memory.rs | 448 | // Don't forget to remember size and align of this now-dead allocation | COMMENT |
| LOW | compiler/rustc_const_eval/src/interpret/call.rs | 558 | // Don't forget to check the return type! | COMMENT |
| LOW | compiler/rustc_session/src/config/cfg.rs | 379 | // Don't forget to update `src/doc/rustc/src/check-cfg.md` | COMMENT |
| LOW | compiler/rustc_parse/src/parser/expr.rs | 507 | // Note: when adding new unary operators, don't forget to adjust TokenKind::can_begin_expr() | COMMENT |
| LOW | compiler/rustc_parse/src/parser/expr.rs | 1503 | // Note: adding new syntax here? Don't forget to adjust `TokenKind::can_begin_expr()`. | COMMENT |
| MEDIUM | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 2498 | #[note("you can use the `{$candidate}` lifetime directly, in place of `{$victim}`")] | COMMENT |
| LOW | compiler/rustc_lint/src/levels.rs | 455 | /// Don't forget to call `pop`! | COMMENT |
| LOW | src/tools/linkchecker/linkcheck.sh | 17 | # --all Check all books. This can help make sure you don't break links | COMMENT |
| LOW | src/tools/linkchecker/main.rs | 545 | "NOTE: if you are adding or renaming a markdown file in a mdBook, don't forget to \ | CODE |
| LOW | src/tools/rust-analyzer/crates/hir-ty/src/infer.rs | 1567 | // don't forget to handle them here. | COMMENT |
| LOW | src/tools/rust-analyzer/crates/ide/src/typing.rs | 36 | // Don't forget to add new trigger characters to `server_capabilities` in `caps.rs`. | COMMENT |
| LOW | …st-analyzer/crates/ide/src/syntax_highlighting/tags.rs | 44 | // Don't forget to adjust the feature description in crates/ide/src/syntax_highlighting.rs. | COMMENT |
| LOW | …s/src/handlers/convert_named_struct_to_tuple_struct.rs | 60 | // are to lift this limitation, don't forget to make `edit_struct_def()` consider macro files | COMMENT |
| LOW | src/tools/rust-analyzer/.vscode/launch.json | 105 | // Don't forget to set `debug = 2` in `Cargo.toml` before building the server | COMMENT |
| MEDIUM | …s/miri/src/borrow_tracker/tree_borrows/tree_visitor.rs | 137 | // Reverse the stack, as discussed above. | COMMENT |
| LOW | src/tools/miri/src/concurrency/sync.rs | 264 | // Don't forget to write the return value. | COMMENT |
| MEDIUM | src/tools/clippy/lintcheck/lintcheck_crates.toml | 6 | # For testing you can also add sources to git and local repos like this: | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_mq.yml | 33 | # NOTE: If you modify this job, make sure you copy the changes to clippy.yml | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_pr.yml | 21 | # NOTE: If you modify this job, make sure you copy the changes to clippy_mq.yml | COMMENT |
| LOW | src/etc/lldb_batchmode/runner.py | 84 | # If the command introduced any breakpoints, make sure to register | COMMENT |
| LOW | src/librustdoc/clean/types.rs | 964 | /// derive and attribute, potentially multiple at once). Don't forget to look into the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/traits/object/crash-due-to-projections-modulo-norm.rs | 5 | // Step 1: Create two names for a single type: `Thing` and `AlsoThing` | COMMENT |
| LOW⚡ | …/traits/object/crash-due-to-projections-modulo-norm.rs | 17 | // Step 2: Create names for a single trait object type: `TraitObject` and `AlsoTraitObject` | COMMENT |
| LOW⚡ | …/traits/object/crash-due-to-projections-modulo-norm.rs | 25 | // Step 3: Force the compiler to check whether the two names are the same type | COMMENT |
| LOW⚡ | …er-builtins/src/int/specialized_div_rem/binary_long.rs | 66 | // Step 2: Continue based on `sub`. The `quo` bits start accumulating. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/builder.rs | 1986 | // Step 2: We use two comparisons and two selects, with %s1 being the | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/builder.rs | 2006 | // Step 3: NaN replacement. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 320 | // Step 1: Generate pre-reversed low and high nibbles as a vector. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 348 | // Step 2: Byte-swap the input. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 369 | // Step 3: Mask off the low and high nibbles of each byte in the byte-swapped input. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 373 | // Step 4: Shuffle the pre-reversed low and high-nibbles using the masked nibbles as a shuffle mask. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 377 | // Step 5: Combine the results of the shuffle back together and cast back to the original type. | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 165 | // Step 2: Mark all symbols that the symbols on the worklist touch. | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 475 | // Step 1: Seed the worklist with all nodes which were found to be public as | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 516 | // Step 2: Mark all symbols that the symbols on the worklist touch. | COMMENT |
| LOW | compiler/rustc_target/src/asm/mod.rs | 438 | // NOTE: This function isn't used at the moment, but is needed to support | COMMENT |
| LOW | compiler/rustc_target/src/asm/mod.rs | 861 | // NOTE: This function isn't used at the moment, but is needed to support | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3837 | // Step 1: check that every field is unique, and keep a list of field that we know are | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3857 | // Step 2: check that the viewed type is a struct. | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3880 | // Step 3: check that every viewed field exists. | COMMENT |
| LOW | …tools/rust-analyzer/crates/syntax/src/ast/token_ext.rs | 298 | // NOTE: This method should only be used for highlighting ranges. The unescaped | COMMENT |
| LOW | src/tools/miri/src/helpers.rs | 761 | // Step 1: determine the length. | COMMENT |
| LOW | src/tools/miri/src/helpers.rs | 775 | // Step 2: get the bytes. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 281 | // Step 1: Find granting item. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 285 | // Step 2: Remove incompatible items above them. Make sure we do not remove protected | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 366 | // Step 1: Make a write access. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 370 | // Step 2: Pretend we remove the remaining items, checking if any are strongly protected. | COMMENT |
| LOW | src/tools/clippy/README.md | 61 | #### Step 1: Install Rustup | COMMENT |
| LOW | src/tools/clippy/README.md | 73 | #### Step 2: Install Clippy | COMMENT |
| LOW | src/tools/clippy/README.md | 83 | #### Step 3: Run Clippy | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/test-implementation.md | 42 | ## Step 1: Re-Exporting | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/test-implementation.md | 84 | ## Step 2: Harness generation | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/test-implementation.md | 107 | ## Step 3: Test object generation | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/panic-implementation.md | 3 | ## Step 1: Invocation of the `panic!` macro. | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/panic-implementation.md | 99 | ## Step 2: The panic runtime | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/tests/adding.md | 57 | ### Step 1: Add a test file | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/tests/adding.md | 99 | ### Step 2: Generate the expected output | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/tests/adding.md | 122 | ### Step 3: Add error annotations | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/tests/adding.md | 147 | ### Step 4: Review the output | COMMENT |
| LOW | src/doc/rustc-dev-guide/src/tests/adding.md | 183 | ### Step 5: Check other tests | COMMENT |
| LOW⚡ | …rc/building/bootstrapping/bootstrap-in-dependencies.md | 41 | ### Step 1: accept the new behavior in the compiler ([#139797](https://github.com/rust-lang/rust/pull/139797)) | COMMENT |
| LOW⚡ | …rc/building/bootstrapping/bootstrap-in-dependencies.md | 45 | ### Step 2: update the crate ([#821](https://github.com/rust-lang/compiler-builtins/pull/821)) | COMMENT |
| LOW⚡ | …rc/building/bootstrapping/bootstrap-in-dependencies.md | 49 | ### Step 3: update the crate version used by the compiler ([#139934](https://github.com/rust-lang/rust/pull/139934)) | COMMENT |
| LOW⚡ | …rc/building/bootstrapping/bootstrap-in-dependencies.md | 53 | ### Step 4: remove the old behavior from the compiler ([#139753](https://github.com/rust-lang/rust/pull/139753)) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/traits/object/crash-due-to-projections-modulo-norm.rs | 5 | // Step 1: Create two names for a single type: `Thing` and `AlsoThing` | COMMENT |
| LOW⚡ | …/traits/object/crash-due-to-projections-modulo-norm.rs | 17 | // Step 2: Create names for a single trait object type: `TraitObject` and `AlsoTraitObject` | COMMENT |
| LOW⚡ | …/traits/object/crash-due-to-projections-modulo-norm.rs | 25 | // Step 3: Force the compiler to check whether the two names are the same type | COMMENT |
| LOW | …sts/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs | 6 | // So, we need to check if a given type needs drop-glue. That requires | COMMENT |
| LOW⚡ | …er-builtins/src/int/specialized_div_rem/binary_long.rs | 59 | // Step 0: `sub` is negative, so there is not full normalization, so no `quo` bit is set | COMMENT |
| LOW⚡ | …er-builtins/src/int/specialized_div_rem/binary_long.rs | 63 | // Step 1: `sub` is positive, set a `quo` bit and update `duo` for next step. | COMMENT |
| LOW⚡ | …er-builtins/src/int/specialized_div_rem/binary_long.rs | 66 | // Step 2: Continue based on `sub`. The `quo` bits start accumulating. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/builder.rs | 1986 | // Step 2: We use two comparisons and two selects, with %s1 being the | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/builder.rs | 2006 | // Step 3: NaN replacement. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/back/write.rs | 115 | // We need to check if we're doing LTO since this code is also used for the | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 320 | // Step 1: Generate pre-reversed low and high nibbles as a vector. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 348 | // Step 2: Byte-swap the input. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 369 | // Step 3: Mask off the low and high nibbles of each byte in the byte-swapped input. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 373 | // Step 4: Shuffle the pre-reversed low and high-nibbles using the masked nibbles as a shuffle mask. | COMMENT |
| LOW⚡ | compiler/rustc_codegen_gcc/src/intrinsic/simd.rs | 377 | // Step 5: Combine the results of the shuffle back together and cast back to the original type. | COMMENT |
| LOW | compiler/rustc_resolve/src/late.rs | 3184 | // we need to check if the span is a raw underscore lifetime, see issue #143152 | COMMENT |
| LOW | compiler/rustc_hir_typeck/src/method/suggest.rs | 3613 | // We need to check if there is already a manual implementation of the trait | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 165 | // Step 2: Mark all symbols that the symbols on the worklist touch. | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 475 | // Step 1: Seed the worklist with all nodes which were found to be public as | COMMENT |
| LOW | compiler/rustc_passes/src/reachable.rs | 516 | // Step 2: Mark all symbols that the symbols on the worklist touch. | COMMENT |
| LOW | compiler/rustc_middle/src/ty/print/pretty.rs | 3520 | /// The purpose of this function is to collect public symbols names that are unique across all | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3837 | // Step 1: check that every field is unique, and keep a list of field that we know are | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3857 | // Step 2: check that the viewed type is a struct. | COMMENT |
| LOW | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 3880 | // Step 3: check that every viewed field exists. | COMMENT |
| LOW | src/tools/miri/tests/pass/protector-gc.rs | 1 | // When we pop a stack frame with weak protectors, we need to check if the protected pointer's | COMMENT |
| LOW | src/tools/miri/src/helpers.rs | 761 | // Step 1: determine the length. | COMMENT |
| LOW | src/tools/miri/src/helpers.rs | 775 | // Step 2: get the bytes. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 281 | // Step 1: Find granting item. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 285 | // Step 2: Remove incompatible items above them. Make sure we do not remove protected | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 366 | // Step 1: Make a write access. | COMMENT |
| LOW⚡ | …c/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs | 370 | // Step 2: Pretend we remove the remaining items, checking if any are strongly protected. | COMMENT |
| LOW | src/tools/clippy/clippy_lints/src/non_copy_const.rs | 457 | // Normalized as we need to check if this is an array later. | COMMENT |
| LOW | src/tools/clippy/clippy_lints/src/non_copy_const.rs | 500 | // Normalized as we need to check if this is an array later. | COMMENT |
| LOW | src/tools/clippy/clippy_lints/src/non_copy_const.rs | 639 | // Normalized as we need to check if this is an array later. | COMMENT |
| LOW | src/librustdoc/passes/collect_trait_impls.rs | 26 | // We need to check if there are errors before running this pass because it would crash when | COMMENT |
| LOW | src/librustdoc/html/static/js/main.js | 2078 | // This section handles the copy button that appears next to the path breadcrumbs | COMMENT |
| LOW | src/librustdoc/html/static/js/search.js | 3576 | // If the query element is a path (it contains `::`), we need to check if this | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | x.py | 5 | # This file is only a "symlink" to bootstrap.py, all logic should go there. | COMMENT |
| MEDIUM | .github/workflows/ci.yml | 1 | # This file defines our primary CI workflow that runs on pull requests | COMMENT |
| MEDIUM | compiler/rustc_codegen_cranelift/patches/rand-lock.toml | 1 | # This file is automatically @generated by Cargo. | COMMENT |
| MEDIUM | …mpiler/rustc_codegen_cranelift/patches/regex-lock.toml | 1 | # This file is automatically @generated by Cargo. | COMMENT |
| MEDIUM | compiler/rustc_thread_pool/src/lib.rs | 152 | /// ## Creating a ThreadPool | COMMENT |
| MEDIUM | compiler/rustc_thread_pool/src/thread_pool/mod.rs | 28 | /// ## Creating a ThreadPool | COMMENT |
| MEDIUM | compiler/rustc_target/src/spec/mod.rs | 19 | //! # Defining a new target | COMMENT |
| MEDIUM | src/tools/rust-installer/install-template.sh | 532 | # Create the installed manifest, which we will fill in with absolute file paths | COMMENT |
| MEDIUM | src/tools/rust-installer/install-template.sh | 948 | # Create the manifest directory, where we will put our logs | COMMENT |
| MEDIUM | src/tools/rust-installer/install-template.sh | 968 | # Create the manifest directory again! uninstall_legacy | COMMENT |
| MEDIUM | src/tools/miri/rustfmt.toml | 13 | # This file is copy-pasted from the tracing_chrome crate and should remain like the original. | COMMENT |
| MEDIUM | src/tools/miri/.github/workflows/ci.yml | 231 | # Create a token for the next step so it can create a PR that actually runs CI. | COMMENT |
| MEDIUM | src/tools/miri/.github/workflows/ci.yml | 265 | # Create a PR | COMMENT |
| MEDIUM | src/ci/shared.sh | 4 | # This file is intended to be sourced with `. shared.sh` or | COMMENT |
| MEDIUM | src/ci/docker/scripts/shared.sh | 4 | # This file is intended to be sourced with `. shared.sh` or | COMMENT |
| MEDIUM | src/ci/github-actions/jobs.yml | 1 | # This file contains definitions of CI job parameters that are loaded | COMMENT |
| MEDIUM | src/etc/lldb_lookup.py | 58 | # This file contains lookup functions that associate rust types with their synthetic/summary | COMMENT |
| MEDIUM | src/etc/lldb_providers.py | 33 | # This file contains two kinds of pretty-printers: summary and synthetic. | COMMENT |
| MEDIUM | src/etc/lldb_batchmode/runner.py | 204 | # Create a new debugger instance | COMMENT |
| MEDIUM | src/etc/lldb_batchmode/runner.py | 211 | # Create a target from a file and arch | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | bootstrap.example.toml | 61 | # Set this to `true` to download if CI llvm available otherwise it builds | COMMENT |
| LOW⚡ | bootstrap.example.toml | 67 | # Set this to `"if-unchanged"` to download only if the llvm-project has not | COMMENT |
| LOW | bootstrap.example.toml | 614 | # Set this to "if-unchanged" if you are working on `src/tools`, `tests` or | COMMENT |
| LOW | bootstrap.example.toml | 619 | # Set this to `true` to always download or `false` to always use the in-tree | COMMENT |
| LOW | library/core/src/async_iter/async_iter.rs | 25 | /// # Return value | COMMENT |
| LOW | library/core/src/num/float_parse.rs | 54 | /// # Return value | COMMENT |
| LOW | library/core/src/ops/coroutine.rs | 100 | /// # Return value | COMMENT |
| LOW | library/core/src/future/future.rs | 46 | /// # Return value | COMMENT |
| LOW | library/stdarch/crates/core_arch/src/wasm32/atomic.rs | 27 | /// # Return value | COMMENT |
| LOW | library/stdarch/crates/core_arch/src/wasm32/atomic.rs | 58 | /// # Return value | COMMENT |
| LOW | library/stdarch/crates/core_arch/src/wasm32/atomic.rs | 84 | /// # Return value | COMMENT |
| LOW | …rary/stdarch/crates/core_arch/src/x86_64/cmpxchg16b.rs | 12 | /// # Return value | COMMENT |
| LOW | library/stdarch/.github/workflows/main.yml | 390 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | .github/workflows/ci.yml | 108 | # Check if cargo is installed | COMMENT |
| LOW | …piler/rustc_codegen_gcc/.github/workflows/failures.yml | 131 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | …mpiler/rustc_codegen_gcc/.github/workflows/release.yml | 124 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/.github/workflows/m68k.yml | 135 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | …mpiler/rustc_codegen_gcc/.github/workflows/stdarch.yml | 118 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/.github/workflows/gcc12.yml | 103 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | compiler/rustc_codegen_gcc/.github/workflows/ci.yml | 162 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/rust-analyzer/Cargo.toml | 30 | # Set this to 1 or 2 to get more useful backtraces in debugger. | COMMENT |
| LOW | src/tools/rust-analyzer/.github/workflows/ci.yaml | 359 | # Check if all jobs that we depend on (in the needs array) were successful (or have been skipped). | COMMENT |
| LOW | src/tools/miri/.github/workflows/ci.yml | 205 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_mq.yml | 214 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_dev.yml | 60 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_pr.yml | 83 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/clippy/.github/workflows/clippy_changelog.yml | 50 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/tools/clippy/.github/workflows/remark.yml | 66 | # Check if all jobs that we depend on (in the needs array) were successful. | COMMENT |
| LOW | src/bootstrap/bootstrap.py | 176 | # Check if the RuntimeError raised by run(curl) should be silenced | COMMENT |
| LOW | src/ci/scripts/verify-backported-commits.sh | 136 | # Check if a commit is in the default branch. | COMMENT |
| LOW | src/ci/scripts/free-disk-space-linux.sh | 23 | # Check if we're on a GitHub hosted runner. | COMMENT |
| LOW | src/ci/scripts/free-disk-space-linux.sh | 341 | # Check if it's a valid mountpoint and it has enough available space. | COMMENT |
| LOW | src/etc/pre-push.sh | 10 | # Check if the push is doing anything other than deleting remote branches | COMMENT |
| LOW | src/etc/lldb_batchmode/runner.py | 30 | # Set this to True for additional output | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 45 | def extract_intrinsics_from_llvm(llvm_path): | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/commands.ts | 567 | function predicateEvaluationValidationMessage( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/commands.ts | 614 | function viewFileUsingTextDocumentContentProvider( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/commands.ts | 1197 | export function applySnippetWorkspaceEditCommand(_ctx: CtxInit): Cmd { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/main.ts | 229 | function checkConflictingExtensions() { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/toolchain.ts | 177 | async function getPathForExecutableWithEnv( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/snippets.ts | 7 | export async function applySnippetWorkspaceEdit( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/debug.ts | 410 | async function recompileTestFromDebuggingSession(session: vscode.DebugSession, ctx: Ctx) { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/debug.ts | 432 | export function initializeDebugSessionTrackingAndRebuild(ctx: Ctx) { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/client.ts | 372 | function assertIsCodeActionWithoutEditsAndCommands( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/config.ts | 561 | function substituteVSCodeVariableInString(val: string): string { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/new_project.ts | 84 | async function promptForNewProjectTemplate(): Promise<NewProjectKind | undefined> { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/new_project.ts | 91 | async function promptForNewProjectParentFolder(): Promise<vscode.Uri | undefined> { | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/new_project.ts | 238 | export function determineNewProjectOpenAction( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/new_project.ts | 255 | async function promptForNewProjectOpenAction( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/new_project.ts | 284 | async function executeNewProjectOpenAction( | CODE |
| LOW | src/tools/rust-analyzer/editors/code/src/bootstrap.ts | 179 | async function hasToolchainFileWithRaDeclared(uri: vscode.Uri): Promise<boolean> { | CODE |
| LOW | src/tools/miri/test-cargo-miri/run-test.py | 199 | def test_cargo_miri_multi_target(): | CODE |
| LOW | src/bootstrap/bootstrap.py | 746 | def should_fix_bins_and_dylibs(self): | CODE |
| LOW | src/bootstrap/bootstrap_test.py | 90 | def test_stamp_path_does_not_exist(self): | CODE |
| LOW | src/bootstrap/bootstrap_test.py | 180 | def test_set_codegen_backends(self): | CODE |
| LOW⚡ | src/bootstrap/bootstrap_test.py | 205 | def test_dotted_key_matches_section_form(self): | CODE |
| LOW⚡ | src/bootstrap/bootstrap_test.py | 212 | def test_dotted_key_wrong_section(self): | CODE |
| LOW⚡ | src/bootstrap/bootstrap_test.py | 217 | def test_program_config_requires_build_table(self): | CODE |
| LOW | src/bootstrap/bootstrap_test.py | 240 | def test_dotted_key_inside_section(self): | CODE |
| LOW | src/bootstrap/bootstrap_test.py | 253 | def test_dotted_prefix_does_not_alias_other_section(self): | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 55 | def check_output_with_logging( | CODE |
| LOW | src/etc/gdb_providers.py | 12 | def unwrap_unique_or_non_null(unique_or_nonnull): | CODE |
| LOW | src/etc/gdb_providers.py | 106 | def _enumerate_array_elements(element_ptrs): | CODE |
| LOW | src/etc/lldb_lookup.py | 126 | def register_providers_compatibility(): | CODE |
| LOW | src/etc/lldb_providers.py | 120 | def unwrap_unique_or_non_null(unique_or_nonnull: SBValue) -> SBValue: | CODE |
| LOW | src/etc/lldb_providers.py | 229 | def resolve_msvc_template_arg(arg_name: str, target: SBTarget) -> SBType: | CODE |
| LOW | src/etc/lldb_batchmode/runner.py | 121 | def start_breakpoint_listener(target): | CODE |
| LOW | src/librustdoc/html/static/js/stringdex.js | 3045 | function makeBranchesFromBinaryData( | CODE |
| LOW | src/librustdoc/html/static/js/main.js | 113 | function getOrCreateSection(id, classes) { | CODE |
| LOW | src/librustdoc/html/static/js/main.js | 132 | function getAlternativeDisplayElem() { | CODE |
| LOW | src/librustdoc/html/static/js/main.js | 180 | function browserSupportsHistoryApi() { | CODE |
| LOW | src/librustdoc/html/static/js/main.js | 1216 | function setImplementorsTogglesOpen(id, open) { | CODE |
| LOW | src/librustdoc/html/static/js/main.js | 2232 | function showHideCodeExampleButtons(event) { | CODE |
| LOW | src/librustdoc/html/static/js/search.js | 782 | function checkExtraTypeFilterCharacters(start, parserState) { | CODE |
| LOW | src/librustdoc/html/static/js/search.js | 3628 | function unifyFunctionTypeCheckBindings( | CODE |
| LOW | src/librustdoc/html/static/js/search.js | 3701 | function unifyFunctionTypeIsUnboxCandidate( | CODE |
| LOW | src/librustdoc/html/static/js/settings.js | 126 | function buildSettingsPageSections(settings) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/ui/drop/super-let-tail-expr-drop-order.rs | 165 | // # Test scaffolding... | COMMENT |
| MEDIUM | tests/ui/drop/if-let-guards-2.rs | 196 | // # Test scaffolding... | COMMENT |
| MEDIUM | tests/ui/drop/if-let-guards.rs | 57 | // # Test scaffolding... | COMMENT |
| MEDIUM | tests/ui/drop/if-let-super-let.rs | 81 | // # Test scaffolding... | COMMENT |
| MEDIUM | tests/ui/drop/drop-order-comparisons.rs | 443 | // # Test scaffolding | COMMENT |
| MEDIUM | tests/ui/drop/drop-order-comparisons-let-chains.rs | 79 | // # Test scaffolding | COMMENT |
| MEDIUM | …s/ide-assists/src/handlers/add_missing_impl_members.rs | 19 | // Adds scaffold for required impl members. | COMMENT |
| MEDIUM | …s/ide-assists/src/handlers/add_missing_impl_members.rs | 64 | // Adds scaffold for overriding default impl members. | COMMENT |
| MEDIUM | src/tools/rust-analyzer/lib/lsp-server/src/lib.rs | 1 | //! A language server scaffold, exposing a synchronous crossbeam-channel based API. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | library/compiler-builtins/ci/ci-util.py | 343 | CODE | |
| LOW | library/compiler-builtins/ci/ci-util.py | 108 | CODE | |
| LOW | library/compiler-builtins/etc/update-api-list.py | 242 | CODE | |
| LOW | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 15 | CODE | |
| LOW | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 73 | CODE | |
| LOW | …rustc_codegen_gcc/tools/check_intrinsics_duplicates.py | 4 | CODE | |
| LOW | src/tools/publish_toolstate.py | 151 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 52 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 280 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 1332 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 603 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 951 | CODE | |
| LOW | src/bootstrap/configure.py | 401 | CODE | |
| LOW | src/bootstrap/configure.py | 507 | CODE | |
| LOW | src/bootstrap/configure.py | 592 | CODE | |
| LOW | src/bootstrap/configure.py | 675 | CODE | |
| LOW | src/bootstrap/configure.py | 735 | CODE | |
| LOW | src/ci/docker/scripts/android-sdk-manager.py | 76 | CODE | |
| LOW | src/etc/htmldocck.py | 321 | CODE | |
| LOW | src/etc/htmldocck.py | 520 | CODE | |
| LOW | src/etc/lldb_providers.py | 183 | CODE | |
| LOW | src/etc/lldb_providers.py | 299 | CODE | |
| LOW | src/etc/lldb_providers.py | 716 | CODE | |
| LOW | src/etc/lldb_batchmode/runner.py | 71 | CODE | |
| LOW | src/etc/lldb_batchmode/runner.py | 121 | CODE | |
| LOW | src/etc/lldb_batchmode/runner.py | 126 | CODE | |
| LOW | src/etc/lldb_batchmode/common.py | 78 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler/rustc_codegen_gcc/tools/generate_intrinsics.py | 3 | CODE | |
| LOW | src/tools/publish_toolstate.py | 8 | CODE | |
| LOW | src/tools/publish_toolstate.py | 25 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 1 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 1 | CODE | |
| LOW | src/bootstrap/bootstrap.py | 1 | CODE | |
| LOW | src/bootstrap/configure.py | 5 | CODE | |
| LOW | src/bootstrap/configure.py | 5 | CODE | |
| LOW | src/bootstrap/configure.py | 5 | CODE | |
| LOW | src/bootstrap/bootstrap_test.py | 5 | CODE | |
| LOW | src/bootstrap/bootstrap_test.py | 5 | CODE | |
| LOW | src/bootstrap/bootstrap_test.py | 5 | CODE | |
| LOW | src/ci/cpu-usage-over-time.py | 120 | CODE | |
| LOW | src/etc/htmldocck.py | 9 | CODE | |
| LOW | src/etc/htmldocck.py | 9 | CODE | |
| LOW | src/etc/htmldocck.py | 9 | CODE | |
| LOW | src/etc/dec2flt_table.py | 17 | CODE | |
| LOW | src/etc/lldb_lookup.py | 1 | CODE | |
| LOW | src/etc/lldb_lookup.py | 6 | CODE | |
| LOW | src/etc/lldb_lookup.py | 6 | CODE | |
| LOW | src/etc/lldb_providers.py | 1 | CODE | |
| LOW | src/etc/gdb_lookup.py | 5 | CODE | |
| LOW | src/etc/lldb_batchmode/runner.py | 16 | CODE | |
| LOW | src/etc/lldb_batchmode/__init__.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | library/alloc/src/string.rs | 2909 | /// In this implementation, the `to_string` method panics | COMMENT |
| HIGH | library/core/src/ffi/va_list.rs | 178 | // In this implementation the `va_list` type is just an alias for an opaque pointer. | COMMENT |
| HIGH | compiler/rustc_ast_pretty/src/pp.rs | 131 | //! In this implementation (following the paper, again) the SCAN process is the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 32 | except Exception: | CODE |
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 54 | except Exception: | CODE |
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 71 | except Exception as e: | CODE |
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 78 | except Exception as e: | CODE |
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 97 | except Exception as e: | CODE |
| LOW | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 117 | except Exception: | CODE |
| MEDIUM | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 29 | def _read_utf8(mem): | CODE |
| MEDIUM | …/rust-analyzer/lib/smol_str/src/gdb_smolstr_printer.py | 51 | def to_string(self): | CODE |
| LOW | src/bootstrap/bootstrap.py | 301 | except Exception as e: | CODE |
| LOW | src/bootstrap/bootstrap.py | 1438 | except Exception as error: | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 104 | except Exception as e: | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 202 | except Exception as e: | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 209 | except Exception as e: | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 221 | except Exception as e: | CODE |
| LOW | src/ci/docker/scripts/fuchsia-test-runner.py | 523 | except Exception as e: | CODE |
| LOW | src/etc/htmldocck.py | 189 | except Exception as exc: | STRING |
| LOW | src/etc/htmldocck.py | 279 | except Exception as e: | STRING |
| LOW | src/etc/htmldocck.py | 335 | except Exception: | STRING |
| LOW | src/etc/gdb_load_rust_pretty_printers.py | 15 | except Exception: | CODE |
| LOW | src/etc/lldb_providers.py | 344 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ustc-std-workspace/rustc-std-workspace-core/Cargo.toml | 0 | crate for integration of crates.io crates into rust-lang/rust standard library workspace | STRING |
| HIGH | …stc-std-workspace/rustc-std-workspace-alloc/Cargo.toml | 0 | crate for integration of crates.io crates into rust-lang/rust standard library workspace | STRING |
| HIGH | …rustc-std-workspace/rustc-std-workspace-std/Cargo.toml | 0 | crate for integration of crates.io crates into rust-lang/rust standard library workspace | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | library/core/src/macros/mod.rs | 1637 | /// ### Usage example: | COMMENT |
| LOW | src/tools/linkchecker/linkcheck.sh | 9 | # Usage: | COMMENT |
| LOW | src/tools/run-make-support/src/macros.rs | 14 | /// Example usage: | COMMENT |