summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2018-07-26For some reason, on my linux box, using `-Zverbose` here is causing a linker ↵Felix S. Klock II-1/+1
failure. Rather than try to work out what was happening, I just removed the flag because I see no reason for it to be on this test.
2018-07-26Regression test for issue.Felix S. Klock II-0/+88
2018-06-28actually fix testmark-1/+1
2018-06-28fix testmark-4/+7
2018-06-28Prohibit global_allocator in submodules for nowMark Mansi-1/+9
- we need to figure out hygiene first - change the test to check that the prohibition works with a good error msg - leaves some comments and debugging code - leaves some of our supposed fixes
2018-06-28Attempt to fix hygiene for global_allocatorMark Mansi-0/+37
2018-06-27use `pat_ty_adjusted` from `expr_use_visitor` to type of argumentsNiko Matsakis-0/+42
2018-06-27Don't use `ParamEnv::reveal_all()` if there is a real one availableOliver Schneider-0/+28
2018-06-20Auto merge of #51638 - spastorino:diagnostic-suggest-drop-in-reverse, ↵bors-0/+48
r=nikomatsakis Diagnostic suggest drop in reverse Closes #51195
2018-06-19Suggest that values are dropped in the opposite order they are definedSantiago Pastorino-0/+48
2018-06-19Auto merge of #51639 - SimonSapin:missing-alloc, r=rkruppebors-0/+30
Update the error message for a missing global allocator Don’t mention `#[default_lib_allocator]` (which is an implementation detail irrelevant to most users) and instead suggest using `#[global_allocator]`, which is often the correct fix.
2018-06-19Update the error message for a missing global allocatorSimon Sapin-1/+1
Don’t mention `#[default_lib_allocator]` (which is an implementation detail irrelevant to most users) and instead suggest using `#[global_allocator]`, which is often the correct fix.
2018-06-19Add a UI test for the missing allocator error messageSimon Sapin-0/+30
2018-06-19Add unit test for case that didn't seem to be covered in existing UI testsFelix S. Klock II-0/+46
(since I made this mistake at first but the tests didn't catch it): we should not suggest adding `mut` to a reassigned `ref` or `ref mut` binding. (The Rust language, since at least 1.0, does not have `mut ref mut` or `ref mut mut` etc.)
2018-06-19Update the existing UI tests to reflect diagnostic changes in NLL.Felix S. Klock II-5/+38
2018-06-19NLL: Updates to diagnostic output in `test/ui`.Felix S. Klock II-103/+163
2018-06-18Auto merge of #51248 - fabric-and-ink:newtype_index_debrujin, r=nikomatsakisbors-15/+15
Declare DebruijnIndex via newtype_index macro Part of #49887 Declare `DebruijnIndex` via the `newtype_index` macro.
2018-06-18Auto merge of #51460 - nikomatsakis:nll-perf-examination-refactor-1, r=pnkfelixbors-8/+6
Improve memoization and refactor NLL type check I have a big branch that is refactoring NLL type check with the goal of introducing canonicalization-based memoization for all of the operations it does. This PR contains an initial prefix of that branch which, I believe, stands alone. It does introduce a few smaller optimizations of its own: - Skip operations that are trivially a no-op - Cache the results of the dropck-outlives computations done by liveness - Skip resetting unifications if nothing changed r? @pnkfelix
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-111/+211
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-17test: Ignore some problematic tests on powerpc and powerpc64*John Paul Adrian Glaubitz-8/+12
2018-06-16Auto merge of #51562 - SimonSapin:transparent, r=cramertjbors-26/+1
Stabilize #[repr(transparent)] Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-14Fix typo DebrujinIndex -> DebruijnIndexFabian Drinck-15/+15
2018-06-14Add DEBUG_FORMAT for DebruijnIndexFabian Drinck-15/+15
2018-06-14Declare DebruijnIndex via newtype_index macroFabian Drinck-15/+15
2018-06-13Removed various update-reference and update-all-references scriptsChris Cesare-79/+0
2018-06-12Stabilize #[repr(transparent)]Simon Sapin-26/+1
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-11Stabilize the #[global_allocator] attributeSimon Sapin-25/+0
Fixes https://github.com/rust-lang/rust/issues/27389
2018-06-10Auto merge of #51475 - GuillaumeGomez:fix-error-codes, r=Manishearthbors-4/+4
Fix error codes
2018-06-10Fix error codesGuillaume Gomez-4/+4
2018-06-10Update testsSeiichi Uchida-6/+6
2018-06-10Include parens to type parameterSeiichi Uchida-6/+6
2018-06-09update some tests affected by some of the prior tweaksNiko Matsakis-8/+6
2018-06-09Auto merge of #51042 - matthewjasper:reenable-trivial-bounds, r=nikomatsakisbors-40/+240
Re-enable trivial bounds cc #50825 Remove implementations from global bounds in winnowing when there is ambiguity. This results in the reverse of #24066 happening sometimes. I'm not sure if anything can be done about that though. cc #48214 r? @nikomatsakis
2018-06-08Auto merge of #51448 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-217/+568
Rollup of 13 pull requests Successful merges: - #50143 (Add deprecation lint for duplicated `macro_export`s) - #51099 (Fix Issue 38777) - #51276 (Dedup auto traits in trait objects.) - #51298 (Stabilize unit tests with non-`()` return type) - #51360 (Suggest parentheses when a struct literal needs them) - #51391 (Use spans pointing at the inside of a rustdoc attribute) - #51394 (Use scope tree depths to speed up `nearest_common_ancestor`.) - #51396 (Make the size of Option<NonZero*> a documented guarantee.) - #51401 (Warn on `repr` without hints) - #51412 (Avoid useless Vec clones in pending_obligations().) - #51427 (compiletest: autoremove duplicate .nll.* files (#51204)) - #51436 (Do not require stage 2 compiler for rustdoc) - #51437 (rustbuild: generate full list of dependencies for metadata) Failed merges:
2018-06-08Rollup merge of #51401 - estebank:warn-repr, r=cramertjMark Rousskov-201/+316
Warn on `repr` without hints Fix #51376.
2018-06-08Rollup merge of #51360 - estebank:braces-around-literal-structs, r=nikomatsakisMark Rousskov-2/+60
Suggest parentheses when a struct literal needs them When writing a struct literal in an expression that expects a block to be started afterwards (like an `if` statement), do not suggest using the same struct literal: ``` did you mean `S { /* fields * /}`? ``` Instead, suggest surrounding the expression with parentheses: ``` did you mean `(S { /* fields * /})`? ``` Fix #47360, #50090. Leaving #42982 open to come back to this problem with a better solution.
2018-06-08Rollup merge of #51298 - Dylan-DPC:stabilise/termination-test, r=nikomatsakisMark Rousskov-6/+2
Stabilize unit tests with non-`()` return type References #48854
2018-06-08Rollup merge of #51276 - Havvy:dyn-trait-send-send, r=nikomatsakisMark Rousskov-0/+41
Dedup auto traits in trait objects. Fixes #47010 Note that the test file `run-pass/trait-object-auto-dedup.rs` passes before and after this change. It's the `ui` test that changed from compiling to not compiling. Which does make this a breaking change, but I cannot imagine anybody actually being broken by it.
2018-06-08Rollup merge of #51099 - Crazycolorz5:expectedcloseparen, r=estebankMark Rousskov-8/+111
Fix Issue 38777 When looking through for a closing bracket in the loop condition, adds them to expecteds. https://github.com/rust-lang/rust/issues/38777
2018-06-08Rollup merge of #50143 - petrochenkov:mexuniq, r=nikomatsakisMark Rousskov-0/+38
Add deprecation lint for duplicated `macro_export`s cc https://github.com/rust-lang/rust/issues/35896#issuecomment-381370556
2018-06-08Built, corrected, and run tests. Added expected stderr files.Crazycolorz5-0/+42
2018-06-08Auto merge of #51247 - ↵bors-38/+68
pnkfelix:issue-51190-report-type-moved-from-behind-borrow, r=nikomatsakis NLL: report type moved from behind borrow of array/slice When NLL has illegal move due to borrowed content in an array or slice, provide feedback about why the move wasn't a copy. Drive by: While comparing the resulting `.nll.stderr` files to their old borrowck variants, I noticed that the test for borrowck-vec-pattern-nesting.rs was not signaling some errors under NLL due to the test assuming lexical lifetimes. So I fixed that too. Fix #51190
2018-06-08Normalize associated types when checking global boundsMatthew Jasper-0/+40
2018-06-08Fix a typoMatthew Jasper-2/+2
2018-06-08 Test that object bounds are preferred over global where clause boundsMatthew Jasper-0/+28
2018-06-08Add tests for associated types and inconsistent boundsMatthew Jasper-0/+166
2018-06-08Reenable trivial boundsMatthew Jasper-38/+4
Removes extra global bounds at the winnowing stage rather than when normalizing the param_env. This avoids breaking inference when there is a global bound.
2018-06-08Rollup merge of #51417 - pietroalbini:revert-49719, r=nikomatsakiskennytm-44/+66
Revert #49719 This also needs to be backported into beta. Fixes #51416. r? @nikomatsakis
2018-06-08Rollup merge of #51283 - ↵kennytm-0/+84
kennytm:fix-51279-preempt-the-warning-song-and-dance, r=nikomatsakis Deny #[cfg] and #[cfg_attr] on generic parameters. Fix #51279. Attributes on generic parameters are not expanded, meaning `#[cfg]`, `#[cfg_attr]` and attribute proc macros are entirely ignored on them. This PR makes using the first two attributes an error, because if they are correctly expanded will affect the AST and change code behavior. I'm beta-nominating this, because generic parameter attributes are stabilizing in 1.27, and if we did not reserve their usage, we may never be able to repurpose the meaning of these attributes in the Rust 2015 edition.
2018-06-07Add existential type definitonsOliver Schneider-111/+211