about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-12-11Update ub-uninhabit testsvarkor-5/+5
2018-12-11Use unions for uninhabitedness checking rather than mem::transmutevarkor-25/+17
2018-12-11Update const eval uninhabited messagesvarkor-5/+7
2018-12-11Update uninhabited matches testsvarkor-27/+3
2018-12-11Check for uninhabitedness instead of nevervarkor-39/+8
2018-12-11Fix irrefutable matches on integer rangesvarkor-0/+8
2018-12-11Make `const unsafe fn` bodies `unsafe`Oliver Scherer-98/+26
2018-12-11Diagnostics improvement!Oliver Scherer-1/+2
2018-12-10fix intra-link resolution spans in block commentsAndy Russell-24/+163
This commit improves the calculation of code spans for intra-doc resolution failures. All sugared doc comments should now have the correct spans, including those where the comment is longer than the docs. It also fixes an issue where the spans were calculated incorrectly for certain unsugared doc comments. The diagnostic will now always use the span of the attributes, as originally intended. Fixes #55964.
2018-12-10Rollup merge of #56661 - aelred:issue-55846, r=Mark-SimulacrumGuillaume Gomez-0/+39
Add regression test for ICE Fixes #55846 with a minimal (or as best as I can manage) test case. I tested this against 1.30.0 manually to confirm it crashes. The issue seemed to have something to do with associated types. It's possible someone with more knowledge can shrink the test case down further, or make it clearer.
2018-12-10Rollup merge of #56641 - ↵Guillaume Gomez-5/+41
GuillaumeGomez:span-trait-method-invalid-nb-parameters, r=estebank fix span for invalid number of parameters in trait method Fixes #56582.
2018-12-10Rollup merge of #56491 - euclio:assert-error, r=estebankGuillaume Gomez-0/+20
emit error with span for empty asserts Fixes #55547.
2018-12-10add a lint group for lints emitted by rustdocQuietMisdreavus-0/+78
2018-12-10Remove dependency on shell32.dll #56510Michael Howell-1/+1
2018-12-10improve diagnostics for invalid external docsAndy Russell-10/+23
2018-12-10reject invalid external doc attributesAndy Russell-1/+45
Also, provide a suggestion for the correct syntax.
2018-12-10Add a few more tests of edge casesOliver Scherer-0/+37
2018-12-10Add trailing newlineFelix Chapman-1/+1
2018-12-10Add test to check library traits have #[must_use] attributeFelix Chapman-0/+47
2018-12-10Add regression test for issue #55846Felix Chapman-0/+39
2018-12-09Add lint for items deprecated in futureaheart-0/+26
2018-12-09Fix rebase + Add missing `// force-host`Vadim Petrochenkov-3/+4
2018-12-09Move some tests from ui-fulldeps to uiVadim Petrochenkov-15/+0
2018-12-09Move compile-fail-fulldeps tests to ui-fulldepsVadim Petrochenkov-99/+444
2018-12-09Move former compile-fail-fulldeps tests to uiVadim Petrochenkov-46/+662
2018-12-09Bump minimum required LLVM version to 6.0Nikita Popov-13/+2
2018-12-08Auto merge of #56616 - estebank:issue-56539, r=davidtwcobors-0/+7
Encode `TraitAlias` as if they were `Trait` Fix #56539.
2018-12-08fix span for invalid number of parameters in trait methodGuillaume Gomez-5/+41
2018-12-08rustdoc: Fix local reexports of proc macrosOliver Middleton-0/+13
Filter out `ProcMacroStub`s to avoid an ICE during cleaning. Also add proc macros to `cache().paths` so it can generate links.
2018-12-08Rollup merge of #56620 - petrochenkov:noclutter, r=estebankMazdak Farrokhzad-21/+7
resolve: Reduce some clutter in import ambiguity errors Noticed in https://www.reddit.com/r/rust/comments/a3pyrw/announcing_rust_131_and_rust_2018/eb8alhi/. The first error is distracting, but unnecessary, it's a *consequence* of the ambiguity error and appears because one of the ambiguous `actix` modules (unsurprisingly) doesn't have the expected name in it.
2018-12-08Rollup merge of #56248 - estebank:suggest-bare-pub, r=petrochenkovMazdak Farrokhzad-11/+76
Suggest an appropriate token when encountering `pub Ident<'a>` Fix #55403. Follow up to #45997.
2018-12-08Fixed nll stderr file.Alexander Regueiro-1/+1
2018-12-08resolve: Reduce some clutter in import ambiguity errorsVadim Petrochenkov-21/+7
2018-12-07Fixed line numbers in stderr file.Alexander Regueiro-2/+2
2018-12-07Fixed test stderr files.Alexander Regueiro-160/+86
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-228/+278
2018-12-07Encode `TraitAlias` as if they were `Trait`Esteban Küber-0/+7
2018-12-07Auto merge of #56502 - Zoxc:hir-func, r=eddybbors-2/+2
Use a function to access the Hir map to be able to turn it into a query later r? @eddyb
2018-12-07Auto merge of #56460 - davidtwco:issue-55850, r=pnkfelixbors-0/+79
Fix ICE with generators and NLL Fix #55850. This PR stops an ICE in #55850 by not panicking when a region cannot be named. However, this PR does not (yet) fix the underlying issue that the correct name for the test case provided for the issue (in this instance, `'a`) was not found. This PR also lays a little bit of groundwork by categorizing yields separately from returns so that region naming can be specialized for this case. r? @pnkfelix
2018-12-07Auto merge of #56566 - ljedrz:fix_clippy_errors, r=cramertjbors-1/+1
codegen_utils, driver: fix clippy errors - remove a superfluous conversion - remove an explicit `return` - rename `MetadataOnlyCodegenBackend::new` to `::boxed` - single-arm `match` > `if let`
2018-12-07Change to give a help messageJohn Ginger-7/+11
2018-12-07Fix ICE in region naming.David Wood-0/+79
This commit puts a fix in place for the ICE in region naming code so that it doesn't break the compiler. However, this results in the diagnostic being poorer as the borrow explanation that was causing the ICE is not being added - this should be fixed as a follow-up.
2018-12-07Add suggestion for underscore binding fix.David Wood-2/+6
This commit emits a suggestion for adding an underscore binding to arguments in trait methods that previously did not have a argument name specified.
2018-12-07Add context for RFC 1685 change in 2018 edition.David Wood-0/+4
This commit adds a note providing context for the change to argument names being required in the 2018 edition for trait methods.
2018-12-07Auto merge of #54271 - petrochenkov:nolegder, r=eddyb,alexcrichtonbors-51/+21
Unsupport `#[derive(Trait)]` sugar for `#[derive_Trait]` legacy plugin attributes This is a long deprecated unstable feature that doesn't mesh well with regular resolution/expansion. How to fix broken code: - The recommended way is to migrate to stable procedural macros - derives or attributes (https://doc.rust-lang.org/nightly/book/first-edition/procedural-macros.html). - If that's not possible right now for some reason, you can keep code working with a simple mechanical replacement `#[derive(Legacy)]` -> `#[derive_Legacy]`. Closes https://github.com/rust-lang/rust/issues/29644 r? @ghost
2018-12-07Unsupport `#[derive(Trait)]` sugar for `#[derive_Trait]` legacy plugin ↵Vadim Petrochenkov-51/+21
attributes
2018-12-06Auto merge of #55318 - Aaron1011:fix/final-auto-trait-resolve, r=nikomatsakisbors-0/+71
Ensure that Rustdoc discovers all necessary auto trait bounds Fixes #50159 This commit makes several improvements to AutoTraitFinder: * Call infcx.resolve_type_vars_if_possible before processing new predicates. This ensures that we eliminate inference variables wherever possible. * Process all nested obligations we get from a vtable, not just ones with depth=1. * The 'depth=1' check was a hack to work around issues processing certain predicates. The other changes in this commit allow us to properly process all predicates that we encounter, so the check is no longer necessary, * Ensure that we only display predicates *without* inference variables to the user, and only attempt to unify predicates that *have* an inference variable as their type. Additionally, the internal helper method is_of_param now operates directly on a type, rather than taking a Substs. This allows us to use the 'self_ty' method, rather than directly dealing with Substs.
2018-12-06codegen_utils, driver: fix clippy errorsljedrz-1/+1
2018-12-06Auto merge of #56282 - qnighy:additional-sizedness-fix, r=nikomatsakisbors-0/+11
Fix #56237: normalize type before deferred sizedness checking. This seems to fix #56237, which was introduced by #56045. I don't thoroughly understand how this works, but the problem seemed to be a lack of normalization. r? @cramertj
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-2/+2