about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-07-24Adjust tests for method disambiguation helpIlija Tovilo-0/+2
2019-07-23Rollup merge of #62791 - estebank:type-ascription, r=petrochenkovMark Rousskov-16/+13
Handle more cases of typos misinterpreted as type ascription Fix #60933, #54516. CC #47666, #34255, #48016.
2019-07-22Rollup merge of #62810 - ↵Mazdak Farrokhzad-3/+3
fakenine:normalize_use_of_backticks_compiler_messages_p10, r=Centril normalize use of backticks in compiler messages for librustc_lint https://github.com/rust-lang/rust/issues/60532
2019-07-22Fix or ignore regressed testsVadim Petrochenkov-0/+24
2019-07-22Ignore test issue-45696-scribble-on-boxed-borrow.rs in Polonius compare modelqd-7/+8
Once again, the difference is in the test construction, it is ignored in compare-mode NLL and tested manually with revisions, and fails because the `migrate` revision is ran with `-Zpolonius`. There is no actual difference in the errors output by NLLs and Polonius.
2019-07-21normalize use of backticks in compiler messages for librustc_lintSamy Kacimi-3/+3
2019-07-19Handle more cases of typos misinterpreted as type ascriptionEsteban Küber-16/+13
2019-07-19Auto merge of #62684 - petrochenkov:scopevisit, r=davidtwcobors-27/+13
resolve: Improve candidate search for unresolved macro suggestions Use same scope visiting machinery for both collecting suggestion candidates and actually resolving the names. The PR is better read in per-commit fashion with whitespace changes ignored (the first commit in particular moves some code around). This should be the last pre-requisite for https://github.com/rust-lang/rust/pull/62086. r? @davidtwco
2019-07-18Suggest trait bound on type parameter when it is unconstrainedEsteban Küber-3/+5
Given ``` mented on Jan 26, 2015 • trait Foo { fn method(&self) {} } fn call_method<T>(x: &T) { x.method() } ``` suggest constraining `T` with `Foo`.
2019-07-18Rollup merge of #62764 - ↵Mark Rousskov-16/+16
fakenine:normalize_use_of_backticks_compiler_messages_p7, r=alexreg normalize use of backticks in compiler messages for librustc/lint https://github.com/rust-lang/rust/issues/60532
2019-07-18Rollup merge of #62712 - limira:self-type-help, r=estebankMark Rousskov-1/+1
Update the help message on error for self type Fix #62609
2019-07-18Rollup merge of #62696 - chocol4te:fix_#62194, r=estebankMark Rousskov-2/+0
Check that trait is exported or public before adding hint Closes #62194. This PR checks the `AccessLevels` of a trait to check whether adding the intercrate ambiguity hint is valid or not. I am unsure of both the use of `.unwrap()` as well as removing hints for [downstream *and* [upstream](https://github.com/rust-lang/rust/blob/92b0f52584c9375505ecdefdd7855b93a5919d51/src/librustc/traits/select.rs#L112-L142).
2019-07-18resolve: Attempt to resolve unresolved paths in macro namespaceVadim Petrochenkov-5/+5
2019-07-18resolve: Visit all scopes to collect suggestion candidates for unresolved macrosVadim Petrochenkov-1/+1
2019-07-18resolve: Use `feature(custom_attribute)` fallback only if the feature is enabledVadim Petrochenkov-23/+9
Normally `#![feature(...)]` shouldn't change behavior, but custom attributes in particular are in the process of retirement, and we should not produce a message telling to enable them. It also helps with unifying diagnostics for unresolved macros.
2019-07-18Replace deref with as_derefYuki Okushi-7/+7
2019-07-18renamed `inner_deref` feature's `deref*()` methods `as_deref*()` as per ↵Brad Gibson-72/+144
discussion https://github.com/rust-lang/rust/issues/50264
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-16/+16
https://github.com/rust-lang/rust/issues/60532
2019-07-16Rollup merge of #62703 - ↵Mark Rousskov-2/+2
fakenine:normalize_use_of_backticks_compiler_messages_p6, r=eddyb normalize use of backticks in compiler messages for libsyntax/parse https://github.com/rust-lang/rust/issues/60532
2019-07-16Check that trait is exported or public before adding intercrate ambiguity hintFerdia McKeogh-2/+0
2019-07-16Update the help message on error for self typeLimira-1/+1
2019-07-16normalize use of backticks in compiler messages for libsyntax/parseSamy Kacimi-2/+2
https://github.com/rust-lang/rust/issues/60532
2019-07-14Add info about undefined behavior to as_ref suggestionsnathanwhit-0/+1
2019-07-14Auto merge of #62638 - estebank:issue-62554, r=petrochenkovbors-1/+36
Use snippet instead of pprinting statement Fix #62554.
2019-07-13Auto merge of #62468 - rust-lang:mutable-overloaded-operators, r=estebankbors-2/+2
Improve diagnostics for invalid mutation through overloaded operators Closes #58864 Closes #52941 Closes #57839
2019-07-12add testsEsteban Küber-0/+35
2019-07-12Use snippet instead of pprinting statementEsteban Küber-1/+1
2019-07-12Rollup merge of #62623 - ↵Mazdak Farrokhzad-2/+6
pnkfelix:issue-62614-downgrade-indirect-structural-match-lint-to-allow, r=zackmdavis downgrade indirect_structural_match lint to allow This is a short-term band-aid for the regression aspect of #62614.
2019-07-12Rollup merge of #62607 - estebank:this-mem-is-out-of-control, r=petrochenkovMazdak Farrokhzad-0/+13
Correctly break out of recovery loop Fix #61858.
2019-07-12Rollup merge of #62578 - JohnTitor:add-test-for-49919, r=alexcrichtonMazdak Farrokhzad-0/+16
Add test for #49919 Closes #49919
2019-07-12add test caseEsteban Küber-0/+13
2019-07-12Turn `indirect_structural_match` lint on explicitly in ui tests.Felix S. Klock II-2/+6
2019-07-11Auto merge of #62503 - pnkfelix:dont-recur-infiitely-from-print-def-path, ↵bors-0/+16
r=eddyb Dont recur infinitely from print_def_path Fix #61711
2019-07-11Add test for #49919Yuki Okushi-0/+16
2019-07-10Auto merge of #62339 - ↵bors-0/+12
pnkfelix:issue-61188-use-visitor-for-structural-match-check, r=nikomatsakis use visitor for #[structural_match] check This changes the code so that we recur down the structure of a type of a const (rather than just inspecting at a shallow one or two levels) when we are looking to see if it has an ADT that did not derive `PartialEq` and `Eq`. Fix #61188 Fix #62307 Cc #62336
2019-07-09Rollup merge of #62526 - ↵Mazdak Farrokhzad-15/+15
fakenine:normalize_use_of_backticks_compiler_messages_p4, r=Centril normalize use of backticks in compiler messages for libsyntax/feature_gate.rs https://github.com/rust-lang/rust/issues/60532
2019-07-09Rollup merge of #62450 - nagisa:reclimit, r=pnkfelixMazdak Farrokhzad-13/+205
Raise the default recursion limit to 128 The previous limit of 64 is being (just) barely hit by genuine code out there, which is causing issues like https://github.com/rust-lang/rust/issues/62059 to rear their end. Ideally, we wouldn’t have such arbitrary limits at all, but while we do, it makes a lot of sense to just raise this limit whenever genuine use-cases end up hitting it. r? @pnkfelix Fixes https://github.com/rust-lang/rust/issues/62059
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-15/+15
https://github.com/rust-lang/rust/issues/60532
2019-07-08regression test.Felix S. Klock II-0/+16
2019-07-08Regression tests and updates to existing tests.Felix S. Klock II-0/+12
The regression tests explore: (direct | indirect | doubly-indirect | unsafe) x (embedded | param): where: embedded: `struct Wrapper(... NoDerive ...);` param: `struct Wrapper<X>(... X ...);` direct: `const A: Wrapper<...> = Wrapper(NoDerive);` indirect: `const A: & & Wrapper<...> = Wrapper(NoDerive)` doubly-indirect: `const A: & & Wrapper<...> = & & Wrapper(& & NoDerive)` unsafe: `const A: UnsafeWrap<...> = UnsafeWrap(std::ptr::null())`
2019-07-07Add help message for mutation though overloaded place operatorsMatthew Jasper-2/+2
2019-07-07Raise the default recursion limit to 128Simonas Kazlauskas-13/+205
2019-07-06normalize use of backticks/lowercase in compiler messages for librustc_mirSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532 r? @alexreg
2019-07-06Auto merge of #61988 - Centril:there-is-only-loop, r=matthewjasperbors-2/+14
[let_chains, 3/6] And then there was only Loop Here we remove `hir::ExprKind::While`. Instead, we desugar: `'label: while $cond $body` into: ```rust 'label: loop { match DropTemps($cond) { true => $body, _ => break, } } ``` Per https://github.com/rust-lang/rust/issues/53667#issuecomment-471583239. This is a follow up to https://github.com/rust-lang/rust/pull/59288 which did the same for `if` expressions. r? @matthewjasper
2019-07-06Make WhileTrue into an EarlyLintPass lint.Mazdak Farrokhzad-2/+14
2019-07-06Rollup merge of #62377 - wesleywiser:fix_62375, r=alexcrichtonMazdak Farrokhzad-0/+22
Add test for ICE #62375 Fixes #62375
2019-07-04Permit use of mem::uninitialized via allow(deprecated)Mark Rousskov-2/+3
2019-07-04Add test for ICE #62375Wesley Wiser-0/+22
Fixes #62375
2019-07-04Rollup merge of #62317 - JohnTitor:move-tests-to-build-pass, r=CentrilMazdak Farrokhzad-263/+263
Migrate `compile-pass` annotations to `build-pass` This is a part of #62277. As a first step, the `compile-pass` tests are migrated to `build-pass`. r? @cramertj cc @Centril
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-263/+263