summary refs log tree commit diff
path: root/src/test/ui/privacy
AgeCommit message (Collapse)AuthorLines
2020-05-07reword "possible candidate" import suggestionAndy Russell-6/+6
2020-04-11rustc: Add a warning count upon completionRoccoDev-3/+3
2020-04-07Do not suggest adding type param when `use` is already suggestedEsteban Küber-4/+0
Fix #70365, cc #70572.
2020-03-27Rollup merge of #70344 - Centril:hir-pretty, r=eddybDylan DPC-5/+5
Decouple `rustc_hir::print` into `rustc_hir_pretty` High level summary: - The HIR pretty printer, `rustc_hir::print` is moved into a new crate `rustc_hir_pretty`. - `rustc_ast_pretty` and `rustc_errors` are dropped as `rustc_hir` dependencies. - The dependence on HIR pretty is generally reduced, leaving `rustc_save_analysis`, `rustdoc`, `rustc_metadata`, and `rustc_driver` as the remaining clients. The main goal here is to reduce `rustc_hir`'s dependencies and its size such that it can start and finish earlier, thereby working towards https://github.com/rust-lang/rust/issues/65031. r? @Zoxc
2020-03-26wip pacify the merciless ui testsNiko Matsakis-1/+1
2020-03-26introduce `negative_impls` feature gate and documentNiko Matsakis-4/+6
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-03-24rustc_typeck: remove rustc_hir_pretty usageMazdak Farrokhzad-5/+5
2020-03-24Rollup merge of #69740 - mark-i-m:describe-it-3, r=eddybMazdak Farrokhzad-2/+2
Replace some desc logic in librustc_lint with article_and_desc r? @eddyb @Centril @matthewjasper Followup to https://github.com/rust-lang/rust/pull/69674 Blocked on #69498
2020-03-23Rollup merge of #69942 - estebank:sized-verbose-sugg, r=matthewjasperMazdak Farrokhzad-229/+229
Increase verbosity when suggesting subtle code changes Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion. Fix #69243.
2020-03-22Use more targetted span for error labelEsteban Küber-10/+10
2020-03-22Normalize wording of privacy access labelsEsteban Küber-212/+212
2020-03-22Add span label to primary error spanEsteban Küber-12/+12
2020-03-21convert a couple more errorsmark-2/+2
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