rust/src/test/ui/error-codes
Mazdak Farrokhzad 50fb8480db
Rollup merge of #67730 - Centril:typeck-pat-cleanup, r=estebank
Cleanup pattern type checking, fix diagnostics bugs (+ improvements)

r? @estebank
2019-12-31 19:19:36 +01:00
..
e0119 Improve coherence errors for wrong type order 2019-11-10 16:26:38 +01:00
E0001.rs
E0001.stderr
E0004-2.rs
E0004-2.stderr Forgot to update some test outputs 2019-12-04 16:43:25 +00:00
E0004.rs
E0004.stderr
E0005.rs
E0005.stderr Suggest if let on let refutable binding 2019-10-09 12:25:48 -07:00
E0007.rs Remove bindings_after_at from INCOMPLETE_FEATURES. 2019-12-23 14:47:20 +01:00
E0007.stderr Remove bindings_after_at from INCOMPLETE_FEATURES. 2019-12-23 14:47:20 +01:00
E0009.rs
E0009.stderr check_legality_of_move_bindings: generalize diagnostics & add comments 2019-12-23 14:47:19 +01:00
E0010-teach.rs
E0010-teach.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
E0010.rs
E0010.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
E0017.rs Correct other tests related to const_mut_refs 2019-12-02 09:46:26 -05:00
E0017.stderr Correct other tests related to const_mut_refs 2019-12-02 09:46:26 -05:00
E0023.rs Fix #64744 -- handle zero sub-pats case. 2019-09-24 22:42:45 +02:00
E0023.stderr Increase spacing for suggestions in diagnostics 2019-10-24 12:26:01 -07:00
E0025.rs
E0025.stderr
E0026-teach.rs
E0026-teach.stderr
E0026.rs
E0026.stderr
E0027-teach.rs
E0027-teach.stderr
E0027.rs
E0027.stderr
E0029-teach.rs
E0029-teach.stderr Tweak non-char/numeric in range pattern diagnostic 2019-11-13 08:27:53 +09:00
E0029.rs
E0029.stderr Tweak non-char/numeric in range pattern diagnostic 2019-11-13 08:27:53 +09:00
E0030-teach.rs Never stop due to errors before borrow checking 2019-04-22 13:11:53 -07:00
E0030-teach.stderr Never stop due to errors before borrow checking 2019-04-22 13:11:53 -07:00
E0030.rs
E0030.stderr
E0033-teach.rs On object safety violation, point at source when possible 2019-09-02 20:22:22 -07:00
E0033-teach.stderr On object safety violation, point at source when possible 2019-09-02 20:22:22 -07:00
E0033.rs On object safety violation, point at source when possible 2019-09-02 20:22:22 -07:00
E0033.stderr On object safety violation, point at source when possible 2019-09-02 20:22:22 -07:00
E0034.rs
E0034.stderr review comments 2019-12-11 18:21:52 -08:00
E0038.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0038.stderr account for DUMMY_SP and correct wording 2019-09-02 22:11:29 -07:00
E0040.rs
E0040.stderr
E0044.rs Make wording less confusing 2019-09-11 00:29:35 +01:00
E0044.stderr Make wording less confusing 2019-09-11 00:29:35 +01:00
E0045.rs
E0045.stderr
E0049.rs Point at individual type arguments on arg count mismatch 2019-06-01 10:35:31 -07:00
E0049.stderr Point at individual type arguments on arg count mismatch 2019-06-01 10:35:31 -07:00
E0050.rs
E0050.stderr
E0054.rs
E0054.stderr
E0055.rs
E0055.stderr
E0057.rs
E0057.stderr
E0059.rs
E0059.stderr
E0060.rs
E0060.stderr
E0061.rs
E0061.stderr
E0062.rs
E0062.stderr
E0063.rs
E0063.stderr
E0067.rs
E0067.stderr Improve invalid assignment error 2019-12-23 11:16:51 +00:00
E0069.rs
E0069.stderr
E0070.rs
E0070.stderr Add span information to ExprKind::Assign 2019-12-23 11:20:13 +00:00
E0071.rs
E0071.stderr
E0075.rs
E0075.stderr
E0076.rs
E0076.stderr
E0077.rs
E0077.stderr
E0080.rs
E0080.stderr
E0081.rs
E0081.stderr
E0084.rs
E0084.stderr
E0091.rs
E0091.stderr
E0092.rs
E0092.stderr
E0093.rs
E0093.stderr
E0094.rs
E0094.stderr
E0106.rs
E0106.stderr
E0107.rs
E0107.stderr
E0109.rs
E0109.stderr
E0110.rs
E0110.stderr
E0116.rs
E0116.stderr
E0117.rs
E0117.stderr Use more targeted spans for orphan rule errors 2019-10-28 09:57:36 -07:00
E0118.rs
E0118.stderr
E0119.rs
E0119.stderr
E0120.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0120.stderr Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0121.rs
E0121.stderr clean up logic 2019-12-29 19:16:53 -08:00
E0124.rs
E0124.stderr
E0128.rs
E0128.stderr
E0130.rs
E0130.stderr
E0131.rs
E0131.stderr
E0132.rs
E0132.stderr
E0133.rs
E0133.stderr
E0137.rs
E0137.stderr normalize use of backticks for compiler messages in remaining modules 2019-07-23 23:09:59 +02:00
E0138.rs
E0138.stderr Provide a span if main function is not present in crate 2019-09-14 11:27:45 -04:00
E0152.rs
E0152.stderr getting more context for duplicate lang items (fixes #60561) 2019-09-27 22:56:23 +08:00
E0161.edition.stderr
E0161.editionul.stderr
E0161.migrate.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0161.migrateul.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0161.nll.stderr
E0161.nllul.stderr
E0161.rs Change some tests to use the shorter comment style 2019-11-21 14:09:18 -08:00
E0161.zflags.stderr
E0161.zflagsul.stderr
E0164.rs
E0164.stderr Improve the "try using a variant of the expected type" hint. 2019-10-28 18:43:51 +01:00
E0184.rs
E0184.stderr
E0185.rs
E0185.stderr
E0186.rs
E0186.stderr
E0191.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0191.stderr Tweak errors for missing associated types and type parameters 2019-12-24 22:02:43 -08:00
E0192.rs
E0192.stderr
E0194.rs Move type parameter shadowing errors to resolve 2019-08-17 09:12:32 +01:00
E0194.stderr Move type parameter shadowing errors to resolve 2019-08-17 09:12:32 +01:00
E0195.rs
E0195.stderr
E0197.rs
E0197.stderr
E0198.rs
E0198.stderr
E0199.rs
E0199.stderr
E0200.rs
E0200.stderr
E0201.rs
E0201.stderr
E0206.rs
E0206.stderr Do not display ADT type arguments and fix rebase 2019-10-28 09:57:36 -07:00
E0207.rs
E0207.stderr
E0214.rs
E0214.stderr Point at correct span for parenthesized types 2019-09-22 11:33:12 -07:00
E0220.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0220.stderr Fix suggestion span for typo in associated type name 2019-12-24 22:25:45 -08:00
E0221.rs
E0221.stderr Tweak errors for missing associated types and type parameters 2019-12-24 22:02:43 -08:00
E0223.rs
E0223.stderr
E0225.rs Addressed points raised in review. 2019-05-20 16:12:49 +01:00
E0225.stderr Addressed more points raised in review. 2019-05-20 16:12:49 +01:00
E0229.rs
E0229.stderr
E0252.rs
E0252.stderr
E0253.rs
E0253.stderr
E0254.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
E0254.stderr
E0255.rs
E0255.stderr
E0259.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
E0259.stderr Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
E0260.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
E0260.stderr Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
E0261.rs
E0261.stderr
E0262.rs
E0262.stderr
E0263.rs
E0263.stderr
E0264.rs
E0264.stderr
E0267.rs
E0267.stderr improve diagnostics: break/continue wrong context 2019-08-21 13:17:59 +03:00
E0268.rs
E0268.stderr improve diagnostics: break/continue wrong context 2019-08-21 13:17:59 +03:00
E0271.rs
E0271.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
E0275.rs
E0275.stderr Use span label instead of note for cause in E0631 2019-08-31 00:14:23 -07:00
E0276.rs
E0276.stderr
E0277-2.rs
E0277-2.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00
E0277.rs
E0277.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00
E0282.rs
E0282.stderr Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
E0283.rs
E0283.stderr Deduplicate logic 2019-12-10 12:02:18 -08:00
E0297.rs
E0297.stderr
E0308-4.rs
E0308-4.stderr MatchExpressionArmPattern: Use more generic wording. 2019-12-30 13:50:20 +01:00
E0308.rs
E0308.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
E0328.rs
E0328.stderr
E0365.rs
E0365.stderr
E0370.rs
E0370.stderr
E0374.rs
E0374.stderr
E0375.rs Remove unnecessary ignore-tidy-linelength 2019-04-23 11:42:14 +01:00
E0375.stderr Update ui tests 2019-04-23 11:42:14 +01:00
E0376.rs
E0376.stderr
E0388.rs Correct other tests related to const_mut_refs 2019-12-02 09:46:26 -05:00
E0388.stderr Correct other tests related to const_mut_refs 2019-12-02 09:46:26 -05:00
E0389.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0389.stderr Update ui tests 2019-11-18 19:00:10 +01:00
E0390.rs
E0390.stderr
E0392.rs
E0392.stderr typo: fix typo in E0392 2019-10-03 09:22:29 -04:00
E0393.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0393.stderr Tweak errors for missing associated types and type parameters 2019-12-24 22:02:43 -08:00
E0395.rs
E0395.stderr normalize use of backticks in compiler messages for libsyntax/feature_gate 2019-07-09 14:13:28 +02:00
E0396-fixed.rs
E0396-fixed.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
E0396.rs
E0396.stderr normalize use of backticks in compiler messages for libsyntax/feature_gate 2019-07-09 14:13:28 +02:00
E0401.rs Remove blanket silencing of "type annotation needed" errors 2019-09-24 11:31:14 -07:00
E0401.stderr Indicate origin of where type parameter for uninferred types 2019-12-14 11:10:21 +01:00
E0403.rs
E0403.stderr Move type parameter shadowing errors to resolve 2019-08-17 09:12:32 +01:00
E0404.rs
E0404.stderr
E0405.rs
E0405.stderr
E0407.rs
E0407.stderr
E0408.rs
E0408.stderr
E0411.rs
E0411.stderr
E0412.rs
E0412.stderr
E0415.rs
E0415.stderr
E0416.rs
E0416.stderr
E0423.rs Emit specific error for struct literal in conditions 2019-04-19 10:13:44 -07:00
E0423.stderr Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
E0424.rs
E0424.stderr Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
E0425.rs
E0425.stderr
E0426.rs
E0426.stderr
E0428.rs
E0428.stderr
E0429.rs
E0429.stderr
E0430.rs
E0430.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
E0431.rs
E0431.stderr
E0432.rs
E0432.stderr Don't recommend extern crate syntax 2019-08-05 18:19:01 +01:00
E0433.rs
E0433.stderr
E0434.rs
E0434.stderr
E0435.rs
E0435.stderr
E0437.rs
E0437.stderr
E0438.rs
E0438.stderr
E0439.rs
E0439.stderr
E0445.rs
E0445.stderr
E0446.rs
E0446.stderr
E0449.rs
E0449.stderr
E0451.rs
E0451.stderr
E0452.rs
E0452.stderr Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
E0453.rs
E0453.stderr
E0454.rs
E0454.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
E0458.rs
E0458.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
E0459.rs
E0459.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
E0463.rs
E0463.stderr
E0478.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0478.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
E0492.rs
E0492.stderr
E0496.rs
E0496.stderr
E0499.rs
E0499.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0501.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0501.stderr Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0502.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
E0502.rs
E0502.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0503.rs
E0503.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0504.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0504.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0505.rs
E0505.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0506.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0506.stderr Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0507.rs
E0507.stderr Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
E0508-fail.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0508-fail.stderr Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
E0508.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0508.stderr Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
E0509.rs
E0509.stderr Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
E0511.rs rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
E0511.stderr rework run-fail and support check,build-fail 2019-12-21 22:16:00 +01:00
E0512.rs
E0512.stderr
E0516.rs
E0516.stderr
E0517.rs
E0517.stderr Implement RFC 2645 (transparent enums and unions) 2019-06-10 22:07:24 -07:00
E0518.rs
E0518.stderr
E0520.rs
E0520.stderr
E0522.rs
E0522.stderr
E0527.rs
E0527.stderr
E0528.rs Use new 'p @ ..' syntax in tests. 2019-07-28 06:53:39 +02:00
E0528.stderr --bless tests due to new subslice syntax. 2019-07-28 06:53:39 +02:00
E0529.rs
E0529.stderr
E0530.rs
E0530.stderr
E0532.rs Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
E0532.stderr Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
E0534.rs
E0534.stderr
E0559.rs
E0559.stderr
E0560.rs
E0560.stderr
E0565-1.rs
E0565-1.stderr
E0565-2.rs
E0565-2.stderr
E0565.rs
E0565.stderr
E0572.rs
E0572.stderr
E0582.rs
E0582.stderr
E0583.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0583.stderr Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0585.rs
E0585.stderr
E0586.rs
E0586.stderr
E0594.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0594.stderr Update ui tests 2019-11-18 19:00:10 +01:00
E0596.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0596.stderr Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0597.rs
E0597.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
E0599.rs
E0599.stderr
E0600.rs
E0600.stderr
E0601.rs Provide a span if main function is not present in crate 2019-09-14 11:27:45 -04:00
E0601.stderr Provide a span if main function is not present in crate 2019-09-14 11:27:45 -04:00
E0602.rs
E0602.stderr
E0603.rs
E0603.stderr
E0604.rs
E0604.stderr
E0605.rs Make use of ptr::null(_mut) instead of casting zero 2019-06-17 10:52:46 +00:00
E0605.stderr
E0606.rs
E0606.stderr
E0607.rs Make use of ptr::null(_mut) instead of casting zero 2019-06-17 10:52:46 +00:00
E0607.stderr
E0608.rs
E0608.stderr
E0609.rs
E0609.stderr
E0610.rs
E0610.stderr
E0614.rs
E0614.stderr
E0615.rs
E0615.stderr
E0616.rs
E0616.stderr
E0617.rs rustc: rely on c_variadic == true instead of CVarArgs in HIR/Ty fn signatures. 2019-09-28 17:39:00 +03:00
E0617.stderr Increase spacing for suggestions in diagnostics 2019-10-24 12:26:01 -07:00
E0618.rs
E0618.stderr Increase spacing for suggestions in diagnostics 2019-10-24 12:26:01 -07:00
E0620.rs
E0620.stderr
E0621-does-not-trigger-for-closures.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
E0621-does-not-trigger-for-closures.rs
E0621-does-not-trigger-for-closures.stderr update ui tests 2019-10-07 17:12:54 +02:00
E0622.rs
E0622.stderr
E0624.rs
E0624.stderr
E0637.rs
E0637.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
E0642.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0642.stderr Increase spacing for suggestions in diagnostics 2019-10-24 12:26:01 -07:00
E0646.rs
E0646.stderr Remove the HirId/NodeId from where clauses 2019-06-18 22:54:51 +01:00
E0647.rs
E0647.stderr Remove the HirId/NodeId from where clauses 2019-06-18 22:54:51 +01:00
E0648.rs
E0648.stderr
E0657.rs
E0657.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
E0658.rs
E0658.stderr normalize use of backticks in compiler messages for libsyntax/feature_gate 2019-07-09 14:13:28 +02:00
E0659.rs
E0659.stderr
E0660.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0660.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0661.rs Remove blanket silencing of "type annotation needed" errors 2019-09-24 11:31:14 -07:00
E0661.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0662.rs Fix issues with git converting CRLF to CR 2019-07-27 19:22:45 +03:00
E0662.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0663.rs Fix issues with git converting CRLF to CR 2019-07-27 19:22:45 +03:00
E0663.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0664.rs Fix issues with git converting CRLF to CR 2019-07-27 19:22:45 +03:00
E0664.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0665.rs Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0665.stderr Fix ui tests with better error code usage 2019-11-14 13:05:56 +01:00
E0705.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
E0705.stderr Move error code tests to error code folder 2019-05-24 22:07:35 +01:00
E0718.rs
E0718.stderr
E0719.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
E0719.stderr Tweak errors for missing associated types and type parameters 2019-12-24 22:02:43 -08:00
E0730.rs Add error for pattern-matching on arrays without a fixed size 2019-06-02 01:55:46 +01:00
E0730.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
ex-E0611.rs
ex-E0611.stderr
ex-E0612.rs
ex-E0612.stderr