Commit Graph

87767 Commits

Author SHA1 Message Date
Pietro Albini
29aa466508
Rollup merge of #56820 - ljedrz:format_tweaks, r=alexcrichton
format-related tweaks

- remove an unreachable condition
- inline one-liners related to `parse_expr` (called in succession)
- refactor `report_invalid_references`
- refactor `verify_arg_type`
- minor stylistic improvements
2018-12-19 11:47:09 +01:00
Pietro Albini
6e1cc22761
Rollup merge of #56772 - pnkfelix:issue-54153-linkage-sometimes-requires-optimizations, r=nikic
fix issue 54153 by not testing issue-18804 on Windows nor OS X.

Fix #54153
2018-12-19 11:47:08 +01:00
Pietro Albini
b747425f59
Rollup merge of #56689 - QuietMisdreavus:rustdoc-lint-group, r=pnkfelix
add a lint group for lints emitted by rustdoc

As rustdoc adds more lints that it specifically manages, it would be nice to be able to lump them all together. This gives us a new group just for that.

I deliberately didn't include `missing_docs` because this is kind of a stepping stone for moving our lints into tool lints (i.e. `#![warn(rustdoc::private_doc_tests)]`), since all of these are specifically emitted by rustdoc. If we want to move `missing_docs` out of the compiler, that's also an option, but it would create a surprising change of behavior.

I also took the chance to rewrite the lint descriptions of these lints to better match the style of the other lints. `>_>`
2018-12-19 11:47:07 +01:00
Pietro Albini
d3f6d61fe1
Rollup merge of #56663 - Zoxc:resolver-lifetime, r=pnkfelix
Remove lifetime from Resolver
2018-12-19 11:47:05 +01:00
Pietro Albini
cf9fd6074d
Rollup merge of #56363 - Lucretiel:patch-3, r=shepmaster
Defactored Bytes::read

Removed unneeded refactoring of read_one_byte, which removed the unneeded dynamic dispatch (`dyn Read`) used by that function.

This function is only used in one place in the entire Rust codebase; there doesn't seem to be a reason for it to exist (and there especially doesn't seem to be a reason for it to use dynamic dispatch)
2018-12-19 11:47:04 +01:00
bors
74ebf026fe Auto merge of #56550 - chpio:rc-eq, r=alexcrichton
Short-circuit Rc/Arc equality checking on equal pointers where T: Eq

based on #42965

Is the use of the private trait ok this way? Is there anything else needed for this to get pulled?
2018-12-19 10:16:05 +00:00
Ralf Jung
202904b3f7 make basic CTFE tracing available on release builds 2018-12-19 10:10:39 +01:00
William Brown
b2d8040e6f Fix tidy error 2018-12-19 19:09:54 +10:00
Guillaume Gomez
a6943d9d66 Set constness correctly 2018-12-19 09:57:29 +01:00
Niv Kaminer
957a9c7c66 Revert "FIXME(53451) remove fixme and unnecessary pubs"
This reverts commit d88d319a5d.
2018-12-19 10:54:35 +02:00
Scott McMurray
cbe9abb78c Add more VecDeque::rotate_{left|right} tests 2018-12-19 00:53:48 -08:00
Niv Kaminer
d88d319a5d FIXME(53451) remove fixme and unnecessary pubs 2018-12-19 10:51:47 +02:00
Niv Kaminer
897c18235a FIXME(52456) remove fixme and combine all extern items in one block 2018-12-19 10:51:47 +02:00
Niv Kaminer
1aaad19418 FIXME(RFC1868) point the fixme to the tracking issue 2018-12-19 10:51:47 +02:00
Niv Kaminer
86808249b4 FIXME(2665) remove fixme since the c files are included by the testsuite 2018-12-19 10:51:47 +02:00
Niv Kaminer
5d7fad35eb FIXME(47184) update fixmes to point to issues specific to them 2018-12-19 10:51:47 +02:00
Niv Kaminer
b1db8f8833 FIXME(45992) remove fixme since the lint is being tested 2018-12-19 10:51:47 +02:00
Niv Kaminer
aedbe9a963 FIXME(31702) remove fixme, move auxiliaries to the right place and fix hr_lifetime_in_assoc_type warning 2018-12-19 10:51:47 +02:00
Niv Kaminer
e06b81e029 FIXME(21232) update fixme to point to the open issue about accepting partial initialization 2018-12-19 10:51:47 +02:00
Niv Kaminer
cc568e7be1 FIXME(49824) remove fixme because there is no free region error anymore 2018-12-19 10:51:47 +02:00
Niv Kaminer
7092fca984 FIXME(44217) remove fixme because the allocator logic was removed, but platform specific code remains 2018-12-19 10:51:47 +02:00
Niv Kaminer
cf329d5978 FIXME(49821) remove fixme since a tip about let binding is given 2018-12-19 10:51:47 +02:00
Niv Kaminer
3773ae26a0 FIXME(45827) remove comment since errors are reported 2018-12-19 10:51:47 +02:00
bors
e7b4bc35e9 Auto merge of #56397 - petrhosek:file-search, r=cramertj
Search other library paths when loking for link objects

Support the case when link objects are not located in Rust sysroot
but in other locations which could be specify through library paths.
2018-12-19 06:46:15 +00:00
Jethro Beekman
38f5c97c33 Revert "Remove some dead code from sgx"
This reverts commit 134661917b.
2018-12-19 12:16:04 +05:30
Jethro Beekman
4358be46c7 SGX target: fix docs build 2018-12-19 12:02:40 +05:30
Jethro Beekman
f72f28fae2 Show platform-specific modules in std::os when building those platforms 2018-12-19 11:53:40 +05:30
Alex Crichton
0feb680ac9 Remove now stray comment 2018-12-18 20:33:10 -08:00
Alex Crichton
1c8d8af316 Remove no longer working test 2018-12-18 19:03:12 -08:00
William Brown
0829d0c0e4 Updates based on comment 2018-12-19 12:40:57 +10:00
William Brown
00bd306e0d Extend documentation for mem uninit to discuss partial allocation of the values 2018-12-19 11:32:56 +10:00
Petr Hosek
6d9640b6f6 Search other library paths when loking for link objects
Support the case when link objects are not located in Rust sysroot
but in other locations which could be specify through library paths.
2018-12-18 16:17:58 -08:00
Ariel Ben-Yehuda
5b74438107 add comment about subtyping 2018-12-19 02:05:34 +02:00
Guillaume Gomez
3d8a066fa1 Replace current crate's searchIndex when regenerating 2018-12-19 00:51:37 +01:00
varkor
030987481b Fix string for array access suggestion 2018-12-18 23:43:00 +00:00
varkor
d6969ac2fb Fix string for raw pointer deref suggestion 2018-12-18 23:42:42 +00:00
varkor
c2402dca85 Replace "native pointer" in error message with "raw pointer" 2018-12-18 22:58:49 +00:00
John Heitmann
1182f09b1c Fix mobile menu rendering collision with tooltip.
Bring the mobile-mode menu in front of the ⓘ icon.
2018-12-18 13:55:30 -08:00
Alex Crichton
c383d389f0 Avoid using open_global_now 2018-12-18 13:02:14 -08:00
bors
d99a320cba Auto merge of #56863 - arielb1:supertrait-self-4, r=nikomatsakis
fix trait objects with a Self-containing projection values

Fixes #56288.

This follows ALT2 in the issue.

beta-nominating since this is a regression.

r? @nikomatsakis
2018-12-18 19:58:14 +00:00
Guillaume Gomez
170f068103 Don't render const keyword on stable 2018-12-18 20:36:15 +01:00
Oliver Scherer
f7314456d0 Mark tuple structs as live if their constructors are used 2018-12-18 15:54:06 +01:00
bors
cb84844e83 Auto merge of #56160 - oli-obk:const_fn_let, r=nikomatsakis
Fix various aspects around `let` bindings inside const functions

* forbid `let` bindings in const contexts that use short circuiting operators
* harden analysis code against derefs of mutable references

Initially this PR was about stabilizing `let` bindings, but too many flaws were exposed that need some more testing on nightly
2018-12-18 14:21:07 +00:00
Jethro Beekman
15ea63bed5 Update LLVM submodule 2018-12-18 15:26:10 +05:30
Oliver Scherer
50eb5f6137 Explain the math 2018-12-18 10:08:37 +01:00
Ralf Jung
c1160a8f86 treat ref-to-raw cast like a reborrow: do a special kind of retag 2018-12-18 09:56:31 +01:00
Oliver Scherer
d815e2b870 Explain that lack of short circuiting support in constants is temporary 2018-12-18 09:42:46 +01:00
Oliver Scherer
b678238070 Properly worded diagnostic message 2018-12-18 09:16:56 +01:00
John Heitmann
5056669fc8 Fix rustdoc-js tests
Fixes rustdoc-js tests by teaching tester.js how to handle single-line js comments.

Also, added speculative support for template strings, and warnings for future debuggers.
2018-12-18 00:12:40 -08:00
bors
041254b814 Auto merge of #56481 - arielb1:dynamic-order, r=nikomatsakis
add coherence future-compat warnings for marker-only trait objects

The future-compat warnings break code that assumes that `dyn Send + Sync !=
dyn Sync + Send`, and are the first step in making them equal. cc #33140.

Note: this lint should be made to default-warn before we merge. It is deny only for the crater run.

r? @nikomatsakis / @scalexm . cc @Centril & @alexreg.
2018-12-18 06:50:11 +00:00