about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-06-03Add test for #[must_use] in tuplesvarkor-0/+20
2019-05-31test: add a more complex symbol-name testcase.Eduard-Mihai Burtescu-19/+98
2019-05-31test: force `legacy` mangling for run-make-fulldeps/a-b-a-linker-guard.Eduard-Mihai Burtescu-3/+6
2019-05-31test: support both (`legacy` and `v0`) choices of mangling.Eduard-Mihai Burtescu-58/+245
2019-05-31rustc_codegen_utils: don't ignore `Ctor` path components in symbols.Eduard-Mihai Burtescu-0/+12
2019-05-31rustc_codegen_utils: test demangler output, not just symbol names.Eduard-Mihai Burtescu-11/+70
2019-05-31Auto merge of #60166 - oli-obk:type_name, r=eddybbors-13/+56
Make the `type_name` intrinsic deterministic cc @eddyb for the printing infrastructure cc @Centril for the deterministic (coherent?) output r? @sfackler
2019-05-30Make the `type_name` intrinsic's output deterministicOliver Scherer-13/+56
2019-05-30Rollup merge of #61333 - varkor:apit-const-param-ice, r=estebankMazdak Farrokhzad-0/+16
Fix ICE with APIT in a function with a const parameter Fixes https://github.com/rust-lang/rust/issues/60953.
2019-05-30Rollup merge of #61279 - llogiq:implicit-option-main-doctests, r=GuillaumeGomezMazdak Farrokhzad-0/+12
implicit `Option`-returning doctests This distinguishes `Option` and `Result`-returning doctests with implicit `main` method, where the former tests must end with `Some(())`. Open question: Does this need a feature gate? r? @GuillaumeGomez
2019-05-30Rollup merge of #61231 - pnkfelix:issue-59548-linkage-diagnostic, r=petrochenkovMazdak Farrokhzad-2/+92
Fix linkage diagnostic so it doesn't ICE for external crates Fix linkage diagnostic so it doesn't ICE for external crates (As a drive-by improvement, improved the diagnostic to indicate *why* `*const T` or `*mut T` is required.) Fix #59548 Fix #61232
2019-05-30Rollup merge of #60839 - davidtwco:const-generics-struct-ctor, r=varkorMazdak Farrokhzad-22/+20
Fix ICE with struct ctors and const generics. Fixes #60818. r? @varkor
2019-05-30Rollup merge of #60802 - euclio:pulldown-cmark-panic, r=GuillaumeGomezMazdak Farrokhzad-0/+9
upgrade rustdoc's `pulldown-cmark` to 0.5.2 Fixes #60482.
2019-05-30Auto merge of #61005 - michaelwoerister:error-pgo-windows-unwind, r=zackmdavisbors-8/+41
Emit error when trying to use PGO in conjunction with unwinding on Windows. This PR makes `rustc` emit an error when trying use PGO in conjunction with `-Cpanic=unwind` on Windows, isn't supported by LLVM yet. The error messages points to https://github.com/rust-lang/rust/issues/61002, which documents this known limitation.
2019-05-30Add a regression test for const parameters with impl Traitvarkor-0/+16
2019-05-29Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centrilbors-2121/+2167
Warn on bare_trait_objects by default The `bare_trait_objects` lint is set to `warn` by default. Most ui tests have been updated to use `dyn` to avoid creating noise in stderr files. r? @Centril cc #54910
2019-05-29upgrade rustdoc's `pulldown-cmark` to 0.5.2Andy Russell-0/+9
Fixes #60482.
2019-05-29Rollup merge of #61310 - RalfJung:mem, r=CentrilOliver Scherer-2/+2
split libcore::mem into multiple files r? @Centril
2019-05-29Rollup merge of #61293 - varkor:rustdoc-print-const-generic, r=GuillaumeGomezOliver Scherer-2/+24
Print const generics properly in rustdoc Now that https://github.com/rust-lang/rust/pull/59276 is merged, we can print consts properly in rustdoc. Fixes https://github.com/rust-lang/rust/issues/60737. Fixes https://github.com/rust-lang/rust/issues/61257. r? @GuillaumeGomez
2019-05-29Rollup merge of #61217 - estebank:issue-52820, r=CentrilOliver Scherer-0/+39
Account for short-hand init structs when suggesting conversion Fix #52820.
2019-05-29Rollup merge of #60549 - euclio:doctest-panic-messages, r=GuillaumeGomezOliver Scherer-18/+110
do not print panic message on doctest failures This PR cleans up rustdoc test output by silently unwinding on failure instead of using `panic!`. It also improves the clarity and consistency of the output on test failure, and adds test cases for failure modes that were previously untested.
2019-05-29Make run-make PGO tests work on MSVC.Michael Woerister-4/+34
2019-05-29bless youRalf Jung-2/+2
2019-05-29Fix ICE with struct ctors and const generics.David Wood-22/+20
This commit fixes a ICE where struct constructors were resulting in an ICE with const generics. Previously, a `match` in `type_of` did not have an arm for the `DefKind::Ctor` resolutions and therefore would assume that the type did not have generics.
2019-05-29Rollup merge of #60542 - timvermeulen:step_sub_usize, r=scottmcmMazdak Farrokhzad-0/+4
Add Step::sub_usize Required for #54054. I'm aware that the `Step` trait needs a rework, but this still seems like a reasonable addition? This currently doesn't compile because Chalk contains a type that implement this trait, and this is a breaking change. How can that be fixed?
2019-05-29Update the rest of the test suites to use dynmemoryruins-2/+2
2019-05-29Update run-pass test suite to use dynmemoryruins-502/+502
2019-05-29Update ui test suite to use dynmemoryruins-1605/+1620
2019-05-29Rollup merge of #61195 - davidtwco:seg-fault-mangler, r=eddybMazdak Farrokhzad-0/+84
Special-case `.llvm` in mangler Fixes #60925 and fixes #53912. r? @michaelwoerister cc @eddyb
2019-05-29Rollup merge of #61024 - petrochenkov:proctest, r=nikomatsakisMazdak Farrokhzad-649/+475
tests: Centralize proc macros commonly used for testing Many proc macros in `ui\proc-macro\auxiliary` were doing same things. (I added a fair share of those myself.) Now commonly used macros (empty, identity, etc) are collected in one place - `ui\proc-macro\auxiliary\test-macros.rs`.
2019-05-29Rollup merge of #60928 - TheSirC:fix/60229, r=eddybMazdak Farrokhzad-4/+4
Changes the type `mir::Mir` into `mir::Body` Fixes part 1 of #60229 (previously attempted in #60242). I stumbled upon the issue and it seems that the previous attempt at solving it was not merged. This is a second try more up-to-date. The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool.
2019-05-29Rollup merge of #60756 - matthewjasper:extra-impl-trait-tests, r=nikomatsakisMazdak Farrokhzad-0/+102
Add better tests for hidden lifetimes in impl trait cc #60670
2019-05-28Add a regression test for unevaluated const in rustdocvarkor-0/+21
2019-05-28Add a const-generics folder to rustdoc testsvarkor-2/+3
2019-05-28Use assert_eq! instead of println! in testsvarkor-2/+2
2019-05-28Make sure array length diagnostic doesn't regressvarkor-3/+7
2019-05-28Correct pluralisation of tuple/array/associated type binding mismatch errorsvarkor-4/+4
2019-05-28Reintroduce `TypeError::FixedArraySize`varkor-2/+2
2019-05-28Use Display rather than Debug printing for const mismatchvarkor-3/+3
2019-05-28Update tests after pretty printingvarkor-8/+8
2019-05-28Fix test after rebasevarkor-2/+13
2019-05-28Add broken MIR regression testsvarkor-0/+51
2019-05-28Eagerly evaluate in `super_relate_consts`varkor-2/+2
2019-05-28Update test outputvarkor-8/+59
2019-05-28Add tests for uninferred consts during codegenvarkor-0/+48
2019-05-28Add a test for a function taking a const param array as an argumentvarkor-0/+22
2019-05-28Special-case `.llvm` in mangler to fix segfaultsDavid Wood-0/+84
This commit special cases `.llvm` in the mangler to print `.llvm$6d$` instead. This will avoid segfaults when names in a user's Rust code are `llvm`.
2019-05-28Update test/ui/parser for bare_trait_object warningsmemoryruins-12/+43
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-4/+4
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-05-28implicit `Option`-returning doctestsAndre Bogus-0/+12
This distinguishes `Option` and `Result`-returning doctests with implicit `main` method, where the former tests must end with `Some(())`.