- 07 7月, 2022 1 次提交
-
-
由 toshiki goto 提交于
implement detail_exit but I'm not sure it is right. not create new file and write detail exit in lib.rs replace std::process::exit to detail_exit that is not related to code runnning. remove pub
-
- 05 7月, 2022 20 次提交
-
-
由 bors 提交于
Rollup of 6 pull requests Successful merges: - #97300 (Implement `FusedIterator` for `std::net::[Into]Incoming`) - #98761 (more `need_type_info` improvements) - #98811 (Interpret: AllocRange Debug impl, and use it more consistently) - #98847 (fix interpreter validity check on Box) - #98854 (clean up the borrowing in rustc_hir_pretty) - #98873 (Suggest `#[derive(Default)]` to enums with `#[default]`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Dylan DPC 提交于
Suggest `#[derive(Default)]` to enums with `#[default]` fixes #95226
-
由 Dylan DPC 提交于
clean up the borrowing in rustc_hir_pretty A whole lot of the `&`s and `ref`s were redundant. I hope doing this in one big commit is fine, because all of the changes are pretty self-contained. `@rustbot` label: +C-cleanup
-
由 Dylan DPC 提交于
fix interpreter validity check on Box Follow-up to https://github.com/rust-lang/rust/pull/98554: avoid walking over parts of the value twice. And then move all that logic into the general visitor so not each visitor implementation has to deal with it...
-
由 Dylan DPC 提交于
Interpret: AllocRange Debug impl, and use it more consistently The two commits are pretty independent but it did not seem worth having two PRs for them. r? ``@oli-obk``
-
由 Dylan DPC 提交于
more `need_type_info` improvements this now deals with macros in suggestions and the source cost computation does what I want for `channel`
🎉 r? ``@estebank`` -
由 Dylan DPC 提交于
Implement `FusedIterator` for `std::net::[Into]Incoming` They never return `None`, so they trivially fulfill the contract. What should I put for the stability attribute of `Incoming`?
-
由 bors 提交于
Add method to mutate MIR body without invalidating CFG caches. In addition to adding this method, a handful of passes are updated to use it. There's still quite a few passes that could in principle make use of this as well, but do not at the moment because they use `VisitorMut` or `MirPatch`, which needs additional support for this. The method name is slightly unwieldy, but I don't expect anyone to be writing it a lot, and at least it says what it does. If anyone has a suggestion for a better name though, would be happy to rename. r? rust-lang/mir-opt
-
由 bors 提交于
interpret: track place alignment together with the type, not the value This matches how I handle alignment in [MiniRust](https://github.com/RalfJung/minirust). I think it makes conceptually a lot more sense. Fixes https://github.com/rust-lang/rust/issues/63085 r? `@oli-obk`
-
由 bors 提交于
Rollup of 8 pull requests Successful merges: - #98738 (Clarify MIR semantics of checked binary operations) - #98782 (Improve spans for specialization error) - #98793 (Lint against executable files in the root directory) - #98814 (rustdoc: Censor certain complex unevaluated const exprs) - #98878 (add more `rustc_pass_by_value`) - #98879 (Fix "wrap closure in parenthesis" suggestion for `async` closure) - #98886 (incr.comp.: Make split-dwarf commandline options [TRACKED].) - #98898 (Add "no-div-regex" eslint rule) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Matthias Krüger 提交于
Add "no-div-regex" eslint rule r? `@Dylan-DPC`
-
由 Matthias Krüger 提交于
incr.comp.: Make split-dwarf commandline options [TRACKED]. This commandline options have an influence on the contents of object files (and .dwo files), so they need to be `[TRACKED]`. r? `@davidtwco`
-
由 Matthias Krüger 提交于
Fix "wrap closure in parenthesis" suggestion for `async` closure Fixes #98023
-
由 Matthias Krüger 提交于
add more `rustc_pass_by_value` r? ```@oli-obk``` cc #98766
-
由 Matthias Krüger 提交于
rustdoc: Censor certain complex unevaluated const exprs Fixes #97933. This is more of a hotfix for the aforementioned issue. By that, I mean that my proposed patch is not the best solution but one that does not change as much existing code. It treats symptoms rather than the root cause. This PR “censors” certain complex unevaluated constant expressions like `match`es, blocks, function calls, struct literals etc. by pretty-printing them as `_` / `{ _ }` (number and string literals, paths and `()` are still printed as one would expect). Resorting to this placeholder is preferable to printing the full expression verbatim since they can be quite large and verbose resulting in an unreadable mess in the generated documentation. Further, mindlessly printing the const would leak private and `doc(hidden)` struct fields (#97933), at least in the current stable & nightly implementations which rely on `span_to_snippet` (!) and `rustc_hir_pretty::id_to_string`. The censoring of _verbose_ expressions is probably going to stay longer term. However, in regards to private and `doc(hidden)` struct fields, I have a more proper fix in mind which I have already partially implemented locally and for which I am going to open a separate PR sometime soon. For that, I was already in contact with `@GuillaumeGomez.` The proper fix involves rustdoc not falling back on pretty-printing unevaluated consts so easily (what this PR is concerned about) and instead preferring to print evaluated consts which contain more information allowing it to selectively hide private and `doc(hidden)` fields, create hyperlinks etc. generally making the output more granular and precise (compared to the brutal `_` placeholder). Unfortunately, I was a bit too late and the issue just hit stable (1.62). Should this be backported to beta or even a potential 1.62.1? r? `@GuillaumeGomez`
-
由 Matthias Krüger 提交于
Lint against executable files in the root directory This avoids accidental introduction (such as in #97488) of executable files into the root directory, not just under library/, src/ or compiler/. Resolves #98792
-
由 Matthias Krüger 提交于
Improve spans for specialization error Fixes #98777
-
由 Matthias Krüger 提交于
Clarify MIR semantics of checked binary operations
-
由 bors 提交于
interpret: don't rely on ScalarPair for overflowed arithmetic This is for https://github.com/rust-lang/rust/pull/97861. Cc `@EddyB` I would like to avoid making this depend on `dest.layout.abi` to avoid a branch that we are not usually covering both sides of. Though OTOH this seems like fairly straight-forward code. But let's benchmark this option first to see how bad that extra `force_allocation` really is.
-
-
- 04 7月, 2022 19 次提交
-
-
由 bors 提交于
adapt native-link-modifier-bundle test to use llvm-nm No functional changes intended. This updates the test case to use `llvm-nm` as an alternative to https://github.com/rust-lang/rust/pull/98424. This fixes a test failure over at the experimental build of rustc with HEAD LLVM: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/11144#01814d0f-a46a-4c19-91cf-41e720edb6f9/684-691. The issue is that this test uses the system nm, which may not be recent enough to understand the bitcode produced by rustc when compiled against HEAD LLVM. Similar to what we did for another test in https://github.com/rust-lang/rust/pull/94023.
-
由 Guillaume Gomez 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Krasimir Georgiev 提交于
-
由 bors 提交于
Only obey optimize-tests flag on UI tests that are run-pass stage1 UI tests walltime on my machine: ``` optimize-tests = false, master 25.98s optimize-tests = true, master 34.69s optimize-tests = true, patched 28.79s ``` Effects: - faster UI tests - llvm asserts get exercised less on build-pass tests - the difference between opt and nopt builds shrinks a bit - aux libs don't get optimized since they don't have a pass mode and almost never have explicit compile flags
-
由 Michael Woerister 提交于
-
由 lcnr 提交于
-
由 lcnr 提交于
-
由 lcnr 提交于
-
由 lcnr 提交于
-
由 lcnr 提交于
-
由 Takayuki Maeda 提交于
-
由 bors 提交于
fully move dropck to mir r? `@oli-obk`
-
由 lcnr 提交于
-
由 Michael Goulet 提交于
-
由 lcnr 提交于
-
由 bors 提交于
Rollup of 5 pull requests Successful merges: - #98501 (rustc_passes/src/entry.rs: De-duplicate more code with `fn throw_attr_err()`) - #98774 (rustdoc: make source sidebar toggle a real button) - #98806 (Fix long declaration trailing whitespace) - #98823 (Fix rust-call ICE in mir-inliner) - #98870 (Add regression test for #86784) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Jakob Degen 提交于
In addition to adding this method, a handful of passes are updated to use it.
-