Commit Graph

223768 Commits

Author SHA1 Message Date
bhould287
afdfbf8fde Show multiple clippy.toml warnings with sess.warn instead of eprintln! 2023-04-03 15:03:05 +01:00
The 8472
7a70647f19 llvm 16 finally reconizes some additional vec in-place conversions as noops 2023-04-03 15:29:46 +02:00
blyxyas
d602743558 only focus on double_must_use + Add Result<(), ()> test 2023-04-03 15:16:18 +02:00
bors
1767585509 Auto merge of #109756 - cr1901:msp-shift, r=Mark-Simulacrum
Update compiler-builtins to 0.1.91 to bring in msp430 shift primitive…

… fixes.

This fixes unsoundness on MSP430 where `compiler-builtins` and LLVM didn't agree on the width of the shift amount argument of the shifting primitives (4 bytes vs 2 bytes). See https://github.com/rust-lang/compiler-builtins/pull/522 for more details.
2023-04-03 13:09:08 +00:00
Pietro Albini
a6431e96b1 update rust-by-example 2023-04-03 14:12:48 +02:00
bors
e903af506f Auto merge of #10229 - danielparks:doc-feature-cargo-clippy, r=flip1995
Document `cargo-clippy` feature

It is possible to use conditional compilation to prevent Clippy from evaluating certain code at all. Unfortunately, it was no longer documented anywhere. This adds a brief explanation of how to use the feature with conditional compilation, and mentions a few downsides.

Fixes #10220 — Ability to skip files or blocks entirely
changelog: none
<!-- changelog_checked -->
2023-04-03 12:12:17 +00:00
Pietro Albini
49795b40cf update rustc dev guide 2023-04-03 14:12:13 +02:00
Mark Rousskov
0da526b5f3 Remove optimal xz settings from CI
This is a companion PR to rust-lang/promote-release#58, which moves the
relevant optimal code to rust-lang/promote-release. As mentioned in the
comments of that PR, this is expected to cut CI costs (and time, though
predominantly felt on fast builders) and reduce wasted resources due to
in-practice single-threaded compression not using the full 8+ vCPU
builders we have available.
2023-04-03 07:44:58 -04:00
bors
207955cee5 Auto merge of #10574 - jyn514:update-docs, r=flip1995
Update subtree sync docs for changes in rustc-dev-guide

Companion PR to https://github.com/rust-lang/rustc-dev-guide/pull/1653. That still keeps a `contributing.html` with an "External Contributions" section, so hopefully it won't be too disruptive.

changelog: none
2023-04-03 11:43:22 +00:00
Ulrich Weigand
09541b5e1b Increase libffi version to 3.2 to support s390x 2023-04-03 13:27:51 +02:00
bors
f13ccefb5b Auto merge of #108448 - ishitatsuyuki:binary-heap, r=Mark-Simulacrum
binary_heap: Optimize Extend implementation.

This PR makes the `Extend` implementation for `BinaryHeap` no longer rely on specialization, so that it always use the bulk rebuild optimization that was previously only available for the `Vec` specialization.
2023-04-03 10:30:20 +00:00
Pietro Albini
5d842a6f32 update book 2023-04-03 11:44:06 +02:00
Pietro Albini
bbcbb6fcce ignore x86-stdcall on mingw 2023-04-03 10:23:16 +02:00
Pietro Albini
48bea636fa fix solaris ignore 2023-04-03 10:23:15 +02:00
Pietro Albini
bf66ddbf24 fix wrong ignore condition 2023-04-03 10:23:13 +02:00
Pietro Albini
9a2d1b85ed restore check for both target os and env
This is better than the old impl of target.ends_with("windows-gnu"),
because it also catches things like windows-gnullvm
2023-04-03 10:23:12 +02:00
Pietro Albini
5b0a0d8254 add support for ignore-gdb-version 2023-04-03 10:23:11 +02:00
Pietro Albini
8f8873e386 remove unknown xcore arch 2023-04-03 10:23:09 +02:00
Pietro Albini
3602200d50 make 32bit ignore more accurate 2023-04-03 10:23:08 +02:00
Pietro Albini
e045598c68 remove a bunch of unknown archs from the global_asm tests 2023-04-03 09:30:37 +02:00
Pietro Albini
60f2761503 add support for ignore-llvm-version 2023-04-03 09:30:36 +02:00
Pietro Albini
54c4762a86 fix remaining tests 2023-04-03 09:30:35 +02:00
Pietro Albini
91be8cadcb properly match multiple families 2023-04-03 09:30:33 +02:00
Pietro Albini
4cdb783cb9 migrate existing behavior of matches_arch 2023-04-03 09:30:32 +02:00
Pietro Albini
e085192729 allow some out of tree archs 2023-04-03 09:30:31 +02:00
Pietro Albini
bc991de233 reduce allocations when validating cfgs 2023-04-03 09:30:29 +02:00
Pietro Albini
9cb4373a84 move cfg handling into its own module 2023-04-03 09:30:28 +02:00
Pietro Albini
8eb3def446 handle "ignore-" and "only-" 2023-04-03 09:30:26 +02:00
Pietro Albini
55121a9c46 avoid cloning the whole compiletest configuration for every test 2023-04-03 09:30:23 +02:00
bors
932c173ca1 Auto merge of #109884 - matthiaskrgr:rollup-5wapig9, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #109526 (LIBPATH is used as dylib's path environment variable on AIX)
 - #109642 (check for missing codegen backeng config)
 - #109722 (Implement read_buf for RustHermit)
 - #109856 (fix(middle): emit error rather than delay bug when reaching limit)
 - #109868 (Improve PR job names in Github Actions preview)
 - #109871 (Include invocation start times)
 - #109873 (Move some UI tests into subdirectories)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-03 07:27:58 +00:00
Pietro Albini
c075691b82 use --print=all-target-specs-json for stage1+ 2023-04-03 09:24:16 +02:00
Pietro Albini
0e6d2053b4 use target specs rather than --print=cfg to discover targets 2023-04-03 09:24:15 +02:00
Pietro Albini
ef2bf6d505 implement --print=all-target-specs-json 2023-04-03 09:24:14 +02:00
Pietro Albini
e592aaa705 remove invalid ignore-powerpc64le 2023-04-03 09:24:12 +02:00
Pietro Albini
64af509377 remove invalid ignore-pretty 2023-04-03 09:24:11 +02:00
Pietro Albini
8dd6c19379 split invalid only-x86-windows into only-x86 and only-windows 2023-04-03 09:24:10 +02:00
Pietro Albini
703ba0ce26 fix ignore-thumbv8m.base 2023-04-03 09:24:07 +02:00
Pietro Albini
0aaf9d58a2 reduce boilerplate with common enums 2023-04-03 09:24:04 +02:00
Pietro Albini
9bc8bb91de validate ignore-FOO/only-FOO directives and output only-FOO reasoning 2023-04-03 09:24:01 +02:00
Pietro Albini
4e2a98268a include pretty reason why ignore-FOO matched 2023-04-03 09:24:00 +02:00
Pietro Albini
123cc413bd include eventual comment in the compiletest ignore reason 2023-04-03 09:23:57 +02:00
Matthias Krüger
22df7107bd Rollup merge of #109873 - jyn514:subdirectories, r=compiler-errors
Move some UI tests into subdirectories
2023-04-03 08:58:55 +02:00
Matthias Krüger
41cd454228 Rollup merge of #109871 - Mark-Simulacrum:metrics-timestamp, r=ozkanonur
Include invocation start times

For multi-invocation builders (e.g., dist-x86_64-linux) this timestamp is necessary to correlate the data in the metrics JSON with other data sources (e.g., logs, cpu-usage CSV, etc.). Such correlation may not be perfect but is sometimes helpful and awkward to do otherwise.
2023-04-03 08:58:54 +02:00
Matthias Krüger
9007ee9f1c Rollup merge of #109868 - jyn514:ci-names, r=Mark-Simulacrum
Improve PR job names in Github Actions preview

Fixes https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/PR.20CI.20job.20names.

Before: `CI / PR (mingw-check, false, ubuntu-20.04-16core-64gb) (pull_request)`
After:  `CI / PR - mingw-check (pull_request)`

r? ``@jyn514``
2023-04-03 08:58:54 +02:00
Matthias Krüger
99a71dc4d6 Rollup merge of #109856 - bvanjoi:fix-issue-109304, r=compiler-errors
fix(middle): emit error rather than delay bug when reaching limit

close #109304
2023-04-03 08:58:53 +02:00
Matthias Krüger
f2f5efce9c Rollup merge of #109722 - hermitcore:read, r=Mark-Simulacrum
Implement read_buf for RustHermit

In principle, this PR extends rust-lang/rust#108326 for RustyHermit.
2023-04-03 08:58:53 +02:00
Matthias Krüger
cc6a279f05 Rollup merge of #109642 - lenko-d:rust_codegen-backends_interacts_confusingly_with_paths, r=Mark-Simulacrum
check for missing codegen backeng config

Fixes [#109610](https://github.com/rust-lang/rust/issues/109610)
2023-04-03 08:58:52 +02:00
Matthias Krüger
7192ef3efd Rollup merge of #109526 - bzEq:aix-libpath, r=Mark-Simulacrum
LIBPATH is used as dylib's path environment variable on AIX

See https://4js.com/online_documentation/fjs-fgl-3.00.05-manual-html/c_fgl_installation_017.html.
2023-04-03 08:58:52 +02:00
Sergey Kaunov
abc61d23de Add links to <cell.rs>
`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
2023-04-03 09:18:14 +03:00
bors
d0eed58a1e Auto merge of #108288 - ozkanonur:hotfix-90244, r=Mark-Simulacrum
fix `build --stage 2 compiler/rustc` panic

Skip assembling(which causes panic due to not found `.librustc.stamp` file) process
for stage3(since it has problems with sysroot) if full-bootstrap isn't used.

Resolves #90244
2023-04-03 04:54:02 +00:00