bors
6a4624d73b
Auto merge of #100539 - joboet:horizon_timeout_clock, r=thomcc
...
Use correct clock in `park_timeout` on Horizon
Horizon does not support using `CLOCK_MONOTONIC` with condition variables, so use the system time instead.
2022-12-28 03:56:46 +00:00
Esteban Küber
b6453a454f
Trim more paths in obligation types
2022-12-27 18:56:00 -08:00
Esteban Küber
50c1be1d19
Emit fewer errors on invalid #[repr(transparent)]
on enum
...
Fix #68420 .
2022-12-27 18:28:02 -08:00
Esteban Küber
8e039b6948
Silence knock-down errors on [type error]
bindings
...
Fix #56036 , fix #76589 .
2022-12-27 18:26:54 -08:00
Jhonny Bill Mena
4d63d7d91c
UPDATE - migrate outstanding diagnostic in link.rs
2022-12-27 20:59:22 -05:00
Jhonny Bill Mena
29d8c87fe8
DELETE - fn span_invalid_monomorphization_error and localize intrinsics macros
2022-12-27 20:59:22 -05:00
Jhonny Bill Mena
27744460e2
ADD - create and emit Bug support for Diagnostics
...
UPDATE - migrate constant span_bug to translatable diagnostic.
2022-12-27 20:59:22 -05:00
Jhonny Bill Mena
d1030fab22
UPDATE - migrate fn simd_simple_float_intrinsic error messages
2022-12-27 20:59:21 -05:00
Jhonny Bill Mena
e26366ad99
[WIP] UPDATE - migrate intrinsic.rs to new diagnostic infrastructure
...
WIP - replacing span_invalid_monomorphization_error function. Still in progress due to its use in codegen_llvm inside macros
2022-12-27 20:59:21 -05:00
Jhonny Bill Mena
d41112a8c5
UPDATE - migrate constant.rs to new diagnostics infrastructure
2022-12-27 20:59:21 -05:00
Jhonny Bill Mena
78796ba637
ADD - fixme in type_names.rs until we are able to translate InterpError
2022-12-27 20:59:21 -05:00
Jhonny Bill Mena
82cf6f204a
UPDATE - migrate base.rs to new diagnostics infrastructure
2022-12-27 20:59:19 -05:00
Esteban Küber
05e8ba126c
Account for match
expr in single line
...
When encountering `match Some(42) { Some(x) => x, None => "" };`, output
```
error[E0308]: `match` arms have incompatible types
--> f53.rs:2:52
|
2 | let _ = match Some(42) { Some(x) => x, None => "" };
| -------------- - ^^ expected integer, found `&str`
| | |
| | this is found to be of type `{integer}`
| `match` arms have incompatible types
```
2022-12-27 16:45:55 -08:00
Esteban Küber
b400bde52a
Shorten type in note
2022-12-27 15:36:10 -08:00
Esteban Küber
df2a35ea3d
review comments
2022-12-27 13:44:39 -08:00
Mark Rousskov
0018bcc2d3
Bump rust-installer
...
* `--without=component-a,component-b` now requires full component names.
This fixes rust-lang/rust#105755 (rust-lang/rust-installer#119 ).
2022-12-27 16:27:49 -05:00
Albert Larsan
0b942a879d
Add changelog entry
2022-12-27 22:19:56 +01:00
Nilstrieb
1322e476bf
Improve debug logs of find_width_of_character_at_span
2022-12-27 22:18:22 +01:00
Michael Howell
5c0b60f967
rustdoc: combine common sidebar background color CSS rules
2022-12-27 14:15:49 -07:00
bors
739d68a76e
Auto merge of #106193 - compiler-errors:rollup-0l54wka, r=compiler-errors
...
Rollup of 9 pull requests
Successful merges:
- #103718 (More inference-friendly API for lazy)
- #105765 (Detect likely `.` -> `..` typo in method calls)
- #105852 (Suggest rewriting a malformed hex literal if we expect a float)
- #105965 (Provide local extern function arg names)
- #106064 (Partially fix `explicit_outlives_requirements` lint in macros)
- #106179 (Fix a formatting error in Iterator::for_each docs)
- #106181 (Fix doc comment parsing description in book)
- #106187 (Update the documentation of `Vec` to use `extend(array)` instead of `extend(array.iter().copied())`)
- #106189 (Fix UnsafeCell Documentation Spelling Error)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-27 20:54:06 +00:00
Albert Larsan
6d332c4a71
Fix core::any
mod-level docs
2022-12-27 21:42:42 +01:00
Michael Goulet
49d43468a8
Rollup merge of #106189 - alexhrao:master, r=Nilstrieb
...
Fix UnsafeCell Documentation Spelling Error
This fixes the spelling of "deallocated" (instead of the original "deallocted") In the `cell.rs` source file. Honestly probably not worth the time to evaluate, but since it doesn't involve any code change, I figure why not?
2022-12-27 12:33:38 -08:00
Michael Goulet
79730d6e32
Rollup merge of #106187 - ChayimFriedman2:patch-4, r=compiler-errors
...
Update the documentation of `Vec` to use `extend(array)` instead of `extend(array.iter().copied())`
Another option is to use `extend_from_slice()` (that may be faster), but I find this approach cleaner.
2022-12-27 12:33:37 -08:00
Michael Goulet
4de5547aa0
Rollup merge of #106181 - kraktus:fix_doc_parsing, r=notriddle
...
Fix doc comment parsing description in book
This can actually make a difference for the user if they rely on unicode formating.
Prompted by https://github.com/dtolnay/syn/issues/771
2022-12-27 12:33:37 -08:00
Michael Goulet
7f5f31bc37
Rollup merge of #106179 - RetroSeven:typo_fix, r=compiler-errors
...
Fix a formatting error in Iterator::for_each docs
There is a formatting error (extra space in an assignment) in the documentation of `core::iter::Iterator::for_each`, which I have fixed in this pull request.
2022-12-27 12:33:36 -08:00
Michael Goulet
18bf19c3a9
Rollup merge of #106064 - lukas-code:outlives-macro, r=cjgillot
...
Partially fix `explicit_outlives_requirements` lint in macros
Show the suggestion if and only if the bounds are from the same source context.
fixes https://github.com/rust-lang/rust/issues/106044
fixes https://github.com/rust-lang/rust/issues/106063
2022-12-27 12:33:35 -08:00
Michael Goulet
3fba7b4523
Rollup merge of #105965 - compiler-errors:issue-105896, r=cjgillot
...
Provide local extern function arg names
Fixes #105896
2022-12-27 12:33:35 -08:00
Michael Goulet
996fb664d3
Rollup merge of #105852 - compiler-errors:hex-float-lit, r=cjgillot
...
Suggest rewriting a malformed hex literal if we expect a float
Fixes #104706
2022-12-27 12:33:34 -08:00
Michael Goulet
a9fdeddafd
Rollup merge of #105765 - estebank:range-typo, r=compiler-errors
...
Detect likely `.` -> `..` typo in method calls
Fix #65015 .
2022-12-27 12:33:34 -08:00
Michael Goulet
4b668a1fee
Rollup merge of #103718 - matklad:infer-lazy, r=dtolnay
...
More inference-friendly API for lazy
The signature for new was
```
fn new<F>(f: F) -> Lazy<T, F>
```
Notably, with `F` unconstrained, `T` can be literally anything, and just `let _ = Lazy::new(|| 92)` would not typecheck.
This historiacally was a necessity -- `new` is a `const` function, it couldn't have any bounds. Today though, we can move `new` under the `F: FnOnce() -> T` bound, which gives the compiler enough data to infer the type of T from closure.
2022-12-27 12:33:33 -08:00
Esteban Küber
7e84273b7f
Make resolve suggestion more generic
2022-12-27 12:16:25 -08:00
bors
ca1e861ee9
Auto merge of #2741 - RalfJung:filenames, r=RalfJung
...
cargo-miri: use rustc to determine the output filename
This should fix https://github.com/rust-lang/miri/issues/2740 and fix https://github.com/rust-lang/miri/issues/1867 : we no longer need to hard-code the file name logic in cargo-miri.
2022-12-27 19:49:21 +00:00
Ralf Jung
d31029226b
cargo-miri: use rustc to determine the output filename
2022-12-27 20:34:45 +01:00
Alex Rao
b026167eb9
Fix UnsafeCell Documentation Spelling Error
...
This fixes the spelling of "deallocated" (instead of the original "deallocted") In the `cell.rs` source file
2022-12-27 12:17:56 -06:00
bors
92c1937a90
Auto merge of #97176 - kraktus:cmd_debug, r=the8472
...
More verbose `Debug` implementation of `std::process:Command`
Mainly based on commit: ccc019aabf
from https://github.com/zackmdavis
close https://github.com/rust-lang/rust/issues/42200
2022-12-27 18:13:23 +00:00
Michael Goulet
fa2f31b971
More tests
2022-12-27 17:56:57 +00:00
Michael Goulet
9f59ab55e6
Restore cyclic closure message
2022-12-27 17:56:57 +00:00
Michael Goulet
0817b1d3ed
Don't deduce a signature that makes a closure cyclic
2022-12-27 17:56:56 +00:00
Chayim Refael Friedman
4df5459dd1
Update the documentation of Vec
to use extend(array)
instead of extend(array.iter().copied())
2022-12-27 19:44:58 +02:00
Albert Larsan
c5bc87713f
Make x clean
also clean the stamp file
2022-12-27 18:28:12 +01:00
Esteban Küber
0c0685bb68
review comments: make suggestion more accurate
2022-12-27 09:25:00 -08:00
Michael Goulet
e5c159cf90
Provide local extern function arg names
2022-12-27 17:21:08 +00:00
Michael Goulet
3cf22de90f
Suggest rewriting a malformed hex literal if we expect a float
2022-12-27 17:14:45 +00:00
bors
db79625326
Auto merge of #106183 - matthiaskrgr:rollup-ww6yzhi, r=matthiaskrgr
...
Rollup of 3 pull requests
Successful merges:
- #105817 (Remove unreasonable help message for auto trait)
- #105994 (Add regression test for #99647 )
- #106066 (Always suggest as `MachineApplicable` in `recover_intersection_pat`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-27 15:44:53 +00:00
Matthias Krüger
b7657e9cec
Rollup merge of #106066 - JohnTitor:rm-bindings-after-at-fixme, r=compiler-errors
...
Always suggest as `MachineApplicable` in `recover_intersection_pat`
This resolves one FIXME in `recover_intersection_pat` by always applying `MachineApplicable` when suggesting, as `bindings_after_at` is now stable.
This also separates a test to apply `// run-rustfix`.
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-12-27 16:37:48 +01:00
Matthias Krüger
d5b975cb7c
Rollup merge of #105994 - JohnTitor:issue-99647, r=compiler-errors
...
Add regression test for #99647
Closes #99647
r? `@compiler-errors`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-12-27 16:37:47 +01:00
Matthias Krüger
a0bf4f9b72
Rollup merge of #105817 - chenyukang:yukang/fix-105788-sugg-for-auto-trait, r=TaKO8Ki
...
Remove unreasonable help message for auto trait
Fixes #105788
2022-12-27 16:37:47 +01:00
Albert Larsan
b07a1e3f5a
Put final touches
2022-12-27 14:54:38 +01:00
Albert Larsan
00b23e8d01
Add rustfmt version check
2022-12-27 14:54:37 +01:00
Albert Larsan
633a6c8b66
Format only modified files
...
As discussed on #105688 , this makes x fmt only format modified files
2022-12-27 14:54:37 +01:00