about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-04-28Preparing for merge from rustcRalf Jung-1/+1
2023-04-28Auto merge of #2828 - Vanille-N:tb-diags, r=RalfJungbors-246/+802
Tree Borrows: improved diagnostics Better diagnostics for Tree Borrows violations. - Shows where the conflicting tags (the one that was accessed and the one that had a permission or protector that caused UB) were reborrowed, which is more readable than only `<TAG>` - Shows a small history of what happened for the faulty tag to get there (which lines caused it to lose read/write permissions) - Explains permissions and transitions in natural language (e.g. "does not have read permissions" instead of "is Disabled") Not perfect, but at least testing TB will be less confusing. Lack of range information from `RangeMap` makes selection of relevant events nontrivial: we reconstruct history from knowledge of `(initial, final)` and `(offset, pi, p'i)` so that `initial -> final = p1 -> p1' = p2 -> p2' = p3 -> ... = final `
2023-04-28tweak wordingRalf Jung-110/+111
2023-04-28Tree Borrows: improved diagnosticsNeven Villani-244/+799
2023-04-28Rollup merge of #110766 - m-ou-se:fmt-rt, r=jyn514Matthias Krüger-32/+34
More core::fmt::rt cleanup. - Removes the `V1` suffix from the `Argument` and `Flag` types. - Moves more of the format_args lang items into the `core::fmt::rt` module. (The only remaining lang item in `core::fmt` is `Arguments` itself, which is a public type.) Part of https://github.com/rust-lang/rust/issues/99012 Follow-up to https://github.com/rust-lang/rust/pull/110616
2023-04-27Rollup merge of #110853 - tamird:compiletest-bpflinker-support, r=wesleywiserMatthias Krüger-0/+8
compiletest: add bpf-linker assembly support
2023-04-27Rollup merge of #110851 - tamird:better-error-compiletest, r=compiler-errorsMatthias Krüger-1/+1
compiletest: emit assembly-output header in error Improve the error message.
2023-04-27Fix compile test so it normalizes (un)expected error messagesMaybe Waffle-2/+5
2023-04-27Make clippy happyMichael Goulet-14/+14
2023-04-27Tweak await spanMichael Goulet-4/+4
2023-04-27rename `needs_infer` to `has_infer`Boxy-1/+1
2023-04-27Bump libffi-sys to 2.3.0WANG Rui-2/+2
2023-04-26compiletest: add bpf-linker assembly supportTamir Duberstein-0/+8
2023-04-26Rollup merge of #109444 - WaffleLapkin:undeprecate_todos, r=jyn514Matthias Krüger-2/+4
Change tidy error message for TODOs Blocked on #109440 (first few commits are from where) IMO "deprecated" doesn't really explain anything, I've tried to highlight the actual reason we error on TODOs. The message is not at all perfect, maybe someone has ideas how to phrase it better?
2023-04-26compiletest: emit assembly-output header in errorTamir Duberstein-1/+1
2023-04-26Make `{Arc,Rc,Weak}::ptr_eq` ignore pointer metadataAlbert Larsan-28/+8
2023-04-26Try to improve tidy errors on TODOsMaybe Waffle-2/+4
2023-04-26Fix uses of `TraitRef::identity` in clippy and rustdocMaybe Waffle-6/+3
2023-04-26fix endianess handling in eventfd::writeRalf Jung-8/+26
2023-04-26port stacked borrows tests to tree borrowsRalf Jung-0/+239
2023-04-26fmtRalf Jung-17/+16
2023-04-26tree borrows: test String::as_mut_ptrRalf Jung-14/+41
2023-04-26Merge from rustcRalf Jung-23/+25
2023-04-26Preparing for merge from rustcRalf Jung-1/+1
2023-04-26Update cargoWeihang Lo-0/+0
2023-04-25Rollup merge of #110556 - kylematsuda:earlybinder-explicit-item-bounds, ↵Matthias Krüger-6/+5
r=compiler-errors Switch to `EarlyBinder` for `explicit_item_bounds` Part of the work to finish https://github.com/rust-lang/rust/issues/105779. This PR adds `EarlyBinder` to the return type of the `explicit_item_bounds` query and removes `bound_explicit_item_bounds`. r? `@compiler-errors` (hope it's okay to request you, since you reviewed #110299 and #110498 :smiley:)
2023-04-25Use `ty::TraitRef::new` in clippyMaybe Waffle-1/+1
2023-04-25Rollup merge of #110782 - matthiaskrgr:revert_panic_oom, r=AmanieuMatthias Krüger-0/+4
Revert panic oom This temporarily reverts https://github.com/rust-lang/rust/pull/109507 until https://github.com/rust-lang/rust/issues/110771 is addressed r? `@Amanieu`
2023-04-25Revert "Remove #[alloc_error_handler] from the compiler and library"Matthias Krüger-0/+4
This reverts commit abc0660118cc95f47445fd33502a11dd448f5968.
2023-04-24Auto merge of #110718 - flip1995:clippyup, r=Manishearthbors-1400/+2304
Update Clippy r? `@Manishearth` A few days late, I was on a business trip, sorry.
2023-04-24Hide backtrace from stderr filesOli Scherer-62/+2
2023-04-24Update miri test.Mara Bos-26/+28
2023-04-24Add minimum alignment support for loongarch64WANG Rui-1/+1
2023-04-24Remove "V1" from ArgumentsV1 and FlagsV1.Mara Bos-6/+6
2023-04-24Fix `rustc_index` imports outside the compilerMaybe Waffle-23/+25
2023-04-24Merge from rustcRalf Jung-0/+29
2023-04-24Preparing for merge from rustcRalf Jung-1/+1
2023-04-24Clippy book: hotfix for broken linkPhilipp Krones-1/+1
2023-04-24Rollup merge of #110637 - oli-obk:gha, r=jyn514Matthias Krüger-0/+24
Group some sections of our logs in github actions This makes logs a little bit more readable as you can now collapse all the parts that don't interest you (and they get collapsed automatically) Obviously there's a lot more sites where we can/need to do this, too, but this is already helpful imo r? ```@jyn514```
2023-04-23Auto merge of #108118 - oli-obk:lazy_typeck, r=cjgillotbors-2/+2
Run various queries from other queries instead of explicitly in phases These are just legacy leftovers from when rustc didn't have a query system. While there are more cleanups of this sort that can be done here, I want to land them in smaller steps. This phased order of query invocations was already a lie, as any query that looks at types (e.g. the wf checks run before) can invoke e.g. const eval which invokes borrowck, which invokes typeck, ...
2023-04-23Merge commit 'a3ed905928a03b6e433d0b429190bf3a847128b3' into clippyupPhilipp Krones-1400/+2304
2023-04-22Group entire build steps in the gha logsOli Scherer-0/+24
2023-04-22Update chrono/spdx-rsnils-4/+5
This gets rid of https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26235
2023-04-22Auto merge of #109507 - Amanieu:panic-oom-payload, r=davidtwcobors-4/+0
Report allocation errors as panics OOM is now reported as a panic but with a custom payload type (`AllocErrorPanicPayload`) which holds the layout that was passed to `handle_alloc_error`. This should be review one commit at a time: - The first commit adds `AllocErrorPanicPayload` and changes allocation errors to always be reported as panics. - The second commit removes `#[alloc_error_handler]` and the `alloc_error_hook` API. ACP: https://github.com/rust-lang/libs-team/issues/192 Closes #51540 Closes #51245
2023-04-22Auto merge of #104844 - cjgillot:mention-eval-place, r=jackh726,RalfJungbors-8/+37
Evaluate place expression in `PlaceMention` https://github.com/rust-lang/rust/pull/102256 introduces a `PlaceMention(place)` MIR statement which keep trace of `let _ = place` statements from surface rust, but without semantics. This PR proposes to change the behaviour of `let _ =` patterns with respect to the borrow-checker to verify that the bound place is live. Specifically, consider this code: ```rust let _ = { let a = 5; &a }; ``` This passes borrowck without error on stable. Meanwhile, replacing `_` by `_: _` or `_p` errors with "error[E0597]: `a` does not live long enough", [see playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c448d25a7c205dc95a0967fe96bccce8). This PR *does not* change how `_` patterns behave with respect to initializedness: it remains ok to bind a moved-from place to `_`. The relevant test is `tests/ui/borrowck/let_underscore_temporary.rs`. Crater check found no regression. For consistency, this PR changes miri to evaluate the place found in `PlaceMention`, and report eventual dangling pointers found within it. r? `@RalfJung`
2023-04-22Merge from rustcRalf Jung-0/+20
2023-04-22Preparing for merge from rustcRalf Jung-1/+1
2023-04-22Auto merge of #106934 - DrMeepster:offset_of, r=WaffleLapkinbors-4/+26
Add offset_of! macro (RFC 3308) Implements https://github.com/rust-lang/rfcs/pull/3308 (tracking issue #106655) by adding the built in macro `core::mem::offset_of`. Two of the future possibilities are also implemented: * Nested field accesses (without array indexing) * DST support (for `Sized` fields) I wrote this a few months ago, before the RFC merged. Now that it's merged, I decided to rebase and finish it. cc `@thomcc` (RFC author)
2023-04-21Allow `LocalDefId` as the argument to `def_path_str`Oli Scherer-2/+2
2023-04-21Auto merge of #110653 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 14 commits in d0a4cbcee614fdb7ba66e860e603a00a644d71f8..de80432f04da61d98dcbbc1572598071718ccfd2 2023-04-16 17:42:50 +0000 to 2023-04-21 13:18:32 +0000 - Bump to 0.72.0; update changelog (rust-lang/cargo#12012) - Remove `src/doc` from `exclude` list in Cargo.toml (rust-lang/cargo#12000) - `--help` output use line wrap (rust-lang/cargo#12013) - Fix semver checks for 1.69 (rust-lang/cargo#12011) - Update contributor guide with new issue labels. (rust-lang/cargo#12003) - Better error message when getting an empty dep table (rust-lang/cargo#11997) - Fix broken links in contributor guide. (rust-lang/cargo#12002) - Update linux-raw-sys to 0.3.2 (rust-lang/cargo#11998) - chore: Use globs for workspace members (rust-lang/cargo#11996) - fix: Allow win/mac credential managers to build on all platforms (rust-lang/cargo#11993) - Add S-triage auto-label. (rust-lang/cargo#11995) - ci: check if Cargo.lock is up-to-date (rust-lang/cargo#11994) - Recompile on profile rustflags changes (rust-lang/cargo#11981) - Clarify some 1.69 changelog entries. (rust-lang/cargo#11982)