about summary refs log tree commit diff
path: root/src/test/ui/imports
AgeCommit message (Collapse)AuthorLines
2018-10-24Prohibit macro-expanded `extern crate` items shadowing crates passed with ↵Vadim Petrochenkov-2/+20
`--extern`
2018-10-24Feature gate extern prelude additions from `extern crate` itemsVadim Petrochenkov-2/+7
Fix rustdoc and fulldeps tests
2018-10-24Add `extern crate` items to extern preludeVadim Petrochenkov-0/+87
2018-10-17fix other tests failing due to change in case or new suggestion for extern crateFrançois Mockers-1/+1
2018-10-05Reapply the macro_rules disambiguation changes from masterVadim Petrochenkov-18/+1
2018-10-05resolve: Merge resolution for `macro_rules` into the common early in-scope ↵Vadim Petrochenkov-18/+35
resolution function `fn resolve_legacy_scope`/`fn resolve_lexical_macro_path_segment` -> `fn early_resolve_ident_in_lexical_scope`
2018-10-03resolve: Prefer `macro_rules` definitions to in-module macro definitions in ↵Vadim Petrochenkov-19/+2
some cases
2018-09-19Use full name to identify a macro in a `FileName`.Diogo Sousa-1/+1
Before this two macros with same name would be indistinguishable inside a `FileName`. This caused a bug in incremental compilation (see #53097) since two different macros would map out to the same `StableFilemapId`. Fixes #53097.
2018-09-08resolve: More precise spans for ambiguous resolution errorsVadim Petrochenkov-30/+28
Add labels to ambiguous resolution errors
2018-08-31cleanup: Add main functions to some UI testsVadim Petrochenkov-19/+8
2018-08-24Turn the error for module-relative access to macro-expanded `macro_export` ↵Vadim Petrochenkov-1/+8
macros into a deprecation lint
2018-08-22Auto merge of #53509 - petrochenkov:wildregr, r=alexcrichtonbors-0/+21
resolve: Reject some inaccessible candidates sooner during import resolution This allows import resolution to progress in cases like #53140 Fixes #53140
2018-08-21Auto merge of #53471 - petrochenkov:biattr2, r=oli-obkbors-9/+89
resolve: Some macro resolution refactoring Work towards completing https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393 The last commit also fixes https://github.com/rust-lang/rust/issues/53269 by not using `def_id()` on `Def::Err` and also fixes https://github.com/rust-lang/rust/issues/53512.
2018-08-21resolve: Unify reporting of ambiguity errors for macro pathsVadim Petrochenkov-10/+12
2018-08-20resolve: Refactor away `MacroBinding`Vadim Petrochenkov-6/+84
`fn resolve_legacy_scope` can now resolve only to `macro_rules!` items, `fn resolve_lexical_macro_path_segment` is for everything else - modularized macros, preludes
2018-08-20resolve: Reject some inaccessible candidates sooner during import resolutionVadim Petrochenkov-0/+21
This allows import resolution to progress in cases like #53140
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-17Stabilize `use_extern_macros`Vadim Petrochenkov-39/+27
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+505
2018-08-12Prohibit using macro-expanded `macro_export` macros through module-relative ↵Vadim Petrochenkov-0/+68
paths
2018-08-06Enable macro modularization implicitly if one of "advanced" macro features ↵Vadim Petrochenkov-1/+1
is enabled Do not mark all builtin attributes as used when macro modularization is enabled
2018-07-29resolve: Modularize crate-local `#[macro_export] macro_rules`Vadim Petrochenkov-0/+313
2018-07-20resolve: Fully prohibit shadowing of in-scope names by globs in macro pathsVadim Petrochenkov-0/+93
2018-05-15Turn deprecation lint `legacy_imports` into a hard errorVadim Petrochenkov-15/+16
2018-04-27Don't feature gate bang macros on 'proc_macro_path_invoc'.Sergio Benitez-2/+2
2018-04-20rustc: Tweak custom attribute capabilitiesAlex Crichton-2/+2
This commit starts to lay some groundwork for the stabilization of custom attribute invocations and general procedural macros. It applies a number of changes discussed on [internals] as well as a [recent issue][issue], namely: * The path used to specify a custom attribute must be of length one and cannot be a global path. This'll help future-proof us against any ambiguities and give us more time to settle the precise syntax. In the meantime though a bare identifier can be used and imported to invoke a custom attribute macro. A new feature gate, `proc_macro_path_invoc`, was added to gate multi-segment paths and absolute paths. * The set of items which can be annotated by a custom procedural attribute has been restricted. Statements, expressions, and modules are disallowed behind two new feature gates: `proc_macro_expr` and `proc_macro_mod`. * The input to procedural macro attributes has been restricted and adjusted. Today an invocation like `#[foo(bar)]` will receive `(bar)` as the input token stream, but after this PR it will only receive `bar` (the delimiters were removed). Invocations like `#[foo]` are still allowed and will be invoked in the same way as `#[foo()]`. This is a **breaking change** for all nightly users as the syntax coming in to procedural macros will be tweaked slightly. * Procedural macros (`foo!()` style) can only be expanded to item-like items by default. A separate feature gate, `proc_macro_non_items`, is required to expand to items like expressions, statements, etc. Closes #50038 [internals]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252 [issue]: https://github.com/rust-lang/rust/issues/50038
2018-03-14Add empty main() to tests where it is missing.Eric Huss-10/+8
2018-03-14Add crate name to "main function not found" error message.Eric Huss-2/+2
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14update testsGuillaume Gomez-7/+7
2018-02-26Update UI testsVadim Petrochenkov-2/+2
2018-02-26Update UI testsVadim Petrochenkov-43/+43
2018-02-25Update ui testsGuillaume Gomez-0/+7
2018-01-28use correct casing for rename suggestionsAndy Russell-2/+2
If the original name is uppercase, use camel case. Otherwise, use snake case.
2018-01-18Add E0659 for ambiguous namesGuillaume Gomez-11/+11
2017-12-14Remove NOTE/HELP annotations from UI testsVadim Petrochenkov-113/+92
2017-12-14Move compile-fail tests with NOTE/HELP annotations to UIVadim Petrochenkov-0/+539