Dale Wijnand [Mon, 9 Apr 2018 21:59:31 +0000 (22:59 +0100)]
Tweak rustfmt details in CONTRIBUTING.md
Closes #5329
bors [Mon, 9 Apr 2018 18:41:15 +0000 (18:41 +0000)]
Auto merge of #5325 - dwijnand:patch-1, r=matklad
Fix link to I-nominated in CONTRIBUTING.md
Dale Wijnand [Mon, 9 Apr 2018 18:38:58 +0000 (19:38 +0100)]
Fix link to I-nominated in CONTRIBUTING.md
bors [Mon, 9 Apr 2018 13:19:05 +0000 (13:19 +0000)]
Auto merge of #5323 - matklad:document-good-stuff, r=alexcrichton
Document how to use Cargo's internal logging
I always forget the syntax for filtering by module, and I've learned about `CARGO_PROFILE` yesterday, so let's document these for other contributors as well :-)
bors [Sun, 8 Apr 2018 22:02:15 +0000 (22:02 +0000)]
Auto merge of #5318 - ehuss:unstable-docs, r=matklad
Add unstable documentation.
I kept most of these relatively brief with the intent that more complete
documentation would be added when a feature is stabilized. I did my best to be
accurate, but I am unfamiliar with most of these features, so please let me know
if anything should change.
@matklad: I didn't fully understand the use case for `minimal-versions`, so I
didn't say much about it. In particular, I didn't understand why one wouldn't
just use `~` or `=` semver requirements if you wanted to be careful about not
pulling in a newer version. When someone says "1.0", aren't they explicitly
saying they want a newer version (up to 2.0) if it's available? The example
in the RFC of switching a dependency to "=1.0" sounds like a breaking change
(essentially downgrading a dependency).
Eric Huss [Sun, 8 Apr 2018 17:52:57 +0000 (10:52 -0700)]
Update out-dir option for #5322.
Eric Huss [Sun, 8 Apr 2018 17:40:50 +0000 (10:40 -0700)]
Clarify -Z minimal-versions.
Eric Huss [Sat, 7 Apr 2018 21:11:07 +0000 (14:11 -0700)]
Add unstable documentation.
I kept most of these relatively brief with the intent that more complete
documentation would be added when a feature is stabilized. I did my best to be
accurate, but I am unfamiliar with most of these features, so please let me know
if anything should change.
@matklad: I didn't fully understand the use case for `minimal-versions`, so I
didn't say much about it. In particular, I didn't understand why one wouldn't
just use `~` or `=` semver requirements if you wanted to be careful about not
pulling in a newer version. When someone says "1.0", aren't they explicitly
saying they want a newer version (up to 2.0) if it's available? The example
in the RFC of switching a dependency to "=1.0" sounds like a breaking change
(essentially downgrading a dependency).
bors [Sun, 8 Apr 2018 17:11:32 +0000 (17:11 +0000)]
Auto merge of #5322 - matklad:correctly-use-unstable-options, r=alexcrichton
Properly use unstable options for out-dir
@alexcrichton how exactly are unstable CLI options supposed to be handled?
One can do `-Z unstable-options my-opt` (this is done for `registry`, and this pr uses the same approach for `out-dir`). Once can also do `-Z my-opt`. Doc comments say that `-Z my-opt=val` is also possible, but in reality it does not work.
This infra was inherited from `rustc`, which is a slightly different use-case, because it does not have subcommands. That is, if you do `-Z my-opt`, it is available for all subcommands, but does not show up in the help...
What do you think about having only `-Z unstable-options` to unlock all cli options? Or do we require a finer-graind granularity?
Somewhat related, we have a bunch of unstable options already... Do we have tracking issues for them, to know when the time comes to graduate them to stable?
Aleksey Kladov [Sun, 8 Apr 2018 15:28:27 +0000 (18:28 +0300)]
Document how to use Cargo's internal logging
bors [Sun, 8 Apr 2018 15:21:20 +0000 (15:21 +0000)]
Auto merge of #5319 - matklad:fix-profiler, r=Eh2406
Don't print profiling information twice
It's important to `.clear` the messages so that we don't print them
again for the next "profiling session". It might be argued that really
we should have a single "profiling session" for Cargo, but we don't at
the moment.
And, while we are at it, let's lock stdout as well, so that we won't
get confused when Cargo becomes multi-threaded and prints profiling info
from several threads simultaneously.
Aleksey Kladov [Sun, 8 Apr 2018 11:47:35 +0000 (14:47 +0300)]
Properly use unstable options for out-dir
Aleksey Kladov [Sun, 8 Apr 2018 08:37:05 +0000 (11:37 +0300)]
Don't print profiling information twice
It's important to `.clear` the messages so that we don't print them
again for the next "profiling session". It might be argued that really
we should have a single "profiling session" for Cargo, but we don't at
the moment.
And, while we are at it, let's lock stdout as well, so that we won't
get confused when Cargo becomes multi-threaded and prints profiling info
from several threads simultaneously.
bors [Sat, 7 Apr 2018 18:58:39 +0000 (18:58 +0000)]
Auto merge of #5317 - konstin:patch-1, r=matklad
Add link to the sources of the book
It's quite hard to find the folder with the sources of the book, so I added the link to the introduction.
konstin [Sat, 7 Apr 2018 18:42:33 +0000 (20:42 +0200)]
Add link to the sources of the book
It's quite hard to find the folder with the sources of the book, so I added the link to the introduction.
bors [Sat, 7 Apr 2018 16:44:28 +0000 (16:44 +0000)]
Auto merge of #5316 - matklad:profile-important-things, r=alexcrichton
Add profiling calls to stuff which is actually slow
So these two functions is what makes no-op build slow, so let's profile them to be able to track regressions better in the future.
Aleksey Kladov [Sat, 7 Apr 2018 15:43:23 +0000 (18:43 +0300)]
Add profiling calls to stuff which is actually slow
bors [Sat, 7 Apr 2018 14:30:47 +0000 (14:30 +0000)]
Auto merge of #5314 - matklad:need-more-time, r=alexcrichton
Try to measure all time it takes to compile code
As @killercup noticed on IRC, no-op build by Cargo takes as much as 300 ms (on stable, beta and nightly), which seems unreasonable. However, Cargo wrongly reports ` Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs`, and this might be the reason why we haven't noticed this before.
So let's try to measure time slightly better:
```
~/projects/rustraytracer master*
λ time cargo +stable build
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
cargo +stable build 0.16s user 0.02s system 94% cpu 0.195 total
~/projects/rustraytracer master*
λ time $c build # Cargo with this patch applied
Finished dev [unoptimized + debuginfo] target(s) in 0.31 secs
$c build 0.30s user 0.02s system 96% cpu 0.330 total
```
r? @alexcrichton
Aleksey Kladov [Sat, 7 Apr 2018 14:12:14 +0000 (17:12 +0300)]
Try to measure all time it takes to compile code
bors [Fri, 6 Apr 2018 19:45:16 +0000 (19:45 +0000)]
Auto merge of #5307 - alexcrichton:another-fix, r=matklad
Fix another issue of poisoning too eagerly
This commit extends the fix in #5288 by moving the logic added farther up in the
loop over package dependencies. This means that we won't recursively look at
optional/dev path dependencies which aren't members of the workspace. This
should fix the new issue that came up in #5257
Closes #5257
Alex Crichton [Fri, 6 Apr 2018 19:35:37 +0000 (12:35 -0700)]
Fix another issue of poisoning too eagerly
This commit extends the fix in #5288 by moving the logic added farther up in the
loop over package dependencies. This means that we won't recursively look at
optional/dev path dependencies which aren't members of the workspace. This
should fix the new issue that came up in #5257
Closes #5257
bors [Fri, 6 Apr 2018 18:52:22 +0000 (18:52 +0000)]
Auto merge of #5302 - Eh2406:MoreRc, r=alexcrichton
use more Rc in the part of resolver that gets cloned a lot 2
This is the same idea as https://github.com/rust-lang/cargo/pull/5118, I was looking at a profile and noted that ~5% of our time was sent dropping `HashMap<PackageId, HashSet<InternedString>>`. A quick rg and I found the culprit, we are cloning the set of features for every new `Context`. With some Rc we are now just cloning for each time we insert.
To benchmark I commented out line https://github.com/rust-lang/cargo/blob/
b9aa315158fe4d8d63672a49200401922ef7385d/src/cargo/core/resolver/mod.rs#L453
the smallest change to get https://github.com/rust-lang/cargo/issues/4810#issuecomment-
357553286 not to solve instantly.
Before
17000000 ticks, 90s, 188.889 ticks/ms
After
17000000 ticks, 73s, 232.877 ticks/ms
Eh2406 [Fri, 6 Apr 2018 16:38:41 +0000 (12:38 -0400)]
use make_mut for cleaner code
Eh2406 [Thu, 5 Apr 2018 20:34:49 +0000 (16:34 -0400)]
use more Rc in the part of resolver that gets cloned a lot
bors [Thu, 5 Apr 2018 15:26:56 +0000 (15:26 +0000)]
Auto merge of #5299 - ehuss:rustdoc-edition, r=matklad
Pass edition to rustdoc.
Fixes #5279.
Eric Huss [Thu, 5 Apr 2018 13:42:48 +0000 (06:42 -0700)]
Unpin nightly version in CI.
Removes temporary workaround for rust-lang/rust#49033.
Eric Huss [Thu, 5 Apr 2018 13:04:45 +0000 (06:04 -0700)]
Don't use .arg() in test.
Eric Huss [Thu, 5 Apr 2018 12:39:50 +0000 (05:39 -0700)]
Pass edition to rustdoc.
Fixes #5279.
bors [Thu, 5 Apr 2018 09:22:15 +0000 (09:22 +0000)]
Auto merge of #5280 - klausi:clippy-191-trvials, r=matklad
chore(clippy): Simplify minor stuff found by clippy
Executed clippy 0.0.191, fixed the trivial stuff.
Filed https://github.com/rust-lang-nursery/rust-clippy/issues/2615 for all the format_err!() false positives.
bors [Thu, 5 Apr 2018 05:05:45 +0000 (05:05 +0000)]
Auto merge of #5294 - memoryleak47:typo, r=alexcrichton
fixed a few typos
I detected them using https://github.com/memoryleak47/typo.
memoryleak47 [Thu, 5 Apr 2018 01:45:15 +0000 (03:45 +0200)]
fixed a few typos
Klaus Purer [Wed, 4 Apr 2018 21:06:26 +0000 (23:06 +0200)]
chore(clippy): Fix test assertion and simplify code in crates-io
Klaus Purer [Tue, 3 Apr 2018 20:50:36 +0000 (22:50 +0200)]
chore(clippy): Simplify to Path.exists() and remove some more &
Klaus Purer [Mon, 2 Apr 2018 19:25:59 +0000 (21:25 +0200)]
chore(clippy): Simplify minor stuff found by clippy
bors [Wed, 4 Apr 2018 19:49:20 +0000 (19:49 +0000)]
Auto merge of #5293 - Eh2406:InternMoreStrings, r=alexcrichton
Intern more strings
As pointed out in https://github.com/rust-lang/cargo/pull/5270#issuecomment-
378372147, that clean up adds the mildly expensive `InternedString::new` to the hot path in the resolver.
The process of this PR is:
1. Find a `InternedString::new` in the hot path.
2. replace the argument of type `&str` that is passed along to `InternedString::new` with the type `InternedString`
3. add an `InternedString::new` to the callers until it type checked.
4. Repeat from step 1.
This stop if:
- It was traced back to something that was already an `InternedString`
- It was traced back to a `.to_string()` call
- It was in a persistent object creation
cc:
- @djc this is building on your work, I don't want to get in your way.
- @alexcrichton is this making things clearer and do you want to see a performance check?
Eh2406 [Wed, 4 Apr 2018 17:42:18 +0000 (13:42 -0400)]
Intern more strings
cargo +stable fmt
bors [Wed, 4 Apr 2018 18:58:15 +0000 (18:58 +0000)]
Auto merge of #5292 - djc:feature-requirements, r=alexcrichton
Revert serialization of features to string type
Accidentally broken during #5270 and only noticed after merge.
cc @matklad @Eh2406
Dirkjan Ochtman [Wed, 4 Apr 2018 18:07:57 +0000 (20:07 +0200)]
Revert serialization of features to string type
bors [Wed, 4 Apr 2018 16:28:33 +0000 (16:28 +0000)]
Auto merge of #5270 - djc:feature-requirements, r=Eh2406
Introduce FeatureValue type to represent features table values
This is the next step towards #1286 (after #5258). The goal here is to have a central place in the code where feature strings are interpreted as (a) a feature, (b) a dependency or (c) a dependency/feature combo, and anchor that interpretation in the type system as an enum.
I've spent quite a bit of effort avoiding extra string allocations, complicating the code a bit; notice in particular the use of `Cow<str>` in `FeatureValue` variants, and the slight workaround in `Context::resolve_features()` and `build_requirements()`. I hope this is all okay.
cc @Eh2406
Dirkjan Ochtman [Sat, 31 Mar 2018 15:34:19 +0000 (17:34 +0200)]
Extract function to build feature map for readability
Dirkjan Ochtman [Sun, 15 Oct 2017 12:23:33 +0000 (14:23 +0200)]
Introduce FeatureValue enum for tracking feature types
Dirkjan Ochtman [Sat, 14 Oct 2017 09:18:50 +0000 (11:18 +0200)]
Define FeatureMap type as an abstraction
bors [Wed, 4 Apr 2018 04:36:06 +0000 (04:36 +0000)]
Auto merge of #5290 - ehuss:lp-help, r=matklad
locate-project: Fix help description.
Eric Huss [Wed, 4 Apr 2018 04:03:10 +0000 (21:03 -0700)]
locate-project: Fix help description.
bors [Tue, 3 Apr 2018 23:41:50 +0000 (23:41 +0000)]
Auto merge of #5288 - alexcrichton:another-fix, r=matklad
Less aggressively poison sources on builds
Discovered in #5257 the changes in #5215 were slightly too aggressively
poisoning sources to require updates, thinking that a manifest changed when it
actually hadn't.
Non-workspace-member path dependencies with optional/dev-dependencies
don't show up in the lock file, so the previous logic would recognize this and
think that the dependency missing from the lock file was just added and would
require a registry update.
The fix in this commit effectively just skips all of these dependencies in
non-workspace members. This means that this will be slightly buggy if an
optional dependency that's activated is added, but that's hopefully something we
can tackle later.
Closes #5257
bors [Tue, 3 Apr 2018 22:50:12 +0000 (22:50 +0000)]
Auto merge of #5287 - matklad:safer-intern, r=Eh2406
Slightly improve InternedString
* Use `&'static str` instead of (ptr, len) pair to reduce unsafety.
* try make hash calculation O(1) instead of O(n), fail miserably,
document findings.
* Rename `to_inner` -> `as_str()`.
Alex Crichton [Tue, 3 Apr 2018 18:42:44 +0000 (11:42 -0700)]
Less aggressively poison sources on builds
Discovered in #5257 the changes in #5215 were slightly too aggressively
poisoning sources to require updates, thinking that a manifest changed when it
actually hadn't.
Non-workspace-member path dependencies with optional/dev-dependencies
don't show up in the lock file, so the previous logic would recognize this and
think that the dependency missing from the lock file was just added and would
require a registry update.
The fix in this commit effectively just skips all of these dependencies in
non-workspace members. This means that this will be slightly buggy if an
optional dependency that's activated is added, but that's hopefully something we
can tackle later.
Closes #5257
Aleksey Kladov [Tue, 3 Apr 2018 18:42:18 +0000 (21:42 +0300)]
Slightly improve InternedString
* Use `&'static str` instead of (ptr, len) pair to reduce unsafety.
* try make hash calculation O(1) instead of O(n), fail miserably,
document findings.
* Rename `to_inner` -> `as_str()`.
bors [Tue, 3 Apr 2018 18:52:50 +0000 (18:52 +0000)]
Auto merge of #5203 - matklad:out-dir, r=alexcrichton
cargo build --out-dir
This is intended to fix https://github.com/rust-lang/cargo/issues/4875. Very much work in progress, just to figure out how exactly `--out-dir` should work :)
The path of least resistance for implementing `out-dir` would be to just link everything from `target/debug` to the `out-dir`. However, the problem with this approach is that we link *too much* to the `target/debug`. For example, if you run `cargo build --bin foo`, you'll find not only the `foo` itself there, but also rlibs from the same workspace.
I think it's rather important not to copy extra stuff to out-dir, so it is implemented as a completely new parameter, which is threaded through various config structs and applies *only* to the top-level units (i.e, to the stuff user explicitly requested to compile on the command line).
I also plan to add platform specific tests here, to check that we get .pdb on windows and .dSYM on macs for various crate-types.
Because, in general, a single target may produce multiple files, `out-dir` has to be a directory, you can't directly specify the output *file*.
Note that artifacts are still generated to the `target` dir as well.
Also cc @nirbheek, I hope that this might be useful for Meson integration, because `--out-dir` should be more straightforward to use than `--message-format=json`.
The end result, for `cargo build --bin rustraytracer --out-dir out` on windows looks like this:

Note how we have fewer files in the `out` :)
r? @alexcrichton
Aleksey Kladov [Tue, 3 Apr 2018 15:23:02 +0000 (18:23 +0300)]
Fix tests for mac
bors [Tue, 3 Apr 2018 14:40:15 +0000 (14:40 +0000)]
Auto merge of #5285 - matklad:create-all-the-dirs, r=alexcrichton
Replace home-grown create_dir_all with std::fs::create_dir_all
The old one is just the historical artifact, right?
Aleksey Kladov [Tue, 3 Apr 2018 13:14:14 +0000 (16:14 +0300)]
Replace home-grown create_dir_all with std::fs::create_dir_all
Aleksey Kladov [Tue, 3 Apr 2018 13:06:56 +0000 (16:06 +0300)]
Test out-dir edge cases
Aleksey Kladov [Tue, 3 Apr 2018 12:43:45 +0000 (15:43 +0300)]
Feature gate `--out-dir`
Aleksey Kladov [Tue, 3 Apr 2018 06:51:52 +0000 (09:51 +0300)]
Implement `--out-dir` option
bors [Tue, 3 Apr 2018 08:19:41 +0000 (08:19 +0000)]
Auto merge of #5283 - matklad:better-assertion, r=matklad
Make assertion more informative
This assertion triggers when I try to build Cargo simultaneosly on
linux host and windows VM via a shared folder, but it's not clear
what is going on.
Aleksey Kladov [Tue, 3 Apr 2018 08:17:21 +0000 (11:17 +0300)]
Make assertion more informative
This assertion triggers when I try to build Cargo simultaneosly on
linux host and windows VM via a shared folder, but it's not clear
what is going on.
bors [Mon, 2 Apr 2018 21:50:59 +0000 (21:50 +0000)]
Auto merge of #5281 - matklad:cleanup, r=alexcrichton
Cleanup
Hopefully the last round of `conext` refactoring :-)
r? @alexcrichton
Aleksey Kladov [Mon, 2 Apr 2018 21:36:30 +0000 (00:36 +0300)]
Replace triple with struct
Aleksey Kladov [Mon, 2 Apr 2018 21:11:38 +0000 (00:11 +0300)]
Move filename logic to FileType
Aleksey Kladov [Mon, 2 Apr 2018 20:55:57 +0000 (23:55 +0300)]
Rename TargetFileType -> FileFlavor
Aleksey Kladov [Mon, 2 Apr 2018 20:51:48 +0000 (23:51 +0300)]
Make TargetInfo.cfg private
Aleksey Kladov [Mon, 2 Apr 2018 20:39:42 +0000 (23:39 +0300)]
Extract target info
bors [Mon, 2 Apr 2018 17:53:03 +0000 (17:53 +0000)]
Auto merge of #5274 - klnusbaum:epoch_5214, r=alexcrichton
rename epoch to edition
Per issue #5214 let's rename all instances of epoch to Edition
bors [Mon, 2 Apr 2018 17:05:00 +0000 (17:05 +0000)]
Auto merge of #5259 - Mark-Simulacrum:seed-deserialize, r=alexcrichton
Remove thread local, replacing with DeserializeSeed
@dtolnay -- is this the right way to implement this? It seems *very* verbose, but I suppose that's to be expected...
r? @alexcrichton
Aleksey Kladov [Mon, 2 Apr 2018 16:30:13 +0000 (19:30 +0300)]
Replace a triple with a struct for readability
bors [Mon, 2 Apr 2018 15:49:52 +0000 (15:49 +0000)]
Auto merge of #5278 - alexcrichton:no-rustfmt-ci, r=alexcrichton
Remove rustfmt from Travis
As discussed at the recent work week this is probably a bit too zealous at this
time, so let's hold off on it until it's either more stable or we figure out a
better way to deal with changes in rustfmt.
For now though it'll hopefully be easy to continue running rustfmt every so
often!
Alex Crichton [Mon, 2 Apr 2018 15:48:53 +0000 (08:48 -0700)]
Remove rustfmt from Travis
As discussed at the recent work week this is probably a bit too zealous at this
time, so let's hold off on it until it's either more stable or we figure out a
better way to deal with changes in rustfmt.
For now though it'll hopefully be easy to continue running rustfmt every so
often!
Aleksey Kladov [Mon, 2 Apr 2018 14:24:44 +0000 (17:24 +0300)]
Slightly better variable names
bors [Sun, 1 Apr 2018 22:36:45 +0000 (22:36 +0000)]
Auto merge of #5276 - klausi:main-dead-code, r=matklad
chore(cli): Remove dead code in main()
I think that if() has been left behind by accident and can be removed?
Klaus Purer [Sun, 1 Apr 2018 19:35:23 +0000 (21:35 +0200)]
chore(cli): Remove dead code in main()
Kurtis Nusbaum [Wed, 21 Mar 2018 16:41:22 +0000 (09:41 -0700)]
rename epoch to edition
Mark Simulacrum [Thu, 29 Mar 2018 10:19:19 +0000 (12:19 +0200)]
Remove thread local, replacing with DeserializeSeed
bors [Sat, 31 Mar 2018 20:56:23 +0000 (20:56 +0000)]
Auto merge of #5271 - djc:interning-spelling, r=alexcrichton
Fix spelling errors in interning module
Dirkjan Ochtman [Sat, 31 Mar 2018 20:48:32 +0000 (22:48 +0200)]
Fix spelling errors in interning module
bors [Sat, 31 Mar 2018 14:51:14 +0000 (14:51 +0000)]
Auto merge of #5269 - orestisf1993:issue-5265, r=matklad
cargo_new: remove redundant leading new lines from ignore files
Only add a leading new line in `.gitignore`/`.hgignore`/`.ignore` files when
the file existed before `cargo new`.
Fixes #5265.
Orestis Floros [Sat, 31 Mar 2018 14:26:58 +0000 (17:26 +0300)]
cargo_new: remove redundant leading new lines from ignore files
Only add a leading new line in .gitignore/.hgignore/.ignore files when
the file existed before 'cargo new'.
Fixes #5265.
bors [Sat, 31 Mar 2018 13:28:20 +0000 (13:28 +0000)]
Auto merge of #5235 - klausi:Z-flag-docs, r=matklad
docs(Z-flags): Add description for each -Z flag in cargo help
Fixes #5155
There might be a more elaborate way of adding descriptions to available options and generating help text automatically. For now I think some static text is a good start.
Klaus Purer [Sat, 31 Mar 2018 09:33:14 +0000 (11:33 +0200)]
tests(help): Fix assertion by using the full line text
Klaus Purer [Sat, 31 Mar 2018 09:19:28 +0000 (11:19 +0200)]
tests(help): Add test for -Z help output
Klaus Purer [Fri, 30 Mar 2018 15:21:13 +0000 (17:21 +0200)]
docs(Z-flags): Add description for each -Z flag in cargo -Z help
bors [Fri, 30 Mar 2018 03:07:39 +0000 (03:07 +0000)]
Auto merge of #5258 - djc:split-resolver, r=Eh2406
Split resolver module to make it more manageable
The `core::resolver` module is currently the largest in Cargo, at some 2000 lines. Here's an attempt at splitting it into more reasonable parts and reordering the code in it for better comprehensibility.
Splitting is done in three major steps:
* Move the `Resolve` type and its dependencies into a separate module (~220 lines)
* Move utility data types into a separate module (~400 lines)
* Move the `Context` type and its dependencies into a separate module (~400 lines)
This halves the size of the root module, which is then reordered to make it more readable.
(This is a yak-shaving expedition of sorts, in preparation for #1286.)
Dirkjan Ochtman [Thu, 29 Mar 2018 09:11:17 +0000 (11:11 +0200)]
Reorder code in resolver module for better readability
Dirkjan Ochtman [Thu, 29 Mar 2018 09:07:49 +0000 (11:07 +0200)]
Move resolver Context initialization into a method
Dirkjan Ochtman [Thu, 29 Mar 2018 08:49:01 +0000 (10:49 +0200)]
Move resolver::Context into new resolver::context module
Dirkjan Ochtman [Thu, 29 Mar 2018 08:18:58 +0000 (10:18 +0200)]
Move utility types from resolver into resolver::types
Dirkjan Ochtman [Wed, 28 Mar 2018 13:51:09 +0000 (15:51 +0200)]
Move resolver::Resolve into a new resolver::resolve module
bors [Thu, 29 Mar 2018 19:34:06 +0000 (19:34 +0000)]
Auto merge of #5261 - djc:reformat, r=matklad
Fix formatting issues with cargo fmt
Noticed these unrelated formatting problems while working on #5258.
Dirkjan Ochtman [Thu, 29 Mar 2018 17:40:02 +0000 (19:40 +0200)]
Fix formatting issues with cargo fmt
bors [Wed, 28 Mar 2018 23:05:50 +0000 (23:05 +0000)]
Auto merge of #5253 - matklad:unit-meta-2, r=alexcrichton
Introduce compilation files
Just another context refactoring
bors [Wed, 28 Mar 2018 14:21:26 +0000 (14:21 +0000)]
Auto merge of #5255 - matklad:rustdoc-features, r=alexcrichton
Restore --features args for cargo rustdoc
Closes https://github.com/rust-lang/cargo/issues/5254
Aleksey Kladov [Tue, 27 Mar 2018 22:56:46 +0000 (01:56 +0300)]
Restore --features args for cargo rustdoc
It was accidentally omited when migrating to clap
Aleksey Kladov [Fri, 23 Mar 2018 13:57:39 +0000 (16:57 +0300)]
Introduce compilation files
bors [Tue, 27 Mar 2018 18:14:32 +0000 (18:14 +0000)]
Auto merge of #5252 - matklad:new-context-new, r=alexcrichton
Supply units to the context at the point of creation
This slightly reshuffles `Context` creation. The main benefit is that we know the set of units when we do `Context::new`, so we could use it to precalculate more things.
Aleksey Kladov [Tue, 27 Mar 2018 16:03:22 +0000 (19:03 +0300)]
Supply units to the context at the point of creation
bors [Tue, 27 Mar 2018 13:58:26 +0000 (13:58 +0000)]
Auto merge of #5249 - alexcrichton:run-rustc-less, r=matklad
Run `rustc` for information fewer times
Currently if you pass `--target` the same as rustc's host Cargo will run `rustc`
on extra time to learn information, but we only need to run it once to learn
such information!
Alex Crichton [Tue, 27 Mar 2018 11:55:23 +0000 (04:55 -0700)]
Run `rustc` for information fewer times
Currently if you pass `--target` the same as rustc's host Cargo will run `rustc`
on extra time to learn information, but we only need to run it once to learn
such information!
bors [Tue, 27 Mar 2018 13:16:48 +0000 (13:16 +0000)]
Auto merge of #5250 - rleungx:tweak-error-message, r=matklad
tweak error message
Closes #5238.
rleungx [Tue, 27 Mar 2018 12:54:18 +0000 (20:54 +0800)]
address comment
rleungx [Tue, 27 Mar 2018 12:34:18 +0000 (20:34 +0800)]
tweak error message