about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-03-29Clarify how `src/tools/x` searches for pythonJoshua Nelson-0/+4
2022-03-29Auto merge of #95433 - Dylan-DPC:rollup-xdfit9h, r=Dylan-DPCbors-24/+73
Rollup of 4 pull requests Successful merges: - #94566 (Show ignore message in console and json output) - #95415 (diagnostics: regression test for HashMap iter_mut suggestion) - #95422 (Refactor: Use `format-args-capture` and remove an unnecessary nested block) - #95424 (:arrow_up: rust-analyzer) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-03-29diagnostics: regression test for derive boundsMichael Howell-0/+61
Closes #79076
2022-03-29Remember mutability in `DefKind::Static`.Camille GILLOT-13/+20
This allows to compute the `BodyOwnerKind` from `DefKind` only, and removes a direct dependency of some MIR queries onto HIR. As a side effect, it also simplifies metadata, since we don't need 4 flavours of `EntryKind::*Static` any more.
2022-03-29Auto merge of #94566 - yanganto:show-ignore-message, r=m-ou-sebors-8/+7
Show ignore message in console and json output - Provide ignore the message in console and JSON output - Modify the ignore message style in the log file related: #92714
2022-03-29Rollup merge of #95424 - lnicola:rust-analyzer-2022-03-29, r=lnicolaDylan DPC-24/+16
:arrow_up: rust-analyzer r? `@ghost`
2022-03-29Rollup merge of #95415 - notriddle:notriddle/issue-82081, r=Dylan-DPCDylan DPC-0/+57
diagnostics: regression test for HashMap iter_mut suggestion Closes #82081
2022-03-29Rollup merge of #94566 - yanganto:show-ignore-message, r=m-ou-seDylan DPC-8/+7
Show ignore message in console and json output - Provide ignore the message in console and JSON output - Modify the ignore message style in the log file related: #92714
2022-03-29Auto merge of #95096 - GuillaumeGomez:rm-header-fn-field, r=camelidbors-113/+100
Remove header field from clean::Function Fixes https://github.com/rust-lang/rust/issues/89673. This is another take on https://github.com/rust-lang/rust/issues/89673 (compared to https://github.com/rust-lang/rust/pull/91217) but very different on the approach: I moved the header call in one place but still require to have the `clean::Item` so I can use the `DefId` to get what is missing. cc `@jyn514` (you reviewed the original so maybe you want to take a look?) r? `@camelid`
2022-03-29Merge ItemKind::TyMethodItem branch with ItemKind::FunctionItem and ↵Guillaume Gomez-16/+16
ItemKind::MethodItem in fn_header function
2022-03-29Add test to ensure foreign functions from dependencies are correctly handledGuillaume Gomez-0/+12
2022-03-29Remove header field from clean::FunctionGuillaume Gomez-113/+88
2022-03-29Auto merge of #95257 - compiler-errors:fn-borrow, r=lcnrbors-3/+116
Add suggestion to borrow `Fn` and `FnMut` params/opaque/closures instead of move I think that Closure/ParamTy/Opaque are all "opaque" enough that it's meaningful to suggest borrowing them instead of moving them at their usage sites when we see a move error. See the attached issue for example. Is this suggestion too general? I could perhaps use the move site information to limit this to places like fn calls, but I don't know enough about mir borrowck to know if that's an easy change. Fixes #90828
2022-03-29:arrow_up: rust-analyzerLaurențiu Nicola-24/+16
2022-03-28Suggest function borrow ignoring needs_noteMichael Goulet-2/+47
`needs_note` is false if we've already suggested why the type is Copy... but that has nothing to do with the diagnostic.
2022-03-28Add suggestion to borrow opaque Fn and FnMut instead of moveMichael Goulet-3/+71
2022-03-28Update booksEric Huss-0/+0
2022-03-28Revert "Use cargo-fmt in self_tests"Caleb Cartwright-12/+34
This reverts commit c63d42e80473a0c18714b55058f27506fd24955c.
2022-03-29Auto merge of #95417 - ehuss:doc-no_std-error, r=Dylan-DPCbors-0/+6
bootstrap: better error message for no_std docs Currently if one tries to build std documentation for a no_std target, you get a confusing error message: `error: The argument '--package [<SPEC>...]' was provided more than once, but cannot be used multiple times` This is because [`std_cargo`](https://github.com/rust-lang/rust/blob/600ec284838c52d1f6657c2cf0097b58970b133b/src/bootstrap/compile.rs#L299-L305) has a built-in `-p alloc` argument that conflicts with the `cargo rustdoc` command used in the Std doc step. This just adds a better error message in this scenario. It may be possible to fix this correctly, but that would likely be a bit more of an invasive change that I don't have time for right now.
2022-03-28bootstrap: better error message for no_std docsEric Huss-0/+6
2022-03-28diagnostics: add regression test for #82081Michael Howell-0/+57
2022-03-28Rollup merge of #95328 - DrMeepster:box_gep_err, r=oli-obkDylan DPC-0/+22
Fix yet another Box<T, A> ICE Fixes #95036. This widens the special case from #94414 to make sure that boxes with a custom allocator are never directly dereferenced.
2022-03-28Rollup merge of #95318 - rust-lang:notriddle/issue-95208, r=wesleywiserDylan DPC-0/+64
diagnostics: correct generic bounds with doubled colon Fixes #95208
2022-03-28Rollup merge of #93787 - klensy:really-not-a-features, r=wesleywiserDylan DPC-5/+11
parallel_compiler: hide dependencies behind feature Separate dependencies for `parallel_compiler` feature, so they will not be compiled if feature not selected, reducing number of compiled crates from 238 to 224.
2022-03-28rebase falloutOli Scherer-1/+1
2022-03-28Add test for revealing auto traits in the defining scopeOli Scherer-0/+77
2022-03-28Add some tests showcasing further differences between TAIT and RPITOli Scherer-0/+42
2022-03-28Bless ui testsOli Scherer-1/+10
2022-03-28Also use the RPIT back compat hack in trait projectionOli Scherer-35/+5
2022-03-28Show that the behaviour is the same for RPIT and TAITOli Scherer-0/+230
2022-03-28Add a test showing that a similar example compilesOli Scherer-0/+20
2022-03-28Added another folder to the `ui` dirOli Scherer-1/+1
2022-03-28Fix mixing lazy TAIT and RPIT in their defining scopesOli Scherer-0/+28
2022-03-28Add regression testOli Scherer-0/+60
2022-03-28Add another regression testOli Scherer-0/+27
2022-03-28Test that TAIT and RPIT are in syncOli Scherer-2/+31
2022-03-28Add some tests around recursion and "revealing"Oli Scherer-0/+152
2022-03-28Remove some special code handling TAIT being passed through if and matchOli Scherer-2/+65
This is not necessary for RPIT anymore, since we reverted that to using inference vars.
2022-03-28Add regression testsOli Scherer-0/+494
2022-03-28Remove opaque type obligation and just register opaque types as they are ↵Oli Scherer-112/+188
encountered. This also registers obligations for the hidden type immediately.
2022-03-28Revert to inference variable based hidden type computation for RPITOli Scherer-263/+573
2022-03-28Special case the situation where the previous span is the same as the new oneOli Scherer-24/+12
2022-03-28Have the spans of TAIT type conflict errors point to the actual site instead ↵Oli Scherer-95/+95
of the owning function
2022-03-28Normalize all projections in mir validation againOli Scherer-0/+29
2022-03-28Don't bind hidden types when searching for matching implsOli Scherer-39/+73
2022-03-28Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk"Oli Scherer-1623/+2315
This reverts commit 6499c5e7fc173a3f55b7a3bd1e6a50e9edef782d, reversing changes made to 78450d2d602b06d9b94349aaf8cece1a4acaf3a8.
2022-03-28Auto merge of #95403 - Dylan-DPC:rollup-9on30mg, r=Dylan-DPCbors-216/+50
Rollup of 6 pull requests Successful merges: - #95301 (Remove `Nonterminal::NtTT`.) - #95314 (Tell users that `||` operators are not currently supported in let chain expressions) - #95350 (resolve: Simplify some diagnostic code to avoid an ICE) - #95370 ([bootstrap] Don't print `Suite not skipped` unless `--verbose` is set) - #95390 (Ignore doc comments in a declarative macro matcher.) - #95401 (Remove duplicated and unused test files) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-03-28Rollup merge of #95401 - c410-f3r:moar-tests, r=petrochenkovDylan DPC-201/+0
Remove duplicated and unused test files cc https://github.com/rust-lang/rust/issues/73494 r? `@petrochenkov`
2022-03-28Rollup merge of #95390 - nnethercote:allow-doc-comments-in-macros, ↵Dylan DPC-0/+13
r=petrochenkov Ignore doc comments in a declarative macro matcher. Fixes #95267. Reverts to the old behaviour before #95159 introduced a regression. r? `@petrochenkov`
2022-03-28Rollup merge of #95370 - jyn514:less-verbose-skips, r=Dylan-DPCDylan DPC-2/+2
[bootstrap] Don't print `Suite not skipped` unless `--verbose` is set This was so verbose before that it made it hard to see what effect the flag actually had. Before: ``` Set({test::src/tools/tidy}) not skipped for "bootstrap::test::Tidy" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Skipping Suite(test::src/test/ui) because it is excluded Suite(test::src/test/run-pass-valgrind) not skipped for "bootstrap::test::RunPassValgrind" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Skipping Suite(test::src/test/mir-opt) because it is excluded Suite(test::src/test/codegen) not skipped for "bootstrap::test::Codegen" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Suite(test::src/test/codegen-units) not skipped for "bootstrap::test::CodegenUnits" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Suite(test::src/test/assembly) not skipped for "bootstrap::test::Assembly" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Suite(test::src/test/incremental) not skipped for "bootstrap::test::Incremental" -- not in [src/test/ui, src/test/mir-opt/, src/test/debuginfo, src/test/ui-fulldeps] Skipping Suite(test::src/test/debuginfo) because it is excluded Skipping Suite(test::src/test/ui-fulldeps) because it is excluded ... about 100 more lines ... ``` After: ``` Skipping Suite(test::src/test/ui) because it is excluded Skipping Suite(test::src/test/mir-opt) because it is excluded Skipping Suite(test::src/test/debuginfo) because it is excluded Skipping Suite(test::src/test/ui-fulldeps) because it is excluded ```