]> git.lizzy.rs Git - rust.git/log
rust.git
19 months agoAuto merge of #101703 - nicholasbishop:bishop-add-uefi-ci-2, r=jyn514
bors [Fri, 4 Nov 2022 17:00:24 +0000 (17:00 +0000)]
Auto merge of #101703 - nicholasbishop:bishop-add-uefi-ci-2, r=jyn514

Add QEMU test for x86_64-unknown-uefi

The UEFI targets don't have std support yet, so the normal tests don't work. However, we can compile a simple no-std program and run it under QEMU to at least check that the target compiles, links, and runs.

Tested locally with: `src/ci/docker/run.sh x86_64-uefi`

19 months agoAuto merge of #103962 - matthiaskrgr:rollup-9av8i6k, r=matthiaskrgr
bors [Fri, 4 Nov 2022 13:47:37 +0000 (13:47 +0000)]
Auto merge of #103962 - matthiaskrgr:rollup-9av8i6k, r=matthiaskrgr

Rollup of 7 pull requests

Successful merges:

 - #103680 (CStr: add some doc links)
 - #103780 (Fix late-bound lifetime closure ICEs in HIR typeck and MIR borrowck)
 - #103845 (Add track_caller to some Lock methods)
 - #103935 (Remove rustdoc clean::Visibility type)
 - #103941 (Fixed typos)
 - #103950 (Fix ICE when negative impl is collected during eager mono)
 - #103953 (Remove unused argument from `throw_unresolved_import_error`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agoRollup merge of #103953 - TaKO8Ki:remove-unused-arg-from-throw_unresolved_import_erro...
Matthias Krüger [Fri, 4 Nov 2022 11:18:03 +0000 (12:18 +0100)]
Rollup merge of #103953 - TaKO8Ki:remove-unused-arg-from-throw_unresolved_import_error, r=oli-obk

Remove unused argument from `throw_unresolved_import_error`

`throw_unresolved_import_error` does not need the second argument.

19 months agoRollup merge of #103950 - nbdd0121:master, r=tmiasko
Matthias Krüger [Fri, 4 Nov 2022 11:18:03 +0000 (12:18 +0100)]
Rollup merge of #103950 - nbdd0121:master, r=tmiasko

Fix ICE when negative impl is collected during eager mono

```rust
trait Foo {
    fn foo() {}
}

impl !Foo for () {}
```

This code will currently cause an ICE when mono collection mode is "eager" (with `-C link-dead-code=y` or `-Z print-mono-items=eager`.

19 months agoRollup merge of #103941 - douweschulte:patch-1, r=jyn514
Matthias Krüger [Fri, 4 Nov 2022 11:18:02 +0000 (12:18 +0100)]
Rollup merge of #103941 - douweschulte:patch-1, r=jyn514

Fixed typos

Fixed a typo that has been found on two locations in comments.

19 months agoRollup merge of #103935 - GuillaumeGomez:remove-rustdoc-visibility-ty, r=notriddle
Matthias Krüger [Fri, 4 Nov 2022 11:18:02 +0000 (12:18 +0100)]
Rollup merge of #103935 - GuillaumeGomez:remove-rustdoc-visibility-ty, r=notriddle

Remove rustdoc clean::Visibility type

Fixes #90852.

Follow-up of https://github.com/rust-lang/rust/pull/103690.

This PR completely removes the rustdoc `clean::Visibility` type to use the `rustc_middle` one instead. I don't think there will be any impact on perf.

r? `@notriddle`

19 months agoRollup merge of #103845 - camsteffen:data-structures-track-caller, r=compiler-errors
Matthias Krüger [Fri, 4 Nov 2022 11:18:01 +0000 (12:18 +0100)]
Rollup merge of #103845 - camsteffen:data-structures-track-caller, r=compiler-errors

Add track_caller to some Lock methods

Would have helped to diagnose #103844.

19 months agoRollup merge of #103780 - compiler-errors:bound-closure-lifetimes, r=jackh726
Matthias Krüger [Fri, 4 Nov 2022 11:18:01 +0000 (12:18 +0100)]
Rollup merge of #103780 - compiler-errors:bound-closure-lifetimes, r=jackh726

Fix late-bound lifetime closure ICEs in HIR typeck and MIR borrowck

During HIR typeck, we need to teach astconv to treat late-bound regions within a closure body as free, fixing escaping bound vars ICEs in both of the issues below.

However, this then gets us to MIR borrowck, which itself needs to be taught how to instantiate free region vids for late-bound regions that come from items that _aren't_ the typeck root (for now, just closures).

Fixes #103771
Fixes #103736

19 months agoRollup merge of #103680 - RalfJung:cstr-links, r=JohnTitor
Matthias Krüger [Fri, 4 Nov 2022 11:18:00 +0000 (12:18 +0100)]
Rollup merge of #103680 - RalfJung:cstr-links, r=JohnTitor

CStr: add some doc links

19 months agoAuto merge of #103098 - Amanieu:asm-tied-fixed, r=bjorn3
bors [Fri, 4 Nov 2022 10:39:04 +0000 (10:39 +0000)]
Auto merge of #103098 - Amanieu:asm-tied-fixed, r=bjorn3

asm: Match clang behavior for inlateout fixed register operands

We have 2 options for representing LLVM constraints for `inlateout` operands on a fixed register (e.g. `r0`): `={r0},0` or `={r0},{r0}`.

This PR changes the behavior to the latter, which matches the behavior of Clang since https://reviews.llvm.org/D87279.

19 months agoAuto merge of #103954 - matthiaskrgr:rollup-tskpxnj, r=matthiaskrgr
bors [Fri, 4 Nov 2022 07:26:56 +0000 (07:26 +0000)]
Auto merge of #103954 - matthiaskrgr:rollup-tskpxnj, r=matthiaskrgr

Rollup of 10 pull requests

Successful merges:

 - #103825 (Remove let_underscore_must_use from list of uplifted lints)
 - #103884 (Add visit_fn_ret_ty to hir intravisit)
 - #103892 (Properly render asyncness for trait fns without default body)
 - #103905 (rustdoc: remove redundant mobile CSS `.sidebar-elems { background }`)
 - #103912 (Add howto for adding new targets)
 - #103915 (Improve use of ErrorGuaranteed and code cleanup)
 - #103930 (Move some tests from `src/test/ui` to more reasonable places)
 - #103931 (Add note to RELEASES.md regarding issue 102754.)
 - #103938 (rustdoc: clean up hardcoded CSS border color on search results)
 - #103940 (rustdoc: remove no-op CSS `#main-content > .item-info { margin-top: 0 }`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agoRollup merge of #103940 - notriddle:notriddle/main-content-item-info-margin-top,...
Matthias Krüger [Fri, 4 Nov 2022 05:40:34 +0000 (06:40 +0100)]
Rollup merge of #103940 - notriddle:notriddle/main-content-item-info-margin-top, r=GuillaumeGomez

rustdoc: remove no-op CSS `#main-content > .item-info { margin-top: 0 }`

When this line was added in 04b4c40682c01cad8f9bc8d5b3907be91d6f81d4, it overrode a negative `margin-top` that was set on it by default.

https://github.com/rust-lang/rust/blob/04b4c40682c01cad8f9bc8d5b3907be91d6f81d4/src/librustdoc/html/static/rustdoc.css#L500-L516

That negative top margin was removed in 593d6d1cb15c55c88319470dabb40126c7b7f1e2.

19 months agoRollup merge of #103938 - notriddle:notriddle/search-results-border-bottom, r=Guillau...
Matthias Krüger [Fri, 4 Nov 2022 05:40:34 +0000 (06:40 +0100)]
Rollup merge of #103938 - notriddle:notriddle/search-results-border-bottom, r=GuillaumeGomez

rustdoc: clean up hardcoded CSS border color on search results

Hardcoded colors in rustdoc.css should usually be avoided.

Preview: http://notriddle.com/notriddle-rustdoc-demos/border-bottom-search/test_dingus/?search=test

19 months agoRollup merge of #103931 - pnkfelix:note-eh-personality-limit-atop-lld, r=Mark-Simulacrum
Matthias Krüger [Fri, 4 Nov 2022 05:40:33 +0000 (06:40 +0100)]
Rollup merge of #103931 - pnkfelix:note-eh-personality-limit-atop-lld, r=Mark-Simulacrum

Add note to RELEASES.md regarding issue 102754.

As discussed in [compiler triage meeting today](https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202022-11-03/near/307746618); it would have been nice to get this in time for the stable notes, but having it only in nightly only is better than nothing...

r? `@Mark-Simulacrum`

19 months agoRollup merge of #103930 - fee1-dead-contrib:mv-from-root, r=jyn514
Matthias Krüger [Fri, 4 Nov 2022 05:40:33 +0000 (06:40 +0100)]
Rollup merge of #103930 - fee1-dead-contrib:mv-from-root, r=jyn514

Move some tests from `src/test/ui` to more reasonable places

19 months agoRollup merge of #103915 - chenyukang:yukang/fix-103874, r=lcnr
Matthias Krüger [Fri, 4 Nov 2022 05:40:32 +0000 (06:40 +0100)]
Rollup merge of #103915 - chenyukang:yukang/fix-103874, r=lcnr

Improve use of ErrorGuaranteed and code cleanup

Part of #103874

19 months agoRollup merge of #103912 - flba-eb:doc_adding_tier3_target, r=davidtwco
Matthias Krüger [Fri, 4 Nov 2022 05:40:32 +0000 (06:40 +0100)]
Rollup merge of #103912 - flba-eb:doc_adding_tier3_target, r=davidtwco

Add howto for adding new targets

When new targets are added, often a reviewer finds out that e.g. the target-3-tier-policy is not filled out (missing), there is no description etc.
This change adds a description of what I've learned while working on #102701. It should make reviews easier in the future with less rework.

r? compiler-team

19 months agoRollup merge of #103905 - notriddle:notriddle/sidebar-elems-background, r=GuillaumeGomez
Matthias Krüger [Fri, 4 Nov 2022 05:40:31 +0000 (06:40 +0100)]
Rollup merge of #103905 - notriddle:notriddle/sidebar-elems-background, r=GuillaumeGomez

rustdoc: remove redundant mobile CSS `.sidebar-elems { background }`

The exact same background is already set for its parent, the `nav.sidebar`.

19 months agoRollup merge of #103892 - compiler-errors:afit-rustdoc, r=GuillaumeGomez
Matthias Krüger [Fri, 4 Nov 2022 05:40:31 +0000 (06:40 +0100)]
Rollup merge of #103892 - compiler-errors:afit-rustdoc, r=GuillaumeGomez

Properly render asyncness for trait fns without default body

We weren't properly desugaring async fns in traits unless they had default bodies (in which case rustdoc treats them much like they came from an impl).

cc ```@yoshuawuyts``` should help with https://rust-lang.zulipchat.com/#narrow/stream/330606-wg-async.2Fasync-fn-in-trait-impl/topic/type.20inside.20.60async.20fn.60.20body.20must.20be.20known.20in.20this.20context/near/306894869

19 months agoRollup merge of #103884 - spastorino:visit-fn-ret-ty-intravisit, r=compiler-errors
Matthias Krüger [Fri, 4 Nov 2022 05:40:31 +0000 (06:40 +0100)]
Rollup merge of #103884 - spastorino:visit-fn-ret-ty-intravisit, r=compiler-errors

Add visit_fn_ret_ty to hir intravisit

I'm working on some RPITIT changes and I need to specialize `visit_fn_ret_ty` in my visitor impl. So I guess it's better to land it separately.

r? `@compiler-errors`

19 months agoRollup merge of #103825 - Mark-Simulacrum:fix-relnotes, r=pietroalbini
Matthias Krüger [Fri, 4 Nov 2022 05:40:30 +0000 (06:40 +0100)]
Rollup merge of #103825 - Mark-Simulacrum:fix-relnotes, r=pietroalbini

Remove let_underscore_must_use from list of uplifted lints

Per https://internals.rust-lang.org/t/rust-1-65-0-pre-release-testing/17660/2

We probably won't backport this (not worth rebuilding stable artifacts over it) but still should be fixed.

19 months agoremove unused argument from `throw_unresolved_import_error`
Takayuki Maeda [Fri, 4 Nov 2022 04:59:04 +0000 (13:59 +0900)]
remove unused argument from `throw_unresolved_import_error`

19 months agoAuto merge of #102928 - notriddle:notriddle/rustdoc-thin-vec, r=GuillaumeGomez
bors [Fri, 4 Nov 2022 03:32:18 +0000 (03:32 +0000)]
Auto merge of #102928 - notriddle:notriddle/rustdoc-thin-vec, r=GuillaumeGomez

rustdoc: use ThinVec for cleaned generics

Depends on https://github.com/Gankra/thin-vec/pull/38

19 months agoFix ICE when negative impl is collected during eager mono
Gary Guo [Fri, 4 Nov 2022 03:08:28 +0000 (03:08 +0000)]
Fix ICE when negative impl is collected during eager mono

19 months agoAuto merge of #101834 - compiler-errors:super-deduce-closure-sig, r=lcnr
bors [Fri, 4 Nov 2022 00:51:37 +0000 (00:51 +0000)]
Auto merge of #101834 - compiler-errors:super-deduce-closure-sig, r=lcnr

Elaborate supertrait obligations when deducing closure signatures

We elaborate the supertrait obligations of any registered predicates for a closure to see if we can infer a closure signature.

This is not as general of a fix as it *could* be, since we just elaborate supertrait bounds instead of doing a theoretical walk of _all_ registered predicates that might cause us to deduce `Fn` trait information for a closure infer var. I don't even know how to come up with an example that fails here but would work with a more general system.

Fixes #23012
Also fixes the existing compile failure in #57611

r? `@ghost` for now until I do a perf run
cc `@nikomatsakis` since you commented on https://github.com/rust-lang/rust/issues/23012#issuecomment-1152397290

19 months agoAuto merge of #103922 - Mark-Simulacrum:revert-cargo, r=Mark-Simulacrum
bors [Thu, 3 Nov 2022 21:37:05 +0000 (21:37 +0000)]
Auto merge of #103922 - Mark-Simulacrum:revert-cargo, r=Mark-Simulacrum

Revert "Update cargo"

This reverts commit 331aa4509315f670803b7e232486be84d84ea686.

This Cargo upgrade introduced a regression into dependency resolution, so reverting the upgrade until we can fix that.

cc https://github.com/rust-lang/rust/pull/103860,
https://rust-lang.zulipchat.com/#narrow/stream/247081-t-compiler.2Fperformance/topic/cargo.20and.20rustc.20benchmarks.20broken

19 months agoFixed typos
Douwe Schulte [Thu, 3 Nov 2022 21:19:02 +0000 (21:19 +0000)]
Fixed typos

Fixed a typo that has been found on two locations in comments.

19 months agorustdoc: remove no-op CSS `#main-content > .item-info { margin-top: 0 }`
Michael Howell [Thu, 3 Nov 2022 20:22:54 +0000 (13:22 -0700)]
rustdoc: remove no-op CSS `#main-content > .item-info { margin-top: 0 }`

When this line was added in 04b4c40682c01cad8f9bc8d5b3907be91d6f81d4, it
overrode a negative `margin-top` that was set on it by default.

https://github.com/rust-lang/rust/blob/04b4c40682c01cad8f9bc8d5b3907be91d6f81d4/src/librustdoc/html/static/rustdoc.css#L500-L516

That negative top margin was removed in
593d6d1cb15c55c88319470dabb40126c7b7f1e2.

19 months agorustdoc: clean up hardcoded CSS border color on search results
Michael Howell [Thu, 3 Nov 2022 19:29:17 +0000 (12:29 -0700)]
rustdoc: clean up hardcoded CSS border color on search results

Hardcoded colors in rustdoc.css should usually be avoided.

19 months agoRemove rustdoc clean::Visibility type
Guillaume Gomez [Thu, 3 Nov 2022 17:15:24 +0000 (18:15 +0100)]
Remove rustdoc clean::Visibility type

19 months agoMove some tests from `src/test/ui` to more reasonable places
Deadbeef [Thu, 3 Nov 2022 15:41:01 +0000 (15:41 +0000)]
Move some tests from `src/test/ui` to more reasonable places

19 months agoreverse obligations for better diagnostics on multiple conflicting fn bounds
Michael Goulet [Sat, 15 Oct 2022 18:48:13 +0000 (18:48 +0000)]
reverse obligations for better diagnostics on multiple conflicting fn bounds

19 months agoElaborate supertrait obligations when deducing closure signature
Michael Goulet [Thu, 15 Sep 2022 00:35:23 +0000 (00:35 +0000)]
Elaborate supertrait obligations when deducing closure signature

19 months agoMake obligations_for_self_ty only return an obligation
Michael Goulet [Thu, 15 Sep 2022 00:18:35 +0000 (00:18 +0000)]
Make obligations_for_self_ty only return an obligation

19 months agoAdd note to RELEASES.md regarding issue 102754.
Felix S. Klock II [Thu, 3 Nov 2022 15:44:50 +0000 (11:44 -0400)]
Add note to RELEASES.md regarding issue 102754.

19 months agoAdd visit_fn_ret_ty to hir intravisit
Santiago Pastorino [Wed, 26 Oct 2022 17:40:34 +0000 (14:40 -0300)]
Add visit_fn_ret_ty to hir intravisit

19 months agoRevert "Update cargo"
Mark Rousskov [Thu, 3 Nov 2022 12:37:45 +0000 (08:37 -0400)]
Revert "Update cargo"

This reverts commit 331aa4509315f670803b7e232486be84d84ea686.

This Cargo upgrade introduced a regression into dependency resolution,
so reverting the upgrade until we can fix that.

19 months agoAdd howto for adding new targets
Florian Bartels [Thu, 3 Nov 2022 08:19:47 +0000 (09:19 +0100)]
Add howto for adding new targets

19 months agoAuto merge of #103904 - JakobDegen:mir-opt-dash, r=oli-obk
bors [Thu, 3 Nov 2022 09:24:28 +0000 (09:24 +0000)]
Auto merge of #103904 - JakobDegen:mir-opt-dash, r=oli-obk

Ban dashes in miropt test file names

Dashes in miropt test file names are annoying - specifically, they cause the test files to not be sorted next to their outputs, which makes it very difficult to tell what goes with what. This PR changes all files to use underscores and adds a blessable tidy check that enforces this.

r? `@jyn514`

This PR is obviously going to bitrot very quickly. Because of this, I'm going to wait at least 48 hours and until review comes back to allow people from `@rust-lang/wg-mir-opt` or elsewhere to lodge complaints if there are any. If not, I'll rebase the branch on Friday afternoon PST and ask that it be `r+`'d with `p=1` at that time.

19 months agoAuto merge of #103860 - weihanglo:update-cargo, r=ehuss
bors [Thu, 3 Nov 2022 06:11:58 +0000 (06:11 +0000)]
Auto merge of #103860 - weihanglo:update-cargo, r=ehuss

Update cargo

14 commits in 7e484fc1a766f56dbc95380f45719698e0c82749..810cbad9a123ad4ee0a55a96171b8f8478ff1c03
2022-10-27 15:20:57 +0000 to 2022-11-02 21:04:31 +0000
- Update curl-sys (rust-lang/cargo#11326)
- Mention fix on build script deadlock (rust-lang/cargo#11325)
- Make cargo forward pre-existing CARGO if set (rust-lang/cargo#11285)
- Clean up workspace dependencies after cargo remove (rust-lang/cargo#11242)
- Update the outdated link for rust-semverver (rust-lang/cargo#11322)
- Fix broken link to compilation entry point (rust-lang/cargo#11317)
- Only remove fingerprints and build script artifacts of the requested package (rust-lang/cargo#10621)
- Newer anyhow features are required (rust-lang/cargo#11316)
- Clean stale git temp files (rust-lang/cargo#11308)
- Report crate size on package and publish (rust-lang/cargo#11270)
- add a note that some warnings (and/or errors) can be auto-fixed (rust-lang/cargo#10989)
- Update libcurl (rust-lang/cargo#11307)
- artifact deps shoud works when target field specified coexists with `optional = true` (rust-lang/cargo#11183)
- Fix singular verb in tests page (rust-lang/cargo#11300)

r? `@ghost`

19 months agoAuto merge of #103455 - BlackHoleFox:apple-sim-abi-consistency, r=davidtwco
bors [Thu, 3 Nov 2022 03:07:31 +0000 (03:07 +0000)]
Auto merge of #103455 - BlackHoleFox:apple-sim-abi-consistency, r=davidtwco

Fixed consistency of Apple simulator target's ABI

Currently there's a few Apple device simulator targets that are inconsistent since some set `target_abi = "sim"` (the correct thing to do) while a bunch of others don't set anything (`""`). Due to this its very hard to reliability check if some Rust code is running inside a simulator. This changes all of them to do the same thing and set `sim` as their `target_abi`.

The new way to identity a simulator during compilation is as simple as `cfg(all(target_vendor="apple", target_abi = "sim"))` or even `cfg(target_abi = "sim")` being less pedantic about it.

The issues with the current form (and inspiration for this) are also summarized in `@thomcc's` [Tweet](https://twitter.com/at_tcsc/status/1576685244702691328).

19 months agocode cleanup
yukang [Thu, 3 Nov 2022 01:42:34 +0000 (09:42 +0800)]
code cleanup

19 months agoremove 'delay_span_bug' following 'references_error'
yukang [Thu, 3 Nov 2022 01:22:08 +0000 (09:22 +0800)]
remove 'delay_span_bug' following 'references_error'

19 months agoAuto merge of #103903 - matthiaskrgr:rollup-r5xcvrp, r=matthiaskrgr
bors [Thu, 3 Nov 2022 00:20:08 +0000 (00:20 +0000)]
Auto merge of #103903 - matthiaskrgr:rollup-r5xcvrp, r=matthiaskrgr

Rollup of 6 pull requests

Successful merges:

 - #99801 (fix(generic_const_exprs): Fix predicate inheritance for children of opaque types)
 - #103610 (Allow use of `-Clto=thin` with `-Ccodegen-units=1` in general)
 - #103870 (Fix `inferred_kind` ICE)
 - #103875 (Simplify astconv item def id handling)
 - #103886 (rustdoc: Fix merge of attributes for reexports of local items)
 - #103890 (rustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`)

Failed merges:

 - #103884 (Add visit_fn_ret_ty to hir intravisit)

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agorustdoc: add size tracking for `Generics`
Michael Howell [Wed, 12 Oct 2022 21:29:32 +0000 (14:29 -0700)]
rustdoc: add size tracking for `Generics`

19 months agorustdoc: remove unneeded Box from ItemKind
Michael Howell [Wed, 12 Oct 2022 17:51:10 +0000 (10:51 -0700)]
rustdoc: remove unneeded Box from ItemKind

19 months agorustdoc: use ThinVec for cleaned generics
Michael Howell [Tue, 11 Oct 2022 17:00:01 +0000 (10:00 -0700)]
rustdoc: use ThinVec for cleaned generics

19 months agoUpdate cargo
Weihang Lo [Wed, 2 Nov 2022 23:17:12 +0000 (23:17 +0000)]
Update cargo

14 commits in 7e484fc1a766f56dbc95380f45719698e0c82749..810cbad9a123ad4ee0a55a96171b8f8478ff1c03
2022-10-27 15:20:57 +0000 to 2022-11-02 21:04:31 +0000
- Update curl-sys (rust-lang/cargo#11326)
- Mention fix on build script deadlock (rust-lang/cargo#11325)
- Make cargo forward pre-existing CARGO if set (rust-lang/cargo#11285)
- Clean up workspace dependencies after cargo remove (rust-lang/cargo#11242)
- Update the outdated link for rust-semverver (rust-lang/cargo#11322)
- Fix broken link to compilation entry point (rust-lang/cargo#11317)
- Only remove fingerprints and build script artifacts of the requested package (rust-lang/cargo#10621)
- Newer anyhow features are required (rust-lang/cargo#11316)
- Clean stale git temp files (rust-lang/cargo#11308)
- Report crate size on package and publish (rust-lang/cargo#11270)
- add a note that some warnings (and/or errors) can be auto-fixed (rust-lang/cargo#10989)
- Update libcurl (rust-lang/cargo#11307)
- artifact deps shoud works when target field specified coexists with `optional = true` (rust-lang/cargo#11183)
- Fix singular verb in tests page (rust-lang/cargo#11300)

19 months agoBan dashes in miropt test file names
Jakob Degen [Wed, 2 Nov 2022 21:54:49 +0000 (14:54 -0700)]
Ban dashes in miropt test file names

19 months agorustdoc: remove redundant mobile CSS `.sidebar-elems { background }`
Michael Howell [Wed, 2 Nov 2022 22:33:36 +0000 (15:33 -0700)]
rustdoc: remove redundant mobile CSS `.sidebar-elems { background }`

The exact same background is already set for its parent, the `nav.sidebar`.

19 months agoRollup merge of #103890 - notriddle:notriddle/mobile-rustdoc-padding-top, r=Guillaume...
Matthias Krüger [Wed, 2 Nov 2022 21:06:29 +0000 (22:06 +0100)]
Rollup merge of #103890 - notriddle:notriddle/mobile-rustdoc-padding-top, r=GuillaumeGomez

rustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`

When this rule was added in dd437ee6ed81f85c715bf415d261feca484bb39f, as `body { padding-top: 0 }`, the desktop body tag had non-zero top padding. This padding was removed in 135281ed1525db15edd8ebd092aa10aa40df2386.

This rule no longer overrides a rule in rustdoc's desktop styles, and also doesn't override the UA stylesheet, since the [HTML standard] has only margin, not padding, on the page body.

[HTML standard]: https://html.spec.whatwg.org/multipage/rendering.html#the-page

19 months agoRollup merge of #103886 - GuillaumeGomez:local-reexport-doc, r=notriddle
Matthias Krüger [Wed, 2 Nov 2022 21:06:28 +0000 (22:06 +0100)]
Rollup merge of #103886 - GuillaumeGomez:local-reexport-doc, r=notriddle

rustdoc: Fix merge of attributes for reexports of local items

Fixes https://github.com/rust-lang/rust/issues/84619.

The problem was that we didn't merge attributes between the the reexport and the item.

r? `@notriddle`

19 months agoRollup merge of #103875 - oli-obk:ast_conv_simplification, r=spastorino
Matthias Krüger [Wed, 2 Nov 2022 21:06:28 +0000 (22:06 +0100)]
Rollup merge of #103875 - oli-obk:ast_conv_simplification, r=spastorino

Simplify astconv item def id handling

19 months agoRollup merge of #103870 - TaKO8Ki:fix-103790, r=fee1-dead
Matthias Krüger [Wed, 2 Nov 2022 21:06:27 +0000 (22:06 +0100)]
Rollup merge of #103870 - TaKO8Ki:fix-103790, r=fee1-dead

Fix `inferred_kind` ICE

Fixes #103790

19 months agoRollup merge of #103610 - wesleywiser:thinlto_cgu1, r=michaelwoerister
Matthias Krüger [Wed, 2 Nov 2022 21:06:26 +0000 (22:06 +0100)]
Rollup merge of #103610 - wesleywiser:thinlto_cgu1, r=michaelwoerister

Allow use of `-Clto=thin` with `-Ccodegen-units=1` in general

The current logic to ignore ThinLTO when `-Ccodegen-units=1` makes sense for local ThinLTO but even in this scenario, a user may still want (non-local) ThinLTO for the purpose of optimizing dependencies into the final crate which is being compiled with 1 CGU.

The previous behavior was even more confusing because if you were generating a binary (`--emit=link`), then you would get ThinLTO but if you asked for LLVM IR or bytecode, then it would silently change to using regular LTO.

With this change, we only override the defaults for local ThinLTO if you ask for a single output such as LLVM IR or bytecode and in all other cases honor the requested LTO setting.

r? `@michaelwoerister`

19 months agoRollup merge of #99801 - Neo-Zhixing:fix/generic_const_exprs_parent_opaque_predicates...
Matthias Krüger [Wed, 2 Nov 2022 21:06:26 +0000 (22:06 +0100)]
Rollup merge of #99801 - Neo-Zhixing:fix/generic_const_exprs_parent_opaque_predicates, r=oli-obk

fix(generic_const_exprs): Fix predicate inheritance for children of opaque types

Fixes #99705

We currently have a special case to perform predicate inheritance when the const item is in the generics. I think we're also going to need this for opaque return types. When evaluating the predicates applied to the associated item, it'll inherit from its parent, the opaque type, which will never have predicates applied. This PR bypass the opaque typed parent and inherit predicates directly from the function itself.

19 months agochange error_reported to use Result instead of an option
yukang [Wed, 2 Nov 2022 20:57:44 +0000 (04:57 +0800)]
change error_reported to use Result instead of an option

19 months agoAuto merge of #103846 - Kobzol:revert-103295-ninja, r=cuviper
bors [Wed, 2 Nov 2022 20:49:03 +0000 (20:49 +0000)]
Auto merge of #103846 - Kobzol:revert-103295-ninja, r=cuviper

Revert "ci: Bring back ninja for dist builders"

Reverts rust-lang/rust#103295 because of the perf regression.

r? `@cuviper`

19 months agoAuto merge of #103888 - Dylan-DPC:rollup-p7gubqj, r=Dylan-DPC
bors [Wed, 2 Nov 2022 17:35:23 +0000 (17:35 +0000)]
Auto merge of #103888 - Dylan-DPC:rollup-p7gubqj, r=Dylan-DPC

Rollup of 7 pull requests

Successful merges:

 - #103275 (Update tinystr)
 - #103703 (Gate some parser recovery behind the check)
 - #103774 (Format `dyn Trait` better in `type_name` intrinsic)
 - #103807 (Add tracking issue for `string_extend_from_within`)
 - #103855 (rustdoc: simplify mobile item-table CSS)
 - #103862 (Use `ObligationCtxt` in `fully_normalize`)
 - #103864 (Reorder `walk_` functions in intravisit.rs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agoProperly render asyncness for traits without default body
Michael Goulet [Wed, 2 Nov 2022 17:33:25 +0000 (17:33 +0000)]
Properly render asyncness for traits without default body

19 months agorustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`
Michael Howell [Wed, 2 Nov 2022 17:10:44 +0000 (10:10 -0700)]
rustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`

When this rule was added in dd437ee6ed81f85c715bf415d261feca484bb39f, as
`body { padding-top: 0 }`, the desktop body tag had non-zero top padding.
This padding was removed in 135281ed1525db15edd8ebd092aa10aa40df2386.

This rule no longer overrides a rule in rustdoc's desktop styles, and also
doesn't override the UA stylesheet, since the [HTML standard] has only
margin, not padding, on the page body.

[HTML standard]: https://html.spec.whatwg.org/multipage/rendering.html#the-page

19 months agoRollup merge of #103864 - smoelius:reorder-walk-functions, r=fee1-dead
Dylan DPC [Wed, 2 Nov 2022 17:02:06 +0000 (22:32 +0530)]
Rollup merge of #103864 - smoelius:reorder-walk-functions, r=fee1-dead

Reorder `walk_` functions in intravisit.rs

Reorder the `walk_` functions to match the order of the `visit_` methods. This is a follow up to https://github.com/rust-lang/rust/pull/103692.

Note that there are some oddballs. I put them where I thought made the most sense:
```diff
$ diff \
<(sed -n 's/^.*\<fn visit_\([^(]*\).*$/\1/;T;p' compiler/rustc_hir/src/intravisit.rs) \
<(sed -n 's/^.*\<fn walk_\([^<]*\).*$/\1/;T;p' compiler/rustc_hir/src/intravisit.rs)
1,5d0
< nested_item
< nested_trait_item
< nested_impl_item
< nested_foreign_item
< nested_body
9,10d3
< id
< name
20c13
< array_length
---
> array_len
30a24
> fn_ret_ty
31a26
> fn_kind
41c36
< variant_data
---
> struct_def
46c41
< infer
---
> inf
54d48
< attribute
```

Also, as some weak evidence that i did things correctly, I get the following before and after the change:
```sh
$ sort compiler/rustc_hir/src/intravisit.rs | openssl sha256
SHA256(stdin)= cac13d2545731ef442f318e2b4286490d7ac5494f4ad10c4cf4c5d4f50d21641
```

r? `@fee1-dead`

19 months agoRollup merge of #103862 - compiler-errors:ocx-in-fully-normalize, r=spastorino
Dylan DPC [Wed, 2 Nov 2022 17:02:05 +0000 (22:32 +0530)]
Rollup merge of #103862 - compiler-errors:ocx-in-fully-normalize, r=spastorino

Use `ObligationCtxt` in `fully_normalize`

Simplifies the implementation a bit

19 months agoRollup merge of #103855 - notriddle:notriddle/mobile-item-table, r=GuillaumeGomez
Dylan DPC [Wed, 2 Nov 2022 17:02:05 +0000 (22:32 +0530)]
Rollup merge of #103855 - notriddle:notriddle/mobile-item-table, r=GuillaumeGomez

rustdoc: simplify mobile item-table CSS

Using flexbox in column direction is needlessly complicated, since no special flex powers are being used here. Just use regular block layout.

This should result in no visible changes.

19 months agoRollup merge of #103807 - H4x5:string-extend-from-within-tracking-issue, r=Dylan-DPC
Dylan DPC [Wed, 2 Nov 2022 17:02:04 +0000 (22:32 +0530)]
Rollup merge of #103807 - H4x5:string-extend-from-within-tracking-issue, r=Dylan-DPC

Add tracking issue for `string_extend_from_within`

Tracking issue: #103806

The original PR didn't create a tracking issue.

19 months agoRollup merge of #103774 - compiler-errors:dyn-trait-in-type-name, r=eholk
Dylan DPC [Wed, 2 Nov 2022 17:02:03 +0000 (22:32 +0530)]
Rollup merge of #103774 - compiler-errors:dyn-trait-in-type-name, r=eholk

Format `dyn Trait` better in `type_name` intrinsic

Noticed this in #103764 (though not related to that PR at all!)

```rust
trait Foo {
    type Bar;
}

fn main() {
    println!(
        "`dyn Fn(i32, i32) -> i32` => `{}`",
        std::any::type_name::<dyn Fn(i32, i32) -> i32>()
    );
    println!(
        "`dyn Foo<Bar = i32> + Send + Sync` => `{}`",
        std::any::type_name::<dyn Foo<Bar = i32> + Send + Sync>()
    );
}
```

```
`dyn Fn(i32, i32) -> i32` => `dyn core::ops::function::Fn<(i32, i32)>+Output = i32`
`dyn Foo<Bar = i32> + Send + Sync` => `dyn playground::Foo+Bar = i32+core::marker::Sync+core::marker::Send`
```

Just reuse `pretty_print_dyn_existential` which already makes an attempt to make its output stable.

19 months agoRollup merge of #103703 - Nilstrieb:flag-recovery-1, r=compiler-errors
Dylan DPC [Wed, 2 Nov 2022 17:02:03 +0000 (22:32 +0530)]
Rollup merge of #103703 - Nilstrieb:flag-recovery-1, r=compiler-errors

Gate some parser recovery behind the check

Mainly in `expr.rs`. `may_recover` doesn't do anything useful yet until I implement that on top of #103439.

r? `@compiler-errors`

19 months agoRollup merge of #103275 - Manishearth:tinystrup, r=pnkfelix
Dylan DPC [Wed, 2 Nov 2022 17:02:02 +0000 (22:32 +0530)]
Rollup merge of #103275 - Manishearth:tinystrup, r=pnkfelix

Update tinystr

Tinystr has changed a ton since the old version and is much less unsafe, updated some of the dependencies that use it.

19 months agoAdd regression test for doc of reexport of local items
Guillaume Gomez [Wed, 2 Nov 2022 15:55:55 +0000 (16:55 +0100)]
Add regression test for doc of reexport of local items

19 months agoFix merge of attributes for reexports of local items
Guillaume Gomez [Wed, 2 Nov 2022 15:51:37 +0000 (16:51 +0100)]
Fix merge of attributes for reexports of local items

19 months agodeprecate DelaySpanBugEmitted and use ErrorGuaranteed directly
yukang [Wed, 2 Nov 2022 15:15:49 +0000 (23:15 +0800)]
deprecate DelaySpanBugEmitted and use ErrorGuaranteed directly

19 months agoSimplify astconv item def id handling
Oli Scherer [Mon, 31 Oct 2022 16:19:36 +0000 (16:19 +0000)]
Simplify astconv item def id handling

19 months agoAuto merge of #103690 - GuillaumeGomez:visibility-on-demand, r=notriddle
bors [Wed, 2 Nov 2022 10:32:08 +0000 (10:32 +0000)]
Auto merge of #103690 - GuillaumeGomez:visibility-on-demand, r=notriddle

Make rustdoc Item::visibility computed on-demand

This is a take-over of https://github.com/rust-lang/rust/pull/91408.

Helps with https://github.com/rust-lang/rust/issues/90852 (needs to use `ty::Visibility` directly too).

cc `@camelid`
r? `@notriddle`

19 months agoAuto merge of #103649 - petrochenkov:docnotrait, r=GuillaumeGomez
bors [Wed, 2 Nov 2022 07:47:10 +0000 (07:47 +0000)]
Auto merge of #103649 - petrochenkov:docnotrait, r=GuillaumeGomez

rustdoc: Do not add external traits to the crate in `register_res`

It's not clear why it was done, and apparently it's no longer necessary now.
Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits.

Fixes https://github.com/rust-lang/rust/issues/103463

19 months agoreturn const_error when ty has errors
Takayuki Maeda [Wed, 2 Nov 2022 05:47:48 +0000 (14:47 +0900)]
return const_error when ty has errors

19 months agoAuto merge of #103857 - Manishearth:rollup-709fui6, r=Manishearth
bors [Wed, 2 Nov 2022 04:27:48 +0000 (04:27 +0000)]
Auto merge of #103857 - Manishearth:rollup-709fui6, r=Manishearth

Rollup of 8 pull requests

Successful merges:

 - #103072 (compiletest: set the dylib path when gathering target cfg)
 - #103084 (Derive `Eq` and `Hash` for `ControlFlow`)
 - #103575 (Change #[suggestion_*] attributes to use style="...")
 - #103637 (Use stdio in UWP apps)
 - #103638 (Add `multivalue` target feature to WASM target)
 - #103781 (Detect unused files in `src/test/mir-opt` and error on them in tidy.)
 - #103837 (Migrate sidebar-links-color GUI test to functions)
 - #103839 (Print valid `--print` requests if request is invalid)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agoUse ObligationCtxt in fully_normalize
Michael Goulet [Wed, 2 Nov 2022 00:48:44 +0000 (00:48 +0000)]
Use ObligationCtxt in fully_normalize

19 months agoRollup merge of #103839 - Nilstrieb:print-list, r=compiler-errors
Manish Goregaokar [Wed, 2 Nov 2022 00:00:40 +0000 (20:00 -0400)]
Rollup merge of #103839 - Nilstrieb:print-list, r=compiler-errors

Print valid `--print` requests if request is invalid

When someone makes a typo, it can be useful to see the valid options. This is also useful if someone wants to find out about all the options.

19 months agoRollup merge of #103837 - GuillaumeGomez:migrate-sidebar-links-color-gui-test, r...
Manish Goregaokar [Wed, 2 Nov 2022 00:00:40 +0000 (20:00 -0400)]
Rollup merge of #103837 - GuillaumeGomez:migrate-sidebar-links-color-gui-test, r=notriddle

Migrate sidebar-links-color GUI test to functions

r? `@notriddle`

19 months agoRollup merge of #103781 - JakobDegen:mir-opt-tidy, r=jyn514
Manish Goregaokar [Wed, 2 Nov 2022 00:00:39 +0000 (20:00 -0400)]
Rollup merge of #103781 - JakobDegen:mir-opt-tidy, r=jyn514

Detect unused files in `src/test/mir-opt` and error on them in tidy.

Closes #97564 .

Determining which files are generated by a given mir opt test is somewhat difficult. Because of this, we extract the logic for doing it out into a common crate that both compiletest and tidy can depend on. This avoids making compiletest a dependency of tidy which would negatively impact compile times for tidy.

Testing for this is that it catches 5 files that violated this lint (and removes them).

19 months agoRollup merge of #103638 - ia0:multivalue, r=nagisa
Manish Goregaokar [Wed, 2 Nov 2022 00:00:39 +0000 (20:00 -0400)]
Rollup merge of #103638 - ia0:multivalue, r=nagisa

Add `multivalue` target feature to WASM target

This PR is similar to #99643 and #97808. It addresses #96472 for the `multivalue` target feature.

The problem I am trying to fix is to remove the following warning when compiling with `-C target-feature=+multivalue` for `--target=wasm32-unknown-unknown`.

```
warning: unknown feature specified for `-Ctarget-feature`: `multivalue`
  |
  = note: it is still passed through to the codegen backend
  = note: consider filing a feature request
```

19 months agoRollup merge of #103637 - ChrisDenton:stdio-uwp, r=thomcc
Manish Goregaokar [Wed, 2 Nov 2022 00:00:38 +0000 (20:00 -0400)]
Rollup merge of #103637 - ChrisDenton:stdio-uwp, r=thomcc

Use stdio in UWP apps

Fixes #103233

This has been supported since Windows 10.0.16299. See https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-console-l1-1-0dll

19 months agoRollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco
Manish Goregaokar [Wed, 2 Nov 2022 00:00:38 +0000 (20:00 -0400)]
Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco

Change #[suggestion_*] attributes to use style="..."

As discussed [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20tool_only_span_suggestion), this changes `#[(multipart_)suggestion_{short,verbose,hidden}(...)]` attributes to plain `#[(multipart_)suggestion(...)]` attributes with a `style = "{short,verbose,hidden}"` parameter.

It also adds a new style, `tool-only`, that corresponds to `tool_only_span_suggestion`/`tool_only_multipart_suggestion` and causes the suggestion to not be shown in human-readable output at all.

Best reviewed commit-by-commit, there's a bit of noise in there.

cc #100717 `@compiler-errors`
r? `@davidtwco`

19 months agoRollup merge of #103084 - inquisitivecrystal:control-flow, r=scottmcm
Manish Goregaokar [Wed, 2 Nov 2022 00:00:37 +0000 (20:00 -0400)]
Rollup merge of #103084 - inquisitivecrystal:control-flow, r=scottmcm

Derive `Eq` and `Hash` for `ControlFlow`

There's really no reason for `ControlFlow` not to derive these traits. This is the part of #96416 that no one objected to, but that PR seems stale. The `Eq` derive was also [requested](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/.60ControlFlow.3A.20Eq.60/near/303610659) by `@lcnr` on Zulip to allow for pattern matching.

This change requires an FCP because it's insta-stable.

Closes #96416.

19 months agoRollup merge of #103072 - cuviper:compiletest-path, r=Mark-Simulacrum
Manish Goregaokar [Wed, 2 Nov 2022 00:00:37 +0000 (20:00 -0400)]
Rollup merge of #103072 - cuviper:compiletest-path, r=Mark-Simulacrum

compiletest: set the dylib path when gathering target cfg

If the compiler is built with `rpath = false`, then it won't find its
own libraries unless the library search path is set. We already do that
while running the actual compiletests, but #100260 added another rustc
command for getting the target cfg.

    Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    thread 'main' panicked at 'error: failed to get cfg info from "[...]/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
    --- stdout

    --- stderr
    [...]/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-a2a76dc626cd02d2.so: cannot open shared object file: No such file or directory
    ', src/tools/compiletest/src/common.rs:476:13

Now the library path is set here as well, so it works without rpath.

19 months agorustdoc: simplify mobile item-table CSS
Michael Howell [Tue, 1 Nov 2022 23:27:00 +0000 (16:27 -0700)]
rustdoc: simplify mobile item-table CSS

Using flexbox in column direction is needlessly complicated, since no
special flex powers are being used here. Just use regular block layout.

This should result in no visible changes.

19 months agoReorder `walk_` functions in intravisit.rs
Samuel Moelius [Tue, 1 Nov 2022 23:02:45 +0000 (19:02 -0400)]
Reorder `walk_` functions in intravisit.rs

19 months agofix(generic_const_exprs): Fix predicate inheritance for children of opaque types
Zhixing Zhang [Tue, 1 Nov 2022 00:01:00 +0000 (17:01 -0700)]
fix(generic_const_exprs): Fix predicate inheritance for children of opaque types

19 months agoAuto merge of #103217 - mejrs:track, r=eholk
bors [Tue, 1 Nov 2022 21:09:45 +0000 (21:09 +0000)]
Auto merge of #103217 - mejrs:track, r=eholk

Track where diagnostics were created.

This implements the `-Ztrack-diagnostics` flag, which uses `#[track_caller]` to track where diagnostics are created. It is meant as a debugging tool much like `-Ztreat-err-as-bug`.

For example, the following code...

```rust
struct A;
struct B;

fn main(){
    let _: A = B;
}
```
...now emits the following error message:

```
error[E0308]: mismatched types
 --> src\main.rs:5:16
  |
5 |     let _: A = B;
  |            -   ^ expected struct `A`, found struct `B`
  |            |
  |            expected due to this
-Ztrack-diagnostics: created at compiler\rustc_infer\src\infer\error_reporting\mod.rs:2275:31
```

19 months agoFormat dyn Trait better in type_name intrinsic
Michael Goulet [Sun, 30 Oct 2022 19:39:07 +0000 (19:39 +0000)]
Format dyn Trait better in type_name intrinsic

19 months agoRemove unneeded "rustdoc-preferred-dark-theme" setting
Guillaume Gomez [Tue, 1 Nov 2022 18:47:12 +0000 (19:47 +0100)]
Remove unneeded "rustdoc-preferred-dark-theme" setting

19 months agoMigrate sidebar-links-color GUI test to functions
Guillaume Gomez [Tue, 1 Nov 2022 14:48:13 +0000 (15:48 +0100)]
Migrate sidebar-links-color GUI test to functions

19 months agoRevert "ci: Bring back ninja for dist builders"
Jakub Beránek [Tue, 1 Nov 2022 18:36:25 +0000 (19:36 +0100)]
Revert "ci: Bring back ninja for dist builders"

19 months agoAuto merge of #103841 - Dylan-DPC:rollup-rff2x1l, r=Dylan-DPC
bors [Tue, 1 Nov 2022 18:15:32 +0000 (18:15 +0000)]
Auto merge of #103841 - Dylan-DPC:rollup-rff2x1l, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #84022 (Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error)
 - #103760 (resolve: Turn the binding from `#[macro_export]` into a proper `Import`)
 - #103813 (rustdoc: remove unnecessary CSS `.search-results { clear: both }`)
 - #103817 (rustdoc: rename syntax highlighting CSS class `attribute` to `attr`)
 - #103833 (:arrow_up: rust-analyzer)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

19 months agoAdd track_caller to some Lock methods
Cameron Steffen [Tue, 1 Nov 2022 17:24:51 +0000 (12:24 -0500)]
Add track_caller to some Lock methods

19 months agoRollup merge of #103833 - lnicola:rust-analyzer-2022-11-01, r=lnicola
Dylan DPC [Tue, 1 Nov 2022 16:31:37 +0000 (22:01 +0530)]
Rollup merge of #103833 - lnicola:rust-analyzer-2022-11-01, r=lnicola

:arrow_up: rust-analyzer

r? `@ghost`

19 months agoRollup merge of #103817 - notriddle:notriddle/attribute-css, r=GuillaumeGomez
Dylan DPC [Tue, 1 Nov 2022 16:31:37 +0000 (22:01 +0530)]
Rollup merge of #103817 - notriddle:notriddle/attribute-css, r=GuillaumeGomez

rustdoc: rename syntax highlighting CSS class `attribute` to `attr`

Link classes use the abbreviation `attr` ...

https://github.com/rust-lang/rust/blob/2afca78a0b03db144c5d8b9f8868feebfe096309/src/librustdoc/html/static/css/rustdoc.css#L255-L259

... so why does syntax highlighting use the full word?

https://github.com/rust-lang/rust/blob/2afca78a0b03db144c5d8b9f8868feebfe096309/src/librustdoc/html/static/css/rustdoc.css#L1095-L1097

19 months agoRollup merge of #103813 - notriddle:notriddle/search-results-clear-both, r=GuillaumeGomez
Dylan DPC [Tue, 1 Nov 2022 16:31:36 +0000 (22:01 +0530)]
Rollup merge of #103813 - notriddle:notriddle/search-results-clear-both, r=GuillaumeGomez

rustdoc: remove unnecessary CSS `.search-results { clear: both }`

Since the tabs use flexbox instead of float as of 44d9b8d07014d976c88f541dbe0af37e64e37bdd, clearing does nothing.

19 months agoRollup merge of #103760 - petrochenkov:macimp, r=cjgillot
Dylan DPC [Tue, 1 Nov 2022 16:31:36 +0000 (22:01 +0530)]
Rollup merge of #103760 - petrochenkov:macimp, r=cjgillot

resolve: Turn the binding from `#[macro_export]` into a proper `Import`

Continuation of https://github.com/rust-lang/rust/pull/91795.

```rust
#[macro_export]
macro_rules! m { /*...*/ }
```
is desugared to something like
```rust
macro_rules! m { /*...*/ } // Non-modularized macro_rules item

pub use m; // It's modularized reexport
```

This PR adjusts the internal representation to better match this model.

19 months agoRollup merge of #84022 - Aaron1011:remove-derive-res-fallback, r=petrochenkov
Dylan DPC [Tue, 1 Nov 2022 16:31:35 +0000 (22:01 +0530)]
Rollup merge of #84022 - Aaron1011:remove-derive-res-fallback, r=petrochenkov

Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error

r? `@ghost`