-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 7 pull requests #92397
Rollup of 7 pull requests #92397
Commits on Dec 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b1529a6 - Browse repository at this point
Copy the full SHA b1529a6View commit details
Commits on Dec 28, 2021
-
Rename
rustdoc::html::render::cache
tosearch_index
The old name wasn't very clear, while the new one makes it clear that this is the code responsible for creating the search index.
Configuration menu - View commit details
-
Copy full SHA for 60a1abe - Browse repository at this point
Copy the full SHA 60a1abeView commit details -
rustdoc: Remove some unnecessary
cache
parametersBased on rust-lang#80883 (comment). The `tcx` parameters do seem to be used though, so I only removed the `cache` parameters.
Configuration menu - View commit details
-
Copy full SHA for e19593f - Browse repository at this point
Copy the full SHA e19593fView commit details -
Move
ExternalLocation
toclean::types
It was previously defined in `render::search_index` but wasn't used at all there. `clean::types` seems like a better fit since that's where `ExternalCrate` is defined.
Configuration menu - View commit details
-
Copy full SHA for 2b801dc - Browse repository at this point
Copy the full SHA 2b801dcView commit details -
Make
search_index
functions private where possibleNow the only two crate-public items are `build_index` and `get_index_search_type` (because for some reason the latter is also used in `formats::cache`).
Configuration menu - View commit details
-
Copy full SHA for bd6692c - Browse repository at this point
Copy the full SHA bd6692cView commit details -
Configuration menu - View commit details
-
Copy full SHA for afb77a9 - Browse repository at this point
Copy the full SHA afb77a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8e8e5 - Browse repository at this point
Copy the full SHA 5c8e8e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 406d6d4 - Browse repository at this point
Copy the full SHA 406d6d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4391a11 - Browse repository at this point
Copy the full SHA 4391a11View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbccc4a - Browse repository at this point
Copy the full SHA cbccc4aView commit details -
Only special case struct fields for intra-doc links, not enum variants
Variants are already handled by `resolve_str_path_error`, rustdoc doesn't need to consider them separately.
Configuration menu - View commit details
-
Copy full SHA for 636d6a3 - Browse repository at this point
Copy the full SHA 636d6a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad29c17 - Browse repository at this point
Copy the full SHA ad29c17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d1ec64 - Browse repository at this point
Copy the full SHA 7d1ec64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09104ad - Browse repository at this point
Copy the full SHA 09104adView commit details -
Add regression test for rust-lang#59502
This issue was fixed using a hacky recursion "fuel" argument, but the issue was never minimized nor was a regression test added. The underlying bug is still unfixed, so this test should help with fixing it and removing the `recurse` hack.
Configuration menu - View commit details
-
Copy full SHA for 908a9d4 - Browse repository at this point
Copy the full SHA 908a9d4View commit details
Commits on Dec 29, 2021
-
Rollup merge of rust-lang#92075 - jyn514:resolve-cleanup, r=camelid
rustdoc: Only special case struct fields for intra-doc links, not enum variants Variants are already handled by `resolve_str_path_error`, rustdoc doesn't need to consider them separately. Thanks `@camelid` for catching this! Eventually I'd like to fix the "combine this with `variant_field`" comment but that needs `resolve_field` to take a `ty_res` parameter to avoid it being super hacky (cc rust-lang#83761 (comment)). r? `@camelid`
Configuration menu - View commit details
-
Copy full SHA for e313143 - Browse repository at this point
Copy the full SHA e313143View commit details -
Rollup merge of rust-lang#92118 - jackh726:type-alias-position-error,…
… r=petrochenkov Parse and suggest moving where clauses after equals for type aliases ~Mostly the same as rust-lang#90076, but doesn't make any syntax changes.~ Whether or not we want to land the syntax changes, we should parse the invalid where clause position and suggest moving. r? `@nikomatsakis` cc `@petrochenkov` you might have thoughts on implementation
Configuration menu - View commit details
-
Copy full SHA for bee1471 - Browse repository at this point
Copy the full SHA bee1471View commit details -
Rollup merge of rust-lang#92237 - compiler-errors:issue-92100, r=cjgi…
…llot Visit expressions in-order when resolving pattern bindings [edited:] Visit the pattern's sub-expressions before defining any bindings. Otherwise, we might get into a case where a Lit/Range expression in a pattern has a qpath pointing to a Ident pattern that is defined after it, causing an ICE when lowering to HIR. I have a more detailed explanation in the issue linked. Fixes rust-lang#92100
Configuration menu - View commit details
-
Copy full SHA for f044c6c - Browse repository at this point
Copy the full SHA f044c6cView commit details -
Rollup merge of rust-lang#92340 - camelid:search-index-cleanup, r=Gui…
…llaumeGomez rustdoc: Start cleaning up search index generation I'm trying to simplify and clean up the code, partly to make rust-lang#90779 easier. r? `@GuillaumeGomez`
Configuration menu - View commit details
-
Copy full SHA for 0e41194 - Browse repository at this point
Copy the full SHA 0e41194View commit details -
Rollup merge of rust-lang#92351 - TmLev:master, r=GuillaumeGomez
Add long error explanation for E0227 Part of the rust-lang#61137.
Configuration menu - View commit details
-
Copy full SHA for c82b2bc - Browse repository at this point
Copy the full SHA c82b2bcView commit details -
Rollup merge of rust-lang#92371 - dtolnay:attrblock, r=oli-obk
Remove pretty printer space inside block with only outer attrs Follow-up to rust-lang#92238 fixing one of the FIXMEs. ```rust macro_rules! repro { ($expr:expr) => { stringify!($expr) }; } fn main() { println!("{}", repro!(#[attr] {})); } ``` Before: `#[attr] { }` After: `#[attr] {}`
Configuration menu - View commit details
-
Copy full SHA for 5583010 - Browse repository at this point
Copy the full SHA 5583010View commit details -
Rollup merge of rust-lang#92372 - dtolnay:fntype, r=jackh726
Print space after formal generic params in fn type Follow-up to rust-lang#92238 fixing one of the FIXMEs. ```rust macro_rules! repro { ($ty:ty) => { stringify!($ty) }; } fn main() { println!("{}", repro!(for<'a> fn(&'a u8))); } ``` Before: `for<'a>fn(&'a u8)` After: `for<'a> fn(&'a u8)` The pretty printer's `print_formal_generic_params` already prints formal generic params correctly with a space, we just need to call it when printing BareFn types instead of reimplementing the printing incorrectly without a space. https://github.com/rust-lang/rust/blob/83b15bfe1c15f325bc186ebfe3691b729ed59f2b/compiler/rustc_ast_pretty/src/pprust/state.rs#L1394-L1400
Configuration menu - View commit details
-
Copy full SHA for 949769c - Browse repository at this point
Copy the full SHA 949769cView commit details