Tomasz Miąsko
045fdd9fa9
Use build-pass in ui tests where appropriate
2019-11-04 16:03:46 +01:00
Tyler Mandry
b7416348c8
Rollup merge of #65914 - estebank:type-alias-bounds-sugg, r=davidtwco
...
Use structured suggestion for unnecessary bounds in type aliases
2019-11-01 11:20:15 -07:00
Guillaume Gomez
9869e5b969
Change E0741 into E0742
2019-10-29 13:59:40 +01:00
Guillaume Gomez
6c7fe5a94e
Update ui tests
2019-10-29 13:56:19 +01:00
Esteban Küber
58b67c8811
Use structured suggestion for unnecessary bounds in type aliases
2019-10-28 16:58:27 -07:00
bors
8d78bf6b27
Auto merge of #65421 - estebank:variants, r=petrochenkov
...
Point at local similarly named element and tweak references to variants
Partially address #65386 .
2019-10-28 13:41:13 +00:00
Esteban Küber
b26ddb8af3
Point at local similarly named element and tweak references to variants
...
Point at the span for the definition of ADTs internal to the current
crate.
Look at the leading char of the ident to determine whether we're
expecting a likely fn or any of a fn, a tuple struct or a tuple variant.
Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27 11:50:43 -07:00
Esteban Küber
b579c5a2d6
Fix rebase
2019-10-26 15:34:28 -07:00
Esteban Küber
93bb780e38
review comments and tweaks
2019-10-26 15:26:08 -07:00
Esteban Küber
0baf61bfdb
Increase spacing for suggestions in diagnostics
...
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00
Guillaume Gomez
7d357fbffd
update ui tests
2019-10-16 13:56:14 +02:00
Dan Aloni
9d11bda8dd
resolve: shorten wording on private constructor error
2019-10-11 22:18:07 +03:00
Dan Aloni
7140c024c2
resolve: fix error title regarding private constructors
...
The constructor is private, not the type.
Idea credit to @petrochenkov, discussed at #65153
2019-10-11 18:09:23 +03:00
Vadim Petrochenkov
48f8beddd8
resolve: Use field spans for reporting the private constructor error
2019-10-09 18:07:22 +03:00
Sam Radhakrishan
378c32bc90
Fix test.
2019-08-30 00:57:20 +05:30
Esteban Küber
b9865d9e3f
Mention that tuple structs are private if their fields are
2019-08-09 12:52:02 -07:00
Kornel
3bfb4c3c25
Don't recommend extern crate syntax
2019-08-05 18:19:01 +01:00
varkor
c28ce3e4ca
Replace "existential" by "opaque"
2019-08-02 02:44:36 +01:00
varkor
fc48541ab1
Update syntax in existing tests
2019-08-02 02:44:35 +01:00
Vadim Petrochenkov
5486cc69bd
tests: Move run-pass tests with naming conflicts to ui
2019-07-27 18:56:17 +03:00
Vadim Petrochenkov
9be35f82c1
tests: Move run-pass tests without naming conflicts to ui
2019-07-27 18:56:16 +03:00
Samy Kacimi
e5e1397adb
normalize use of backticks in compiler messages for librustc/lint
...
https://github.com/rust-lang/rust/issues/60532
2019-07-17 22:49:48 +02:00
Yuki Okushi
c004451a20
Migrate compile-pass annotations to build-pass
2019-07-03 06:30:28 +09:00
memoryruins
eb4580a570
Update ui test suite to use dyn
2019-05-29 00:57:31 -04:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
Aaron Hill
21491dc701
Properly parse '--extern-private' with name and path
2019-04-14 00:37:25 -04:00
Eduard-Mihai Burtescu
3e1cef7007
rustc: pass Option<&Substs> and Namespace around in ty::item_path.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
1c2a3c5d79
rustc: support impl's in PrintCx::parameterized.
2019-03-15 09:26:13 +02:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
John Kåre Alsaker
d5bb71c9f1
Split up privacy checking so privacy_access_levels only does computations required for AccessLevels
2019-03-06 04:47:03 +01:00
bors
ad433894ab
Auto merge of #58010 - Zoxc:parallel-passes, r=michaelwoerister
...
Move privacy checking later in the pipeline and make some passes run in parallel
r? @michaelwoerister
2019-02-07 09:49:08 +00:00
Aaron Hill
541d315313
Update tests for future-compat warning removal
2019-02-01 09:43:57 -05:00
Aaron Hill
a05bfc6aeb
Test allowing individual struct field
2019-02-01 09:43:57 -05:00
Aaron Hill
48ec29d38e
Replace --extern-public with --extern-private
2019-02-01 09:43:57 -05:00
Aaron Hill
b29a21fbae
Remove feature from test
2019-02-01 09:43:57 -05:00
Aaron Hill
3fa36471e8
Rename external_private_dependency to exported_private_dependencies
2019-02-01 09:43:56 -05:00
Aaron Hill
bc2221f7b6
Add test for 'std' crate being public
2019-02-01 09:43:56 -05:00
Aaron Hill
d60214cdf7
Clippy fixes, rename stuff to match RFC
2019-02-01 09:43:56 -05:00
Aaron Hill
12f9b796ff
Improve UI tests
2019-02-01 09:43:56 -05:00
Aaron Hill
93d872dbc8
Add UI test
2019-02-01 09:43:56 -05:00
John Kåre Alsaker
38bcd4b42a
Move privacy checking later in the pipeline and make some passes run in parallel
2019-01-30 21:19:02 +01:00
Vadim Petrochenkov
d34b3e9bf2
privacy: Account for associated existential types
2019-01-18 01:06:08 +03:00
Mazdak Farrokhzad
4112aef5f7
Rollup merge of #57556 - petrochenkov:privexist, r=arielb1
...
privacy: Fix private-in-public check for existential types
Fixes https://github.com/rust-lang/rust/issues/53546 (regression from https://github.com/rust-lang/rust/pull/56878 )
r? @arielb1
2019-01-14 11:31:54 +01:00
Vadim Petrochenkov
f8028b0b6c
privacy: Fix private-in-public check for existential types
2019-01-13 00:41:11 +03:00
Andy Russell
404ad50d14
clarify resolve typo suggestion
...
Include the kind of the binding that we're suggesting, and use a
structured suggestion.
2019-01-09 14:11:00 -05:00
Vadim Petrochenkov
9503c56ff7
privacy: Mark everything in a header of a reachable impl as reachable
2019-01-05 23:46:19 +03:00
Vadim Petrochenkov
67713f5b7f
privacy: Fix regression in impl reachability
2019-01-05 23:46:19 +03:00
Vadim Petrochenkov
60d1fa70bb
Address review comments
...
Say "trait" instead of "type" in diagnostics for `dyn Trait`
2019-01-01 01:39:55 +03:00
Vadim Petrochenkov
8b1c424b6d
privacy: Use common DefId visiting infra for all privacy visitors
2019-01-01 01:39:55 +03:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00