about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-12-13Improve interaction between macros 2.0 and `macro_rules!`.Jeffrey Seyfried-9/+126
2017-12-13Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrcbors-140/+174
macros: hygienize use of `core`/`std` in builtin macros Today, if a builtin macro wants to access an item from `core` or `std` (depending `#![no_std]`), it generates `::core::path::to::item` or `::std::path::to::item` respectively (c.f. `fn std_path()` in `libsyntax/ext/base.rs`). This PR refactors the builtin macros to instead always emit `$crate::path::to::item` here. That is, the def site of builtin macros is taken to be in `extern crate core;` or `extern crate std;`. Since builtin macros are macros 1.0 (i.e. mostly unhygienic), changing the def site can only effect the resolution of `$crate`. r? @nrc
2017-12-13Auto merge of #46419 - jseyfried:all_imports_in_metadata, r=nrcbors-28/+142
Record all imports (`use`, `extern crate`) in the crate metadata This PR adds non-`pub` `use` and `extern crate` imports in the crate metadata since hygienic macros invoked in other crates may use them. We already include all other non-`pub` items in the crate metadata. This improves import suggestions in some cases. Fixes #42337. r? @nrc
2017-12-12Improve pretty printing `$crate::` paths.Jeffrey Seyfried-21/+44
2017-12-13Auto merge of #46616 - cramertj:impl-trait-elision, r=nikomatsakisbors-56/+135
Implement impl Trait lifetime elision Fixes #43396. There's one weird ICE in the interaction with argument-position `impl Trait`. I'm still debugging it-- I've left a test for it commented out with a FIXME. Also included a FIXME to ensure that `impl Trait` traits are caught under the lint in https://github.com/rust-lang/rust/issues/45992. r? @nikomatsakis
2017-12-13Auto merge of #46613 - petrochenkov:absext, r=nikomatsakisbors-57/+264
Resolve absolute paths as extern under a feature flag cc https://github.com/rust-lang/rust/issues/44660 r? @nikomatsakis
2017-12-12Auto merge of #46570 - AgustinCB:issue-46553, r=oli-obkbors-2/+33
Ignore `unsopported constant expr` error Fixes #46553
2017-12-12Refactor `MarkData` field `modern: bool` to `kind: MarkKind`.Jeffrey Seyfried-14/+28
2017-12-12Fix fallout in tests.Jeffrey Seyfried-7/+7
2017-12-13Resolve absolute paths as extern under a feature flagVadim Petrochenkov-3/+238
2017-12-12rustc_metadata: Refactor away `ExternCrateInfo`Vadim Petrochenkov-54/+26
2017-12-13Rollup merge of #46691 - varkor:contrib-3, r=rkruppekennytm-2/+2
Fix return value of `LLVMRustMetadataAsValue` `LLVMRustMetadataAsValue` would previously return `void`, despite the corresponding Rust function expecting to return a `ValueRef`.
2017-12-13Rollup merge of #46672 - GuillaumeGomez:fix-type-filter-search, ↵kennytm-4/+4
r=QuietMisdreavus Fix type filter in rustdoc js Fixes #46612. r? @QuietMisdreavus
2017-12-13Rollup merge of #46668 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavuskennytm-4/+27
Fix mobile doc style and improve search bar Fixes #46593. r? @QuietMisdreavus
2017-12-12Implement impl Trait lifetime elisionTaylor Cramer-56/+135
2017-12-12Fix return value of `LLVMRustMetadataAsValue`varkor-2/+2
`LLVMRustMetadataAsValue` would previously return `void`, despite the corresponding Rust function expecting to return a `ValueRef`.
2017-12-12Auto merge of #46647 - varkor:contrib-1, r=sfacklerbors-0/+8
Add `std::fmt::Pointer` implementation for `AtomicPtr` Resolves #29212.
2017-12-12Auto merge of #46250 - canndrew:rename-never-type-impl-gate, r=petrochenkovbors-8/+8
Rename never_type_impls gate We no longer need a separately-named `never_type_impls` gate thanks to https://github.com/rust-lang/rust/issues/43089.
2017-12-12Auto merge of #46674 - malbarbo:undist-armv5te, r=alexcrichtonbors-6/+1
Remove armv5te target from dist-various-1 Reverts https://github.com/rust-lang/rust/pull/46498 I must have made some mistake when I tested that commit and thought armv5te target worked. but testing it now the produced binaries segfaults (https://github.com/rust-lang/rust/pull/46498#issuecomment-350599233). I tried using crosstool-ng and buildroot toolchain (for armv5te) but the produced binaries also segfaults. Maybe there is a issue with the target, but I cannot investigate it any further. I think the best for now is not to distribute the armv5te target. I'm sorry for what happened.
2017-12-12Auto merge of #46598 - davidtwco:issue-46471, r=arielb1bors-51/+297
MIR borrowck: error message confuses locals and temporaries Fixes #46471 and fixes #46472 (see [this Gitter comment](https://gitter.im/rust-impl-period/WG-compiler-nll?at=5a2d5cb53ae2aa6b3facf0c2)). r? @arielb1
2017-12-12Rename never_type_impls gate to never_typeAndrew Cann-8/+8
2017-12-12Auto merge of #46411 - rillian:str_ascii, r=kennytmbors-24/+24
Mark ascii methods on primitive types stable in 1.23.0 not 1.21.0. The ascii_methods_on_intrinsics feature stabilization didn't land in time for 1.21.0. Update the annotation so the documentation is correct about when these methods became available.
2017-12-12Auto merge of #46657 - nikomatsakis:resolve-lifetimes-query, r=arielb1bors-647/+937
move `resolve_lifetimes` into a proper query Now that we made `resolve_lifetimes` into a query, elision errors no longer abort compilation, which affects some tests. Also, remove `dep_graph_crosscontaminate_tables` -- there is no a path in the dep-graph, though red-green handles it. The same scenario is (correctly) tested by issue-42602.rs in any case. r? @michaelwoerister
2017-12-11Remove armv5te target from dist-various-1Marco A L Barbosa-6/+1
Reverts https://github.com/rust-lang/rust/pull/46498 I must have made some mistake when I tested that commit and thought armv5te target worked. but testing it now the produced binaries segfaults (https://github.com/rust-lang/rust/pull/46498#issuecomment-350599233). I tried using crosstool-ng and buildroot toolchain (for armv5te) but the produced binaries also segfaults. Maybe there is a issue with the target, but I cannot investigate it any further. I think the best for now is not to distribute the armv5te target. I'm sorry for what happened.
2017-12-12Fix type filter in rustdoc jsGuillaume Gomez-4/+4
2017-12-11Updated existing tests with new error messages.David Wood-46/+57
2017-12-11Refactored and tidied up report functionDavid Wood-53/+92
2017-12-11Fix mobile doc style and improve search barGuillaume Gomez-4/+27
2017-12-11Auto merge of #46608 - estebank:resolve-return, r=nikomatsakisbors-7/+51
Resolve type on return type suggestion Partially address #45871.
2017-12-11make `krate` infallibleNiko Matsakis-4/+3
2017-12-11Fixed case where borrowed value lives until after scopeDavid Wood-8/+69
2017-12-11Fix error does not know about free/named lifetimesDavid Wood-11/+26
2017-12-11Added test for #46472David Wood-1/+65
2017-12-11Fix error message confuses locals and temporariesDavid Wood-10/+22
2017-12-11Added test for #46471David Wood-0/+44
2017-12-11Auto merge of #46558 - arielb1:union-borrow-refactor, r=nikomatsakisbors-1336/+1358
Clean up the MIR borrowck code I want to avoid the new code to start with so much technical debt. r? @nikomatsakis
2017-12-11move `resolve_lifetimes` into a proper queryNiko Matsakis-237/+283
Now that we made `resolve_lifetimes` into a query, elision errors no longer abort compilation, which affects some tests. Also, remove `dep_graph_crosscontaminate_tables` -- there is no a path in the dep-graph, though red-green handles it. The same scenario is (correctly) tested by issue-42602.rs in any case.
2017-12-11resolve_lifetime: rustfmtNiko Matsakis-476/+721
2017-12-11Auto merge of #46640 - tommyip:ui_tests, r=estebankbors-203/+253
Enforce successful ui tests to have must-compile-successfully flag. r? @nikomatsakis cc @oli-obk Fixes #46587
2017-12-11Auto merge of #46625 - emilio:moar-nits, r=kennytmbors-1/+1
infer: Fix typo in README. Was just reading through it and found this, not a big deal but...
2017-12-11Auto merge of #46624 - emilio:nit, r=kennytmbors-4/+4
rustc_trans: Fix indentation in trans_set_discr. Just noticed this while reading through #46521, which introduced this weird alignment.
2017-12-10Auto merge of #46248 - ↵bors-24/+148
zackmdavis:one_time_private_enum_variant_reexport_error, r=estebank one-time diagnostics for private enum variants glob reëxport ![private_enum_reexport](https://user-images.githubusercontent.com/1076988/33224719-4e5805f0-d121-11e7-8bc0-a708a277a5db.png) r? @estebank
2017-12-10Add `std::fmt::Pointer` implementation for `AtomicPtr`varkor-0/+8
Resolves #29212.
2017-12-10Update ui tests' line numbers.Tommy Ip-192/+192
2017-12-10Add must-compile-successfully comment to appropriate ui tests.Tommy Ip-0/+44
2017-12-10Imply must-compile-successfully in ui-tests when the run-pass flag is present.Tommy Ip-4/+6
2017-12-10Enforce successful ui tests to have must-compile-successfully flag.Tommy Ip-7/+11
2017-12-10Auto merge of #46232 - canndrew:never-docs, r=QuietMisdreavusbors-1/+135
Add docs for never primitive cc @nikomatsakis, @QuietMisdreavus
2017-12-10rustc_trans: Fix indentation in trans_set_discr.Emilio Cobos Álvarez-4/+4
Just noticed this while reading through #46521, which introduced this weird alignment.
2017-12-10infer: Fix typo in README.Emilio Cobos Álvarez-1/+1
Was just reading through it and found this, not a big deal but...