rust/src
Matthias Krüger afe257554c
Rollup merge of #109009 - notriddle:notriddle/edit-distance, r=GuillaumeGomez
rustdoc: use restricted Damerau-Levenshtein distance for search

Based on https://github.com/rust-lang/rust/pull/108200, for the same rationale.

> This replaces the existing Levenshtein algorithm with the Damerau-Levenshtein algorithm. This means that "ab" to "ba" is one change (a transposition) instead of two (a deletion and insertion). More specifically, this is a restricted implementation, in that "ca" to "abc" cannot be performed as "ca" → "ac" → "abc", as there is an insertion in the middle of a transposition. I believe that errors like that are sufficiently rare that it's not worth taking into account.

Before this change, searching [`prinltn!`] listed `print!` first, followed by `println!`. With this change, `println!` matches more closely.

[`prinltn!`]: https://doc.rust-lang.org/nightly/std/?search=prinltn!
2023-03-12 20:44:50 +01:00
..
bootstrap Rollup merge of #108984 - Teapot4195:issue-106803-fix, r=ozkanonur 2023-03-12 08:13:27 +01:00
ci Add rustdoc-js eslint check into CI 2023-03-11 21:42:11 +01:00
doc avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
etc Rename src/etc/vscode_settings.json to rust_analyzer_settings.json 2023-03-01 22:58:05 +05:30
librustdoc Rollup merge of #109009 - notriddle:notriddle/edit-distance, r=GuillaumeGomez 2023-03-12 20:44:50 +01:00
llvm-project@fd949f3034 Update LLVM submodule 2023-02-10 17:00:09 +09:00
rustdoc-json-types fix inconsistent json outputs from rustdoc 2023-03-05 00:09:09 +03:00
tools Rollup merge of #109028 - GuillaumeGomez:rustdoc-js-tester-eslint, r=notriddle 2023-03-12 08:13:29 +01:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Download rustc component for rustfmt toolchain as well 2023-01-31 10:29:33 -05:00
version Bump version to 1.70.0 2023-03-04 10:10:46 -05:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.