about summary refs log tree commit diff
path: root/src/test/run-pass-fulldeps/auxiliary
AgeCommit message (Collapse)AuthorLines
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-454/+0
2019-07-11syntax: Make def-site span mandatory in ↵Vadim Petrochenkov-2/+1
ExpnInfo/MacroBacktrace/DiagnosticSpanMacroExpansion We have to deal with dummy spans anyway Remove def-site span from expander interfaces. It's not used by the expansion infra, only by specific expanders, which can keep it themselves if they want it.
2019-07-07Link compiler plugins to rustc_driverJohn Kåre Alsaker-0/+8
2019-06-20rename hir::map::get_by_hir_id to getljedrz-1/+1
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-13/+5
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-1/+1
2019-06-10syntax: Rename variants of `SyntaxExtension` for consistencyVadim Petrochenkov-5/+3
2019-06-10syntax: Remove `SyntaxExtension::DeclMacro`Vadim Petrochenkov-0/+2
It's a less powerful duplicate of `SyntaxExtension::NormalTT`
2019-06-10syntax: Remove `SyntaxExtension::MultiDecorator` and `MultiItemDecorator`Vadim Petrochenkov-231/+0
2019-06-06Some code cleanup and tidy/test fixesVadim Petrochenkov-10/+10
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-1/+1
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-7/+8
2019-04-03reduce repetition in librustc(_lint) wrt. impl LintPassMazdak Farrokhzad-13/+6
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-0/+0
2019-02-20hir: HirId-ify intravisitljedrz-3/+3
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-1/+1
2019-02-11Update fulldeps testOliver Scherer-1/+1
2019-01-26Auto merge of #57726 - Zoxc:combine-early-lints, r=estebankbors-0/+8
Combine all builtin early lints This also adds a -Z no-interleave-lints option to allow benchmarking lints. r? @estebank
2019-01-24Remove quote_*! macros and associated APIsMark Simulacrum-352/+26
2019-01-19Fix lints in testsJohn Kåre Alsaker-0/+8
2018-12-25Remove licensesMark Rousskov-240/+0
2018-12-07Auto merge of #56502 - Zoxc:hir-func, r=eddybbors-2/+2
Use a function to access the Hir map to be able to turn it into a query later r? @eddyb
2018-12-07Unsupport `#[derive(Trait)]` sugar for `#[derive_Trait]` legacy plugin ↵Vadim Petrochenkov-2/+2
attributes
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-2/+2
2018-11-30tests: move all proc_macro tests from -fulldeps.Eduard-Mihai Burtescu-121/+69
2018-11-27remove uses of feature gateMark Mansi-1/+0
2018-11-23Fix proc-macro test after internal API changeEsteban Küber-2/+2
2018-11-18Rollup merge of #55564 - smaeul:test-fixes-2, r=alexcrichtonPietro Albini-0/+2
test/linkage-visibility: Ignore on musl targets DynamicLibrary uses libc's dlsym() function internally to find symbols. Some implementations of dlsym(), like musl's, only look at dynamically- exported symbols, as found in shared libraries. To also export symbols from the main executable, pass --export-dynamic to the linker. (Plus see [here](https://stackoverflow.com/questions/4184017) and [here](https://stackoverflow.com/questions/6121838) for examples of where this is necessary on glibc as well.)
2018-11-15test/linkage-visibility: Ignore on musl targetsSamuel Holland-0/+2
DynamicLibrary uses libc's dlsym() function internally to find symbols. Some implementations of dlsym(), like musl's, only look at dynamically- exported symbols, as found in shared libraries. To also export symbols from the main executable, we would need to pass --export-dynamic to the linker. Since this flag isn't available everywhere, ignore the test for now.
2018-11-12Fix fulldeps test with NodeIdOliver Scherer-1/+1
2018-10-23Point at macro definition when no rules expect tokenEsteban Küber-1/+2
2018-10-07Auto merge of #54451 - alexcrichton:no-mangle-extern-linkage, r=michaelwoeristerbors-2/+2
rustc: Allow `#[no_mangle]` anywhere in a crate This commit updates the compiler to allow the `#[no_mangle]` (and `#[export_name]` attributes) to be located anywhere within a crate. These attributes are unconditionally processed, causing the compiler to always generate an exported symbol with the appropriate name. After some discussion on #54135 it was found that not a great reason this hasn't been allowed already, and it seems to match the behavior that many expect! Previously the compiler would only export a `#[no_mangle]` symbol if it were *publicly reachable*, meaning that it itself is `pub` and it's otherwise publicly reachable from the root of the crate. This new definition is that `#[no_mangle]` *is always reachable*, no matter where it is in a crate or whether it has `pub` or not. This should make it much easier to declare an exported symbol with a known and unique name, even when it's an internal implementation detail of the crate itself. Note that these symbols will persist beyond LTO as well, always making their way to the linker. Along the way this commit removes the `private_no_mangle_functions` lint (also for statics) as there's no longer any need to lint these situations. Furthermore a good number of tests were updated now that symbol visibility has been changed. Closes #54135
2018-10-06rustc: Allow `#[no_mangle]` anywhere in a crateAlex Crichton-2/+2
This commit updates the compiler to allow the `#[no_mangle]` (and `#[export_name]` attributes) to be located anywhere within a crate. These attributes are unconditionally processed, causing the compiler to always generate an exported symbol with the appropriate name. After some discussion on #54135 it was found that not a great reason this hasn't been allowed already, and it seems to match the behavior that many expect! Previously the compiler would only export a `#[no_mangle]` symbol if it were *publicly reachable*, meaning that it itself is `pub` and it's otherwise publicly reachable from the root of the crate. This new definition is that `#[no_mangle]` *is always reachable*, no matter where it is in a crate or whether it has `pub` or not. This should make it much easier to declare an exported symbol with a known and unique name, even when it's an internal implementation detail of the crate itself. Note that these symbols will persist beyond LTO as well, always making their way to the linker. Along the way this commit removes the `private_no_mangle_functions` lint (also for statics) as there's no longer any need to lint these situations. Furthermore a good number of tests were updated now that symbol visibility has been changed. Closes #54135
2018-10-02Merge the `proc_macro_` expansion feature gates into a single ↵jeb-3/+3
`proc_macro_hygiene` gate.
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+0
2018-09-26Remove OneVectorljedrz-3/+4
2018-09-08Track distinct spans for open and close delimiterDavid Tolnay-1/+2
2018-08-24Rollup merge of #53636 - frewsxcv:frewsxcv-nth, r=rkruppekennytm-1/+1
Prefer `.nth(n)` over `.skip(n).next()`. Found by clippy.
2018-08-23Prefer `.nth(n)` over `.skip(n).next()`.Corey Farwell-1/+1
Found by clippy.
2018-08-23Use optimized SmallVec implementationIgor Gutorov-1/+1
2018-08-21Rollup merge of #53370 - jkozlowski:stabilize-macro_vis_matcher, r=cramertjkennytm-1/+1
Stabilize macro_vis_matcher This PR should stabilize [macro_vis_matcher](https://github.com/rust-lang/rust/issues/41022) feature. - [ ] "reference" book changes: https://github.com/rust-lang-nursery/reference/pull/400 - [ ] "Rust by example" book changes: https://github.com/rust-lang/rust-by-example/pull/1096 - [ ] "clippy" changes: https://github.com/rust-lang-nursery/rust-clippy/pull/3055 r? @cramertj
2018-08-19mv (mod) codemap source_mapDonato Sciarra-2/+2
2018-08-19Stabilize macro_vis_matcherJakub Kozlowski-1/+1
2018-08-13Move SmallVec and ThinVec out of libsyntaxljedrz-3/+3
2018-08-06Enable macro modularization implicitly if one of "advanced" macro features ↵Vadim Petrochenkov-3/+3
is enabled Do not mark all builtin attributes as used when macro modularization is enabled
2018-07-23Allow by default, fix testsmark-2/+4
2018-07-23Implement 2015 vs 2018 `?` kleene op + testmark-4/+3
2018-07-16rustc: Stabilize much of the `proc_macro` featureAlex Crichton-8/+8
This commit stabilizes some of the `proc_macro` language feature as well as a number of APIs in the `proc_macro` crate as [previously discussed][1]. This means that on stable Rust you can now define custom procedural macros which operate as attributes attached to items or `macro_rules!`-like bang-style invocations. This extends the suite of currently stable procedural macros, custom derives, with custom attributes and custom bang macros. Note though that despite the stabilization in this commit procedural macros are still not usable on stable Rust. To stabilize that we'll need to stabilize at least part of the `use_extern_macros` feature. Currently you can define a procedural macro attribute but you can't import it to call it! A summary of the changes made in this PR (as well as the various consequences) is: * The `proc_macro` language and library features are now stable. * Other APIs not stabilized in the `proc_macro` crate are now named under a different feature, such as `proc_macro_diagnostic` or `proc_macro_span`. * A few checks in resolution for `proc_macro` being enabled have switched over to `use_extern_macros` being enabled. This means that code using `#![feature(proc_macro)]` today will likely need to move to `#![feature(use_extern_macros)]`. It's intended that this PR, once landed, will be followed up with an attempt to stabilize a small slice of `use_extern_macros` just for procedural macros to make this feature 100% usable on stable. [1]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252
2018-06-27Implement `#[macro_export(local_inner_macros)]`Vadim Petrochenkov-0/+1
2018-05-27Make anon params lint warn-by-defaultMark Mansi-0/+1