Guillaume Gomez
38a2d5f435
Rollup merge of #115503 - GuillaumeGomez:migrate-gui-test-color-38, r=notriddle
...
Migrate GUI colors test to original CSS color format
Follow-up of https://github.com/rust-lang/rust/pull/111459 .
r? `@notriddle`
2023-09-03 15:42:12 +02:00
Guillaume Gomez
dbeef4590a
Rollup merge of #115490 - pitaj:rustdoc-searchjs-comment, r=GuillaumeGomez
...
rustdoc: update comment in search.js for #107629
Addressing https://github.com/rust-lang/rust/pull/107629#issuecomment-1693460106
r? `@jsha`
2023-09-03 15:42:12 +02:00
Guillaume Gomez
3db7fc1481
Rollup merge of #115478 - gurry:115462-exprfield-no-warn, r=compiler-errors
...
Emit unused doc comment warnings for pat and expr fields
Fixes #115462
2023-09-03 15:42:11 +02:00
Ben Kimock
642251b71f
Use std::io::Error::is_interrupted everywhere
2023-09-03 09:21:10 -04:00
Camille GILLOT
61a0b77e17
Use relative positions inside a SourceFile.
2023-09-03 12:56:10 +00:00
Camille GILLOT
258ace613d
Use relative positions inside a SourceFile.
2023-09-03 12:56:10 +00:00
bors
49523e3360
Auto merge of #115448 - onur-ozkan:optimize-bootstrap-dep-tree, r=albertlarsan68
...
optimize bootstrap dep tree
bumped `pretty_assertations` in favor of removing duplicated `syn`, and bumped `hermit-abi` from the yanked version.
2023-09-03 12:55:10 +00:00
Sebastian Toh
d87b87d10e
Improve clarity of diagnostic message on non-exhaustive matches
2023-09-03 19:55:11 +08:00
bors
53a03978a7
Auto merge of #115361 - compiler-errors:param, r=cjgillot
...
Don't manually compute param indices when adding implicit `Sized` and `ConstParamHasTy`
We can just use resolve_bound_vars to compute these indices faithfully.
This also makes the code easier to support where clauses on `non_lifetime_binders` (like `where for<T: Debug> ...`, etc, which I've got a [WIP implementation of](https://github.com/rust-lang/rust/compare/master...compiler-errors:rust:non-lifetime-binder-where-clauses )).
r? `@cjgillot`
2023-09-03 11:12:20 +00:00
Guillaume Gomez
8e5dff1d38
Migrate GUI colors test to original CSS color format
2023-09-03 12:49:22 +02:00
Guillaume Gomez
7e648f0d72
Use named arguments in code-color.goml
GUI test
2023-09-03 12:46:56 +02:00
bors
b89d7d6882
Auto merge of #115496 - RalfJung:miri, r=RalfJung
...
update Miri
There were conflicts on the last pull, so make sure it's all in sync both ways
r? `@ghost`
2023-09-03 09:23:39 +00:00
bors
7cc5ac267f
Auto merge of #115470 - ericmarkmartin:stable-prov, r=oli-obk
...
add stable provenance
r? `@spastorino`
implements rust-lang/project-stable-mir#22
2023-09-03 07:38:55 +00:00
bors
f2568c8316
Auto merge of #3050 - RalfJung:rustup, r=RalfJung
...
Rustup
2023-09-03 07:35:33 +00:00
Ralf Jung
fb26c21c35
Merge from rustc
2023-09-03 09:28:31 +02:00
Ralf Jung
dc81d6c282
Preparing for merge from rustc
2023-09-03 09:28:30 +02:00
Ayush Singh
56df6b8189
Move RawOsError defination to sys
...
Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-09-03 12:35:03 +05:30
Martin Nordholts
789451b43a
Allow large_assignments
for Box/Arc/Rc initialization
...
Does the `stop linting in box/arc initialization` task of 83518.
2023-09-03 08:15:25 +02:00
bors
a989e25f1b
Auto merge of #115472 - RalfJung:tier-2, r=GuillaumeGomez
...
make it more clear what 'Tier 2' (without host tools) means
When saying that Rust "builds official binary releases for each tier 2 target", it's not at all clear that this does not mean we build a compiler and cargo for that target.
2023-09-03 05:23:52 +00:00
bors
33e796bbe1
Auto merge of #115441 - catandcoder:master, r=workingjubilee
...
fix the repetitive word
2023-09-03 03:37:27 +00:00
John Kåre Alsaker
00c251134d
Outline panicking code for RefCell::borrow
and RefCell::borrow_mut
2023-09-03 05:10:58 +02:00
Gurinder Singh
a0a71732f9
Fix code that now emits unused doc comment warning for expr field
2023-09-03 08:38:17 +05:30
Gurinder Singh
10f4917568
Emit unused doc comment warnings for pat and expr fields
2023-09-03 08:21:18 +05:30
bors
3ec4b3bc8c
Auto merge of #115436 - GuillaumeGomez:fix-type-based-search, r=notriddle
...
[rustdoc] Fix type based search
Fixes https://github.com/rust-lang/rust/issues/114522 .
The problem was a bit more tricky than I originally thought it would be: we only kept type ID and generics in short, but as soon as there was a full path in the user query, the element didn't get an ID anymore because the ID map didn't know about `x::y` (although it knew about `y`). So for this first problem, I instead always pass the element name to get the ID.
Then a new problem occurred: we actually needed to check if paths matched, otherwise whatever the path, as long as the "end types" match, it's all good. meaning, we needed to add path information, but to do so, we needed it to be added into the search index directly as there was no mapping between `"p"` and `"q"`.
I hope this explanation makes sense to someone else than me. ^^'
r? `@notriddle`
2023-09-03 01:52:15 +00:00
Peter Jaszkowiak
b1e32eaab2
rustdoc: update comment in search.js for #107629
2023-09-02 19:26:10 -06:00
Carol (Nichols || Goulding)
d9af418223
Add another renamed Clippy lint to release notes
2023-09-02 20:45:52 -04:00
bors
b588641208
Auto merge of #115484 - GuillaumeGomez:migrate-gui-test-color-37, r=notriddle
...
Migrate GUI colors test to original CSS color format
Follow-up of https://github.com/rust-lang/rust/pull/111459 .
r? `@notriddle`
2023-09-03 00:02:55 +00:00
Jason Newcomb
f686bd8949
Take &mut Results
in ResultsVisitor
2023-09-02 19:35:51 -04:00
Guillaume Gomez
e161fa1a6b
Correctly handle paths from foreign items
2023-09-02 23:04:37 +02:00
bors
9f5fc1bd44
Auto merge of #115471 - RalfJung:skipping-sanity, r=onur-ozkan
...
also skip musl checks when BOOTSTRAP_SKIP_TARGET_SANITY is set
Currently I cannot test musl targets in Miri via x.py; this PR fixes that.
2023-09-02 20:14:37 +00:00
Guillaume Gomez
680b3ac787
Migrate GUI colors test to original CSS color format
2023-09-02 21:00:23 +02:00
bors
c4f25777a0
Auto merge of #115273 - the8472:take-fold, r=cuviper
...
Optimize Take::{fold, for_each} when wrapping TrustedRandomAccess iterators
2023-09-02 12:40:16 +00:00
The 8472
f93e125828
restrict test to x86-64
2023-09-02 13:42:58 +02:00
bors
9229b1eab4
Auto merge of #115429 - compiler-errors:assoc-ct-lt-fallthrough, r=cjgillot
...
Fall through when resolving elided assoc const lifetimes
`@QuineDot` makes a good point in https://github.com/rust-lang/rust/issues/115010#issuecomment-1702127634 that we probably should not accept *more* code due to #115011 even though that code will eventually become a forbid-warning in a few versions (https://github.com/rust-lang/rust/issues/115010#issuecomment-1701598067 ).
Fall through when walking thru the `AnonymousWarnToStatic` (renamed to `AnonymousWarn`) rib so that we can resolve as a fresh lifetime like we did before.
2023-09-02 10:55:49 +00:00
Ralf Jung
89619b8a0e
make it more clear what 'Tier 2' (without host tools) means
2023-09-02 10:34:49 +02:00
bors
585bb5e68d
Auto merge of #115409 - RalfJung:llvm-merge-reland, r=lqd
...
bootstrap: use git merge-base for LLVM CI download logic
This re-lands https://github.com/rust-lang/rust/pull/113588 , now that the perf issues are hopefully fixed by https://github.com/rust-lang/rustc-perf/pull/1684 .
r? `@lqd` `@Mark-Simulacrum`
Fixes https://github.com/rust-lang/rust/issues/101907
2023-09-02 08:25:49 +00:00
Ralf Jung
9cae47ee87
also skip musl checks when BOOTSTRAP_SKIP_TARGET_SANITY is set
2023-09-02 10:25:06 +02:00
bors
ad8f601ca2
Auto merge of #115469 - matthiaskrgr:rollup-25ybx39, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #114349 (rustc_llvm: Link to `zlib` on dragonfly and solaris)
- #114845 (Add alignment to the NPO guarantee)
- #115427 (kmc-solid: Fix `is_interrupted`)
- #115443 (feat(std): Stabilize 'os_str_bytes' feature)
- #115444 (Create a SMIR visitor)
- #115449 (Const-stabilize `is_ascii`)
- #115456 (Add spastorino on vacation)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-09-02 06:38:58 +00:00
John Kåre Alsaker
a3ad045ea4
Rename Freeze
to FreezeLock
2023-09-02 08:14:06 +02:00
John Kåre Alsaker
50f0d666d3
Add some comments
2023-09-02 08:13:07 +02:00
John Kåre Alsaker
25884ec9be
Use RwLock
for Freeze
2023-09-02 08:13:07 +02:00
John Kåre Alsaker
ac54d49572
Freeze Definitions
earlier
2023-09-02 08:13:07 +02:00
John Kåre Alsaker
6881eed8f6
Don't hold the definitions' lock across index_hir
2023-09-02 08:13:07 +02:00
John Kåre Alsaker
0c96a9260b
Add Freeze
type and use it to store Definitions
2023-09-02 08:13:03 +02:00
Eric Mark Martin
cb7d020fb6
add stable provenance
2023-09-02 01:53:06 -04:00
Matthias Krüger
6fca6a3282
Rollup merge of #115456 - spastorino:spastorino-vacation, r=spastorino
...
Add spastorino on vacation
2023-09-02 07:48:24 +02:00
Matthias Krüger
1bbd307349
Rollup merge of #115449 - scottmcm:stable-const-is-ascii, r=ChrisDenton
...
Const-stabilize `is_ascii`
Resolves #111090
FCP completed in https://github.com/rust-lang/rust/issues/111090#issuecomment-1688490049
2023-09-02 07:48:23 +02:00
Matthias Krüger
cdc8aa3843
Rollup merge of #115444 - oli-obk:smir_visitor, r=spastorino
...
Create a SMIR visitor
r? ``@spastorino``
Doesn't have tests or examples yet, but I think we could land it and implement it for the rest of the types.
2023-09-02 07:48:23 +02:00
Matthias Krüger
43e15613d1
Rollup merge of #115443 - epage:os_str, r=cuviper
...
feat(std): Stabilize 'os_str_bytes' feature
Closes #111544
2023-09-02 07:48:22 +02:00
Matthias Krüger
b44bf0d117
Rollup merge of #115427 - solid-rs:patch/kmc-solid/is-interrupted, r=cuviper
...
kmc-solid: Fix `is_interrupted`
Follow-up to #115228 . Fixes a build error in [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html ) Tier 3 targets.
```
error[E0603]: function `is_interrupted` is private
--> library\std\src\sys\solid\mod.rs:77:12
|
77 | error::is_interrupted(code)
| ^^^^^^^^^^^^^^ private function
|
note: the function `is_interrupted` is defined here
--> library\std\src\sys\solid\error.rs:35:1
|
35 | fn is_interrupted(er: abi::ER) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
2023-09-02 07:48:22 +02:00