about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-09-12Refactor EnvironmentJakub Beránek-272/+260
2023-09-12Fix a few typos in shims/x86/sse.rs commentsEduardo Sánchez Muñoz-4/+4
2023-09-12Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyupPhilipp Krones-1635/+4682
2023-09-12Make executable extension platform, rather than environment dependentJakub Beránek-20/+20
2023-09-12Store target triple in environmentJakub Beránek-10/+27
2023-09-12extra ABI tests, in particular for DispatchFromDynRalf Jung-6/+16
2023-09-12fmtThe Miri Conjob Bot-1/+3
2023-09-12Merge from rustcThe Miri Conjob Bot-246/+383
2023-09-12Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-09-12Auto merge of #115699 - RalfJung:interpret-abi-compat, r=oli-obkbors-29/+60
interpret: change ABI-compat test to be type-based This makes the test consistent across targets. Otherwise the chances are very high that ABI mismatches get accepted on x86_64 but still fail on many other targets with more complicated ABIs. This implements (most of) the rules described in https://github.com/rust-lang/rust/pull/115476.
2023-09-12Auto merge of #115689 - Alexendoo:clippy-doc-comments, ↵bors-157/+160
r=notriddle,Manishearth,flip1995 Reuse rustdoc's doc comment handling in Clippy Moves `source_span_for_markdown_range` and `span_of_attrs` (renamed to `span_of_fragments`) to `rustc_resolve::rustdoc` so it can be used in Clippy Fixes https://github.com/rust-lang/rust-clippy/issues/10277 Fixes https://github.com/rust-lang/rust-clippy/issues/5593 Fixes https://github.com/rust-lang/rust-clippy/issues/10263 Fixes https://github.com/rust-lang/rust-clippy/issues/2581
2023-09-11Rollup merge of #115730 - bjorn3:some_driver_refactors, r=compiler-errorsMatthias Krüger-2/+2
Some more small driver refactors To improve clarity and simplify some code.
2023-09-11enforce no-merge policy via triagebotRalf Jung-1/+4
2023-09-11Update tools and fulldeps testsMatthew Jasper-4/+4
2023-09-11add subtree-sync label to rustc update PRsPeter Jaszkowiak-1/+5
2023-09-10Call `LateLintPass::check_attribute` from `with_lint_attrs`Alex Macleod-7/+21
2023-09-10Remove EarlyErrorHandler argument from after_analysis callbackbjorn3-2/+2
It is only used by miri which can create a new one using the Session.
2023-09-09don't even try to compare with reference when there was truncationRalf Jung-7/+43
2023-09-09compiletest: only truncate at the end, to make it more clearly visibleRalf Jung-63/+31
2023-09-09implement and test ABI compatibility for transparent wrappers around NPO typesRalf Jung-5/+8
2023-09-09implement and test fn ptr ABI compatibility rulesRalf Jung-0/+5
2023-09-09give extra context to ABI mismatch errorsRalf Jung-8/+28
2023-09-09interpret: change ABI-compat test to be type-based, so the test is ↵Ralf Jung-18/+21
consistent across targets
2023-09-09Update cargoWeihang Lo-0/+0
2023-09-08Reuse rustdoc's doc comment handling in ClippyAlex Macleod-157/+160
2023-09-08Use `#!/usr/bin/env` shebang Nilstrieb-1/+1
``` $ ls /bin/bash ls: cannot access '/bin/bash': No such file or directory ``` On certain systems, `/bin` and `/usr/bin` are nothing but wastelands, with just `env`around as the last survivor of the great purge. The binaries have cowardly hidden away and only `env` can show us the way to greatness (bash). ❄️
2023-09-08Auto merge of #115418 - Zoxc:freeze-source, r=oli-obkbors-47/+39
Use `Freeze` for `SourceFile` This uses the `Freeze` type in `SourceFile` to let accessing `external_src` and `lines` be lock-free. Behavior of `add_external_src` is changed to set `ExternalSourceKind::AbsentErr` on a hash mismatch which matches the documentation. `ExternalSourceKind::Unneeded` was removed as it's unused. Based on https://github.com/rust-lang/rust/pull/115401.
2023-09-08Partially outline code inside the panic! macroJohn Kåre Alsaker-23/+52
2023-09-08Rework no_coverage to coverage(off)Andy Caldwell-6/+6
2023-09-08Auto merge of #115608 - RalfJung:fn-arg-validity, r=oli-obkbors-4/+101
miri: catch function calls where the argument is caller-invalid / the return value callee-invalid When doing a type-changing copy, we must validate the data both at the old and new type. Fixes https://github.com/rust-lang/miri/issues/3017
2023-09-07Use `Freeze` for `SourceFile.lines`John Kåre Alsaker-47/+39
2023-09-06miri: catch function calls where the argument is caller-invalid / the return ↵Ralf Jung-4/+101
value callee-invalid
2023-09-06fmtRalf Jung-13/+9
2023-09-06Merge from rustcRalf Jung-119/+1585
2023-09-06Preparing for merge from rustcRalf Jung-1/+1
2023-09-06give josh more time to startRalf Jung-2/+2
2023-09-06Update cargoWeihang Lo-0/+0
2023-09-05Auto merge of #115507 - cjgillot:relative-source-file, r=oli-obkbors-20/+16
Use relative positions inside a SourceFile. This allows to remove the normalization of start positions for hashing, and simplify allocation of global address space. cc `@Zoxc`
2023-09-05Auto merge of #114843 - Zalathar:test-coverage-map, r=oli-obkbors-5/+614
coverage: Explicitly test the coverage maps produced by codegen/LLVM Our existing coverage tests verify the output of end-to-end coverage reports, but we don't have any way to test the specific mapping information (code regions and their associated counters) that are emitted by `rustc_codegen_llvm` and LLVM. That makes it harder to to be confident in changes that would modify those mappings (whether deliberately or accidentally). This PR addresses that by adding a new `coverage-map` test suite that does the following: - Compiles test files to LLVM IR assembly (`.ll`) - Feeds those IR files to a custom tool (`src/tools/coverage-dump`) that extracts and decodes coverage mappings, and prints them in a more human-readable format - Checks the output of that tool against known-good snapshots --- I recommend excluding the last commit while reviewing the main changes, because that last commit is just ~40 test files copied over from `tests/run-coverage`, plus their blessed coverage-map snapshots and a readme file. Those snapshots aren't really intended to be checked by hand; they're mostly there to increase the chances that an unintended change to coverage maps will be observable (even if it requires relatively specific circumstances to manifest).
2023-09-05Rollup merge of #115536 - RalfJung:interpreter-privacy, r=oli-obkMatthias Krüger-92/+86
interpret: make MemPlace, Place, Operand types private to the interpreter Outside the interpreter, only the typed versions should be used.
2023-09-05Auto merge of #115543 - Kobzol:opt-dist-retry-download, r=Mark-Simulacrumbors-1/+30
Retry download of rustc-perf in opt-dist This should help resolving spurious network errors. It also increases the timeout for the archive download. r? `@Mark-Simulacrum`
2023-09-05Add test suite `coverage-map` to test coverage mappings emitted by LLVMZalathar-5/+74
We compile each test file to LLVM IR assembly, and then pass that IR to a dedicated program that can decode LLVM coverage maps and print them in a more human-readable format. We can then check that output against known-good snapshots. This test suite has some advantages over the existing `run-coverage` tests: - We can test coverage instrumentation without needing to run target binaries. - We can observe subtle improvements/regressions in the underlying coverage mappings that don't make a visible difference to coverage reports.
2023-09-05Add tool `src/tools/coverage-dump` for use by some new coverage testsZalathar-0/+540
2023-09-04Auto merge of #114089 - Urgau:allow-with-implied-by, r=petrochenkovbors-0/+838
Add an allow attribute suggestion along with the implied by suggestion This PR adds an `#[allow(...)]` attribute hep suggestion along with the implied by suggestion: ```diff note: `-W dead-code` implied by `-W unused` + help: to override `-W unused` add `#[allow(dead_code)]` ``` This PR also adds the `OnceHelp` lint level (similar to `OnceNote`) to only put the help message one time, like the implied note. Related to https://github.com/rust-lang/rust/issues/114030
2023-09-04Retry download of rustc-perf in opt-distJakub Beránek-1/+30
This should help resolving spurious network errors. It also increases the timeout for the archive download.
2023-09-04Mirror the rustc-perf sourceMark Rousskov-1/+1
This avoids issues with the GitHub /archive/ links which can be somewhat unreliable and are currently causing CI issues.
2023-09-04interpret: make MemPlace, Place, Operand types private to the interpreterRalf Jung-92/+86
2023-09-04Adjust clippy tests with new rustc help suggestion for lintsUrgau-0/+838
2023-09-03rustdoc: fix test case for generics that look like namesMichael Howell-1/+3
2023-09-03Fix clippy.Camille GILLOT-15/+11