rust/src/test/ui/macros
Guillaume Gomez dec7b19516
Rollup merge of #56491 - euclio:assert-error, r=estebank
emit error with span for empty asserts

Fixes #55547.
2018-12-10 22:01:57 +01:00
..
auxiliary resolve: Relax shadowing restriction on macro-expanded macros 2018-09-08 14:15:11 +03:00
macro-expanded-include Removed #[rustc_error] from tests that are all // compile-pass. 2018-11-07 13:09:52 +01:00
ambiguity-legacy-vs-modern.rs resolve: Prefer macro_rules definitions to in-module macro definitions in some cases 2018-10-03 16:12:39 +04:00
ambiguity-legacy-vs-modern.stderr resolve: Improve diagnostics for resolution ambiguities 2018-11-18 13:51:40 +03:00
assert.rs emit error with span for empty asserts 2018-12-04 10:22:48 -05:00
assert.stderr emit error with span for empty asserts 2018-12-04 10:22:48 -05:00
bad-concat.rs review comments: modify note wording and change println 2018-07-19 23:18:07 -07:00
bad-concat.stderr review comments: modify note wording and change println 2018-07-19 23:18:07 -07:00
bad_hello.rs Improve suggestion for missing fmt str in println 2018-07-19 23:18:07 -07:00
bad_hello.stderr Suggest space separated format str literal 2018-07-21 12:16:06 -07:00
format-foreign.rs Use suggestions for shell format arguments 2018-07-31 14:16:36 -07:00
format-foreign.stderr Use suggestions for shell format arguments 2018-07-31 14:16:36 -07:00
format-unused-lables.rs Point at unused arguments for format string 2018-01-15 21:38:12 -08:00
format-unused-lables.stderr Use suggestions for shell format arguments 2018-07-31 14:16:36 -07:00
issue-30143.rs Don't accept none str literals for the format string in writeln 2018-08-10 19:01:54 +01:00
issue-30143.stderr Don't accept none str literals for the format string in writeln 2018-08-10 19:01:54 +01:00
issue-54441.rs make Parser::parse_foreign_item() return a foreign item or error 2018-10-05 02:47:57 -07:00
issue-54441.stderr Remove incorrect span for second label inner macro invocation 2018-10-10 19:39:16 +02:00
macro-at-most-once-rep-2015-ques-rep.rs tests: prefer edition: directives to compile-flags:--edition. 2018-08-16 10:36:11 +03:00
macro-at-most-once-rep-2015-ques-rep.stderr Implement 2015 vs 2018 ? kleene op + test 2018-07-23 21:54:43 -05:00
macro-at-most-once-rep-2015-ques-sep.rs tests: prefer edition: directives to compile-flags:--edition. 2018-08-16 10:36:11 +03:00
macro-at-most-once-rep-2015-ques-sep.stderr Allow by default, fix tests 2018-07-23 21:55:51 -05:00
macro-at-most-once-rep-2018.rs fix test 2018-11-27 13:13:11 -06:00
macro-at-most-once-rep-2018.stderr fix test 2018-11-27 18:21:10 -06:00
macro-attribute.rs syntax: Enforce attribute grammar in the parser 2018-08-15 00:05:55 +03:00
macro-attribute.stderr syntax: Enforce attribute grammar in the parser 2018-08-15 00:05:55 +03:00
macro-backtrace-invalid-internals.rs Remove the unstable Float trait 2018-05-22 19:19:09 +02:00
macro-backtrace-invalid-internals.stderr Remove the unstable Float trait 2018-05-22 19:19:09 +02:00
macro-backtrace-nested.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
macro-backtrace-nested.stderr update tests 2018-03-14 00:53:24 +01:00
macro-backtrace-println.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
macro-backtrace-println.stderr Only point at inside of string literals if they're actually string literals 2018-07-23 15:41:32 -07:00
macro-comma-behavior.core.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-comma-behavior.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-comma-behavior.std.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-comma-support.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-comma-support.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-context.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-context.stderr Fix incorrect semicolon suggestion 2018-10-24 12:52:24 -07:00
macro-crate-nonterminal-non-root.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-crate-nonterminal-non-root.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-error.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-error.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-expansion-tests.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-expansion-tests.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-follow.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-follow.stderr List allowed tokens after macro fragments 2018-10-25 11:08:58 -07:00
macro-followed-by-seq-bad.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-followed-by-seq-bad.stderr List allowed tokens after macro fragments 2018-10-25 11:08:58 -07:00
macro-in-expression-context-2.rs Update ui tests 2018-12-04 10:06:05 +01:00
macro-in-expression-context-2.stderr Reword EOF in macro arm message 2018-11-23 15:49:31 -08:00
macro-in-expression-context.fixed Modify invalid macro in expression context diagnostic 2018-10-23 10:07:34 -07:00
macro-in-expression-context.rs Modify invalid macro in expression context diagnostic 2018-10-23 10:07:34 -07:00
macro-in-expression-context.stderr Modify invalid macro in expression context diagnostic 2018-10-23 10:07:34 -07:00
macro-inner-attributes.rs resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-inner-attributes.stderr resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-input-future-proofing.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-input-future-proofing.stderr List allowed tokens after macro fragments 2018-10-25 11:08:58 -07:00
macro-invalid-fragment-spec.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-invalid-fragment-spec.stderr Add missing lifetime fragment specifier to error message. 2018-10-12 17:51:48 -07:00
macro-local-data-key-priv.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-local-data-key-priv.stderr resolve: More precise spans for privacy errors 2018-10-28 02:56:12 +03:00
macro-match-nonterminal.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-match-nonterminal.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-missing-delimiters.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-missing-delimiters.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-missing-fragment.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-missing-fragment.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-name-typo.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
macro-name-typo.stderr Update UI tests 2018-02-26 20:24:02 +03:00
macro-non-lifetime.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-non-lifetime.stderr Reword incorrect macro invocation primary label 2018-11-23 15:37:31 -08:00
macro-outer-attributes.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-outer-attributes.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-parameter-span.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-parameter-span.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-path-prelude-fail-1.rs resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-path-prelude-fail-1.stderr resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-path-prelude-fail-2.rs resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-path-prelude-fail-2.stderr resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro-path-prelude-fail-3.rs resolve: Introduce two sub-namespaces in macro namespace 2018-09-13 14:48:50 +03:00
macro-path-prelude-fail-3.stderr resolve: Introduce two sub-namespaces in macro namespace 2018-09-13 14:48:50 +03:00
macro-path-prelude-fail-4.rs resolve: Introduce two sub-namespaces in macro namespace 2018-09-13 14:48:50 +03:00
macro-path-prelude-fail-4.stderr resolve: Introduce two sub-namespaces in macro namespace 2018-09-13 14:48:50 +03:00
macro-path-prelude-pass.rs Stabilize use_extern_macros 2018-08-17 13:14:26 +03:00
macro-path-prelude-pass.stderr Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions. 2018-09-22 09:26:40 +03:00
macro-path-prelude-shadowing.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-path-prelude-shadowing.stderr resolve: Tweak some articles in ambiguity diagnostics 2018-11-18 13:57:03 +03:00
macro-reexport-removed.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-reexport-removed.stderr resolve: Consolidate error reporting for resolved macros in fn resolve_macro_to_def 2018-08-20 23:12:36 +03:00
macro-shadowing-relaxed.rs resolve: Relax shadowing restriction on macro-expanded macros 2018-09-08 14:15:11 +03:00
macro-shadowing.rs resolve: Relax shadowing restriction on macro-expanded macros 2018-09-08 14:15:11 +03:00
macro-shadowing.stderr resolve: Improve diagnostics for resolution ambiguities 2018-11-18 13:51:40 +03:00
macro-stability.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-stability.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-stmt-matchers.rs Removed #[rustc_error] from tests that are all // compile-pass. 2018-11-07 13:09:52 +01:00
macro-tt-matchers.rs Removed #[rustc_error] from tests that are all // compile-pass. 2018-11-07 13:09:52 +01:00
macro-use-bad-args-1.rs cleanup: Add main functions to some UI tests 2018-08-31 18:56:15 +03:00
macro-use-bad-args-1.stderr cleanup: Add main functions to some UI tests 2018-08-31 18:56:15 +03:00
macro-use-bad-args-2.rs cleanup: Add main functions to some UI tests 2018-08-31 18:56:15 +03:00
macro-use-bad-args-2.stderr cleanup: Add main functions to some UI tests 2018-08-31 18:56:15 +03:00
macro-use-scope.rs Removed #[rustc_error] from tests that are all // compile-pass. 2018-11-07 13:09:52 +01:00
macro-use-undef.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-use-undef.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-use-wrong-name.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro-use-wrong-name.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macro_path_as_generic_bound.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
macro_path_as_generic_bound.stderr resolve: Avoid sentence breaks in diagnostics 2018-11-18 13:58:36 +03:00
macro_undefined.rs Stabilize use_extern_macros 2018-08-17 13:14:26 +03:00
macro_undefined.stderr Stabilize use_extern_macros 2018-08-17 13:14:26 +03:00
macros-in-extern.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macros-in-extern.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
macros-nonfatal-errors.rs Fix two UI tests with locale-dependent output 2018-10-05 11:37:48 +04:00
macros-nonfatal-errors.stderr Fix two UI tests with locale-dependent output 2018-10-05 11:37:48 +04:00
missing-comma.rs Suggest comma when missing in macro call 2018-08-07 22:31:57 -07:00
missing-comma.stderr Reword incorrect macro invocation primary label 2018-11-23 15:37:31 -08:00
must-use-in-macro-55516.rs enforce unused-must-use lint in macros 2018-11-01 03:32:45 +00:00
must-use-in-macro-55516.stderr enforce unused-must-use lint in macros 2018-11-01 03:32:45 +00:00
nonterminal-matching.rs stabilize :lifetime 2018-05-13 19:51:32 +00:00
nonterminal-matching.stderr Reword incorrect macro invocation primary label 2018-11-23 15:37:31 -08:00
restricted-shadowing-legacy.rs Add checks for expected macro output in restricted shadowing tests 2018-09-08 14:15:11 +03:00
restricted-shadowing-legacy.stderr resolve: Suggest crate:: for resolving ambiguities when appropriate 2018-11-27 00:34:25 +03:00
restricted-shadowing-modern.rs Add checks for expected macro output in restricted shadowing tests 2018-09-08 14:15:11 +03:00
restricted-shadowing-modern.stderr resolve: Suggest crate:: for resolving ambiguities when appropriate 2018-11-27 00:34:25 +03:00
span-covering-argument-1.nll.stderr Update tests for new NLL mutability errors 2018-07-20 20:01:15 +01:00
span-covering-argument-1.rs Minimize weird spans involving macro context 2018-02-01 11:51:49 -08:00
span-covering-argument-1.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
trace-macro.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
trace-macro.stderr Switch to bootstrapping from 1.29 beta 2018-08-01 11:59:08 -06:00
trace_faulty_macros.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
trace_faulty_macros.stderr Reword incorrect macro invocation primary label 2018-11-23 15:37:31 -08:00