Commit Graph

64289 Commits

Author SHA1 Message Date
Niko Matsakis
25ea618e41 kill FREEZENESS_CACHED 2017-05-22 15:37:10 -04:00
Niko Matsakis
aa5232bca7 kill SIZEDNESS_CACHED 2017-05-22 15:37:10 -04:00
Niko Matsakis
4464dcc7ce remove the cell from type flags completely 2017-05-22 15:37:10 -04:00
Niko Matsakis
b46c1a95d0 move needs_drop into a query 2017-05-22 15:37:10 -04:00
Niko Matsakis
5a5c265e24 refactor common logic into ParameterEnvironment::and() 2017-05-22 15:37:10 -04:00
Niko Matsakis
194d4bc15d make parameter-environment a query 2017-05-22 15:37:10 -04:00
Niko Matsakis
1b7acb6f34 centralize the caching for is-copy, is-sized, and is-freeze
Use the trait-environment+type as the key. Note that these
are only invoked on types that live for the entire compilation
(no inference artifacts). We no longer need the various special-case
bits and caches that were in place before.
2017-05-22 14:55:03 -04:00
bors
81734e0e06 Auto merge of #42147 - withoutboats:run-pass-test-for-static-in-assoc-const-ty-refs, r=eddyb
Remove 'static bound in assoc const test.

Types do not have to be `'static` to be referenced in
associated consts.

Fixes #33573.
2017-05-22 06:22:52 +00:00
Without Boats
bf529fb6e6 Remove 'static bound in assoc const test.
Types do not have to be `'static` to be referenced in
associated consts.
2017-05-21 23:10:01 -07:00
bors
41976e25f1 Auto merge of #42140 - anderspapitto:doc-typo-fixes, r=Mark-Simulacrum
bootstrap: fix minor comment typos in lib.rs

I noticed these while reading through the build system
documentation. They're hardly worth fixing, but I'm also using this to
get my feet wet with the rustc contribution system.
2017-05-22 00:51:17 +00:00
bors
f6cc40f168 Auto merge of #41904 - sfackler:1.18-stabilization, r=alexcrichton
Stabilize library features for 1.18.0

Closes #38863
Closes #38980
Closes #38903
Closes #36648

r? @alexcrichton

@rust-lang/libs
2017-05-21 22:06:08 +00:00
Anders Papitto
558dd9ce90 bootstrap: fix minor comment typos in lib.rs
I noticed these while reading through the build system
documentation. They're hardly worth fixing, but I'm also using this to
get my feet wet with the rustc contribution system.
2017-05-22 01:58:50 +07:00
bors
14f30da613 Auto merge of #42131 - neosilky:doc-fix, r=frewsxcv
Update to trait bounds CSS in rustdoc

Fixed re-submission of #40719.
2017-05-21 08:28:05 +00:00
bors
e15c159f71 Auto merge of #42132 - cuviper:manifest-paths, r=alexcrichton
Update rust-installer to normalize manifest paths

This fixes the backslash-paths found in the manifests of installers that are built on Windows.  This is the most problematic part of #42121, leaving just the non-executable install.sh.

r? @alexcrichton
2017-05-21 06:00:22 +00:00
Steven Fackler
7c2cd93b2b Stabilize library features for 1.18.0
Closes #38863
Closes #38980
Closes #38903
Closes #36648
2017-05-20 21:58:47 -07:00
Josh Stone
84a155f502 Update rust-installer to normalize manifest paths 2017-05-20 21:55:18 -07:00
Daniel Lockyer
b4c061660f Update to trait bounds CSS in rustdoc
Fixed resubmission of #40719.
2017-05-21 04:35:26 +01:00
bors
7ac844ffb8 Auto merge of #42130 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 6 pull requests

- Successful merges: #41892, #42062, #42091, #42093, #42098, #42127
- Failed merges:
2017-05-21 01:53:20 +00:00
Mark Simulacrum
382c0eb810 Rollup merge of #42127 - clarcharr:lifetimes, r=Mark-Simulacrum
Remove unused lifetimes.

This was a typo that made it onto master. Noted by @dtolnay in #42127.

Also note #41960 which suggests warning these.
2017-05-20 17:48:16 -06:00
Mark Simulacrum
950e4266e6 Rollup merge of #42098 - japaric:gh42097, r=Mark-Simulacrum
core: fix unused_macro warning

when compiling the crate for a target with max-atomic-width = 0

fixes #42097
2017-05-20 17:48:15 -06:00
Mark Simulacrum
2dc1559360 Rollup merge of #42093 - llogiq:clippy-librustc_errors, r=arielb1
fix some clippy warnings in librustc_errors

Again, those are small changes to improve readability.
2017-05-20 17:48:14 -06:00
Mark Simulacrum
9ce4616960 Rollup merge of #42091 - maccoda:maccoda/env_docs, r=frewsxcv
Improving std::env docs

Addresses #29351.
Hopefully this addresses the following points:
> -  iterators should use the standard iterator boilerplate like https://doc.rust-lang.org/std/iter/struct.Map.html, this applies to all structs except for JoinPathsError
> -  JoinPathsError should properly link the function it comes from and use language similar to https://doc.rust-lang.org/std/io/struct.Error.html
> -  same wording issues with VarError
> - functions need to ensure linkage to things they refer to in their descriptions
> - Explain the difference between `os` and non-`os` structs and methods
2017-05-20 17:48:13 -06:00
Mark Simulacrum
2945642901 Rollup merge of #42062 - fhartwig:fix-off-by-one-span, r=nikomatsakis
Fix off-by-one error in column number in `explain_span`.

Fixes #41938
2017-05-20 17:48:12 -06:00
Mark Simulacrum
c37d66aa0a Rollup merge of #41892 - Gankro:needs_drop, r=alexcrichton
expose needs_drop under mem

Note that I purposefully didn't update the intrinsic's documentation, because I think it makes sense for it be more... "honest" about its semantics.
2017-05-20 17:48:11 -06:00
Alexis Beingessner
1f01b09ddc Add stub entry to unstable book for needs_drop 2017-05-20 19:27:31 -04:00
Alexis Beingessner
e847d46bcb migrate everything to using mem::needs_drop 2017-05-20 19:27:30 -04:00
bors
92ee08ad1c Auto merge of #42124 - Keruspe:installer, r=alexcrichton
update rust-installer

This fixes the default value for sysconfdir

Closes https://github.com/rust-lang/rust/issues/42102
Closes https://github.com/rust-lang/cargo/issues/4070
2017-05-20 23:27:07 +00:00
Alexis Beingessner
892df1db60 expose needs_drop under mem:: 2017-05-20 19:26:34 -04:00
bors
01951a61a4 Auto merge of #42069 - QuietMisdreavus:low_pri, r=alexchrichton
Add an option to run rustbuild on low priority on Windows and Unix

This is a resurrection of #40776, combining their Windows setup with an additional setup on Unix to set the program group's *nice*ness to +10 (low-but-not-lowest priority, mirroring the priority in the Windows setup) when the `low_priority` option is on.
2017-05-20 20:55:52 +00:00
Clar Charr
6119f9856c Remove unused lifetimes. 2017-05-20 15:32:11 -04:00
bors
1cda810970 Auto merge of #42123 - Mark-Simulacrum:revert-41967, r=alexcrichton
Revert "Reenable opt-level 3"

This reverts commit 30383b2384, from #41967.

We believe that this is causing the failures when compiling rustc on 64 bit (which are probably segfaults).

cc @ishitatsuyuki
2017-05-20 18:26:53 +00:00
Marc-Antoine Perennou
24a8cbc793 update rust-installer
This fixes the default value for sysconfdir

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-20 18:52:57 +02:00
Mark Simulacrum
409d40f8af Revert "Reenable opt-level 3"
This reverts commit 30383b2384.
2017-05-20 10:33:53 -06:00
bors
272e77f035 Auto merge of #42111 - ollie27:stab, r=Mark-Simulacrum
Correct some stability versions

These were found by running tidy on stable versions of rust and finding
features stabilised with the wrong version numbers.
2017-05-20 15:42:43 +00:00
bors
a0da1e0653 Auto merge of #42113 - segevfiner:fix-ole32-warning, r=petrochenkov
Fix: "warning: redundant linker flag specified for library `ole32`"

llvm-config seems to output this library name correctly now, removing
the need for the hack in "librustc_llvm/build.rs".
2017-05-20 12:05:33 +00:00
Segev Finer
2e0043ad61 Fix: "warning: redundant linker flag specified for library ole32"
llvm-config seems to output this library name correctly now, removing
the need for the hack in "librustc_llvm/build.rs".
2017-05-20 13:57:41 +03:00
Oliver Middleton
2f703e4304 Correct some stability versions
These were found by running tidy on stable versions of rust and finding
features stabilised with the wrong version numbers.
2017-05-20 08:38:39 +01:00
bors
0bd9e1f5e6 Auto merge of #41967 - ishitatsuyuki:patch-1, r=alexcrichton
Reenable opt-level 3

This comment is quite old, let's see what would happen with current MSVC.

Since there's no AppVeyor test for PR, the best way is to try if it get through homu. I don't recommend doing this in roll-up.
2017-05-20 02:13:26 +00:00
Dylan Maccora
55d75c42ef Merge branch 'master' into maccoda/env_docs 2017-05-20 09:42:37 +10:00
bors
4662b15be0 Auto merge of #41772 - GuillaumeGomez:fn-once-message, r=estebank
Add help message if a FnOnce is moved

Fixes #40855.

r? @eddyb
2017-05-19 23:38:49 +00:00
Dylan Maccora
b69b6413af Fixed link issue. 2017-05-20 08:32:10 +10:00
bors
5dfcd85fd4 Auto merge of #42105 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 17 pull requests

- Successful merges: #41870, #41910, #41958, #41971, #42006, #42024, #42037, #42056, #42067, #42070, #42079, #42080, #42082, #42089, #42092, #42096, #42100
- Failed merges:
2017-05-19 20:41:18 +00:00
Mark Simulacrum
040cd6d15d Rollup merge of #42100 - michaelwoerister:fix-osx-multi-cgu-debuginfo, r=jdm
debuginfo: Generate unique DW_AT_names for compilation units to work around OSX linker bug

This should fix issue #39160 and does not seem to cause any problems.

cc @tromey, @Manishearth

r? @jdm
2017-05-19 14:16:26 -06:00
Mark Simulacrum
5ded76ca21 Rollup merge of #42096 - ollie27:rustdoc_js_impls, r=GuillaumeGomez
rustdoc: Fix implementors list javascript

* Use a different loop variable, `i` was already taken. This caused
missing items in the implementors list.
* Use `.getAttribute('href')` rather than `.href` to get the relative
URL which is what it needs to actually fix the links.

More fallout from #41307.

r? @GuillaumeGomez
2017-05-19 14:16:25 -06:00
Mark Simulacrum
fd8ca3ea6d Rollup merge of #42092 - cuviper:args_os, r=Mark-Simulacrum
Give a nicer error for non-Unicode arguments to rustc and rustdoc

Previously, any non-Unicode argument would panic rustc:

```
$ rustc $'foo\x80bar'
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report:
https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value:
"foo�bar"', /checkout/src/libcore/result.rs:859 note: Run with
`RUST_BACKTRACE=1` for a backtrace.
```

Now it gives a clean error:

```
$ rustc $'foo\x80bar'
error: Argument 1 is not valid Unicode: "foo�bar"
```

Maybe fixes #15890, although we still can't *compile* arbitrary file names.
2017-05-19 14:16:24 -06:00
Mark Simulacrum
7812adf1ee Rollup merge of #42089 - nagisa:xpy-broke-on-py3-again⁈, r=alexcrichton
Fix x.py

Fixes https://github.com/rust-lang/rust/issues/42085
2017-05-19 14:16:24 -06:00
Mark Simulacrum
3fb27a0a9e Rollup merge of #42082 - michaelwoerister:wider_def_path_hashes, r=eddyb
incr. comp.: Use more bits for DefPath hashes

Use 128 instead of 64 bits for DefPath hashes, like we do for everything else. Collision probability is unnecessarily high with 64 bits.

Also change the representation of `ich::Fingerprint` from `Fingerprint([u8; 16])` to `Fingerprint(u64, u64)` which is better for hashers like `FxHasher`.
2017-05-19 14:16:23 -06:00
Mark Simulacrum
f3b7b61151 Rollup merge of #42080 - pravic:jquery-removal-fix, r=frewsxcv
Fix regression introduced by jQuery removal

Fixes #42078.
Follows #41307.

r? @steveklabnik
cc @frewsxcv
2017-05-19 14:16:22 -06:00
Mark Simulacrum
4c2273a081 Rollup merge of #42079 - seeekr:patch-1, r=steveklabnik
fix typo in libstd/sync/mpsc/mod.rs docs
2017-05-19 14:16:21 -06:00
Mark Simulacrum
6a2bf05cbc Rollup merge of #42070 - tshepang:env-misc, r=BurntSushi
misc doc improvements for std::env
2017-05-19 14:16:20 -06:00