about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-03-28Rollup merge of #95350 - petrochenkov:qpathregr, r=cjgillotDylan DPC-2/+24
resolve: Simplify some diagnostic code to avoid an ICE No need to resolve those paths, they are already resolved, we just need to take the results from `partial_res_map`. Fixes https://github.com/rust-lang/rust/issues/95327
2022-03-28Rollup merge of #95314 - c410-f3r:aqui-vamos-nos, r=lcnrDylan DPC-11/+11
Tell users that `||` operators are not currently supported in let chain expressions Tells that `||` operators are not currently supported instead of not allowed. See https://github.com/rust-lang/rust/issues/53667#issuecomment-1066075876 In other words, this PR is pretty much trivial.
2022-03-28Auto merge of #95024 - koehlma:rustdoc-private-items, ↵bors-3/+43
r=GuillaumeGomez,camelid,jsha rustdoc: add 🔒 to items with restricted visibility This change marks items with restricted visibility with 🔒 when building with `--document-private-items`: <img width="278" alt="Screen Shot 2022-03-20 at 23 50 24" src="https://user-images.githubusercontent.com/509209/159189513-9e4b09bb-6785-41a5-bfe2-df02f83f8641.png"> There also appears a “Restricted Visibility” tooltip when hovering over the emoji. --- The original PR for reference: This change makes private items slightly transparent (similar to `unstable` items in rustc): <img width="272" alt="Screen Shot 2022-03-16 at 22 17 43" src="https://user-images.githubusercontent.com/509209/158692627-a1f6f5ec-e043-4aa2-9352-8d2b15c31c08.png"> I found myself using `--document-private-items` a lot recently because I find the documentation of private internals quite helpful when working on a larger project. However, not being able to distinguish private from public items (see #87785) when looking at the documentation makes this somewhat cumbersome. This PR addresses the third suggestion of issue #87785 by marking private items typographically. It seems to me that the other suggestions are more involved but this is at least a first step. A private item is also made slightly transparent in the path displayed in the header of a page: <img width="467" alt="Screen Shot 2022-03-16 at 22 19 51" src="https://user-images.githubusercontent.com/509209/158692885-0bbd3417-3c0b-486f-b8ab-99c05c6fa7ca.png"> I am looking forward to feedback and suggestions.
2022-03-28Remove duplicated and unused test filesCaio-201/+0
2022-03-28Auto merge of #95396 - ↵bors-0/+122
TaKO8Ki:suggest-replacing-field-when-using-the-same-type, r=compiler-errors Suggest replacing a field when using the same type closes #89166
2022-03-28Propagate `parallel_compiler` feature through rustc crates. Turned off ↵klensy-5/+11
feature gives change of builded crates: 238 -> 224.
2022-03-28use `can_coerce` instead of `same_type_modulo_infer`Takayuki Maeda-1/+4
2022-03-28suggest replacing field when using the same typeTakayuki Maeda-4/+123
2022-03-27Merge remote-tracking branch 'upstream/master' into subtree-sync-2022-03-27Caleb Cartwright-241/+606
2022-03-28Ignore doc comments in a declarative macro matcher.Nicholas Nethercote-0/+13
Fixes #95267. Reverts to the old behaviour before #95159 introduced a regression.
2022-03-27suggest wrapping in struct tuples as wellMichael Goulet-3/+25
2022-03-27do not suggest enum tuple variant for named field variantMichael Goulet-1/+24
2022-03-27suggest wrapping patterns with compatible enum variantsMichael Goulet-0/+125
2022-03-27Auto merge of #95382 - Dylan-DPC:rollup-bebyfd1, r=Dylan-DPCbors-65/+59
Rollup of 5 pull requests Successful merges: - #94939 (diagnostics: suggest missing comma in bad FRU syntax) - #95120 (Implement `apply_switch_int_edge_effects` for backward analyses) - #95364 (Add long error explanation for E0667) - #95366 (Remove test files with duplicated checksums) - #95368 (Fix typo in `String::try_reserve_exact` docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-03-27Rollup merge of #95366 - c410-f3r:moar-tests, r=petrochenkovDylan DPC-64/+0
Remove test files with duplicated checksums cc https://github.com/rust-lang/rust/issues/73494 r? `@petrochenkov`
2022-03-27Rollup merge of #95364 - GuillaumeGomez:long-error-explanation-e0667, ↵Dylan DPC-1/+3
r=Dylan-DPC Add long error explanation for E0667 Part of #61137.
2022-03-27Rollup merge of #94939 - notriddle:notriddle/fru-comma-suggestion, r=cjgillotDylan DPC-0/+56
diagnostics: suggest missing comma in bad FRU syntax Fixes #51103
2022-03-27fix other source of box derefDrMeepster-0/+12
2022-03-27Auto merge of #94495 - estebank:missing-closing-gt, r=jackh726bors-13/+174
Provide suggestion for missing `>` in a type parameter list When encountering an inproperly terminated type parameter list, provide a suggestion to close it after the last non-constraint type parameter that was successfully parsed. Fix #94058.
2022-03-27Update ui test outputGuillaume Gomez-1/+3
2022-03-27diagnostics: suggest missing comma in bad FRU syntaxMichael Howell-0/+56
Fixes #51103
2022-03-27[bootstrap] Don't print `Suite not skipped` unless `--verbose` is setJoshua Nelson-2/+2
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 ```
2022-03-27Remove duplicated test filesCaio-64/+0
2022-03-27Debug print char 0 as '\0' rather than '\u{0}'David Tolnay-3/+3
2022-03-27Auto merge of #95355 - dtolnay:ripgreptest, r=Dylan-DPCbors-1/+1
Bump the ripgrep commit exercised by cargotest This update goes from https://github.com/BurntSushi/ripgrep/commit/3de31f752729525d85a3d1575ac1978733b3f7e7 (Aug 1, 2019) to current master, https://github.com/BurntSushi/ripgrep/commit/ced5b92aa93eb47e892bd2fd26ab454008721730 (March 21, 2022). I need this in order to pick up https://github.com/BurntSushi/ripgrep/pull/1722, which picked up https://github.com/BurntSushi/bstr/pull/58, which unblocks https://github.com/rust-lang/rust/pull/95345. Ripgrep uses the Debug representation of a `BStr` in some of its tests. In old versions of bstr, that used to just use the standard library's `escape_debug()` implementation, so the output ends up being sensitive to whether the standard library renders character 0 as `\u{0}` or as `\0`. The newer bstr always renders character 0 as `\0` and ripgrep's test suite has been correspondingly updated.
2022-03-27Auto merge of #93957 - SaltyKitkat:stablize_const_ptr_offset, r=dtolnaybors-49/+43
Stabilize const_ptr_offset Close #71499
2022-03-27Handle `,` to `;` substitution in arg paramsEsteban Kuber-7/+19
2022-03-26Bump the ripgrep commit exercised by cargotestDavid Tolnay-1/+1
2022-03-27Rollup merge of #93469 - compiler-errors:issue-93450, r=estebankDylan DPC-43/+17
Skip pointing out ambiguous impls in alloc/std crates too in inference errors This generalizes the logic in `annotate_source_of_ambiguity` to skip printing ambiguity errors traits in `alloc` and `std` as well, not just `core`. While this does spot-fix the issue mentioned below, it would be nicer to generalize this logic, for example to detect when the trait predicate's `self_ty` has any numerical inference variables. Is it worthwhile to scrap this solution for one like that? Fixes #93450 r? `@estebank` feel free to reassign
2022-03-27Rollup merge of #91981 - estebank:tweakaroo, r=lcnrDylan DPC-56/+158
Recover suggestions and useful information lost in previous PR Follow up to #91898.
2022-03-27Provide suggestion for missing `>` in a type parameter listEsteban Kuber-9/+158
When encountering an inproperly terminated type parameter list, provide a suggestion to close it after the last non-constraint type parameter that was successfully parsed. Fix #94058.
2022-03-27Change wording of missing return type suggestionEsteban Kuber-14/+19
2022-03-27Point (again) to more expressions with their type, even if not fully resolvedEsteban Kuber-30/+123
2022-03-27Eagerly replace `{integer}`/`{float}` with `i32`/`f64` for suggestionEsteban Kuber-12/+16
2022-03-27resolve: Simplify some diagnostic code to avoid an ICEVadim Petrochenkov-2/+24
2022-03-26Auto merge of #92472 - petrochenkov:nowrapident, r=Aaron1011bors-414/+21
proc-macro: Stop wrapping `ident` matchers into groups `ident` is always a single token and can be treated in the same way as `tt`. r? `@Aaron1011`
2022-03-26Auto merge of #95274 - jendrikw:slice-must-use, r=Dylan-DPCbors-42/+44
add #[must_use] to functions of slice and its iterators. Continuation of #92853. Tracking issue: #89692.
2022-03-26add #[must_use] to functions of slice and its iterators.Jendrik-18/+18
2022-03-26add #[must_use] to functions of slice and its iterators.Jendrik-12/+12
2022-03-26proc-macro: Stop wrapping `ident` matchers into groupsVadim Petrochenkov-414/+21
2022-03-25fix wrong header commandDrMeepster-1/+1
2022-03-25widen special case on deref to all non-zst allocatorsDrMeepster-0/+10
2022-03-26Auto merge of #95299 - mkroening:rm-hermitkernel, r=joshtriplettbors-80/+0
Remove hermitkernel targets RustyHermit now maintains custom json targets, which are distributed with the kernel: https://github.com/hermitcore/libhermit-rs/pull/395 See https://github.com/hermitcore/rusty-hermit/issues/197#issuecomment-1076667961 CC: `@stlankes,` `@bstrie`
2022-03-26Auto merge of #95149 - cjgillot:once-diag, r=estebankbors-107/+58
Remove `Session::one_time_diagnostic` This is untracked mutable state, which modified the behaviour of queries. It was used for 2 things: some full-blown errors, but mostly for lint declaration notes ("the lint level is defined here" notes). It is replaced by the diagnostic deduplication infra which already exists in the diagnostic emitter. A new diagnostic level `OnceNote` is introduced specifically for lint notes, to deduplicate subdiagnostics. As a drive-by, diagnostic emission takes a `&mut` to allow dropping the `SubDiagnostic`s.
2022-03-25Minor `let_chains` modificationCaio-11/+11
2022-03-25diagnostics: correct generic bounds with doubled colonMichael Howell-0/+64
Fixes #95208
2022-03-25Replace wait-for instructions for rustdoc GUI tests with wait-for-cssGuillaume Gomez-36/+19
2022-03-25Update browser-ui-test version to 0.8.4Guillaume Gomez-1/+1
2022-03-25Auto merge of #95282 - RalfJung:miri, r=RalfJungbors-8/+8
update Miri Fixes https://github.com/rust-lang/rust/issues/95258 r? `@ghost`
2022-03-25Update clippy helper function typesGrisha Vartanyan-1/+1