about summary refs log tree commit diff
path: root/src/test/ui/static
AgeCommit message (Collapse)AuthorLines
2021-02-24Add suggestion for iterators in iteratorsKevin Per-0/+2
2021-01-13Update tests for extern block lintingMark Rousskov-3/+3
2020-09-29Bless testsDylan MacKenzie-12/+2
2020-09-02pretty: trim paths of unique symbolsDan Aloni-2/+2
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-06-20update testsChristian Poveda-7/+24
2020-05-04Suggest to add missing feature when using gated const featuresmibac138-0/+2
2020-04-17Add test for issue-24843Yuki Okushi-0/+9
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-03-22Use more targetted span for error labelEsteban Küber-2/+2
2020-03-22Normalize wording of privacy access labelsEsteban Küber-3/+3
2020-03-12update testsMark Mansi-2/+2
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-2/+14
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-2/+2
2019-10-14Rollup merge of #65292 - JohnTitor:add-backticks, r=varkor,CentrilMazdak Farrokhzad-1/+1
Print lifetimes with backticks Fixes #65287 r? @varkor
2019-10-11Print lifetimes with backticksYuki Okushi-1/+1
2019-10-11Add long error explanation for E0697Yuki Okushi-0/+1
2019-09-30update testsGuillaume Gomez-1/+2
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-2/+2
2019-04-22update tests for migrate mode by defaultMatthew Jasper-239/+62
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-7/+4
2019-03-11Update NLL testsVadim Petrochenkov-4/+4
2019-03-11Update testsVadim Petrochenkov-19/+19
2019-01-25Add a compile-fail test for `Drop` in constants in the presence of `Option`sOliver Scherer-2/+34
2019-01-09Stabilize `let` bindings and destructuring in constants and const fnOliver Scherer-2/+10
2018-12-25Remove licensesMark Rousskov-246/+56
2018-11-18resolve: Tweak some articles in ambiguity diagnosticsVadim Petrochenkov-2/+2
2018-10-29Don't emit cannot move errors twice in migrate modeMatthew Jasper-18/+0
2018-10-28Rollup merge of #55257 - mjbshaw:static, r=oli-obkkennytm-0/+37
Allow extern statics with an extern type Fixes #55239
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-4/+4
2018-10-21Allow extern statics with an extern typeMichael Bradshaw-0/+37
Fixes #55239
2018-10-21Use new region infer errors for explaining borrowsMatthew Jasper-65/+44
This gives at least some explanation for why a borrow is expected to last for a certain free region. Also: * Reports E0373: "closure may outlive the current function" with NLL. * Special cases the case of returning a reference to (or value referencing) a local variable or temporary (E0515). * Special case assigning a reference to a local variable in a closure to a captured variable.
2018-10-17Update output for borrowck=migrate compare mode.David Wood-0/+18
This commit updates the test output for the updated NLL compare mode that uses `-Z borrowck=migrate` rather than `-Z borrowck=mir`. The previous commit changes `compiletest` and this commit only updates `.nll.stderr` files.
2018-09-25Update E0714 to E0716 in tests outputMikhail Modin-10/+10
2018-09-25add "temporary value dropped while borrowed" errorMikhail Modin-13/+87
Issue #54131
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+959