Antoni Boucher
42a89bd875
Fix tests
2023-03-04 15:41:30 -05:00
Ezra Shaw
aaaffa9a3e
feat: impl better help for .poll()
not found on impl Future
2023-03-05 09:34:00 +13:00
Antoni Boucher
9d5bc7c929
Fix tests
2023-03-04 15:25:34 -05:00
Guillaume Gomez
0b5165e76d
Clean up rustdoc-js tester.js file
2023-03-04 21:11:34 +01:00
Antoni Boucher
5c35dc067d
Fix warnings
2023-03-04 15:04:55 -05:00
Antoni Boucher
08c75aee1b
Fix error in libgccjit12 code path
2023-03-04 15:03:05 -05:00
Antoni Boucher
6958188e10
Temporarily disable rust repo cache
2023-03-04 15:02:49 -05:00
Matthias Krüger
ff95645e2c
Rollup merge of #108736 - clubby789:ast-passes-unstable, r=Nilstrieb
...
Remove `allow(potential_query_instability)` from `ast_passes`
cc #84447
2023-03-04 20:48:19 +01:00
Matthias Krüger
99fad38b19
Rollup merge of #108734 - clubby789:rustdoc-layout-uninhabited, r=GuillaumeGomez
...
rustdoc: Note in a type's layout/size if it is uninhabited
Closes #87008

2023-03-04 20:48:19 +01:00
Matthias Krüger
76490b9235
Rollup merge of #108724 - tshepang:de-public, r=compiler-errors
...
field is not used outside the crate
See b61a28b2a1
2023-03-04 20:48:18 +01:00
Matthias Krüger
9cabc40ab1
Rollup merge of #108723 - notriddle:notriddle/where-clause, r=GuillaumeGomez
...
rustdoc: function signature search with traits in `where` clause
## Before

## After

2023-03-04 20:48:18 +01:00
Matthias Krüger
dd6f03de9a
Rollup merge of #108715 - chenyukang:yukang/cleanup-parser-delims, r=compiler-errors
...
Remove unclosed_delims from parser
After landing https://github.com/rust-lang/rust/pull/108297
we could remove `unclosed_delims` from the parser now.
2023-03-04 20:48:17 +01:00
Matthias Krüger
538f19d638
Rollup merge of #108632 - Teapot4195:issue-108612-fix, r=ozkanonur
...
Omit unchanged options from config.toml in `configure.py`
Leaves section tags, but removes options that are unchanged.
Change in `config.toml.example` is to prevent comments from sneaking in by being directly after a section tag
closes #108612
2023-03-04 20:48:17 +01:00
Matthias Krüger
60f54b1025
Rollup merge of #108627 - estebank:suggestion-hightlight, r=WaffleLapkin
...
Properly colorize multi-part suggestions in the same line
Fix #108547 .
2023-03-04 20:48:16 +01:00
Antoni Boucher
901e413a3f
Fix tests
2023-03-04 14:42:34 -05:00
bors
2500f960fc
Auto merge of #10439 - giraffate:fix_fp_for_let_unit_value, r=Jarcho
...
Fix FP for `let_unit_value` when `await` used
Fix https://github.com/rust-lang/rust-clippy/issues/10433
changelog: Fix FP for `let_unit_value` when `await` used
2023-03-04 19:42:26 +00:00
bors
f15f0ea739
Auto merge of #108740 - Mark-Simulacrum:version-bump, r=Mark-Simulacrum
...
Bump version to 1.70.0
r? `@Mark-Simulacrum`
2023-03-04 19:37:10 +00:00
Antoni Boucher
a2f499f05f
Fix tests
2023-03-04 14:30:29 -05:00
Michael Howell
af664be423
rustdoc: include link on all.html location header
...
This avoids a subtle layout shift when switching from the crate page
to all items.
2023-03-04 11:54:28 -07:00
Michael Goulet
7634c5916a
Don't project to RPITIT that has no default value
2023-03-04 18:36:02 +00:00
Michael Goulet
32f1f01499
Don't ICE when encountering bound var in builtin copy/clone bounds
2023-03-04 17:53:51 +00:00
Jakub Beránek
9aad2ad361
Add check for dry run
2023-03-04 17:36:00 +01:00
Samuel Tardieu
446ae429a6
lintcheck: fix parallel processing handling
...
Using `rayon::current_num_threads()` causes a bug:
```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
ThreadPoolBuildError { kind: GlobalPoolAlreadyInitialized }',
src/main.rs:632:10
```
Moreover, using the number of threads and dividing it by 2 wouldn't
return the number of physical threads on modern processors which have
a varying number of threads per core.
It makes little sense to restrict ourselves to physical threads,
especially when, in modern architectures, cores with multiple threads
are often faster (performance) while cores with a unique threads are
often slower (efficient). The Rust runtime will make a better choice.
2023-03-04 17:29:58 +01:00
bors
308d680407
Auto merge of #10442 - dtolnay-contrib:letunderscore, r=llogiq
...
Downgrade let_underscore_untyped to restriction
From reading #6842 I am not convinced of the cost/benefit of this lint even as a pedantic lint.
It sounds like the primary motivation was to catch cases of `fn() -> Result` being changed to `async fn() -> Result`. If the original Result was ignored by a `let _`, then the compiler wouldn't guide you to add `.await`. **However, this situation is caught in a more specific way by [let_underscore_future](https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future ) which was introduced _after_ the original suggestion (#9760 ).**
In #10410 it was mentioned twice that a <kbd>restriction</kbd> lint might be more appropriate for let_underscore_untyped.
changelog: Moved [`let_underscore_untyped`] to restriction
2023-03-04 16:20:28 +00:00
bors
d423703aba
Auto merge of #10443 - dtolnay-contrib:formerids, r=llogiq
...
Include former name of renamed lints in lints.json
I am interested in having a programmatic way to process [`RENAMED_LINTS`](113c704d22/clippy_lints/src/renamed_lints.rs (L4)
) for https://github.com/dtolnay/noisy-clippy/issues/15 .
<details>
<summary>lints.json diff</summary>
```diff
60c60,63
< }
---
> },
> "former_ids": [
> "almost_complete_letter_range"
> ]
300c303,306
< }
---
> },
> "former_ids": [
> "option_and_then_some"
> ]
330c336,340
< }
---
> },
> "former_ids": [
> "block_in_if_condition_expr",
> "block_in_if_condition_stmt"
> ]
450c460,463
< }
---
> },
> "former_ids": [
> "box_vec"
> ]
945c958,961
< }
---
> },
> "former_ids": [
> "cyclomatic_complexity"
> ]
1335c1351,1354
< }
---
> },
> "former_ids": [
> "derive_hash_xor_eq"
> ]
1365c1384,1387
< }
---
> },
> "former_ids": [
> "disallowed_method"
> ]
1380c1402,1405
< }
---
> },
> "former_ids": [
> "blacklisted_name"
> ]
1410c1435,1438
< }
---
> },
> "former_ids": [
> "disallowed_type"
> ]
1890c1918,1922
< }
---
> },
> "former_ids": [
> "option_expect_used",
> "result_expect_used"
> ]
3150c3182,3185
< }
---
> },
> "former_ids": [
> "zero_width_space"
> ]
4185c4220,4225
< }
---
> },
> "former_ids": [
> "option_map_unwrap_or",
> "option_map_unwrap_or_else",
> "result_map_unwrap_or_else"
> ]
4290c4330,4333
< }
---
> },
> "former_ids": [
> "if_let_some_result"
> ]
4710c4753,4756
< }
---
> },
> "former_ids": [
> "eval_order_dependence"
> ]
4755c4801,4804
< }
---
> },
> "former_ids": [
> "stutter"
> ]
5055c5104,5107
< }
---
> },
> "former_ids": [
> "ref_in_deref"
> ]
5400c5452,5455
< }
---
> },
> "former_ids": [
> "new_without_default_derive"
> ]
5820c5875,5878
< }
---
> },
> "former_ids": [
> "logic_bug"
> ]
6330c6388,6391
< }
---
> },
> "former_ids": [
> "to_string_in_display"
> ]
6525c6586,6589
< }
---
> },
> "former_ids": [
> "const_static_lifetime"
> ]
7065c7129,7132
< }
---
> },
> "former_ids": [
> "single_char_push_str"
> ]
8820c8887,8891
< }
---
> },
> "former_ids": [
> "option_unwrap_used",
> "result_unwrap_used"
> ]
8925c8996,8999
< }
---
> },
> "former_ids": [
> "identity_conversion"
> ]
```
</details>
changelog: Include `"former_ids": […]` for renamed lints in [lints.json](https://rust-lang.github.io/rust-clippy/master/lints.json )
2023-03-04 16:08:09 +00:00
Michael Howell
9d27028391
rustdoc: function signature search with traits in where
clause
2023-03-04 09:05:57 -07:00
Jakub Beránek
91bb563e13
Try to avoid the last rustc rebuild
2023-03-04 16:37:40 +01:00
Jakub Beránek
bfc220a96e
Create BOLT build steps to avoid running BOLT multiple times on the same file
2023-03-04 16:37:40 +01:00
Jakub Beránek
c5d65aa580
Apply BOLT optimizations without rebuilding LLVM
2023-03-04 16:37:40 +01:00
Mark Rousskov
4cb1503d3a
Bump version to 1.70.0
2023-03-04 10:10:46 -05:00
bors
b1719530f4
Auto merge of #108692 - nnethercote:dont-call-temporary_scope-twice, r=cjgillot
...
Don't call `temporary_scope` twice.
`mirror_expr_inner` calls `temporary_scope`. It then calls `make_mirror_unadjusted` which makes an identical call to `temporary_scope`.
This commit changes the `mirror_expr_inner` to get the `temp_lifetime` out of the expression produced by `make_mirror_unadjusted`, similar to how it currently gets the type.
r? `@cjgillot`
2023-03-04 15:10:04 +00:00
clubby789
ee41ba5d3c
Remove allow(potential_query_instability)
from ast_passes
2023-03-04 12:39:54 +00:00
clubby789
7520155e4e
rustdoc: Note in a type's layout/size if it is uninhabited
2023-03-04 12:07:29 +00:00
bors
276b75a843
Auto merge of #108732 - Dylan-DPC:rollup-dy1l8sx, r=Dylan-DPC
...
Rollup of 6 pull requests
Successful merges:
- #108298 (Fix ICE: check if snippet is `)`)
- #108405 (Lazily compute crate name for consider_optimizing)
- #108656 (Rustdoc search: Emit an error for unclosed generic)
- #108660 (Remove ne implementations from strings)
- #108669 (Allow checking whether a type allows being uninitialized)
- #108727 (rustc_expand: make proc-macro derive error translatable)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-03-04 11:44:02 +00:00
Dylan DPC
0965c7e0a9
Rollup merge of #108727 - tshepang:example-translatable-diagnostic, r=Nilstrieb
...
rustc_expand: make proc-macro derive error translatable
kept this tiny so as to point to it as an example in rustc-dev-guide
`@rustbot` label +A-translation
2023-03-04 15:24:40 +05:30
Dylan DPC
6ce78a31d8
Rollup merge of #108669 - Nilstrieb:query-my-uninitness, r=compiler-errors
...
Allow checking whether a type allows being uninitialized
This is useful for clippy ([rust-lang/clippy#10407 ](https://github.com/rust-lang/rust-clippy/issues/10407 )) and for the future `MaybeUninit::assume_init` panics (#100423 ).
2023-03-04 15:24:39 +05:30
Dylan DPC
e700d02374
Rollup merge of #108660 - xfix:remove-ne-method-from-str, r=thomcc
...
Remove ne implementations from strings
As far as I can tell, there isn't really a reason for those.
2023-03-04 15:24:39 +05:30
Dylan DPC
2fc4935cdb
Rollup merge of #108656 - GuillaumeGomez:rustdoc-search-unclosed-generic, r=notriddle
...
Rustdoc search: Emit an error for unclosed generic
Now, search like `a<` will error as it should (and as written in the eBNF).
r? `@notriddle`
2023-03-04 15:24:38 +05:30
Dylan DPC
832dab3798
Rollup merge of #108405 - Nilstrieb:lazy-crate-name-optimization-fuel, r=WaffleLapkin
...
Lazily compute crate name for consider_optimizing
The extra query is unnecessary in the common case of not having fuel.
2023-03-04 15:24:37 +05:30
Dylan DPC
035aa2816a
Rollup merge of #108298 - TaKO8Ki:fix-104440, r=cjgillot
...
Fix ICE: check if snippet is `)`
Fixes #107705
2023-03-04 15:24:37 +05:30
Ali MJ Al-Nasrawy
427dc18c25
tweak debug output and bless tests
2023-03-04 12:10:42 +03:00
bors
01b7a6a9ea
Auto merge of #108689 - compiler-errors:normalization-error-smaller, r=lcnr
...
Remove `NormalizationError::ConstantKind`
No longer in use by `TryNormalizeAfterErasingRegionsFolder` (as of #102355 / e8150fa60c
it seems). It's making `LayoutError`, etc. kinda large -- that was noticed by `@zoxc.`
2023-03-04 09:03:23 +00:00
Ali MJ Al-Nasrawy
97381d2f1e
tweak ClosureOutlivesSubjectTy
2023-03-04 11:19:56 +03:00
Tshepang Mbambo
7fe4f0701c
rustc_expand: make proc-macro derive error translatable
2023-03-04 07:54:29 +02:00
Tshepang Mbambo
34063c5706
infer: fix and improve comments
2023-03-04 07:38:37 +02:00
bors
0fbfc3e769
Auto merge of #89518 - a1phyr:unix_file_vectored_at, r=workingjubilee
...
Add vectored positioned I/O on Unix
Add methods for vectored I/O with an offset on `File` for `unix` under `#![feature(unix_file_vectored_at)]`.
The new methods are wrappers around `preadv` and `pwritev`.
Tracking issue: #89517
2023-03-04 05:26:35 +00:00
Tshepang Mbambo
4b92024cf1
field is not used outside the crate
...
See b61a28b2a1
2023-03-04 07:01:08 +02:00
David Tolnay
cc6180c2f4
Include former name of renamed lints in lints.json
2023-03-03 19:03:54 -08:00
Celina G. Val
40185dba54
Delete old re-exports from rustc_smir
...
This approach didn't seem to work well.
2023-03-03 16:56:07 -08:00
Esteban Küber
6fd175185e
Properly colorize multi-part suggestions in the same line
...
Fix #108547 .
2023-03-04 00:29:52 +00:00