about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-05-26Also run check in case there are changes in the rustdoc-gui toolsGuillaume Gomez-2/+4
2021-05-26Enforce rustdoc-gui test-suite runGuillaume Gomez-77/+131
2021-05-25Auto merge of #85664 - GuillaumeGomez:rollup-o7qgo8c, r=GuillaumeGomezbors-57/+104
Rollup of 6 pull requests Successful merges: - #85361 (Use TargetTriple::from_path in rustdoc) - #85605 (Replace Local::new(1) with CAPTURE_STRUCT_LOCAL) - #85631 (Move keyword primitive css dom) - #85644 (Better English for documenting when to use unimplemented!()) - #85650 (Add some backticks to the `rustc_middle::ty::adjustment::Adjustment` docs) - #85657 (Remove doubled braces in non_exhaustive structs’ documentation text.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-05-25Rollup merge of #85657 - kpreid:brackets, r=jyn514Guillaume Gomez-1/+1
Remove doubled braces in non_exhaustive structs’ documentation text. In commit 4b806878549990d2ad2aa3c265751d3d89947cdf (part of Rust 1.52.1) many calls to `write!(w,` were replaced with `w.write_str(`, but this one contained braces that were doubled to escape them when taken as a format string, and so changing the call without changing the text caused them to become doubled in the final HTML output. I examined `print_item.rs` and the diff of that prior commit for any other occurrences of this mistake and I did not find any.
2021-05-25Rollup merge of #85650 - scottmcm:adjust-adjustment-docs, r=jyn514Guillaume Gomez-5/+5
Add some backticks to the `rustc_middle::ty::adjustment::Adjustment` docs A few `[i32]`s are getting picked up as intra-doc links, rather than showing as slices, making the sentence quite confusing. See https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/adjustment/struct.Adjustment.html
2021-05-25Rollup merge of #85644 - tialaramex:master, r=dtolnayGuillaume Gomez-1/+1
Better English for documenting when to use unimplemented!() I don't think "plan of using" is correct here. I considered "plan on using" but eventually decided "plan to use" is better.
2021-05-25Rollup merge of #85631 - GuillaumeGomez:move-keywrod-primitive-css-dom, r=jshaGuillaume Gomez-20/+15
Move keyword primitive css dom Fixes #85569. r? ``@jsha``
2021-05-25Rollup merge of #85605 - ptrojahn:closure_struct, r=matthewjasperGuillaume Gomez-19/+20
Replace Local::new(1) with CAPTURE_STRUCT_LOCAL
2021-05-25Rollup merge of #85361 - bjorn3:rustdoc_target_json_path_canonicalize, r=jyn514Guillaume Gomez-11/+62
Use TargetTriple::from_path in rustdoc This fixes the problem reported in https://github.com/Rust-for-Linux/linux/pull/272 where rustdoc requires the absolute path of a target spec json instead of accepting a relative path like rustc.
2021-05-25Update keyword GUI testGuillaume Gomez-4/+3
2021-05-25Move extra search result information for keywords and primitives from CSS to DOMGuillaume Gomez-16/+12
2021-05-25Auto merge of #85634 - RalfJung:miri, r=RalfJungbors-7/+9
update Miri Fixes https://github.com/rust-lang/rust/issues/85591
2021-05-25Auto merge of #84985 - pietroalbini:bootstrap-1.54, r=Mark-Simulacrumbors-67/+22
Bump bootstrap compiler to beta 1.53.0 This PR bumps the bootstrap compiler to version 1.53.0 beta, as part of our usual release process (this was supposed to be Wednesday's step, but creating the beta release took longer than expected). The PR also includes the "Bootstrap: skip rustdoc fingerprint for building docs" commit, see the reasoning [on Zulip](https://zulip-archive.rust-lang.org/241545trelease/88450153betabootstrap.html). r? `@Mark-Simulacrum`
2021-05-24Remove doubled braces in non_exhaustive structs’ documentation text.Kevin Reid-1/+1
In commit 4b806878549990d2ad2aa3c265751d3d89947cdf (part of Rust 1.52.1) many calls to `write!(w,` were replaced with `w.write_str(`, but this one contained braces that were doubled to escape them when taken as a format string, and so changing the call without changing the text caused them to become doubled in the final HTML output. I examined `print_item.rs` and the diff of that prior commit for any other occurrences of this mistake and I did not find any.
2021-05-25Auto merge of #85273 - LeSeulArtichaut:thir-query, r=nikomatsakisbors-922/+937
Make building THIR a stealable query This PR creates a stealable `thir_body` query so that we can build the THIR only once for THIR unsafeck and MIR build. Blocked on #83842. r? `@nikomatsakis`
2021-05-24Add some backticks to the `rustc_middle::ty::adjustment::Adjustment` docsScott McMurray-5/+5
A few `[i32]`s are getting picked up as intra-doc links, rather than showing as slices, making the sentence quite confusing.
2021-05-24Better English for documenting when to use unimplemented!()Nick Lamb-1/+1
2021-05-24Auto merge of #85639 - GuillaumeGomez:rollup-modinsi, r=GuillaumeGomezbors-17/+57
Rollup of 4 pull requests Successful merges: - #85271 (Fix indentation in move keyword documentation) - #85551 (Fix search results display) - #85621 (Restore sans-serif font for module items.) - #85628 (Replace more "NULL" with "null") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-05-24Add testbjorn3-0/+53
2021-05-24Use parse_target_triple in rustdocbjorn3-11/+9
2021-05-24Rollup merge of #85628 - LeSeulArtichaut:thir-null-lowercase, r=estebankGuillaume Gomez-8/+8
Replace more "NULL" with "null" Error messages in THIR unsafeck still contain "NULL", make them lowercase to be consistent with MIR unsafeck (cc #84842).
2021-05-24Rollup merge of #85621 - jsha:serif-in-table, r=GuillaumeGomezGuillaume Gomez-0/+1
Restore sans-serif font for module items. This was broke in #84462 by modifying a style that applied both to searches and to module items (and other tables). Fixes #85616. Fixes https://github.com/rust-lang/rust/issues/85545. r? `@camelid`
2021-05-24Rollup merge of #85551 - GuillaumeGomez:fix-search-result-overflow, r=jshaGuillaume Gomez-7/+46
Fix search results display Fixes https://github.com/rust-lang/rust/issues/85544. cc `@dns2utf8` r? `@jsha`
2021-05-24Rollup merge of #85271 - th1000s:master, r=JohnTitorGuillaume Gomez-2/+2
Fix indentation in move keyword documentation See (at the time of writing) the second example code block with `create_fn()` at https://doc.rust-lang.org/std/keyword.move.html
2021-05-24Auto merge of #85596 - scottmcm:more-on-unimplemented, r=estebankbors-15/+47
Extend `rustc_on_implemented` to improve more `?` error messages `_Self` could match the generic definition; this adds that functionality for matching the generic definition of type parameters too. Your advice welcome on the wording of all these messages, and which things belong in the message/label/note. r? `@estebank`
2021-05-24update MiriRalf Jung-7/+9
2021-05-24remove cfg(bootstrap)Pietro Albini-67/+19
2021-05-24Bootstrap: skip rustdoc fingerprint for building docs.Eric Huss-0/+3
2021-05-24bootstrap from 1.54.0 betaPietro Albini-1/+1
2021-05-24Make `thir_check_unsafety` itself responsible for checking gateLeSeulArtichaut-12/+14
2021-05-24Add comments about stealing THIR in `mir_build`LeSeulArtichaut-0/+4
2021-05-24Auto merge of #85626 - lnicola:rust-analyzer-2021-05-24, r=jonas-schievinkbors-24/+0
:arrow_up: rust-analyzer
2021-05-24Replace more "NULL" with "null"LeSeulArtichaut-8/+8
2021-05-24:arrow_up: rust-analyzerLaurențiu Nicola-24/+0
2021-05-24Auto merge of #85601 - klensy:padint-example-fix, r=dtolnaybors-1/+2
fix pad_integral example pad_integral's parameter `is_nonnegative - whether the original integer was either positive or zero`, but in example it checked as `self.nb > 0`, so it previously printed `-0` for `format!("{}", Foo::new(0)`, what is wrong.
2021-05-24Auto merge of #85515 - jedel1043:fix-85480, r=petrochenkovbors-10/+30
Fix ast pretty printing for anonymous types Fixes #85480.
2021-05-23Restore sans-serif font for module items.Jacob Hoffman-Andrews-0/+1
This was broke in #84462 by modifying a style that applied both to searches and to module items (and other tables).
2021-05-24Add test for pretty printing anonymous typesjedel1043-0/+24
2021-05-24Fix ast expanded printing for anonymous typesjedel1043-10/+6
2021-05-24Auto merge of #85611 - rust-lang:array-mod-doc, r=jyn514bors-3/+1
Update std::array module doc header This line is very outdated; not only are traits implemented on arrays of arbitrary length, those implementations are documented on the primitive type, not in this module.
2021-05-23Auto merge of #85606 - 12101111:link_modifiers, r=petrochenkovbors-5/+0
remove native_link_modifiers from the list of incomplete features. These features are fully implemented and not incomplete. The tracking issue of them is https://github.com/rust-lang/rust/issues/81490. The implement PR is https://github.com/rust-lang/rust/pull/83507.
2021-05-23Update std::array module doc headerbstrie-3/+1
Extremely outdated; not only are traits implemented on arrays of arbitrary length, those implementations are documented on the primitive type, not in this module.
2021-05-23Auto merge of #85554 - 12101111:fix-dedup-native-libs, r=petrochenkovbors-6/+44
native lib: defer the duplicate check after relevant_lib check. https://github.com/rust-lang/rust/pull/84794 break code using conditional-compilation with `#[link]` attributes. ```rust #[cfg(target_env = "musl")] cfg_if::cfg_if! { if #[cfg(any(target_feature = "crt-static", feature = "llvm-libunwind"))] { #[link(name = "unwind", kind = "static", modifiers = "-bundle")] extern "C" {} } else { #[link(name = "unwind", cfg(feature = "system-llvm-libunwind"))] #[link(name = "gcc_s", cfg(not(feature = "system-llvm-libunwind")))] extern "C" {} } } ```
2021-05-23Auto merge of #85602 - GuillaumeGomez:donthide-inherent-impls, r=jshabors-5/+14
Don't hide inherent implementations by default Fixes a regression introduced in #85575. r? `@jsha`
2021-05-24remove native_link_modifiers from the list of incomplete features.12101111-5/+0
2021-05-23Replace Local::new(1) with CAPTURE_STRUCT_LOCALPaul Trojahn-19/+20
2021-05-23Auto merge of #85479 - Stupremee:render-Self_as-type-casts, r=CraftSpiderbors-13/+38
rustdoc: render `<Self as X>::Y` type casts properly Rustdoc didn't render any `<Self as X>` casts which causes invalid code inside the documentation. This is fixed by this PR by checking if the target type `X` is different from `Self`, and if so, it will render a typecast. Resolves #85454
2021-05-23Extend rustc_on_implemented to improve a ?-on-ControlFlow error messageScott McMurray-15/+47
2021-05-23Don't hide inherent implementations by defaultGuillaume Gomez-5/+14
2021-05-23Auto merge of #85599 - RalfJung:immut-allocs, r=oli-obkbors-19/+36
fix deallocation of immutable allocations As part of https://github.com/rust-lang/miri/pull/1814, I realized that we currently allow deallocating immutable allocations. This PR fixes that, and also adds some new APIs that are required to still support the existing Miri backtrace support. r? `@oli-obk`