bors
a8b5245ea3
Auto merge of #11416 - Alexendoo:raw-strings-multipart, r=xFrednet
...
Use multipart suggestions for raw string lints
Should make it slightly easier to see the suggested edit
Before/after for `needless_raw_string_hashes`:
| Before| After |
|--------|--------|
|  |  |
changelog: none
2023-09-01 22:19:57 +00:00
bors
35e416303e
Auto merge of #115276 - fmease:rustdoc-obj-lt-defs-handle-self-ty-params, r=GuillaumeGomez
...
rustdoc: correctly deal with self ty params when eliding default object lifetimes
Fixes #115179 .
2023-09-01 22:11:22 +00:00
Santiago Pastorino
8198c59c77
Add spastorino on vacation
2023-09-01 18:35:43 -03:00
Daniel Paoliello
8028885239
Deduplicate inlined function debug info, but create a new lexical scope to child subsequent scopes and variables from colliding
2023-09-01 14:27:21 -07:00
Daniel Paoliello
06890774ab
Deduplicate inlined function debug info, but create a new lexical scope to child subsequent scopes and variables from colliding
2023-09-01 14:27:21 -07:00
Ben Kimock
159ad5fb0d
Reuse const rendering from rustdoc in rmeta encoding
2023-09-01 17:22:48 -04:00
Alex Macleod
f595f1e0ff
Use multipart suggestions for raw string lints
2023-09-01 21:18:51 +00:00
David Mo
4160337c85
Tests crash from inappropriate use of common linkage
...
Normally, variables with common linkage must be zero-initialized. In Rust,
common linkage variables that are not zero-initialized causes a crash in the
compiler backend.
This commit adds a test case to confirm this behavior, which will inform us if
it changes in the future.
2023-09-01 14:08:31 -07:00
bors
270eb58631
Auto merge of #115452 - matthiaskrgr:rollup-he30fhv, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #115411 (miri ABI check: fix handling of 1-ZST; don't accept sign differences)
- #115424 (diagnostics: avoid wrong `unused_parens` on `x as (T) < y`)
- #115425 (remove unnecessary heap allocation)
- #115446 (fix version for abi_thiscall to 1.73.0, which was forgotten to change when stabilized and (later) moved to beta)
- #115447 (Add comment so pub items are not removed)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-09-01 20:22:37 +00:00
Ibraheem Ahmed
7abfc57ea1
stabilize io_error_other feature
2023-09-01 16:04:41 -04:00
vwkd
dfdab8fc62
Update mod.rs
2023-09-01 21:58:40 +02:00
bors
60182f7043
Auto merge of #15544 - Veykril:locks, r=Veykril
...
Shuffle some locking around
The main thread is still occasionally blocking on something and I am unsure what the cause might be. This will hopefully help somewhat
2023-09-01 19:55:03 +00:00
Lukas Wirth
c19390992c
Reduce semantic token cache lock scopes
2023-09-01 21:54:29 +02:00
Matthias Krüger
ead5f80deb
Rollup merge of #115447 - LegNeato:patch-2, r=oli-obk
...
Add comment so pub items are not removed
As suggested in https://github.com/rust-lang/rust/pull/115393 , add a comment so someone doesn't clean these up.
2023-09-01 21:41:41 +02:00
Matthias Krüger
db450d2981
Rollup merge of #115446 - klensy:fixup-stable-version, r=cuviper
...
fix version for abi_thiscall to 1.73.0, which was forgotten to change when stabilized and (later) moved to beta
See:
https://github.com/rust-lang/rust/pull/114562#issuecomment-1669424749
https://github.com/rust-lang/rust/pull/115056#issuecomment-1686316608
https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/1.2E72.2E0/near/387695644
Should be backported to beta too.
2023-09-01 21:41:40 +02:00
Matthias Krüger
cf24a9fdf6
Rollup merge of #115425 - thechampagne:master, r=oli-obk
...
remove unnecessary heap allocation
2023-09-01 21:41:40 +02:00
Matthias Krüger
888dc2e3b0
Rollup merge of #115424 - notriddle:notriddle/issue-106413, r=oli-obk
...
diagnostics: avoid wrong `unused_parens` on `x as (T) < y`
Fixes #106413
Fixes #80636
2023-09-01 21:41:39 +02:00
Matthias Krüger
db6ae0721b
Rollup merge of #115411 - RalfJung:miri-abi, r=oli-obk
...
miri ABI check: fix handling of 1-ZST; don't accept sign differences
r? `@oli-obk`
2023-09-01 21:41:39 +02:00
Michael Goulet
c5d0f6c05c
Don't manually walk through param indices when adding implicit Sized and ConstParamHasTy
2023-09-01 19:26:55 +00:00
Kirill Bulatov
da786170f8
Use proper assertion in on-type formatting edits
...
Co-authored-by: DropDemBits <r3usrlnd@gmail.com >
2023-09-01 21:49:51 +03:00
Kirill Bulatov
0f1cde709a
On type format '(', by adding closing ')' automatically
2023-09-01 21:49:50 +03:00
Lukas Wirth
cc8b78601d
Shuffle some locking around
2023-09-01 20:45:46 +02:00
bors
074c66882f
Auto merge of #15543 - Veykril:less-alloc, r=Veykril
...
Remove some allocations in borrowck
2023-09-01 18:28:42 +00:00
onur-ozkan
2a5a6bcb82
bump hermit-abi from yanked version(0.3.1) to 0.3.2
...
Signed-off-by: onur-ozkan <work@onurozkan.dev >
2023-09-01 21:04:23 +03:00
Scott McMurray
570c312bc5
Const-stabilize is_ascii
2023-09-01 11:02:09 -07:00
onur-ozkan
cfd7ab3a3e
bump pretty_assertions to 1.4
...
Removes the duplicated dependency(syn 1.0.102) from bootstrap dependency tree
Signed-off-by: onur-ozkan <work@onurozkan.dev >
2023-09-01 20:39:41 +03:00
Christian Legnitto
6e6031e094
Add comment so pub items are not removed
...
As suggested in https://github.com/rust-lang/rust/pull/115393 , add a comment so someone doesn't clean these up.
2023-09-01 13:22:03 -04:00
Lukas Wirth
70e21dc30b
Remove some allocations in borrowck
2023-09-01 19:17:57 +02:00
klensy
355ba433ee
fix version for abi_thiscall to 1.73.0, which was forgotten to change when stabilized
2023-09-01 19:46:09 +03:00
Oli Scherer
85a1679df9
Create a SMIR visitor
2023-09-01 16:32:22 +00:00
Camille GILLOT
905fd1ba17
Support bootstrap.
2023-09-01 16:18:50 +00:00
Camille GILLOT
6cec91d647
Support debuginfo for custom MIR.
2023-09-01 16:16:31 +00:00
Ed Page
9aee1de612
feat(std): Stabilize 'os_str_bytes' feature
...
Closes #111544
2023-09-01 11:13:45 -05:00
klensy
6950689030
remove some unused crate deps
2023-09-01 19:13:09 +03:00
bors
ce650ce19d
Auto merge of #15542 - Veykril:std-once, r=Veykril
...
Less `once_cell` more `std`
2023-09-01 16:05:24 +00:00
bors
361f8ba847
Auto merge of #114065 - lukas-code:u16_from_char, r=dtolnay
...
`impl TryFrom<char> for u16`
This PR implements the final missing `char` -> unsigned integer conversion.
ACP: https://github.com/rust-lang/libs-team/issues/146
r? libs-api
`@rustbot` label +T-libs-api +needs-fcp -T-libs
2023-09-01 16:01:06 +00:00
Lukas Wirth
c09f175d59
Less once_cell more std
2023-09-01 17:30:59 +02:00
Ralf Jung
b8e0e797e7
bootstrap/format: remove unnecessary paths.push
2023-09-01 17:05:10 +02:00
León Orell Valerian Liehr
f5a68f63aa
rustdoc: correctly deal with self ty params when eliding default object lifetimes
2023-09-01 16:17:53 +02:00
Guillaume Gomez
36fa557a5e
Merge all loops into one when generating search index
2023-09-01 15:16:11 +02:00
Guillaume Gomez
05eda41658
Add tests for type-based search
2023-09-01 15:16:11 +02:00
Guillaume Gomez
09160b3f45
[rustdoc] Fix path in type-based search
2023-09-01 15:16:11 +02:00
bjorn3
0559de6567
Fix rustc test suite
2023-09-01 13:08:16 +00:00
bjorn3
a756bae8ca
Rustup to rustc 1.74.0-nightly ( 2f5df8a94 2023-08-31)
2023-09-01 13:07:46 +00:00
bjorn3
832422832a
Sync from rust 2f5df8a94b
2023-09-01 12:44:06 +00:00
bors
1accf068d8
Auto merge of #113126 - Bryanskiy:delete_old, r=petrochenkov
...
Replace old private-in-public diagnostic with type privacy lints
Next part of RFC https://github.com/rust-lang/rust/issues/48054 .
r? `@petrochenkov`
2023-09-01 12:40:01 +00:00
bors
acdffd791b
Auto merge of #11427 - oli-obk:ui_test_bump, r=Alexendoo
...
Bump ui_test
This makes `ui_test` parse `--bless` and allows a follow up change to use `Mode::Error` (instead of `Mode::Yolo`) with `RustfixMode::Everything`
changelog: none
2023-09-01 11:58:35 +00:00
Oliver Scherer
aeed86c5c1
Bump ui_test to 0.20
2023-09-01 11:48:20 +00:00
soqb
9c0e5ebf65
fix Debug impl for AsciiChar
2023-09-01 12:29:40 +01:00
bors
f4555ef5e1
Auto merge of #111752 - dingxiangfei2009:lower-or-pattern, r=cjgillot
...
Lower `Or` pattern without allocating place
cc `@azizghuloum` `@cjgillot`
Related to #111583 and #111644
While reviewing #111644 , it occurs to me that while we directly lower conjunctive predicates, which are connected with `&&`, into the desirable control flow, today we don't directly lower the disjunctive predicates, which are connected with `||`, in the similar fashion. Instead, we allocate a place for the boolean temporary to hold the result of evaluating the `||` expression.
Usually I would expect optimization at later stages to "inline" the evaluation of boolean predicates into simple CFG, but #111583 is an example where `&&` is failing to be optimized away and the assembly shows that both the expensive operands are evaluated. Therefore, I would like to make a small change to make the CFG a bit more straight-forward without invoking the `as_temp` machinery, and plus avoid allocating the place to hold the boolean result as well.
2023-09-01 10:54:56 +00:00