about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-02-12Modifiers -> QualifiersRune Tynan-9/+9
2021-02-08Allow default hash types in conversionRune Tynan-0/+2
2021-02-08Vec -> HashSetRune Tynan-12/+15
2021-02-08Add comment + move derive helperRune Tynan-1/+5
2021-02-08Make `header` a vec of modifiers, make FunctionPointer consistent with ↵Rune Tynan-16/+85
Function and Method.
2021-02-07Auto merge of #80632 - Nadrieril:fix-80501, r=varkorbors-223/+472
Identify unreachable subpatterns more reliably In https://github.com/rust-lang/rust/pull/80104 I used `Span`s to identify unreachable sub-patterns in the presence of or-patterns during exhaustiveness checking. In https://github.com/rust-lang/rust/issues/80501 it was revealed that `Span`s are complicated and that this was not a good idea. Instead, this PR identifies subpatterns logically: as a path in the tree of subpatterns of a given pattern. I made a struct that captures a set of such subpatterns. This is a bit complex, but thankfully self-contained; the rest of the code does not need to know anything about it. Fixes https://github.com/rust-lang/rust/issues/80501. I think I managed to keep the perf neutral. r? `@varkor`
2021-02-07Auto merge of #81853 - GuillaumeGomez:rollup-xzh1z4v, r=GuillaumeGomezbors-35/+96
Rollup of 5 pull requests Successful merges: - #81526 (btree: use Option's unwrap_unchecked()) - #81742 (Add a note about the correctness and the effect on unsafe code to the `ExactSizeIterator` docs) - #81830 (Add long error explanation for E0542) - #81835 (Improve long explanation for E0546) - #81843 (Add regression test for #29821) Failed merges: - #81836 (Add long explanation for E0547) r? `@ghost` `@rustbot` modify labels: rollup
2021-02-07Rollup merge of #81843 - bstrie:issue-29821, r=lcnrGuillaume Gomez-0/+19
Add regression test for #29821 Closes #29821
2021-02-07Rollup merge of #81835 - jesusprubio:improve-long-eplanation-e0546, ↵Guillaume Gomez-2/+9
r=GuillaumeGomez Improve long explanation for E0546 Helps with #61137
2021-02-07Rollup merge of #81830 - jesusprubio:add-log-explanation-e0542, r=GuillaumeGomezGuillaume Gomez-2/+49
Add long error explanation for E0542 Helps with #61137
2021-02-07Rollup merge of #81742 - sdroege:exact-size-iterator-correctness, r=kennytmGuillaume Gomez-0/+6
Add a note about the correctness and the effect on unsafe code to the `ExactSizeIterator` docs As it is a safe trait it does not provide any guarantee that the returned length is correct and as such unsafe code must not rely on it. That's why `TrustedLen` exists. Fixes https://github.com/rust-lang/rust/issues/81739
2021-02-07Rollup merge of #81526 - ojeda:btree-use-unwrap_unchecked, r=scottmcmGuillaume Gomez-31/+13
btree: use Option's unwrap_unchecked() Now that https://github.com/rust-lang/rust/issues/81383 is available, start using it.
2021-02-07Auto merge of #81502 - CraftSpider:method-abi, r=jyn514bors-0/+27
Add abi field to `Method` Also bumps version and adds a test (Will conflict with #81500, whichever is merged first) Rationale: It's possible for methods to have an ABI. This should be exposed in the JSON.
2021-02-07Auto merge of #81498 - thomaseizinger:ice-workaround-56935-rustc-index, ↵bors-0/+4
r=matthewjasper Apply workaround from #72003 for #56935 to allow for cross-compilation of `rustc_index` crate This patch applies the same workaround as #72003 to the `rustc_index` crate. This allows recent versions of rustfmt to compile to wasm again. Related: #72017.
2021-02-07Auto merge of #81462 - osa1:issue75158, r=Mark-Simulacrumbors-0/+20
Add test for #75158 This also shifts some type-size related tests into a new directory, so that we keep the number of files at the root down. Closes #75158
2021-02-07Auto merge of #81821 - nikic:update-wasm32, r=sanxiynbors-11/+10
Upgrade wasm32 image to Ubuntu 20.04 This switches the wasm32 image, which is used to test wasm32-unknown-emscripten, to Ubuntu 20.04. While at it, enable most of the excluded tests, as they seem to work fine with some minor fixes.
2021-02-06Auto merge of #78052 - da-x:path-trimming-type-aliases, r=davidtwcobors-3919/+3922
path trimming: ignore type aliases Continuation of #73996.
2021-02-06Remove accidentally left-behind git markRune Tynan-1/+0
2021-02-06Add regression test for #29821bstrie-0/+19
Closes #29821
2021-02-06Auto merge of #80883 - GuillaumeGomez:remove-some-function-fields, r=ollie27bors-220/+246
Remove some function fields Same kind as #80845. This PR removes the `all_types` and `ret_types` from the `clean::Function` type. Another change that I had to do was implementing the `From` trait to be able to convert `hir::def::DefKind` into `clean::TypeKind` without requiring `DocContext` (and so I updated the `clean` method so that it's taken into account). The last two commits improve a bit the `get_real_types` function and the `Type::generics` method. r? `@jyn514`
2021-02-06Typo fixJesus Rubio-2/+2
2021-02-06References addedJesus Rubio-2/+9
2021-02-06Comments updated to keep the consistencyJesus Rubio-5/+5
2021-02-06Auto merge of #81832 - jonas-schievink:rollup-3nw53p0, r=jonas-schievinkbors-270/+376
Rollup of 7 pull requests Successful merges: - #81402 (tidy: Run tidy style against markdown files.) - #81434 (BTree: fix documentation of unstable public members) - #81680 (Refactor `PrimitiveTypeTable` for Clippy) - #81737 (typeck: Emit structured suggestions for tuple struct syntax) - #81738 (Miscellaneous small diagnostics cleanup) - #81766 (Enable 'task list' markdown extension) - #81812 (Add a test for escaping LLVMisms in inline asm) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-02-06Improve long explanation for E0546Jesus Rubio-4/+4
2021-02-06Format fixesJesus Rubio-2/+1
2021-02-06Update compiler/rustc_error_codes/src/error_codes/E0542.mdJesús Rubio-1/+2
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2021-02-06Rollup merge of #81812 - nagisa:nagisa/escape-the-escape-hatch, r=AmanieuJonas Schievink-0/+32
Add a test for escaping LLVMisms in inline asm We escape certain LLVM-specific features when passing the inline assembly string to the LLVM. Until now, however, there was no test making sure this behaviour stays intact. This commit adds such a test! r? `@Amanieu` cc `@joshtriplett`
2021-02-06Rollup merge of #81766 - jyn514:task-lists, r=GuillaumeGomezJonas Schievink-1/+37
Enable 'task list' markdown extension Closes https://github.com/rust-lang/rust/issues/71183.
2021-02-06Rollup merge of #81738 - camelid:misc-small-diag-cleanup, r=lcnrJonas Schievink-20/+20
Miscellaneous small diagnostics cleanup
2021-02-06Rollup merge of #81737 - camelid:typeck-structure-sugg, r=lcnrJonas Schievink-12/+17
typeck: Emit structured suggestions for tuple struct syntax And tuple variant syntax, but that didn't fit in the subject :) Now the fact that these are suggestions is exposed both to the layout engine and to IDEs and rustfix for automatic application.
2021-02-06Rollup merge of #81680 - camsteffen:primty, r=oli-obkJonas Schievink-80/+71
Refactor `PrimitiveTypeTable` for Clippy I removed `PrimitiveTypeTable` and added `PrimTy::ALL` and `PrimTy::from_name` in its place. This allows Clippy to use `PrimTy::from_name` for the `builtin_type_shadow` lint, and a `const` list of primitive types is deleted from Clippy code (the goal). All changes should be a little faster, if anything.
2021-02-06Rollup merge of #81434 - ssomers:btree_drain_filter_doc_update, r=dtolnayJonas Schievink-16/+18
BTree: fix documentation of unstable public members As rightfully requested in #62924 & #70530. r? `@Mark-Simulacrum`
2021-02-06Rollup merge of #81402 - ehuss:md-tidy, r=jyn514Jonas Schievink-141/+181
tidy: Run tidy style against markdown files. This adds tidy checks for markdown files. I think it is useful to have some style enforcement (for the same reasons the style is enforced on other files). I think it is worthwhile to avoid `ignore` on rust examples since having broken code in documentation is frustrating. Avoiding trailing whitespace is good because it has semantic meaning in markdown, which I think should be avoided.
2021-02-06Add long error explanation for E0542Jesus Rubio-2/+49
2021-02-06Auto merge of #81824 - RalfJung:miri, r=RalfJungbors-8/+8
update Miri Fixes https://github.com/rust-lang/rust/issues/81770 Cc `@rust-lang/miri` r? `@ghost`
2021-02-06Add a test for escaping LLVMisms in inline asmSimonas Kazlauskas-0/+32
We escape certain LLVM-specific features when passing the inline assembly string to the LLVM. Until now, however, there was no test making sure this behaviour stays intact. This commit adds such a test!
2021-02-06update MiriRalf Jung-8/+8
2021-02-06Upgrade wasm32 image to Ubuntu 20.04Nikita Popov-11/+10
This switches the wasm32 image, which is used to test wasm32-unknown-emscripten to Ubuntu 20.04. While at it, enable most of the excluded tests, as they seem to work fine with some minor fixes.
2021-02-06path trimming: disable on src/test/run-make-fulldeps/coverage-spanviewDan Aloni-3794/+3796
2021-02-06path trimming: ignore type aliasesDan Aloni-191/+192
2021-02-06Auto merge of #81792 - pietroalbini:bump-nightly, r=Mark-Simulacrumbors-5/+5
Bump nightly version to 1.52.0 cc `@rust-lang/release`
2021-02-06Enable 'task list' markdown extensionJoshua Nelson-1/+37
- Add documentation about task lists
2021-02-06Auto merge of #81810 - m-ou-se:rollup-q3nborp, r=m-ou-sebors-126/+440
Rollup of 7 pull requests Successful merges: - #80011 (Stabilize `peekable_next_if`) - #81580 (Document how `MaybeUninit<Struct>` can be initialized.) - #81610 (BTreeMap: make Ord bound explicit, compile-test its absence) - #81664 (Avoid a hir access inside get_static) - #81675 (Make rustdoc respect `--error-format short` in doctests) - #81753 (Never MIR inline functions with a different instruction set) - #81795 (Small refactor with Iterator::reduce) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-02-05Add abi field to `Method`Rune Tynan-0/+28
2021-02-06BTreeMap: fix documentation of unstable public membersStein Somers-16/+18
2021-02-05Bump clippy versionMark Rousskov-4/+4
2021-02-06Rollup merge of #81795 - camsteffen:diagnostics-reduce, r=oli-obkMara Bos-3/+2
Small refactor with Iterator::reduce
2021-02-06Rollup merge of #81753 - tmiasko:inline-instruction-set, r=oli-obkMara Bos-1/+152
Never MIR inline functions with a different instruction set
2021-02-06Rollup merge of #81675 - poliorcetics:respect-shortness, r=jyn514Mara Bos-1/+34
Make rustdoc respect `--error-format short` in doctests Note that this will not work with `cargo test`, only with `rustdoc --test`, I'll have to modify `cargo` as well. Fix #81662. `@rustbot` label +T-rustdoc +A-doctests