Commit Graph

82581 Commits

Author SHA1 Message Date
varkor
7e7622a714 Fix WASM tests 2018-08-05 22:48:49 +01:00
varkor
a8b5b95d65 Fix diagnostic_list error 2018-08-05 22:26:06 +01:00
bors
73c78734ba Auto merge of #52800 - QuietMisdreavus:do-not-pass-go, r=GuillaumeGomez
rustdoc: refactor how passes are structured, and turn intra-doc-link collection into a pass

This builds on https://github.com/rust-lang/rust/pull/52751 and should not be merged until that finally finishes the bors queue

Part 2 of my passes refactor. This introduces the concept of an "early pass", which is run right before exiting the compiler context. This is important for passes that may want to ask the compiler about things. For example, i took out the intra-doc-link collection and turned it into a early pass. I also made the `strip-hidden`, `strip-private` and `strip-priv-imports` passes occur as early passes, so that intra-doc-link collection wouldn't run on docs that weren't getting printed.

Fixes https://github.com/rust-lang/rust/issues/51684, technically https://github.com/rust-lang/rust/issues/51468 too but that version of `h2` hits a legit intra-link error after that `>_>`

r? @rust-lang/rustdoc
2018-08-05 18:45:01 +00:00
Pramod Bisht
19401086df Closes #52413: Provide structured suggestion instead of label 2018-08-05 18:44:03 +00:00
Guillaume Gomez
c70eb4b6ea Automatically expand section if url id point to one of its component 2018-08-05 19:44:10 +02:00
varkor
8d7638fa69 Fix failure on msvc 2018-08-05 17:42:58 +01:00
Matthew Tran
3d44da65cd Enable macros to pass $:literal to another macro 2018-08-05 11:02:59 -05:00
varkor
d027cc8ee1 Change feature edition error into a warning 2018-08-05 15:54:49 +01:00
varkor
c157ec87ed Fix 2018 edition tests 2018-08-05 15:54:49 +01:00
varkor
5815a84280 Remove references to unknown feature io 2018-08-05 15:54:49 +01:00
varkor
60ad63640f Add an error when declaring features that are stable in the current Rust edition 2018-08-05 15:54:49 +01:00
varkor
d19832105e Remove bad features after rebase 2018-08-05 15:54:49 +01:00
varkor
bd90137b94 Improve query efficiency 2018-08-05 15:54:49 +01:00
varkor
e5d5e6a560 Fix outdated handling of GetLangItems 2018-08-05 15:54:49 +01:00
varkor
319b052357 Fix stage 2 tests 2018-08-05 15:54:49 +01:00
varkor
8cee487eb3 Fix rustdoc test 2018-08-05 15:54:49 +01:00
varkor
f22ccbe315 Fix run-pass-fulldeps tests 2018-08-05 15:54:49 +01:00
varkor
f2fd00005e Fix incremental tests 2018-08-05 15:54:49 +01:00
varkor
f91d7baaa4 Add special support for libc 2018-08-05 15:54:49 +01:00
varkor
53add5d7d3 Add support for feature attributes on macros 2018-08-05 15:54:49 +01:00
varkor
120989195f Convert unknown_features lint into an error 2018-08-05 15:54:49 +01:00
varkor
47619c0dc7 Turn the duplicate feature lint into an error 2018-08-05 15:54:49 +01:00
varkor
c81b95f305 Remove unnecessary feature attributes that sneaked in 2018-08-05 15:54:49 +01:00
varkor
bd66cbb806 Remove obsolete tests in tidy
These have been replaced by more reliable checks in the compiler itself.
2018-08-05 15:54:49 +01:00
varkor
af77c42e38 Remove panic-runtime opt-out 2018-08-05 15:54:49 +01:00
varkor
1511df2521 Add a test for feature attribute consistency
Note that this doesn't test consistency of some properties, like `reason`.
2018-08-05 15:54:49 +01:00
varkor
372e128476 Add test for duplicate features 2018-08-05 15:54:49 +01:00
varkor
c717ccba17 Add a test for unknown features 2018-08-05 15:54:49 +01:00
varkor
671a81738d Fix test/ui 2018-08-05 15:54:49 +01:00
varkor
895fcec3b4 Fix test/compile-fail 2018-08-05 15:54:49 +01:00
varkor
279fbaa29c Fix test/run-pass 2018-08-05 15:54:49 +01:00
varkor
61b9d87c28 Fix test/run-fail 2018-08-05 15:54:49 +01:00
varkor
99db9d63eb Fix test/debuginfo 2018-08-05 15:54:49 +01:00
varkor
82a98ac03d Get around tidy bug 2018-08-05 15:54:49 +01:00
varkor
a92d3a3606 Add duplicity lint for lang features 2018-08-05 15:54:49 +01:00
varkor
fc99ea7ffa Add a lint for duplicate feature attributes 2018-08-05 15:54:49 +01:00
varkor
3584601715 Trigger stable feature lint for lib features 2018-08-05 15:54:49 +01:00
varkor
70ff6fd46f Add error for inconsistent stability since value 2018-08-05 15:54:49 +01:00
varkor
5242dce01d Add lint for unknown feature attributes 2018-08-05 15:54:49 +01:00
varkor
a00ba4d71e Correct invalid feature attributes 2018-08-05 15:54:49 +01:00
varkor
64185f205d Remove unnecessary or invalid feature attributes 2018-08-05 15:54:48 +01:00
bors
93a4cab45a Auto merge of #52983 - alexcrichton:update-llvm, r=kennytm
Update LLVM submodule to 7.0

This commit updates the following submodules to LLVM's [recently branched][1]
7.0 release branch:

* src/llvm
* src/tools/lld
* src/libcompiler_builtins/compiler-rt

[1]: https://lists.llvm.org/pipermail/llvm-dev/2018-August/125004.html

Closes #52970
2018-08-05 14:51:16 +00:00
Mike Boutin
3f92ff34b5 Change rustdoc style so fully qualified names do not overlap src links
A type's fully qualified name will now wrap once it gets to the
`[-][src]` link aligned against the right edge of the content area.
Previously the two would overlap and the name would only wrap when
hitting the edge of the content area. The `[-][src]` link will main at
the top of the header.
2018-08-05 10:43:04 -04:00
Matthew Jasper
f72b8a44c5 Use span of the closure args in free region errors 2018-08-05 14:33:38 +01:00
bors
9f9ac89d11 Auto merge of #52959 - matthewjasper:closure-spans, r=pnkfelix
[NLL] Use smaller spans for errors involving closure captures

Closes #51170
Closes #46599

Error messages involving closures now point to the captured variable/closure args.

r? @pnkfelix
2018-08-05 09:17:24 +00:00
bors
b47c314c56 Auto merge of #52991 - nikomatsakis:nll-escaping-into-return, r=pnkfelix
avoid computing liveness for locals that escape into statics

Fixes #52713

I poked at this on the plane and I think it's working -- but I want to do a bit more investigation and double check. The idea is to identify those local variables where the entire value will "escape" into the return -- for them, we don't need to compute liveness, since we know that the outlives relations from the return type will force those regions to be equal to free regions. This should help with html5ever in particular.

- [x] test performance
- [x] verify correctness
- [x] add comments

r? @pnkfelix
cc @lqd
2018-08-05 07:06:11 +00:00
Dmytro Shynkevych
4e17fbde0b Fixed typo 2018-08-05 02:41:14 -04:00
Felix Rabe
c74415872c Fix doc link (again)
Similar to #52404. The link for comparison:

-   https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (broken)

-   https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, stable 2nd ed)

-   https://doc.rust-lang.org/nightly/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2nd ed)

-   https://doc.rust-lang.org/nightly/book/2018-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2018 ed)

This commit is the result of (first) searching via ripgrep (0.8.1 -SIMD -AVX):

    rg -l dynamically-sized-types-and-sized

and then replacing all relevant occurrences via:

    find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \
      s/dynamically-sized-types-and-sized/dynamically-sized-types-and-the-sized-trait/g
    find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm

(Note: Tested on on macOS 10.13 (BSD). `sed -i.bak` should work on Linux
(GNU sed) as well, but not tested.)
2018-08-05 07:52:29 +02:00
Niko Matsakis
2e2ea26a83 remove unused tcx argument 2018-08-05 07:42:18 +02:00
QuietMisdreavus
e332985c03 fix exit-code test so the lint fires again 2018-08-04 22:20:45 -05:00