about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-02-11use ignore directives for run-make testsAndy Russell-297/+118
This makes the tests easier to read, and makes it possible to tell which tests aren't being run on the host platform. Fixes #56704.
2019-02-11Use hidden suggestions for unused imports lintEsteban Küber-31/+23
2019-02-11Only suggest imports if not imported.David Wood-12/+42
This commit modifies name resolution error reporting so that if a name is in scope and has been imported then we do not suggest importing it. This can occur when we add a label about constructors not being visible due to private fields. In these cases, we know that the struct/variant has been imported and we should silence any suggestions to import the struct/variant.
2019-02-11rename variable and add test directive for #58030Patrick McCarter-0/+1
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-1/+1
2019-02-11Update fulldeps testOliver Scherer-1/+1
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-15/+15
2019-02-11Add a test for rustc_deprecatedvarkor-0/+29
2019-02-11Add rustdoc index page test for future deprecation attributesvarkor-0/+2
2019-02-11Add a rustdoc test for future rustc_deprecated attributesvarkor-0/+11
2019-02-11Update existing rustdoc testvarkor-1/+1
2019-02-11Do not apply future deprecation warning for #[deprecated]varkor-57/+66
2019-02-11Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebankbors-29/+37
Initial implementation of rustfixable unused_imports lint This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless. cc https://github.com/rust-lang/rust/issues/47888 <details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary> ![screenshot from 2018-12-09 15-49-01](https://user-images.githubusercontent.com/2299951/49698874-3a026080-fbca-11e8-9bf1-24060b6c59c8.png) </details>
2019-02-10Re-blessed tests.Alexander Regueiro-1/+3
2019-02-10tests: doc commentsAlexander Regueiro-33/+33
2019-02-10Auto merge of #58361 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-7/+49
Rollup of 16 pull requests Successful merges: - #57259 (Update reference of rlibc crate to compiler-builtins crate) - #57740 (Use `to_ne_bytes` for converting IPv4Addr to octets) - #57926 (Tiny expansion to docs for `core::convert`.) - #58157 (Add Cargo.lock automatically adding message) - #58203 (rustdoc: display sugared return types for async functions) - #58243 (Add trait alias support in rustdoc) - #58262 (Add #[must_use] message to Fn* traits) - #58295 (std::sys::unix::stdio: explain why we do into_raw) - #58297 (Cleanup JS a bit) - #58317 (Some writing improvement, conciseness of intro) - #58324 (miri: give non-generic functions a stable address) - #58332 (operand-to-place copies should never be overlapping) - #58345 (When there are multiple filenames, print what got interpreted as filenames) - #58346 (rpath computation: explain why we pop()) - #58350 (Fix failing tidy (line endings on Windows)) - #58352 (miri value visitor: use `?` in macro) Failed merges: r? @ghost
2019-02-10Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=ManishearthGuillaume Gomez-0/+21
Add trait alias support in rustdoc Fixes #57595. r? @QuietMisdreavus
2019-02-10Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomezGuillaume Gomez-7/+28
rustdoc: display sugared return types for async functions Fixes #58027.
2019-02-10Auto merge of #58129 - RalfJung:maybe-uninit, r=cramertjbors-3/+6
MaybeUninit: some docs, rename into_inner -> into_initialized, return &mut from set
2019-02-10Add test for MIR printing changesMatthew Jasper-0/+66
2019-02-10Remove spotlight for trait aliases and fix nitsGuillaume Gomez-1/+1
2019-02-10Add trait alias support in rustdocGuillaume Gomez-0/+21
2019-02-10Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoeristerbors-155/+155
Add a query type which is always marked as red if it runs This is useful for queries which produce results which are very likely to change if their inputs do. I also expect this to be useful for end to end queries because 1) we don't need `HashStable` impls and 2) we avoid the overhead of hashing the result of large results like the AST or the HIR map. r? @michaelwoerister
2019-02-09Auto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obkbors-49/+36
Deduplicate mismatched delimiter errors Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently. Second attempt at #54029, follow up to #53949. Fix #31528.
2019-02-09Remove rustdoc test which referenced unstable APIMatthias Einwag-10/+0
2019-02-09Auto merge of #57885 - arielb1:xform-probe, r=nikomatsakisbors-0/+349
Avoid committing to autoderef in object method probing This fixes the "leak" introduced in #57835 (see test for details, also apparently #54252 had no tests for the "leaks" that were fixed in it, so go ahead and add one). Maybe beta-nominating because regression, but I'm against landing things on beta we don't have to. r? @nikomatsakis
2019-02-09put back macro redirectGuillaume Gomez-1/+1
2019-02-09Auto merge of #57617 - mark-i-m:multiple-matcher-bindings, r=petrochenkovbors-32/+94
Error on duplicate matcher bindings fix #57593 This should not be merged without a crater run and maybe an FCP. Discussion is ongoing at #57593. TODO: - [x] write tests - [x] crater run - [x] ~maybe need edition gating?~ not for 1 regression /centril r? @petrochenkov
2019-02-08Remove trailing white-spacegnzlbg-1/+1
2019-02-08simd-saturating-arith test requires LLVM >= 8.0gnzlbg-3/+3
2019-02-08Auto merge of #58161 - davidtwco:issue-57960, r=arielb1bors-0/+39
Lower constant patterns with ascribed types. Fixes #57960. This PR fixes a bug introduced by #55937 which started checking user type annotations for associated type patterns. Where lowering a associated constant expression would previously return a `PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType` with a `PatternKind::Constant` inside, this PR unwraps that to access the constant pattern inside and behaves as before. r? @pnkfelix
2019-02-08Move simd intrinsic codegen tests into the simd-intrinsic subdirgnzlbg-0/+0
2019-02-08Add simd_saturating_{add,sub} intrinsicsgnzlbg-0/+830
2019-02-08review comments: (marginally) reduce memory consumtionEsteban Küber-1/+41
2019-02-08Use descriptive variant namevarkor-5/+5
2019-02-08Fix nll test outputEsteban Küber-1/+1
2019-02-08Don't shadow the provided `stringify!` macro in a wasm code size test caseNick Fitzgerald-23/+17
2019-02-08Use write_char for writing padding charactersNick Fitzgerald-1/+1
Removes some unsafe *and* saves almost half a kilobyte of code size.
2019-02-08Add a wasm code size test for stringifying numbersNick Fitzgerald-0/+49
2019-02-08unused_imports: update testsPietro Albini-29/+37
2019-02-08Allow a dirty MirBuilt for make_extern and make_method_externJohn Kåre Alsaker-2/+2
2019-02-08Auto merge of #58191 - varkor:const-generics-ast, r=petrochenkovbors-391/+497
Add const generics to the AST This is mostly split out from https://github.com/rust-lang/rust/pull/53645 in an effort to make progress merging const generics piecewise instead of in one go. cc @yodaldevoid, @petrochenkov r? @eddyb
2019-02-08Update testsJohn Kåre Alsaker-153/+153
2019-02-07Add test for type mismatch on first match armEsteban Küber-0/+58
2019-02-07Suggest removing parentheses surrounding lifetimesIgor Sadikov-4/+4
2019-02-07update testMark Mansi-23/+27
2019-02-07Make it an incompatibility lint for nowMark Mansi-46/+35
2019-02-07add a testmark-0/+69
2019-02-07fix existing testsmark-32/+32
2019-02-07Refactor const saturating intrinsics emulation and add unstable feature ↵Patrick McCarter-0/+2
attribute #58030