about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-12Auto merge of #58180 - davidtwco:issue-58053, r=estebankbors-2/+39
Fix span for closure return type when annotated. Fixes #58053. This PR adjusts the span used to label closure return types so that if the user specifies the return type, i.e. `|_| -> X {}` instead of `|_| {}`, we correctly highlight all of it and not just the last character. r? @pnkfelix
2019-02-12libterm => 2018Mazdak Farrokhzad-39/+42
2019-02-11[self-profiler] Misc cleanupsWesley Wiser-15/+4
2019-02-11Capture time spent blocked waiting on queriesWesley Wiser-4/+39
This captures time spent blocked when a query is waiting for another query to finish executing in another thread.
2019-02-11Add self profiler events for loading incremental query results from diskWesley Wiser-3/+31
2019-02-11libarena => 2018Mazdak Farrokhzad-10/+11
2019-02-11use ignore directives for run-make testsAndy Russell-297/+127
This makes the tests easier to read, and makes it possible to tell which tests aren't being run on the host platform. Fixes #56704.
2019-02-11remove "experimental" wording from std::os::unixAndy Russell-1/+1
2019-02-11Use hidden suggestions for unused imports lintEsteban Küber-35/+73
2019-02-11Only suggest imports if not imported.David Wood-17/+63
This commit modifies name resolution error reporting so that if a name is in scope and has been imported then we do not suggest importing it. This can occur when we add a label about constructors not being visible due to private fields. In these cases, we know that the struct/variant has been imported and we should silence any suggestions to import the struct/variant.
2019-02-11Add way to completely hide suggestion from cli outputEsteban Küber-3/+47
2019-02-11Never inline HideCodeAlways suggestionsEsteban Küber-1/+4
2019-02-11Expose hidden snippet suggestionsEsteban Küber-0/+43
2019-02-11Add way to hide suggestion snippet window from cli outputEsteban Küber-36/+84
2019-02-11rename variable and add test directive for #58030Patrick McCarter-2/+3
2019-02-11Parallel rustc needs synchronizing smart pointer cloningOliver Scherer-7/+7
2019-02-11Allow platform specific testsOliver Scherer-0/+1
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-50/+54
2019-02-11Fiddle through the module visibilities for testsOliver Scherer-8/+8
2019-02-11Move out tests of a deprecated module to work around `#[test]` bugsOliver Scherer-414/+416
https://github.com/rust-lang/rust/issues/47238
2019-02-11Use `allow_internal_unstable` in rustc itselfOliver Scherer-1/+2
2019-02-11Update fulldeps testOliver Scherer-1/+1
2019-02-11Fixup RustcDeserialize internal featuresOliver Scherer-0/+1
2019-02-11Use a more fitting name for a respanning functionOliver Scherer-6/+8
2019-02-11Consistent attribute argument suggestionOliver Scherer-1/+1
2019-02-11Rename the `exp` field to mirror its usesOliver Scherer-4/+4
2019-02-11Ease the transition to requiring features by just warning if there's no ↵Oliver Scherer-10/+20
feature list while we could make this change (it's all unstable after all), there are crates.io crates that use the feature and that the compiler depends upon. We can instead roll out this feature while still supporting the old way.
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-93/+182
2019-02-11This fixes doctests in stage 1Mark Rousskov-24/+17
The RUSTDOC_LIBDIR should be rustc_libdir, not sysroot_libdir; rustdoc is like the compiler and should link against rustc's libdir. Some people currently (i.e., in general, may not be on master) have doc tests working, but no attempt to determine why has been attempted.
2019-02-11Never build rustdoc in stage 0Mark Rousskov-0/+6
When a request for rustdoc is passed for stage 0, x.py build --stage 0 src/tools/rustdoc or ensure(tool::Rustdoc { .. }) with top_stage = 0, we return the rustdoc for that compiler (i.e., the beta rustdoc).
2019-02-11Add a test for rustc_deprecatedvarkor-0/+29
2019-02-11Add rustdoc index page test for future deprecation attributesvarkor-0/+2
2019-02-11Add a rustdoc test for future rustc_deprecated attributesvarkor-0/+11
2019-02-11Update existing rustdoc testvarkor-6/+8
2019-02-11Display "Deprecation planned" in rustdoc for future rustc deprecationsvarkor-9/+22
2019-02-11Don't display "Deprecated since" for non-rustc deprecated itemsvarkor-2/+4
2019-02-11Do not apply future deprecation warning for #[deprecated]varkor-84/+67
2019-02-11Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebankbors-51/+228
Initial implementation of rustfixable unused_imports lint This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless. cc https://github.com/rust-lang/rust/issues/47888 <details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary> ![screenshot from 2018-12-09 15-49-01](https://user-images.githubusercontent.com/2299951/49698874-3a026080-fbca-11e8-9bf1-24060b6c59c8.png) </details>
2019-02-11Auto merge of #58153 - ljedrz:HirIdify_typeck, r=Zoxcbors-47/+49
Partially Hiridify typeck Another step towards https://github.com/rust-lang/rust/pull/57578.
2019-02-11Remove two dead functions.Nicholas Nethercote-33/+0
2019-02-11Auto merge of #58152 - ljedrz:HirIdify_mir, r=Zoxcbors-23/+20
Partially HirIdify mir Another step towards https://github.com/rust-lang/rust/pull/57578.
2019-02-11Auto merge of #58358 - pietroalbini:update-cargo, r=Mark-Simulacrumbors-0/+0
Bump cargo to 865cb70 Merged PRs: * Replace util::without_prefix with Path::strip_prefix rust-lang/cargo#6620 * keep track of crates that are whitelisted to be used even if yanked rust-lang/cargo#6611 * Fix default DYLD_FALLBACK_LIBRARY_PATH on MacOS. rust-lang/cargo#6625 * Bail when trying to run "test --doc --no-run" rust-lang/cargo#6628 * In cargo test's help, add that examples are built rust-lang/cargo#6619 * Extract & re-use filter_targets in cargo_compile rust-lang/cargo#6621 * Test cleanup: remove unnecessary with_status(0) rust-lang/cargo#6630 * Fix run's help message rust-lang/cargo#6631 * Some updates to bash completion. rust-lang/cargo#6644 * Introduce Source::download_now rust-lang/cargo#6637 * Switch from unused_imports to deprecated to test unfixable warnings rust-lang/cargo#6649
2019-02-10Re-blessed tests.Alexander Regueiro-1/+3
2019-02-10tools: doc commentsAlexander Regueiro-30/+30
2019-02-10libs: doc commentsAlexander Regueiro-387/+394
2019-02-11Add an option to print the status of incremental tasks / dep nodes after ↵John Kåre Alsaker-0/+17
running them
2019-02-10tests: doc commentsAlexander Regueiro-164/+164
2019-02-10rustc: doc commentsAlexander Regueiro-2241/+2260
2019-02-10Auto merge of #58361 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-101/+303
Rollup of 16 pull requests Successful merges: - #57259 (Update reference of rlibc crate to compiler-builtins crate) - #57740 (Use `to_ne_bytes` for converting IPv4Addr to octets) - #57926 (Tiny expansion to docs for `core::convert`.) - #58157 (Add Cargo.lock automatically adding message) - #58203 (rustdoc: display sugared return types for async functions) - #58243 (Add trait alias support in rustdoc) - #58262 (Add #[must_use] message to Fn* traits) - #58295 (std::sys::unix::stdio: explain why we do into_raw) - #58297 (Cleanup JS a bit) - #58317 (Some writing improvement, conciseness of intro) - #58324 (miri: give non-generic functions a stable address) - #58332 (operand-to-place copies should never be overlapping) - #58345 (When there are multiple filenames, print what got interpreted as filenames) - #58346 (rpath computation: explain why we pop()) - #58350 (Fix failing tidy (line endings on Windows)) - #58352 (miri value visitor: use `?` in macro) Failed merges: r? @ghost
2019-02-10Rollup merge of #58352 - RalfJung:macro, r=oli-obkGuillaume Gomez-3/+3
miri value visitor: use `?` in macro