-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #92216 - matthiaskrgr:rollup-luplvuc, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #88858 (Allow reverse iteration of lowercase'd/uppercase'd chars) - #91544 (Fix duplicate derive clone suggestion) - #92026 (Add some JSDoc comments to rustdoc JS) - #92117 (kmc-solid: Add `std::sys::solid::fs::File::read_buf`) - #92139 (Change Backtrace::enabled atomic from SeqCst to Relaxed) - #92146 (Don't emit shared files when scraping examples from dependencies in Rustdoc) - #92208 (Quote bat script command line) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
18 changed files
with
418 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Rustdoc JS | ||
|
||
These JavaScript files are incorporated into the rustdoc binary at build time, | ||
and are minified and written to the filesystem as part of the doc build process. | ||
|
||
We use the [Closure Compiler](https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler) | ||
dialect of JSDoc to comment our code and annotate params and return types. | ||
To run a check: | ||
|
||
./x.py doc library/std | ||
npm i -g google-closure-compiler | ||
google-closure-compiler -W VERBOSE \ | ||
build/<YOUR PLATFORM>/doc/{search-index*.js,crates*.js} \ | ||
src/librustdoc/html/static/js/{search.js,main.js,storage.js} \ | ||
--externs src/librustdoc/html/static/js/externs.js >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// This file contains type definitions that are processed by the Closure Compiler but are | ||
// not put into the JavaScript we include as part of the documentation. It is used for | ||
// type checking. See README.md in this directory for more info. | ||
|
||
/* eslint-disable */ | ||
var searchState; | ||
function initSearch(searchIndex){} | ||
|
||
/** | ||
* @typedef {{ | ||
* raw: string, | ||
* query: string, | ||
* type: string, | ||
* id: string, | ||
* }} | ||
*/ | ||
var ParsedQuery; | ||
|
||
/** | ||
* @typedef {{ | ||
* crate: string, | ||
* desc: string, | ||
* id: number, | ||
* name: string, | ||
* normalizedName: string, | ||
* parent: (Object|null|undefined), | ||
* path: string, | ||
* ty: (Number|null|number), | ||
* type: (Array<?>|null) | ||
* }} | ||
*/ | ||
var Row; |
Oops, something went wrong.