Caio
41d9abd76c
Move some tests to more reasonable directories
2021-11-18 12:09:34 -03:00
Caio
ab5434f9b8
Move some tests to more reasonable directories
2021-11-14 14:38:42 -03:00
Caio
7fd15f0900
Move some tests to more reasonable directories
2021-11-06 15:35:20 -03:00
Oli Scherer
15f93473f1
Remove textual span from diagnostic string
2021-10-13 10:53:44 +00:00
est31
6550021124
Remove box syntax from most places in src/test outside of the issues dir
2021-09-26 04:07:44 +02:00
Caio
1b0186e9ec
Move some tests to more reasonable directories
2021-09-15 14:03:27 -03:00
Esteban Küber
0b8f192cfe
Use multispan suggestions more often
...
* Use more accurate span for `async move` suggestion
* Use more accurate span for deref suggestion
* Use `multipart_suggestion` more often
2021-07-30 09:26:31 -07:00
Esteban Küber
ba052bd8de
Various diagnostics clean ups/tweaks
...
* Always point at macros, including derive macros
* Point at non-local items that introduce a trait requirement
* On private associated item, point at definition
2021-07-19 08:43:35 -07:00
LeSeulArtichaut
0e1afc4501
Check for use of mutable/extern statics in THIR unsafeck
2021-05-21 19:51:53 +02:00
Ralf Jung
bafc51e01a
remove const_fn feature gate
2021-05-09 14:29:31 +02:00
Caio
4e6d6abc6a
Move some tests to more reasonable directories - 6
2021-04-17 18:53:54 -03:00
Kevin Per
a3db47ab6c
Add suggestion for iterators in iterators
2021-02-24 07:07:53 +00:00
Mark Rousskov
8a3edb1d66
Update tests for extern block linting
2021-01-13 07:49:16 -05:00
Dylan MacKenzie
51fbd555f0
Bless tests
2020-09-29 19:20:33 -07:00
Dan Aloni
07e7823c01
pretty: trim paths of unique symbols
...
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-09-02 22:26:37 +03:00
Christian Poveda
935516803e
update tests
2020-06-20 20:38:57 +00:00
mibac138
73867365a8
Suggest to add missing feature when using gated const features
2020-05-04 23:47:00 +02:00
Yuki Okushi
9fb3f55211
Add test for issue-24843
2020-04-17 06:16:14 +09:00
RoccoDev
b85c64c3ea
rustc: Add a warning count upon completion
2020-04-11 16:15:24 +02:00
Esteban Küber
9175940c92
Use more targetted span for error label
2020-03-22 16:09:42 -07:00
Esteban Küber
854b78fe22
Normalize wording of privacy access labels
2020-03-22 15:36:54 -07:00
Mark Mansi
b6518f0f66
update tests
2020-03-12 15:47:36 -05:00
Vadim Petrochenkov
28c3f6eb40
resolve: Point at the private item definitions in privacy errors
2020-01-16 21:59:11 +03:00
Esteban Küber
6f8f70624b
Surround types with backticks in type errors
2019-11-18 11:03:04 -08:00
Esteban Küber
83ffda5216
Specific labels when referring to "expected" and "found" types
2019-11-18 11:02:22 -08:00
Mazdak Farrokhzad
c2ae4ded4d
Rollup merge of #65292 - JohnTitor:add-backticks, r=varkor,Centril
...
Print lifetimes with backticks
Fixes #65287
r? @varkor
2019-10-14 07:36:54 +02:00
Yuki Okushi
2ae5e3421d
Print lifetimes with backticks
2019-10-11 16:08:53 +09:00
Yuki Okushi
e0ef7767ca
Add long error explanation for E0697
2019-10-11 08:23:33 +09:00
Guillaume Gomez
9f978b7f17
update tests
2019-09-30 13:47:12 +02:00
Yuki Okushi
c004451a20
Migrate compile-pass annotations to build-pass
2019-07-03 06:30:28 +09:00
Matthew Jasper
8ffa408059
Update tests for changes to cannot move errors
2019-06-03 14:55:29 +01:00
Matthew Jasper
8eef102270
update tests for migrate mode by default
2019-04-22 08:40:08 +01:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
Vadim Petrochenkov
c1cfacfb13
Update NLL tests
2019-03-11 23:18:35 +03:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Oliver Scherer
506393eaaf
Add a compile-fail test for Drop in constants in the presence of Options
2019-01-25 09:54:25 +01:00
Oliver Scherer
4b4fc63eb7
Stabilize let bindings and destructuring in constants and const fn
2019-01-09 10:20:12 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Vadim Petrochenkov
cfd762954b
resolve: Tweak some articles in ambiguity diagnostics
2018-11-18 13:57:03 +03:00
Matthew Jasper
42a541e0f1
Don't emit cannot move errors twice in migrate mode
2018-10-29 20:22:01 +00:00
kennytm
abf7243066
Rollup merge of #55257 - mjbshaw:static, r=oli-obk
...
Allow extern statics with an extern type
Fixes #55239
2018-10-28 21:38:12 +08:00
Vadim Petrochenkov
acdbd0643c
resolve: More precise spans for privacy errors
2018-10-28 02:56:12 +03:00
Michael Bradshaw
412ad9bf37
Allow extern statics with an extern type
...
Fixes #55239
2018-10-21 20:09:42 -07:00
Matthew Jasper
2a3969a3f7
Use new region infer errors for explaining borrows
...
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-21 12:35:00 +01:00
David Wood
539404b77d
Update output for borrowck=migrate compare mode.
...
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-10-17 00:57:32 +02:00
Mikhail Modin
2af199d58e
Update E0714 to E0716 in tests output
2018-09-25 16:24:20 +01:00
Mikhail Modin
5fc0b743d7
add "temporary value dropped while borrowed" error
...
Issue #54131
2018-09-25 15:23:56 +01:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00