Jakob Degen
ee6503a706
Reenable limited top-down MIR inlining
2023-01-01 22:01:29 -08:00
Esteban Küber
545406528a
Verbose suggestions
2023-01-01 21:33:23 -08:00
bors
c5cb156caa
Auto merge of #106358 - TroyNeubauer:improve-foreign-orphan-error, r=estebank
...
Implement fix for #67535
Implements a fix for #67535
r? `@estebank`
2023-01-02 04:32:39 +00:00
Ben Kimock
82f0973dd5
Always take advantage of arithmetic identities
2023-01-01 23:12:29 -05:00
clubby789
cafdd2f7bb
Note maximum integer literal for IntLiteralTooLarge
2023-01-02 03:52:29 +00:00
Ezra Shaw
b7341db5d8
fix CI
2023-01-02 16:22:18 +13:00
Ezra Shaw
1f1dd5f3cc
pattern destructure has_test
...
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
2023-01-02 16:14:21 +13:00
Michael Howell
399fe5d0cd
rustdoc: add test case for dir entry summary position
2023-01-01 19:52:30 -07:00
Troy Neubauer
4cb9030a66
Implement fix for #67535
2023-01-01 18:26:28 -08:00
bors
ee11bfd8a1
Auto merge of #106352 - kornelski:read_line-doc, r=scottmcm
...
Document read_line gotchas
1. The "You do not need to clear the buffer before appending" advice is ambiguous, because it depends what you use this function for. For a rather common case of reading individual lines in a loop, it _is_ necessary to clear the buffer.
2. The docs warn about a DoS risk. I've added a hint how to mitigate unbounded memory growth.
2023-01-02 01:15:25 +00:00
yukang
93e62a4bf6
resolve merge conflict
2023-01-02 09:14:18 +08:00
yukang
74cdf93307
code refactor report_method_error
2023-01-02 09:14:15 +08:00
Joshua Nelson
beefcf8854
Cleanup mingw-tidy
docker job
...
- Avoid `/checkout/src/ci/run.sh: line 187: [: =: unary operator expected`: https://github.com/rust-lang/rust/actions/runs/3809902408/jobs/6481611301#step:26:1701
- Avoid running `x check` in the tidy test, to get faster feedback. It's
already run on the normal `mingw-check` job.
2023-01-01 21:44:18 +00:00
bors
e11cb36c75
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
...
Use the correct tracking issue for `dyn_star`
`#![feature(dyn_star)]` now has its own tracking issue, #102425 .
2023-01-01 21:41:35 +00:00
J Haigh
9aebb1e099
improve error message
...
Co-authored-by: Joshua Nelson <github@jyn.dev>
2023-01-01 14:36:51 -07:00
J Haigh
e62258ebf4
fix typo
...
Co-authored-by: Joshua Nelson <github@jyn.dev>
2023-01-01 14:36:11 -07:00
DebugSteven
d7cac976dc
combine error branches
2023-01-01 14:34:40 -07:00
Ezra Shaw
fafb18e0c4
fixup warnings
2023-01-02 09:44:10 +13:00
DebugSteven
e94354e363
fix formatting
2023-01-01 13:41:47 -07:00
Ezra Shaw
def1b7cb9a
fix CI error
2023-01-02 09:20:41 +13:00
DebugSteven
5e67ce6803
handle error case where --wrapper-version argument doesn't exist
2023-01-01 13:20:32 -07:00
Ezra Shaw
24671b7fd5
use more paths in error codes
2023-01-02 09:15:36 +13:00
Ezra Shaw
9618f646b3
docs: revert removal of E0729
2023-01-02 09:11:36 +13:00
Nixon Enraght-Moony
cca5d219e6
Rustdoc-Json: Report discriminant on all kinds of enum variant.
...
Closes #106299
2023-01-01 19:48:26 +00:00
Léo Lanteri Thauvin
6289fe2cf1
Use the correct tracking issue for dyn_star
2023-01-01 19:56:10 +01:00
LegionMammal978
ce28b4d408
Deallocate ThinBox even if the value unwinds on drop
2023-01-01 13:48:18 -05:00
Laurențiu Nicola
34bc240e94
Package release artifacts as ZIP
2023-01-01 20:45:08 +02:00
bors
77429957a0
Auto merge of #106350 - GuillaumeGomez:gui-test-explanation-2, r=notriddle
...
Add comment explaining what docblock-table GUI test is about
r? `@notriddle`
2023-01-01 18:35:04 +00:00
Nixon Enraght-Moony
b7b252a4f4
clean: Always store enum disriminant.
2023-01-01 18:11:53 +00:00
Esteban Küber
5bfcfeee2a
Merge multiple mutable borrows of immutable binding errors
...
Fix #53466 .
2023-01-01 10:09:26 -08:00
Kornel
3a6ceeb18f
Document a way to limit read_line length
2023-01-01 18:04:26 +00:00
Kornel
1a983536f3
Document read_line gotcha
2023-01-01 17:49:05 +00:00
Lukas Markeffsky
035d854947
reduce spans for unsafe impl
errors
2023-01-01 18:48:57 +01:00
Guillaume Gomez
d14e63665e
Add comment explaining what docblock-table GUI test is about
2023-01-01 17:21:59 +01:00
bors
643bc02ded
Auto merge of #13875 - Veykril:private-field-diag, r=Veykril
...
Diagnose private assoc item accesses
2023-01-01 12:25:27 +00:00
Lukas Wirth
eee7de0225
Diagnose private assoc item accesses
2023-01-01 13:24:48 +01:00
bors
bb6e76df06
Auto merge of #106312 - tgross35:update-book-target, r=JohnTitor
...
Added link from Targets to Platform Support in the book
If you search the web for "rust targets", the first result is the [targets page](https://doc.rust-lang.org/nightly/rustc/targets/index.html ). However, usually when searching for this I'm interested in seeing the available triples with host information, so I just added a link to the correct page.
The entire `Targets` chapter could probably be combined into one page, since its three subchapters each only have a tiny section (I'll do this if requested)
2023-01-01 05:20:48 +00:00
Ezra Shaw
04b9038610
refactor: clean up errors.rs
and error_codes_check.rs
...
Move them into new `error_codes.rs` tidy check.
2023-01-01 15:22:01 +13:00
bors
c9825f7087
Auto merge of #106336 - matthiaskrgr:rollup-4p6bgwf, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #106280 (docs: add link to `Path::join` in `PathBuf::push`)
- #106297 (rustdoc: merge scrape-help CSS)
- #106328 (Add comment explaining what the GUI scrape-examples-fonts test is about)
- #106334 (Fix tidy unittest.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-31 23:22:06 +00:00
Matthias Krüger
0b3c3c9b64
Rollup merge of #106334 - ehuss:fix-tidy-unittests, r=jyn514
...
Fix tidy unittest.
The tidy unittests weren't compiling due to a change made a long while ago to the `Version` type.
2022-12-31 23:51:35 +01:00
Matthias Krüger
0a08ab129d
Rollup merge of #106328 - GuillaumeGomez:gui-test-explanation, r=notriddle
...
Add comment explaining what the GUI scrape-examples-fonts test is about
r? `@notriddle`
2022-12-31 23:51:35 +01:00
Matthias Krüger
17263f2fa1
Rollup merge of #106297 - notriddle:notriddle/scrape-help, r=GuillaumeGomez
...
rustdoc: merge scrape-help CSS
2022-12-31 23:51:34 +01:00
Matthias Krüger
4bf9cae080
Rollup merge of #106280 - Ezrashaw:path-join-docs-better, r=thomcc
...
docs: add link to `Path::join` in `PathBuf::push`
Fixes #106219
Hopefully my wording is alright.
2022-12-31 23:51:34 +01:00
Eric Huss
59b80f598f
Run cargo test
on tidy itself.
2022-12-31 12:34:23 -08:00
bors
574b64a97f
Auto merge of #106282 - Ezrashaw:merge-e0465, r=estebank
...
refactor: merge error code `E0465` into `E0464`
`E0465` is an undocumented and untested error code that is functionally identical to `E0464`. This PR merges `E0465` into `E0464`, thus documenting and testing another error code (#61137 ).
r? `@GuillaumeGomez` (not sure if you want to review this but it's relevant to my other PRs that you have reviewed)
2022-12-31 20:10:02 +00:00
Eric Huss
4620f82a13
Fix tidy unittest.
2022-12-31 11:52:16 -08:00
DebugSteven
f50ad6cd8c
rename wrapper-version argument for x to differentiate it from the bootstrap version
2022-12-31 11:38:44 -07:00
J Haigh
430ea8d440
Update error message
...
Co-authored-by: Joshua Nelson <github@jyn.dev>
2022-12-31 11:38:44 -07:00
J Haigh
02173f6ab5
Update error message
...
Co-authored-by: Joshua Nelson <github@jyn.dev>
2022-12-31 11:38:44 -07:00
DebugSteven
7fe2f73ecd
formatting
2022-12-31 11:38:44 -07:00