-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 35 pull requests #40420
Rollup of 35 pull requests #40420
Commits on Feb 25, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 8a64cf7 - Browse repository at this point
Copy the full SHA 8a64cf7View commit details
Commits on Feb 28, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 53d3c89 - Browse repository at this point
Copy the full SHA 53d3c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54a1c8b - Browse repository at this point
Copy the full SHA 54a1c8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a40918 - Browse repository at this point
Copy the full SHA 2a40918View commit details -
Configuration menu - View commit details
-
Copy full SHA for be49671 - Browse repository at this point
Copy the full SHA be49671View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90e94d9 - Browse repository at this point
Copy the full SHA 90e94d9View commit details
Commits on Mar 8, 2017
-
Fixes rendering of the end of the `Configure and Make` section.
Configuration menu - View commit details
-
Copy full SHA for 234753a - Browse repository at this point
Copy the full SHA 234753aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3198904 - Browse repository at this point
Copy the full SHA 3198904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79a7ee8 - Browse repository at this point
Copy the full SHA 79a7ee8View commit details
Commits on Mar 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for edf5dc6 - Browse repository at this point
Copy the full SHA edf5dc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74bc7fd - Browse repository at this point
Copy the full SHA 74bc7fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eeede3 - Browse repository at this point
Copy the full SHA 4eeede3View commit details -
Configuration menu - View commit details
-
Copy full SHA for da6e7c8 - Browse repository at this point
Copy the full SHA da6e7c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57c989c - Browse repository at this point
Copy the full SHA 57c989cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e2390f - Browse repository at this point
Copy the full SHA 3e2390fView commit details -
rustbuild: expose LLVM_PARALLEL_LINK_JOBS
This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
Robin Kruppe committedMar 9, 2017 Configuration menu - View commit details
-
Copy full SHA for 58ff4f6 - Browse repository at this point
Copy the full SHA 58ff4f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8062cfb - Browse repository at this point
Copy the full SHA 8062cfbView commit details -
Do not bother creating StorageLive for TyNever
Keeps MIR cleaner, `StorageLive(_: !)` makes no sense anyway.
Configuration menu - View commit details
-
Copy full SHA for 84d1f6a - Browse repository at this point
Copy the full SHA 84d1f6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4078b25 - Browse repository at this point
Copy the full SHA 4078b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfb41ae - Browse repository at this point
Copy the full SHA cfb41aeView commit details -
gdb will now reliably detect the lanugage as rust even before any code is run.
Configuration menu - View commit details
-
Copy full SHA for b95b5db - Browse repository at this point
Copy the full SHA b95b5dbView commit details -
fix rust-lang#40294 obligation cause.body_id is not always a NodeExpr
Cengiz Can committedMar 9, 2017 Configuration menu - View commit details
-
Copy full SHA for 7f19f1f - Browse repository at this point
Copy the full SHA 7f19f1fView commit details
Commits on Mar 10, 2017
-
Add extra methods to IndexVec and implement TypeFoldable for it
Adds `get`/`get_mut` accessors and `drain`/`drain_enumerated` iterators to IndexVec. Implements TypeFoldable for IndexVec.
Configuration menu - View commit details
-
Copy full SHA for d708a40 - Browse repository at this point
Copy the full SHA d708a40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 540b52e - Browse repository at this point
Copy the full SHA 540b52eView commit details -
Initial implementation of inlining for MIR
Fairly basic implementation of inlining for MIR. Uses conservative heuristics for inlining.
Configuration menu - View commit details
-
Copy full SHA for 71d0d92 - Browse repository at this point
Copy the full SHA 71d0d92View commit details -
Configuration menu - View commit details
-
Copy full SHA for f55e92b - Browse repository at this point
Copy the full SHA f55e92bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eb26d1 - Browse repository at this point
Copy the full SHA 3eb26d1View commit details -
move related tests to type-check ui test directory
Cengiz Can committedMar 10, 2017 Configuration menu - View commit details
-
Copy full SHA for 889337d - Browse repository at this point
Copy the full SHA 889337dView commit details -
travis: Attempt to debug sccache failures
I can't find anything that'd cause unexpected EOF in the source, so let's try taking a look at the error logs on failures.
Configuration menu - View commit details
-
Copy full SHA for a8cacd3 - Browse repository at this point
Copy the full SHA a8cacd3View commit details -
Don't put Cargo into the rustc workspace
This causes problems when first cloning and bootstrapping the repository unfortunately, so let's ensure that Cargo sticks around in its own workspace. Because Cargo is a submodule it's not available by default on the inital clone of the rust-lang/rust repository. Normally it's the responsibility of the rustbuild to take care of this, but unfortunately to build rustbuild itself we need to resolve the workspace conflicts. To deal with this we'll just have to ensure that all submodules are in their own workspace, which sort of makes sense anyway as updates to dependencies as bugfixes to Cargo should go to rust-lang/cargo instead of rust-lang/rust. In any case this commit removes Cargo from the global workspace which should resolve the issues that we've been seeing. To actually perform this the `cargo` submodule has been moved to the top directory to ensure it's outside the scope of `src/Cargo.toml` as a workspace.
Configuration menu - View commit details
-
Copy full SHA for 7688222 - Browse repository at this point
Copy the full SHA 7688222View commit details -
Point to enclosing block/fn on nested unsafe
When declaring nested unsafe blocks (`unsafe {unsafe {}}`) that trigger the "unnecessary `unsafe` block" error, point out the enclosing `unsafe block` or `unsafe fn` that makes it unnecessary.
Configuration menu - View commit details
-
Copy full SHA for ac2bc7c - Browse repository at this point
Copy the full SHA ac2bc7cView commit details -
configure: Remove git probing logic
This is all in rustbuild already.
Configuration menu - View commit details
-
Copy full SHA for b68b6c2 - Browse repository at this point
Copy the full SHA b68b6c2View commit details -
configure: Remove md5 probing logic
This is all not used any more
Configuration menu - View commit details
-
Copy full SHA for f15a0c9 - Browse repository at this point
Copy the full SHA f15a0c9View commit details -
configure: Remove miscellaneous program probes
All of these should be handled by rustbuild in sanity.rs right now.
Configuration menu - View commit details
-
Copy full SHA for 8544d73 - Browse repository at this point
Copy the full SHA 8544d73View commit details -
configure: Remove some lldb-specific logic
All of this should already be vendored in rustbuild if necessary or otherwise it's just not used.
Configuration menu - View commit details
-
Copy full SHA for 1389f5d - Browse repository at this point
Copy the full SHA 1389f5dView commit details -
configure: Remove SUPPORTED_TARGET support
This is not used any more
Configuration menu - View commit details
-
Copy full SHA for 8407651 - Browse repository at this point
Copy the full SHA 8407651View commit details -
configure: Remove misc unused vars
None of this is used by rustbuild any more
Configuration menu - View commit details
-
Copy full SHA for 171ec25 - Browse repository at this point
Copy the full SHA 171ec25View commit details -
configure: Remove --build detection
This commit removes detection of CFG_OSTYPE and CFG_CPUTYPE from the configure script, which means that the default value of `--build` is no longer present in the configure script. All this logic is now available in rustbuild itself, so there's no need to duplicate it.
Configuration menu - View commit details
-
Copy full SHA for cd23f1c - Browse repository at this point
Copy the full SHA cd23f1cView commit details -
Export attributes in save-analysis data
Some annotations like the "test" annotations might be of interest for other projects, especially rls. Export all attributes in a new attributes item.
Configuration menu - View commit details
-
Copy full SHA for a07c9a2 - Browse repository at this point
Copy the full SHA a07c9a2View commit details -
Remove the AST structure
Configuration menu - View commit details
-
Copy full SHA for 203d227 - Browse repository at this point
Copy the full SHA 203d227View commit details -
Configuration menu - View commit details
-
Copy full SHA for db35604 - Browse repository at this point
Copy the full SHA db35604View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17e694d - Browse repository at this point
Copy the full SHA 17e694dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f0e9f3 - Browse repository at this point
Copy the full SHA 9f0e9f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b549f14 - Browse repository at this point
Copy the full SHA b549f14View commit details -
rustbuild: Build documentation for
proc_macro
This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by default for configured hosts. Unfortunately did not turn out to be a trivial fix. Currently rustbuild generates documentation into multiple locations: one for std, one for test, and one for rustc. The initial fix for this issue simply actually executed `cargo doc -p proc_macro` which was otherwise completely elided before. Unfortunately rustbuild was the left to merge two documentation trees together. One for the standard library and one for the rustc tree (which only had docs for the `proc_macro` crate). Rustdoc itself knows how to merge documentation files (specifically around search indexes, etc) but rustbuild was unaware of this, so an initial fix ended up destroying the sidebar and the search bar from the libstd docs. To solve this issue the method of documentation has been tweaked slightly in rustbuild. The build system will not use symlinks (or directory junctions on Windows) to generate all documentation into the same location initially. This'll rely on rustdoc's logic to weave together all the output and ensure that it ends up all consistent. Closes rust-lang#38749
Configuration menu - View commit details
-
Copy full SHA for 2b5f1b2 - Browse repository at this point
Copy the full SHA 2b5f1b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 212b6c2 - Browse repository at this point
Copy the full SHA 212b6c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e839486 - Browse repository at this point
Copy the full SHA e839486View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c98996 - Browse repository at this point
Copy the full SHA 8c98996View commit details -
Remove ability for plugins to register a MIR pass
In recent months there have been a few different people investigating how to make a plugin that registers a MIR-pass – one that isn’t intended to be eventually merged into rustc proper. The interface to register MIR passes was added primarily for miri (& later was found to make prototyping of rustc-proper MIR passes a tiny bit faster). Since miri does not use this interface anymore it seems like a good time to remove this "feature". For prototyping purposes a similar interface can be added by developers themselves in their custom rustc build.
Configuration menu - View commit details
-
Copy full SHA for 4ca9c97 - Browse repository at this point
Copy the full SHA 4ca9c97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c5584d - Browse repository at this point
Copy the full SHA 1c5584dView commit details -
Support armhf abi on 64-bit ARM cpus
They report their `uname -m` as armv8l rather than aarch64. Patch originally by Matthias Klose <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a55c8e - Browse repository at this point
Copy the full SHA 0a55c8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0dd7b - Browse repository at this point
Copy the full SHA 7b0dd7bView commit details -
A task function is now given as a `fn` pointer to ensure that it carries no state. Each fn can take two arguments, because that worked out to be convenient -- these two arguments must be of some type that is `DepGraphSafe`, a new trait that is intended to prevent "leaking" information into the task that was derived from tracked state. This intentionally leaves `DepGraph::in_task()`, the more common form, alone. Eventually all uses of `DepGraph::in_task()` should be ported to `with_task()`, but I wanted to start with a smaller subset. Originally I wanted to use closures bound by an auto trait, but that approach has some limitations: - the trait cannot have a `read()` method; since the current method is unused, that may not be a problem. - more importantly, we would want the auto trait to be "undefined" for all types *by default* -- that is, this use case doesn't really fit the typical auto trait scenario. For example, imagine that there is a `u32` loaded out of a `hir::Node` -- we don't really want to be passing that `u32` into the task!
Configuration menu - View commit details
-
Copy full SHA for 4b6b544 - Browse repository at this point
Copy the full SHA 4b6b544View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d5441f - Browse repository at this point
Copy the full SHA 4d5441fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5afe784 - Browse repository at this point
Copy the full SHA 5afe784View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d1343e - Browse repository at this point
Copy the full SHA 0d1343eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4b9284 - Browse repository at this point
Copy the full SHA c4b9284View commit details -
rustc: Exit quickly on only
--emit dep-info
This commit alters the compiler to exit quickly if the only output being emitted is `dep-info`, which doesn't need a lot of other information to generate. Closes rust-lang#40328
Configuration menu - View commit details
-
Copy full SHA for 5c8aa74 - Browse repository at this point
Copy the full SHA 5c8aa74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 880262a - Browse repository at this point
Copy the full SHA 880262aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5d1b9c - Browse repository at this point
Copy the full SHA e5d1b9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9b6318 - Browse repository at this point
Copy the full SHA c9b6318View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8ca084 - Browse repository at this point
Copy the full SHA d8ca084View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32575a0 - Browse repository at this point
Copy the full SHA 32575a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffdcf74 - Browse repository at this point
Copy the full SHA ffdcf74View commit details -
Configuration menu - View commit details
-
Copy full SHA for b959d13 - Browse repository at this point
Copy the full SHA b959d13View commit details -
This change introduces a Dockerfile and script which builds a complete Fuchsia toolchain which can be used to build Rust distribution for Fuchsia. We only support cross-compiling at the moment, hence only setting the target.
Configuration menu - View commit details
-
Copy full SHA for 9a84611 - Browse repository at this point
Copy the full SHA 9a84611View commit details -
Rollup merge of rust-lang#39202 - estebank:nested-unsafe, r=jonathand…
…turner Point to enclosing block/fn on nested unsafe When declaring nested unsafe blocks (`unsafe {unsafe {}}`) that trigger the "unnecessary `unsafe` block" error, point out the enclosing `unsafe block` or `unsafe fn` that makes it unnecessary. <img width="621" alt="" src="https://cloud.githubusercontent.com/assets/1606434/22139922/26ad468a-de9e-11e6-8884-2945be882ea8.png"> Fixes rust-lang#39144.
Configuration menu - View commit details
-
Copy full SHA for fe070a7 - Browse repository at this point
Copy the full SHA fe070a7View commit details -
Rollup merge of rust-lang#39648 - Aatch:mir-inlining-2, r=eddyb
[MIR] Implement Inlining Fairly basic implementation of inlining for MIR. Uses conservative heuristics for inlining. Doesn't handle a number of cases, but can be extended later. This is basically the same as the previous inlining PR, but without the span-related changes (as the bugs it was dealing with have since been fixed). /cc @rust-lang/compiler
Configuration menu - View commit details
-
Copy full SHA for ce13544 - Browse repository at this point
Copy the full SHA ce13544View commit details -
Rollup merge of rust-lang#39770 - alexcrichton:configure-clean, r=brson
Delete more swaths of the configure script This PR deletes more swaths of the `./configure` script which are either no longer necessary or already available in rustbuild (where an implementation is preferred)
Configuration menu - View commit details
-
Copy full SHA for 4eb4907 - Browse repository at this point
Copy the full SHA 4eb4907View commit details -
Rollup merge of rust-lang#39820 - jonasbb:export-attributes, r=nrc
Export attributes in save-analysis data Since this is my first pull-request to rust, I would like to get some feedback about obvious errors in this implementation. I would like to change the save-analysis data to include arbitrary attribute data. A use-case I have in mind for this is identifying functions with `#[test]` annotations such that tools like rls can offer a test-runner feature. I described my idea here [rls#173](rust-lang/rls#173). My changes contain: 1. track a vector of attributes in the various `*Data` types in `data.rs` and `external_data.rs` 2. implement lowering for `Attribute` and `MetaItem` 3. adjust `JsonDumper` to print the attributes In the lowering of `Attribute` I remove the distinction between `MetaItem` and `NestedMetaItem`. I did this because this distinction is somewhat confusing. For example, `NestedMetaItemKind::Literal` has two identical spans, because both `NestedMetaItem` and `Lit` are defined as `Spanned<_>`. My model is strictly more general, as it allows an `LitKind` instead of a `Symbol` for `MetaItem` and `Symbol`s are converted into a cooked string. As a consumer of the save-analysis data this shouldn't affect you much. Example json output of `#[test]` annotation: ``` "attributes": [ { "value": { "name": { "variant": "Str", "fields": [ "test", "Cooked" ] }, "kind": "Literal", "span": { "file_name": "test.rs", "byte_start": 2, "byte_end": 6, "line_start": 1, "line_end": 1, "column_start": 3, "column_end": 7 } }, "span": { "file_name": "test.rs", "byte_start": 0, "byte_end": 7, "line_start": 1, "line_end": 1, "column_start": 1, "column_end": 8 } } ] ```
Configuration menu - View commit details
-
Copy full SHA for 07dad02 - Browse repository at this point
Copy the full SHA 07dad02View commit details -
Rollup merge of rust-lang#39918 - petrhosek:fuchsia-ci, r=alexcrichton
travis: Fuchsia builder This change introduces a Dockerfile and script which builds a complete Fuchsia toolchain which can be used to build Rust distribution for Fuchsia. We only support cross-compiling at the moment, hence only setting the target.
Configuration menu - View commit details
-
Copy full SHA for 5c71f91 - Browse repository at this point
Copy the full SHA 5c71f91View commit details -
Rollup merge of rust-lang#39921 - cramertj:add-catch-to-ast, r=nikoma…
…tsakis Add catch {} to AST Part of rust-lang#39849. Builds on rust-lang#39864.
Configuration menu - View commit details
-
Copy full SHA for e2d3770 - Browse repository at this point
Copy the full SHA e2d3770View commit details -
Rollup merge of rust-lang#40092 - sinkuu:fix_suggestion_index, r=pnkf…
…elix Fix suggestion span error with a line containing multibyte characters This PR fixes broken suggestions caused by multibyte characters. e.g. for this code, rustc provides a broken suggestion ([playground](https://is.gd/DWGLu7)): ```rust fn main() { let tup = (1,); println!("☃{}", tup[0]); } ``` ``` error: cannot index a value of type `({integer},)` --> <anon>:3:21 | 3 | println!("☃{}", tup[0]); | ^^^^^^ | help: to access tuple elements, use tuple indexing syntax as shown | println!("☃{}"tup.00]); error: aborting due to previous error ``` `CodeSuggestion::splice_lines` is misusing `Loc.col` (`CharPos`) as a byte offset when slicing source.
Configuration menu - View commit details
-
Copy full SHA for 2cc1393 - Browse repository at this point
Copy the full SHA 2cc1393View commit details -
Rollup merge of rust-lang#40146 - bjorn3:few-infer-changes, r=pnkfelix
Better docs of rusty parts of typeck
Configuration menu - View commit details
-
Copy full SHA for fa87dcf - Browse repository at this point
Copy the full SHA fa87dcfView commit details -
Rollup merge of rust-lang#40199 - alexcrichton:doc-proc-macro, r=brson
rustbuild: Build documentation for `proc_macro` This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by default for configured hosts. Unfortunately did not turn out to be a trivial fix. Currently rustbuild generates documentation into multiple locations: one for std, one for test, and one for rustc. The initial fix for this issue simply actually executed `cargo doc -p proc_macro` which was otherwise completely elided before. Unfortunately rustbuild was the left to merge two documentation trees together. One for the standard library and one for the rustc tree (which only had docs for the `proc_macro` crate). Rustdoc itself knows how to merge documentation files (specifically around search indexes, etc) but rustbuild was unaware of this, so an initial fix ended up destroying the sidebar and the search bar from the libstd docs. To solve this issue the method of documentation has been tweaked slightly in rustbuild. The build system will not use symlinks (or directory junctions on Windows) to generate all documentation into the same location initially. This'll rely on rustdoc's logic to weave together all the output and ensure that it ends up all consistent. Closes rust-lang#38749
Configuration menu - View commit details
-
Copy full SHA for 4373708 - Browse repository at this point
Copy the full SHA 4373708View commit details -
Rollup merge of rust-lang#40225 - shepmaster:restore-build-date-file,…
… r=alexcrichton Restore creating the channel-rust-$channel-date.txt files I have **not** run this (because I don't know how to 😇), but it *does* compile. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 81d00d2 - Browse repository at this point
Copy the full SHA 81d00d2View commit details -
Rollup merge of rust-lang#40239 - nagisa:death-to-plugins, r=nikomats…
…akis Remove ability for plugins to register a MIR pass In recent months there have been a few different people investigating how to make a plugin that registers a MIR-pass – one that isn’t intended to be eventually merged into rustc proper. The interface to register MIR passes was added primarily for miri (& later was found to make prototyping of rustc-proper MIR passes a tiny bit faster). Since miri does not use this interface anymore it seems like a good time to remove this "feature". For prototyping purposes a similar interface can be added by developers themselves in their custom rustc build. cc @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for ae8ea0a - Browse repository at this point
Copy the full SHA ae8ea0aView commit details -
Rollup merge of rust-lang#40257 - pftbest:sret_msp430, r=alexcrichton
LLVM: Update submodule to include SRet support patch for MSP430. This patch is needed to fix rust-lang#38824 on MSP430. I know that LLVM 4 is coming soon, but it would be great to have at least one working nightly before the update. cc @awygle r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for e755fce - Browse repository at this point
Copy the full SHA e755fceView commit details -
Rollup merge of rust-lang#40259 - TimNN:fix-emscripten-tests, r=alexc…
…richton Fix emscripten test detection Without this change `rustbuild` will attempt to run `.js.map` files (if they exist) resulting in lots of sadness. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for a01c682 - Browse repository at this point
Copy the full SHA a01c682View commit details -
Rollup merge of rust-lang#40277 - rkruppe:llvm-parallel-link-jobs, r=…
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
Configuration menu - View commit details
-
Copy full SHA for cb2bd17 - Browse repository at this point
Copy the full SHA cb2bd17View commit details -
Rollup merge of rust-lang#40278 - GuillaumeGomez:css-cleanup, r=frewsxcv
Clean up rustdoc css r? @rust-lang/docs
Configuration menu - View commit details
-
Copy full SHA for 26c9656 - Browse repository at this point
Copy the full SHA 26c9656View commit details -
Rollup merge of rust-lang#40287 - estebank:label-overlap, r=nrc
Fix incorrect span label formatting Fix rust-lang#40157.
Configuration menu - View commit details
-
Copy full SHA for ef6979d - Browse repository at this point
Copy the full SHA ef6979dView commit details -
Rollup merge of rust-lang#40297 - alexcrichton:fix-submodules, r=brson
Don't put Cargo into the rustc workspace This causes problems when first cloning and bootstrapping the repository unfortunately, so let's ensure that Cargo sticks around in its own workspace. Because Cargo is a submodule it's not available by default on the inital clone of the rust-lang/rust repository. Normally it's the responsibility of the rustbuild to take care of this, but unfortunately to build rustbuild itself we need to resolve the workspace conflicts. To deal with this we'll just have to ensure that all submodules are in their own workspace, which sort of makes sense anyway as updates to dependencies as bugfixes to Cargo should go to rust-lang/cargo instead of rust-lang/rust. In any case this commit removes Cargo from the global workspace which should resolve the issues that we've been seeing. To actually perform this the `cargo` submodule has been moved to a new `vendor` directory to ensure it's outside the scope of `src/Cargo.toml` as a workspace. Closes rust-lang#40284
Configuration menu - View commit details
-
Copy full SHA for e4b2836 - Browse repository at this point
Copy the full SHA e4b2836View commit details -
Rollup merge of rust-lang#40308 - nikomatsakis:incr-comp-isolate-task…
…, r=mw first pass at isolating dep-graph tasks This intentionally leaves `DepGraph::in_task()`, the more common form, alone. Eventually all uses of `DepGraph::in_task()` should be ported to `with_task()`, but I wanted to start with a smaller subset. I also used `AssertDepGraphSafe` on the closures that are found in trans. This is because the types there are non-trivial and I wanted to lay down the mechanism and come back to the more subtle cases. The current approach taken in this PR has a downside: it is necessary to manually "reify" fn types into fn pointers when starting a task, like so: dep_graph.with_task(..., task_fn as fn(_)) this is because `with_task` takes some type `T` that implements `DepGraphTask` rather than taking a `fn()` type directly. *This* is so that we can accept closure and also so that we can accept fns with multiple arities. I am not sure this is the right approach. Originally I wanted to use closures bound by an auto trait, but that approach has some limitations: - the trait cannot have a `read()` method; since the current method is unused, that may not be a problem. - more importantly, we would want the auto trait to be "undefined" for all types *by default* -- that is, this use case doesn't really fit the typical auto trait scenario. For example, imagine that there is a `u32` loaded out of a `hir::Node` -- we don't really want to be passing that `u32` into the task!
Configuration menu - View commit details
-
Copy full SHA for 08a6149 - Browse repository at this point
Copy the full SHA 08a6149View commit details -
Rollup merge of rust-lang#40311 - nrc:save-proc-macro-attr, r=jseyfried
Expect macro defs in save-analysis and add expn info to spans for att… …r proc macros r? @jseyfried
Configuration menu - View commit details
-
Copy full SHA for 257266e - Browse repository at this point
Copy the full SHA 257266eView commit details -
Rollup merge of rust-lang#40315 - oli-obk:lint_body, r=eddyb
Allow lints to check Bodys directly r? @eddyb babysteps towards fixing https://github.com/Manishearth/rust-clippy/issues/1580 (disable certain lints in const environments, since they make no sense there (yet))
Configuration menu - View commit details
-
Copy full SHA for 883c918 - Browse repository at this point
Copy the full SHA 883c918View commit details -
Rollup merge of rust-lang#40319 - eddyb:it's-"unsize"-not-"unsound", …
…r=nikomatsakis Disallow subtyping between T and U in T: Unsize<U>. Because `&mut T` can be coerced to `&mut U`, `T` and `U` must be unified invariantly. Fixes rust-lang#40288. E.g. coercing `&mut [&'a X; N]` to `&mut [&'b X]` must require `'a` be equal to `'b`, otherwise you can convert between `&'a X` and `&'b X` (in either direction), potentially unsoundly lengthening lifetimes. Subtyping here was introduced with `Unsize` in rust-lang#24619 (landed in 1.1, original PR is rust-lang#23785).
Configuration menu - View commit details
-
Copy full SHA for 3d781fd - Browse repository at this point
Copy the full SHA 3d781fdView commit details -
Rollup merge of rust-lang#40324 - alexcrichton:sccache-errors, r=aturon
travis: Attempt to debug sccache failures I can't find anything that'd cause unexpected EOF in the source, so let's try taking a look at the error logs on failures.
Configuration menu - View commit details
-
Copy full SHA for 6dc03c3 - Browse repository at this point
Copy the full SHA 6dc03c3View commit details -
Rollup merge of rust-lang#40336 - alexcrichton:fast-dep-info, r=nrc
rustc: Exit quickly on only `--emit dep-info` This commit alters the compiler to exit quickly if the only output being emitted is `dep-info`, which doesn't need a lot of other information to generate. Closes rust-lang#40328
Configuration menu - View commit details
-
Copy full SHA for 88aa2ac - Browse repository at this point
Copy the full SHA 88aa2acView commit details -
Rollup merge of rust-lang#40340 - petrochenkov:restricted, r=nikomats…
…akis Update syntax for `pub(restricted)` Update the syntax before stabilization. cc rust-lang#32409 r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 7d8b9dd - Browse repository at this point
Copy the full SHA 7d8b9ddView commit details -
Rollup merge of rust-lang#40344 - nrc:save-container, r=eddyb
save-analysis: cope with lack of method data after a type error Fixes rust-lang#39957 r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for 132c3d2 - Browse repository at this point
Copy the full SHA 132c3d2View commit details -
Rollup merge of rust-lang#40345 - Nashenas88:patch-1, r=estebank
Fix missing backtick typo Fixes rendering of the end of the `Configure and Make` section.
Configuration menu - View commit details
-
Copy full SHA for 659e2ef - Browse repository at this point
Copy the full SHA 659e2efView commit details -
Rollup merge of rust-lang#40367 - eddyb:naked-cruft, r=nagisa
Improve the LLVM IR we generate for trivial functions, especially #[naked] ones. These two small changes fix edef1c/libfringe#68: * Don't emit ZST allocas, such as when returning `()` * Don't emit a branch from LLVM's entry block to MIR's `START_BLOCK` unless needed * That is, if a loop branches back to it, although I'm not sure that's even valid MIR
Configuration menu - View commit details
-
Copy full SHA for ecdf28c - Browse repository at this point
Copy the full SHA ecdf28cView commit details -
Rollup merge of rust-lang#40369 - petrochenkov:segspan, r=eddyb
Give spans to individual path segments in AST And use these spans in path resolution diagnostics. The spans are spans of identifiers in segments, not whole segments. I'm not sure what spans are more useful in general, but identifier spans are a better fit for resolve errors. HIR still doesn't have spans. Fixes rust-lang#38927 (comment) rust-lang#38890 (comment) r? @nrc @eddyb
Configuration menu - View commit details
-
Copy full SHA for 9344e11 - Browse repository at this point
Copy the full SHA 9344e11View commit details -
Rollup merge of rust-lang#40372 - nagisa:never-drop, r=eddyb
Do not bother creating StorageLive for TyNever Keeps MIR cleaner, `StorageLive(_: !)` makes no sense anyway. r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for 217b220 - Browse repository at this point
Copy the full SHA 217b220View commit details -
Rollup merge of rust-lang#40373 - TimNN:test-ub-packed, r=arielb1
Fix UB in repr(packed) tests r? @arielb1 cc rust-lang#37609 and rust-lang#27060
Configuration menu - View commit details
-
Copy full SHA for 01aaaec - Browse repository at this point
Copy the full SHA 01aaaecView commit details -
Rollup merge of rust-lang#40379 - clarcharr:box_docs, r=brson
Box docs: no allocation is done for ZSTs. Updated to add a small bit saying that ZSTs don't actually allocate on `Box::new`.
Configuration menu - View commit details
-
Copy full SHA for bf6c025 - Browse repository at this point
Copy the full SHA bf6c025View commit details -
Rollup merge of rust-lang#40386 - tbu-:pr_display_frombyteswithnulerr…
…or, r=alexcrichton Distinguish the ways `CStr::from_bytes_with_nul` can fail
Configuration menu - View commit details
-
Copy full SHA for 7f3bfd2 - Browse repository at this point
Copy the full SHA 7f3bfd2View commit details -
Rollup merge of rust-lang#40389 - F001:placementVecDeque, r=nagisa
Implement placement-in protocol for `VecDeque` CC rust-lang#30172 r? @nagisa
Configuration menu - View commit details
-
Copy full SHA for e50254d - Browse repository at this point
Copy the full SHA e50254dView commit details -
Rollup merge of rust-lang#40400 - TimNN:gdbr-updates, r=alexcrichton
Update gdbr tests gdb will now reliably detect the lanugage as rust even before any code is run.
Configuration menu - View commit details
-
Copy full SHA for 7f67a48 - Browse repository at this point
Copy the full SHA 7f67a48View commit details -
Rollup merge of rust-lang#40404 - cengizIO:master, r=nikomatsakis
fix rust-lang#40294 obligation cause.body_id is not always a NodeExpr Hello! This fixes rust-lang#40294 and moves tests related to rust-lang#38812 to a much more sensible directory. Thanks to @nikomatsakis and @eddyb
Configuration menu - View commit details
-
Copy full SHA for 423aaa1 - Browse repository at this point
Copy the full SHA 423aaa1View commit details -
rustc: Support auto-retry linking on a segfault
This is a last-ditch attempt to help our pain with dealing with rust-lang#38878 on the bots. A new environment variable is added to the compiler, `RUSTC_RETRY_LINKER_ON_SEGFAULT`, which will instruct the compiler to automatically retry the final linker invocation if it looks like the linker segfaulted (up to 2 extra times). Unfortunately there have been no successful attempts to debug rust-lang#38878. The only information seems to be that the linker (e.g. `ld` on OSX) is segfaulting somewhere in some thread pool implementation. This appears to be spurious as failed PRs will later merge. The hope is that this helps the queue keep moving without clogging and delaying PRs due to rust-lang#38878.
Configuration menu - View commit details
-
Copy full SHA for 993eae1 - Browse repository at this point
Copy the full SHA 993eae1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83814fd - Browse repository at this point
Copy the full SHA 83814fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f967b6e - Browse repository at this point
Copy the full SHA f967b6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 197b722 - Browse repository at this point
Copy the full SHA 197b722View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f97d6b - Browse repository at this point
Copy the full SHA 6f97d6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 992d99b - Browse repository at this point
Copy the full SHA 992d99bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f970a07 - Browse repository at this point
Copy the full SHA f970a07View commit details -
Configuration menu - View commit details
-
Copy full SHA for d269f8d - Browse repository at this point
Copy the full SHA d269f8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 384ee48 - Browse repository at this point
Copy the full SHA 384ee48View commit details -
travis: Remove compiling OpenSSL through homebrew
I don't believe that we need this any more now that `cargo-vendor` isn't installed to create a source tarball (that only happens on Linux)
Configuration menu - View commit details
-
Copy full SHA for dcfc7ee - Browse repository at this point
Copy the full SHA dcfc7eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f7add5 - Browse repository at this point
Copy the full SHA 8f7add5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5be9027 - Browse repository at this point
Copy the full SHA 5be9027View commit details -
Configuration menu - View commit details
-
Copy full SHA for d854915 - Browse repository at this point
Copy the full SHA d854915View commit details -
This brings back playpen integration for the books.
Configuration menu - View commit details
-
Copy full SHA for fdf48cd - Browse repository at this point
Copy the full SHA fdf48cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0885fe8 - Browse repository at this point
Copy the full SHA 0885fe8View commit details