about summary refs log tree commit diff
path: root/src/test/ui/privacy
AgeCommit message (Collapse)AuthorLines
2020-03-21Bless testsLeSeulArtichaut-6/+4
2020-03-17Rollup merge of #69811 - petrochenkov:privdiag2, r=estebankMazdak Farrokhzad-1/+6
resolve: Print import chains on privacy errors A part of https://github.com/rust-lang/rust/pull/67951 that doesn't require hacks. r? @estebank
2020-03-12update testsMark Mansi-22/+22
2020-03-11resolve: Print import chains on privacy errorsVadim Petrochenkov-1/+6
2020-02-21Implement RFC 2532 – Associated Type DefaultsJonas Schievink-99/+53
2020-02-10use `dyn Trait` more in testsMazdak Farrokhzad-28/+28
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-7/+163
2020-02-06rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.Eduard-Mihai Burtescu-7/+7
2020-01-31Auto merge of #68080 - varkor:declared-here, r=petrochenkovbors-3/+3
Address inconsistency in using "is" with "declared here" "is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout. r? @Centril
2020-01-26Suggest defining type parameter when appropriateEsteban Küber-0/+4
``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
2020-01-24Normalise notes with the/isvarkor-3/+3
2020-01-16resolve: Say "import" when reporting private importsVadim Petrochenkov-3/+3
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-74/+518
2020-01-09Update testsVadim Petrochenkov-8/+42
2019-12-09compiletest: add aux-crate directiveEric Huss-7/+6
2019-11-18test: Update tests with fallout of changesGabriel Smith-74/+54
The error messages of the two tests effected degraded in quality. The errors no longer suggest types in other modules as they now assume that the arguments are const args, not type args.
2019-11-08Rollup merge of #65785 - Centril:compat-to-error-2, r=oli-obkMazdak Farrokhzad-14/+10
Transition future compat lints to {ERROR, DENY} - Take 2 Follow up to https://github.com/rust-lang/rust/pull/63247 implementing https://github.com/rust-lang/rust/pull/63247#issuecomment-536295992. - `legacy_ctor_visibility` (ERROR) -- closes #39207 - `legacy_directory_ownership` (ERROR) -- closes #37872 - `safe_extern_static` (ERROR) -- closes #36247 - `parenthesized_params_in_types_and_modules` (ERROR) -- closes #42238 - `duplicate_macro_exports` (ERROR) - `nested_impl_trait` (ERROR) -- closes #59014 - `ill_formed_attribute_input` (DENY) -- transitions #57571 - `patterns_in_fns_without_body` (DENY) -- transitions #35203 r? @varkor cc @petrochenkov
2019-11-06legacy_ctor_visibility -> errorMazdak Farrokhzad-14/+10
2019-11-06Apply review suggestionsTomasz Miąsko-2/+2
2019-11-04Use build-pass in ui tests where appropriateTomasz Miąsko-2/+2
2019-11-01Rollup merge of #65914 - estebank:type-alias-bounds-sugg, r=davidtwcoTyler Mandry-2/+8
Use structured suggestion for unnecessary bounds in type aliases
2019-10-29Change E0741 into E0742Guillaume Gomez-4/+4
2019-10-29Update ui testsGuillaume Gomez-3/+4
2019-10-28Use structured suggestion for unnecessary bounds in type aliasesEsteban Küber-2/+8
2019-10-28Auto merge of #65421 - estebank:variants, r=petrochenkovbors-9/+27
Point at local similarly named element and tweak references to variants Partially address #65386.
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-9/+27
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-26Fix rebaseEsteban Küber-0/+1
2019-10-26review comments and tweaksEsteban Küber-5/+24
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+8
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-16update ui testsGuillaume Gomez-2/+2
2019-10-11resolve: shorten wording on private constructor errorDan Aloni-48/+48
2019-10-11resolve: fix error title regarding private constructorsDan Aloni-104/+104
The constructor is private, not the type. Idea credit to @petrochenkov, discussed at #65153
2019-10-09resolve: Use field spans for reporting the private constructor errorVadim Petrochenkov-72/+168
2019-08-30Fix test.Sam Radhakrishan-2/+2
2019-08-09Mention that tuple structs are private if their fields areEsteban Küber-0/+96
2019-08-05Don't recommend `extern crate` syntaxKornel-3/+3
2019-08-02Replace "existential" by "opaque"varkor-0/+0
2019-08-02Update syntax in existing testsvarkor-12/+13
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-0/+57
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+239
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-4/+4
https://github.com/rust-lang/rust/issues/60532
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-5/+5
2019-05-29Update ui test suite to use dynmemoryruins-7/+7
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-7/+7
2019-04-14Properly parse '--extern-private' with name and pathAaron Hill-1/+1
2019-03-15rustc: pass Option<&Substs> and Namespace around in ty::item_path.Eduard-Mihai Burtescu-10/+10
2019-03-15rustc: support impl's in PrintCx::parameterized.Eduard-Mihai Burtescu-6/+6
2019-03-11Update testsVadim Petrochenkov-243/+243
2019-03-06Split up privacy checking so privacy_access_levels only does computations ↵John Kåre Alsaker-18/+18
required for AccessLevels
2019-02-07Auto merge of #58010 - Zoxc:parallel-passes, r=michaelwoeristerbors-25/+44
Move privacy checking later in the pipeline and make some passes run in parallel r? @michaelwoerister