bors
9de7474830
Auto merge of #99512 - nikic:llvm-15-fixes, r=cuviper
...
LLVM 15 compatibility fixes
These are LLVM 15 compatibility fixes split out from #99464 . There are three changes here:
* Emit elementtype attribtue for ldrex/strex intrinsics. This is requires as part of the opaque pointers migration.
* Make more tests compatible with opaque pointers. These are either new or aren't run on x86.
* Remove a test for `#[rustc_allocator]`. Since #99574 there are more requirement on the function signature. I dropped the test entirely, since we already test the effect of the attribute elsewhere.
* The main change: When a worker thread emits an error, wait for other threads to finish before unwinding the main thread and exiting. Otherwise workers may end up using globals for which destructors have already been run. This was probably never quite correct, but became an active problem with LLVM 15, because it started using global dtors in critical places, as part of ManagedStatic removal.
Fixes #99432 (and probably also #95679 ).
r? `@cuviper`
2022-07-29 01:35:15 +00:00
Michael Goulet
b67ba9ba20
fix ICE when computing codegen_fn_attrs on closure with non-fn parent
2022-07-29 00:41:51 +00:00
bors
c8893cc5e5
Auto merge of #99865 - flip1995:clippyup, r=Manishearth
...
Update Clippy
r? `@Manishearth`
2022-07-28 22:02:12 +00:00
Camille GILLOT
6733bc3066
Remove guess_head_span.
2022-07-28 23:14:04 +02:00
David Koloski
0fcb86b129
Add Fuchsia platform support documentation
2022-07-28 16:37:35 -04:00
Michael Howell
f5cd6b3e9b
rustdoc: align invalid-html-tags lint with commonmark spec
2022-07-28 13:12:32 -07:00
Nilstrieb
e1e736b2a3
Clone the src/llvm-project
submodule if profiling is enabled
...
To compile rustc with profiling information, `compiler-rt` from
LLVM is required. Building it requires the `src/llvm-project` submodule
to be initialized and updated.
2022-07-28 21:40:33 +02:00
bors
9067d5277d
Auto merge of #99863 - Dylan-DPC:rollup-lq9w047, r=Dylan-DPC
...
Rollup of 6 pull requests
Successful merges:
- #99628 (add more docs regarding ideographic numbers)
- #99689 (Revert `write!` and `writeln!` to late drop temporaries)
- #99807 (Fix PermissionDenied UI tests on WSL)
- #99817 (rustdoc: remove Clean trait impls for more items)
- #99851 (Fix small typo in Cargo.toml comment)
- #99856 (fix: remove fake no_dead_strip for osx)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-07-28 19:12:21 +00:00
Jane Losare-Lusby
f9460814c8
bump rustc-perf commit
2022-07-28 18:40:39 +00:00
Philipp Krones
d673219ea3
Update Cargo.lock
2022-07-28 19:08:41 +02:00
Philipp Krones
7a782537b1
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
2022-07-28 19:08:22 +02:00
Lokathor
2eac6f30c8
once again tidy was unhappy
2022-07-28 10:58:42 -06:00
bors
3c7e7dbc15
Auto merge of #9257 - flip1995:rustup, r=flip1995
...
Rustup
r? `@ghost`
changelog: none
2022-07-28 16:56:38 +00:00
Philipp Krones
510effce59
Bump nightly version -> 2022-07-28
2022-07-28 18:56:16 +02:00
Philipp Krones
0905ec465d
Merge remote-tracking branch 'upstream/master' into rustup
2022-07-28 18:55:32 +02:00
klensy
339509494d
bootstrap: don't emit warn about duplicated deps with same/different features, if some of lists actually empty
2022-07-28 19:50:11 +03:00
Hudson Ayers
6dea21a4a2
location-detail: disable all location details when passed none
...
Prior to this fix, `-Z location-detail` provided no mechanism for
disabling all location details. This commit also adds a test case
to verify that this option continues to work as intended, and
clarifies the documentation of this option.
2022-07-28 09:45:59 -07:00
Dylan DPC
55f041e1f6
Rollup merge of #99856 - csmoe:osx-no-dead-strip, r=bjorn3
...
fix: remove fake no_dead_strip for osx
Closes https://github.com/rust-lang/rust/issues/99788
Link arg `-no_dead_strip` doesn't exist on OSX at all.
The `no_gc_sections` function was never called before export-executable-symols implementation, and `export-executable-symbols` still works, so we just remove it.
r? `@bjorn3`
2022-07-28 22:14:51 +05:30
Dylan DPC
889497cec0
Rollup merge of #99851 - yotamofek:patch-1, r=Mark-Simulacrum
...
Fix small typo in Cargo.toml comment
2022-07-28 22:14:50 +05:30
Dylan DPC
862074f7b0
Rollup merge of #99817 - notriddle:notriddle/clean-trait-removal, r=GuillaumeGomez
...
rustdoc: remove Clean trait impls for more items
Follow up to https://github.com/rust-lang/rust/pull/99638 and https://github.com/rust-lang/rust/pull/99672
2022-07-28 22:14:49 +05:30
Dylan DPC
a045788430
Rollup merge of #99807 - Nilstrieb:wsl-ui-test-fix, r=Mark-Simulacrum
...
Fix PermissionDenied UI tests on WSL
On my WSL with `appendWindowsPath=true`, running an invalid command returns `PermissionDenied` instead of `NotFound`, causing two UI tests to fail.
2022-07-28 22:14:48 +05:30
Dylan DPC
48efd30c9d
Rollup merge of #99689 - dtolnay:write, r=Mark-Simulacrum
...
Revert `write!` and `writeln!` to late drop temporaries
Closes (on master, but not on beta) #99684 by reverting the `write!` and `writeln!` parts of #96455 .
argument position | before<br>#94868 | after<br>#94868 | after<br>#96455 | after<br>this PR | desired<br>(unimplementable)
--- |:---:|:---:|:---:|:---:|:---:
`write!($tmp, "…", …)` | **⸺late** | **⸺late** | *early⸺* | **⸺late** | **⸺late**
`write!(…, "…", $tmp)` | **⸺late** | **⸺late** | *early⸺* | **⸺late** | *early⸺*
`writeln!($tmp, "…", …)` | **⸺late** | **⸺late** | *early⸺* | **⸺late** | **⸺late**
`writeln!(…, "…", $tmp)` | **⸺late** | **⸺late** | *early⸺* | **⸺late** | *early⸺*
`print!("…", $tmp)` | **⸺late** | **⸺late** | *early⸺* | *early⸺* | *early⸺*
`println!("…", $tmp)` | *early⸺* | **⸺late** | *early⸺* | *early⸺* | *early⸺*
`eprint!("…", $tmp)` | **⸺late** | **⸺late** | *early⸺* | *early⸺* | *early⸺*
`eprintln!("…", $tmp)` | *early⸺* | **⸺late**| *early⸺* | *early⸺* | *early⸺*
`panic!("…", $tmp)` | *early⸺* | *early⸺* | *early⸺* | *early⸺* | *early⸺*
"Late drop" refers to dropping temporaries at the nearest semicolon **outside** of the macro invocation.
"Early drop" refers to dropping temporaries inside of the macro invocation.
2022-07-28 22:14:46 +05:30
Dylan DPC
a479cab09a
Rollup merge of #99628 - vincenzopalazzo:macros/is_number_doc, r=joshtriplett
...
add more docs regarding ideographic numbers
This was discussed in the last lib meeting and I try to avoid forgetting to open a PR because I think having some docs can help people.
However, I think we need to discuss a little bit if this is enough or if we need to add more clarification? Maybe an example?
Inspiration Source: https://github.com/rust-lang/rust/issues/84056#issuecomment-1184725924
Including suggestion https://github.com/rust-lang/rust/pull/99626#issuecomment-1192983043 my bad command git close the PR
2022-07-28 22:14:46 +05:30
Lokathor
9cf5b2d81c
Update thumbv4t_none_eabi.rs
2022-07-28 10:43:05 -06:00
bors
36f4f4aa38
Auto merge of #99780 - Nilstrieb:mir-opt-test-line-no, r=oli-obk
...
Use line numbers relative to the function in mir-opt tests
As shown in #99770 , the line numbers can be a big source of needless and confusing diffs. This PR adds a new flag `-Zmir-pretty-relative-line-numbers` to make them relative to the function declaration, which avoids most needless diffs from attribute changes.
`@JakobDegen` told me that there has been a zulip conversation about disabling line numbers with mixed opinions, so I'd like to get some feedback here, for this hopefully better solution.
r? rust-lang/wg-mir-opt
2022-07-28 16:22:19 +00:00
Maybe Waffle
7da578b8f8
--bless tests
2022-07-28 20:15:24 +04:00
Vincenzo Palazzo
47a0a56c1d
add more docs regarding ideographic numbers
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-07-28 15:52:18 +00:00
klensy
2787d4280f
fix memchr features in workspace-hack
2022-07-28 17:24:46 +03:00
csmoe
03f9efedb1
fix: remove fake no_dead_strip for osx
2022-07-28 22:22:13 +08:00
lcnr
c3fce8e937
anonymize all bound vars, not just regions
2022-07-28 16:13:47 +02:00
lcnr
fd59d058ec
BoundVarReplacer
: trait object instead of 3 fns
2022-07-28 16:13:47 +02:00
Jack Wrenn
e8a1925b64
safe transmute: use AtomicU32
State
ids to appease mips
...
...instead of `AtomicU64`, which is unavailable.
ref: https://github.com/rust-lang/rust/pull/92268#issuecomment-1197797990
2022-07-28 13:47:11 +00:00
bors
e5682615bb
Auto merge of #99849 - Dylan-DPC:rollup-1yfpplw, r=Dylan-DPC
...
Rollup of 5 pull requests
Successful merges:
- #99714 (Fix regression introduced with #99383 )
- #99723 (Allow using stable os::fd::raw items through unstable os::wasi module)
- #99810 (Fix settings slider on small width screens)
- #99837 (Avoid `Symbol` to `String` conversions)
- #99846 (Refactor `UnresolvedImportError`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-07-28 13:32:35 +00:00
Maybe Waffle
620b0f1935
improve type mismatch error for functions
...
This also fixes the argument names in `report_closure_arg_mismatch`
(confusing expected/found)
2022-07-28 17:29:47 +04:00
Tomasz Miąsko
01f4534b42
Build rust demangler before running run-make tests
2022-07-28 14:33:29 +02:00
Tomasz Miąsko
2e7b421778
Diagnose missing make includes
2022-07-28 14:33:29 +02:00
Tomasz Miąsko
866d5c621c
Move coverage tests from run-make-fulldeps to run-make
2022-07-28 14:33:29 +02:00
Nilstrieb
11c0280798
bless mir opt tests
2022-07-28 14:24:44 +02:00
Yotam Ofek
ee0ce346e8
Fix small typo in Cargo.toml comment
2022-07-28 14:29:58 +03:00
Dylan DPC
71b0e95b82
Rollup merge of #99846 - TaKO8Ki:refactor-UnresolvedImportError, r=davidtwco
...
Refactor `UnresolvedImportError`
This patch changes the type of `note` field in `UnresolvedImportError` to `Option<String>`.
2022-07-28 16:38:35 +05:30
Dylan DPC
3a37c9a47e
Rollup merge of #99837 - TaKO8Ki:avoid-symbol-to-string-conversions, r=fee1-dead
...
Avoid `Symbol` to `String` conversions
follow-up to #99508
2022-07-28 16:38:34 +05:30
Dylan DPC
3c4a66d04e
Rollup merge of #99810 - GuillaumeGomez:fix-settings-slider-small-width, r=notriddle
...
Fix settings slider on small width screens
Fixes #99794 .
Screenshot of the fix:
![Screenshot from 2022-07-27 14-17-08](https://user-images.githubusercontent.com/3050060/181250007-55f982d1-89db-45b7-a4f1-0d1729e6a3e3.png )
cc `````@jsha`````
r? `````@notriddle`````
2022-07-28 16:38:31 +05:30
Dylan DPC
f3266923fe
Rollup merge of #99723 - bstrie:wasifd, r=yaahc
...
Allow using stable os::fd::raw items through unstable os::wasi module
This fixes a regression from stable to nightly.
Closes #99502 .
2022-07-28 16:38:31 +05:30
Dylan DPC
91b8b9ba4b
Rollup merge of #99714 - ouz-a:issue_57961, r=oli-obk
...
Fix regression introduced with #99383
Fixes #99642
2022-07-28 16:38:30 +05:30
Guillaume Gomez
660dc6f393
Remove Clean trait implementation for VariantData fields
2022-07-28 13:08:08 +02:00
Guillaume Gomez
961dce44a9
Remove Clean trait implementation for VariantStruct
2022-07-28 13:05:19 +02:00
ouz-a
bd24b4006c
type alias covers whole return
2022-07-28 13:52:49 +03:00
bors
05e678ccca
Auto merge of #99756 - fasterthanlime:ra-sync-and-pms-component, r=Mark-Simulacrum
...
Sync `rust-analyzer`, add `rust-analyzer-proc-macro-srv` binary to Rustc component
As discussed earlier with `@jyn514` and `@pietroalbini,` I'm also going to use this PR to have `dist::Rustc` build the `rust-analyzer-proc-macro-srv` binary introduced in:
* https://github.com/rust-lang/rust-analyzer/pull/12871
2022-07-28 10:51:46 +00:00
klensy
43512e6745
update few deps
...
openssl-src v111.18.0+1.1.1n -> v111.22.0+1.1.1q
openssl-probe v0.1.2 -> v0.1.5
indoc v1.0.3 -> v1.0.6
bstr v0.2.13 -> v0.2.17
crc32fast v1.2.0 -> v1.3.2
diff v0.1.12 -> v0.1.13
ignore v0.4.17 -> v0.4.18
globset v0.4.5 -> v0.4.9
regex v1.5.5 -> v1.5.6
2022-07-28 13:22:34 +03:00
Nilstrieb
7cf7ead0bc
Use line numbers relative to function in mir opt tests
...
This adds a new option, `-Zmir-pretty-relative-line-numbers`, that
is then used in compiletest for the mir-opt tests.
2022-07-28 11:59:54 +02:00