-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 11 pull requests #83178
Rollup of 11 pull requests #83178
Commits on Feb 21, 2021
-
run-make: Specify --target to rustc
Resolves rust-lang#78911 The target's linker was used but rustc wasn't told to build for that target (instead defaulting to the host). This led to the host instead of the target getting tested and to the linker getting inappropriate arguments.
Configuration menu - View commit details
-
Copy full SHA for 2f7672f - Browse repository at this point
Copy the full SHA 2f7672fView commit details -
run-make: skip issue-36710 on riscv64
The test assumes it can run target binaries on the host. This not true for riscv64 CI (or for other platforms using remote-test-server).
Configuration menu - View commit details
-
Copy full SHA for 1b55654 - Browse repository at this point
Copy the full SHA 1b55654View commit details -
Configuration menu - View commit details
-
Copy full SHA for f69d954 - Browse repository at this point
Copy the full SHA f69d954View commit details -
bootstrap: don't run linkcheck when crosscompiling
When we cross compile, some things (and their documentation) are built for the host (e.g. rustc), while others (and their documentation) are built for the target. This generated documentation will have broken links between documentation for different platforms e.g. between rustc and cargo.
Configuration menu - View commit details
-
Copy full SHA for b71573b - Browse repository at this point
Copy the full SHA b71573bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b23df1 - Browse repository at this point
Copy the full SHA 9b23df1View commit details
Commits on Mar 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 81d1d82 - Browse repository at this point
Copy the full SHA 81d1d82View commit details -
Get rid of the garbage produced by getObjectFromId
There is no reason for this function to return an object, since it is always used for getting at the name anyhow. It's used in the inner loop for some popular functions, so we want to avoid allocating in it.
Configuration menu - View commit details
-
Copy full SHA for 5fe3b87 - Browse repository at this point
Copy the full SHA 5fe3b87View commit details -
In checkGenerics and checkType, don't use Array.prototype.splice so much
Every time splice() is called, another temporary object is created. This version, which uses plain objects as a sort of Hash Bag, should only produce one temporary object each time it's called.
Configuration menu - View commit details
-
Copy full SHA for d7971e5 - Browse repository at this point
Copy the full SHA d7971e5View commit details -
Eagerly generate the underscore-less name to search on
Basically, it doesn't make sense to generate those things every time you search. That generates a bunch of stuff for the GC to clean up, when, if the user wanted to do another search, it would just need to re-do it again.
Configuration menu - View commit details
-
Copy full SHA for 3f70bfa - Browse repository at this point
Copy the full SHA 3f70bfaView commit details -
Update src/librustdoc/html/static/main.js
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b76a3d3 - Browse repository at this point
Copy the full SHA b76a3d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca04ce3 - Browse repository at this point
Copy the full SHA ca04ce3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7d14b1 - Browse repository at this point
Copy the full SHA b7d14b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7834aeb - Browse repository at this point
Copy the full SHA 7834aebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26f85cc - Browse repository at this point
Copy the full SHA 26f85ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for d92f840 - Browse repository at this point
Copy the full SHA d92f840View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa3694f - Browse repository at this point
Copy the full SHA fa3694fView commit details
Commits on Mar 14, 2021
-
Avoid generating new strings for names that have no undescores
This should have negligible effect on time, but it cuts about 1MiB off of resident memory usage.
Configuration menu - View commit details
-
Copy full SHA for 0bfd142 - Browse repository at this point
Copy the full SHA 0bfd142View commit details -
Use a number for row.id, instead of a string
There's no reason for it to be a string, since it's only used for de-duplicating the results arrays anyhow.
Configuration menu - View commit details
-
Copy full SHA for f57d715 - Browse repository at this point
Copy the full SHA f57d715View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3612953 - Browse repository at this point
Copy the full SHA 3612953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17d3308 - Browse repository at this point
Copy the full SHA 17d3308View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8b2e7b - Browse repository at this point
Copy the full SHA e8b2e7bView commit details -
Make nameWithoutUndescores lowercased
This basically fixes a search bug introduced by earlier changes.
Configuration menu - View commit details
-
Copy full SHA for 8eba927 - Browse repository at this point
Copy the full SHA 8eba927View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba00ddc - Browse repository at this point
Copy the full SHA ba00ddcView commit details
Commits on Mar 15, 2021
-
Fall-back to sans-serif if Arial is not available
Otherwise on systems where Arial is not available the system will fallback to a serif font, rather than a sans-serif one. This is especially relevant on acessibility-conscious setups (such as is mine) that have web-fonts disabled and a limited set of fonts available on the system.
Configuration menu - View commit details
-
Copy full SHA for 7134b0e - Browse repository at this point
Copy the full SHA 7134b0eView commit details -
No background for code in portability snippets
This better matches the appearance of this kind of snippet in the full item view and is less jarring to read due to repeated foreground-background changes.
Configuration menu - View commit details
-
Copy full SHA for 9aa48ba - Browse repository at this point
Copy the full SHA 9aa48baView commit details -
Configuration menu - View commit details
-
Copy full SHA for db14627 - Browse repository at this point
Copy the full SHA db14627View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcba95f - Browse repository at this point
Copy the full SHA dcba95fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e66e9d - Browse repository at this point
Copy the full SHA 7e66e9dView commit details -
Specify *.woff2 files as binary
This prevents older git versions to change the "line endings".
Configuration menu - View commit details
-
Copy full SHA for ff8717b - Browse repository at this point
Copy the full SHA ff8717bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 924e522 - Browse repository at this point
Copy the full SHA 924e522View commit details -
Extend
proc_macro_back_compat
lint toprocedural-masquerade
We now lint on *any* use of `procedural-masquerade` crate. While this crate still exists, its main reverse dependency (`cssparser`) no longer depends on it. Any crates still depending off should stop doing so, as it only exists to support very old Rust versions. If a crate actually needs to support old versions of rustc via `procedural-masquerade`, then they'll just need to accept the warning until we remove it entirely (at the same time as the back-compat hack). The latest version of `procedural-masquerade` does not work with the latest rustc, but trying to check for the version seems like more trouble than it's worth. While working on this, I realized that the `proc-macro-hack` check was never actually doing anything. The corresponding enum variant in `proc-macro-hack` is named `Value` or `Nested` - it has never been called `Input`. Due to a strange Crater issue, the Crater run that tested adding this did *not* end up testing it - some of the crates that would have failed did not actually have their tests checked, making it seem as though the `proc-macro-hack` check was working. The Crater issue is being discussed at https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Nearly.20identical.20Crater.20runs.20processed.20a.20crate.20differently/near/230406661 Despite the `proc-macro-hack` check not actually doing anything, we haven't gotten any reports from users about their build being broken. I went ahead and removed it entirely, since it's clear that no one is being affected by the `proc-macro-hack` regression in practice.
Configuration menu - View commit details
-
Copy full SHA for d6a7c1d - Browse repository at this point
Copy the full SHA d6a7c1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e98b7d1 - Browse repository at this point
Copy the full SHA e98b7d1View commit details
Commits on Mar 16, 2021
-
Rollup merge of rust-lang#80839 - tblah:riscv64linux_links, r=sanxiyn
Riscv64linux Test fixes Get tests passing again using the riscv64gc-unknown-linux-gnu docker image. Test with ``` src/ci/docker/run.sh riscv64gc-linux ``` ## linkcheck Linkcheck tests that interdocument links in the documentation are correct. Some interdocument links go between rustc and tools (such as rustdoc and cargo). When cross compiling, rustc is built for the host while some tools are built for the target. This goes for the documentation too. Because of this, links in the rustc documentation reffering to cargo or rustdoc documentation look broken. This issue is worked around by disabling linkcheck for cross compilation builds. ## run-make tests rust-lang#78911 seems to happen because `--target` was not passed to `rustc`, but the target linker was specified, causing the target linker to be called with options intended for the host. Resolves rust-lang#78911 In a separate issue, `issue-36710` was trying to run a binary built for the target on the host system. This will not work for any platform using `remote-test-server`/`client` (such as riscv64). I don't know of a way of skipping those platforms specifically, so I set this test to skip only on riscv64 for now.
Configuration menu - View commit details
-
Copy full SHA for 142028e - Browse repository at this point
Copy the full SHA 142028eView commit details -
Rollup merge of rust-lang#82838 - Amanieu:rustdoc_asm, r=nagisa
Allow rustdoc to handle asm! of foreign architectures This allows rustdoc to process code containing `asm!` for architectures other than the current one. Since this never reaches codegen, we just replace target-specific registers and register classes with a dummy one. Fixes rust-lang#82869
Configuration menu - View commit details
-
Copy full SHA for d0222f1 - Browse repository at this point
Copy the full SHA d0222f1View commit details -
Rollup merge of rust-lang#83072 - henryboisdequin:patch-1, r=Dylan-DPC
Update `Vec` docs Fix typos/nits in `Vec` docs
Configuration menu - View commit details
-
Copy full SHA for 0e7ab5a - Browse repository at this point
Copy the full SHA 0e7ab5aView commit details -
Rollup merge of rust-lang#83077 - notriddle:gc-cleanup-rustdoc-search…
…, r=GuillaumeGomez rustdoc: reduce GC work during search
Configuration menu - View commit details
-
Copy full SHA for a9d6f8a - Browse repository at this point
Copy the full SHA a9d6f8aView commit details -
Rollup merge of rust-lang#83092 - petrochenkov:qspan, r=estebank
More precise spans for HIR paths `Ty::assoc_item` is lowered to `<Ty>::assoc_item` in HIR, but `Ty` got span from the whole path. This PR fixes that, and adjusts some diagnostic code that relied on `Ty` having the whole path span. This is a pre-requisite for rust-lang#82868 (we cannot report suggestions like `Tr::assoc` -> `<dyn Tr>::assoc` with the current imprecise spans). r? ``@estebank``
Configuration menu - View commit details
-
Copy full SHA for c73d157 - Browse repository at this point
Copy the full SHA c73d157View commit details -
Rollup merge of rust-lang#83124 - cjgillot:iiib, r=petrochenkov
Do not insert impl_trait_in_bindings opaque definitions twice. The reference to the item already appears inside the `OpaqueDef`. It does not need to be repeated as a statement.
Configuration menu - View commit details
-
Copy full SHA for dba97da - Browse repository at this point
Copy the full SHA dba97daView commit details -
Rollup merge of rust-lang#83156 - nagisa:nagisa/sans-serif-please, r=…
…GuillaumeGomez Fall-back to sans-serif if Arial is not available Otherwise on systems where Arial is not available the UA will fallback to a serif font, rather than a sans-serif one. This is especially relevant on acessibility-conscious setups (such as is mine) that have web-fonts disabled and a limited set of fonts available on the system. r? ``@GuillaumeGomez`` cc ``@jsha``
Configuration menu - View commit details
-
Copy full SHA for 0463c76 - Browse repository at this point
Copy the full SHA 0463c76View commit details -
Rollup merge of rust-lang#83157 - nagisa:nagisa/portability-backgroun…
…d, r=GuillaumeGomez No background for code in portability snippets This better matches the appearance of this kind of snippet in the full item view and is less jarring to read due to repeated foreground-background changes. ![Listing of items in a module with some portability snippets attached to some of the items (light theme). The portability snippet has a light blue background and all of the text in it, monospace or not, is the same colour – black](https://user-images.githubusercontent.com/679122/111196363-1900f500-85b5-11eb-8f97-e283c59002a4.png) ![Listing of items in a module with some portability snippets attached to some of the items (dark theme). The portability snippet has a light blue background and all of the text in it, monospace or not, is the same colour – black](https://user-images.githubusercontent.com/679122/111196366-19998b80-85b5-11eb-9914-4d14d9d13ed3.png) There should be no observable changes to the ayu theme.
Configuration menu - View commit details
-
Copy full SHA for afcd0a6 - Browse repository at this point
Copy the full SHA afcd0a6View commit details -
Rollup merge of rust-lang#83160 - m-ou-se:deprecate-rustc-serialize-d…
…erives, r=petrochenkov Deprecate RustcEncodable and RustcDecodable. We can't remove the `RustcEncodable` and `RustcDecodable` derive macros from the prelude, but we can deprecate them.
Configuration menu - View commit details
-
Copy full SHA for 1a513c4 - Browse repository at this point
Copy the full SHA 1a513c4View commit details -
Rollup merge of rust-lang#83162 - jfrimmel:woff2, r=Mark-Simulacrum
Specify *.woff2 files as binary This prevents older git versions to change the "line endings". Fixes rust-lang#83159.
Configuration menu - View commit details
-
Copy full SHA for 4e39084 - Browse repository at this point
Copy the full SHA 4e39084View commit details -
Rollup merge of rust-lang#83168 - Aaron1011:lint-procedural-masquerad…
…e, r=petrochenkov Extend `proc_macro_back_compat` lint to `procedural-masquerade` We now lint on *any* use of `procedural-masquerade` crate. While this crate still exists, its main reverse dependency (`cssparser`) no longer depends on it. Any crates still depending off should stop doing so, as it only exists to support very old Rust versions. If a crate actually needs to support old versions of rustc via `procedural-masquerade`, then they'll just need to accept the warning until we remove it entirely (at the same time as the back-compat hack). The latest version of `procedural-masquerade` does not work with the latest rustc, but trying to check for the version seems like more trouble than it's worth. While working on this, I realized that the `proc-macro-hack` check was never actually doing anything. The corresponding enum variant in `proc-macro-hack` is named `Value` or `Nested` - it has never been called `Input`. Due to a strange Crater issue, the Crater run that tested adding this did *not* end up testing it - some of the crates that would have failed did not actually have their tests checked, making it seem as though the `proc-macro-hack` check was working. The Crater issue is being discussed at https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Nearly.20identical.20Crater.20runs.20processed.20a.20crate.20differently/near/230406661 Despite the `proc-macro-hack` check not actually doing anything, we haven't gotten any reports from users about their build being broken. I went ahead and removed it entirely, since it's clear that no one is being affected by the `proc-macro-hack` regression in practice.
Configuration menu - View commit details
-
Copy full SHA for 1c3860b - Browse repository at this point
Copy the full SHA 1c3860bView commit details