Mazdak Farrokhzad
308c07bc3b
Rollup merge of #58318 - taiki-e:libserialize-2018, r=Centril
...
libserialize => 2018
Transitions `libserialize` to Rust 2018; cc #58099
This includes a commit from #58252 (thanks @h-michael!)
r? @Centril
2019-02-12 04:42:24 +01:00
Mazdak Farrokhzad
d9434531db
Rollup merge of #58313 - matthewjasper:use-question-in-macros, r=oli-obk
...
Use `?` in librustc macros
2019-02-12 04:42:23 +01:00
Mazdak Farrokhzad
a84c93324c
Rollup merge of #58300 - taiki-e:librustc_typeck-2018, r=petrochenkov
...
librustc_typeck => 2018
Transitions `librustc_typeck` to Rust 2018; cc #58099
TODO: elided_lifetimes_in_paths
r? @Centril
2019-02-12 04:42:21 +01:00
Mazdak Farrokhzad
b8fe6f9d43
Rollup merge of #58288 - taiki-e:rustc-workspace-hack-2018, r=alexcrichton
...
rustc-workspace-hack => 2018
Transitions `rustc-workspace-hack` to Rust 2018; cc #58099
r? @alexcrichton
2019-02-12 04:42:20 +01:00
Mazdak Farrokhzad
95ffa78784
Rollup merge of #58287 - taiki-e:rustc-std-workspace-core-2018, r=alexcrichton
...
rustc-std-workspace-core => 2018
Transitions `rustc-std-workspace-core` to Rust 2018; cc #58099
r? @alexcrichton
2019-02-12 04:42:19 +01:00
Mazdak Farrokhzad
3ca1b70dea
Rollup merge of #58111 - Centril:libterm-2018, r=oli-obk
...
libterm => 2018
Transitions `libterm` to Rust 2018; cc #58099
r? @oli-obk
2019-02-12 04:42:18 +01:00
Mazdak Farrokhzad
3dbb31e3d6
Rollup merge of #58105 - Centril:libarena-trans-2018, r=oli-obk
...
libarena => 2018
Transitions `libarena` to Rust 2018; cc https://github.com/rust-lang/rust/issues/58099
r? @oli-obk
2019-02-12 04:42:16 +01:00
bors
ba2853b6d3
Auto merge of #58246 - pmccarter:master, r=oli-obk
...
Make `saturating_add` and `saturating_sub` `const` functions
Fixes #58030
2019-02-12 03:20:16 +00:00
Alexander Regueiro
aafbf742c2
Disallow auto
trait alias syntax.
2019-02-12 01:50:33 +00:00
bors
16ca0b9f63
Auto merge of #58180 - davidtwco:issue-58053, r=estebank
...
Fix span for closure return type when annotated.
Fixes #58053 .
This PR adjusts the span used to label closure return types so that
if the user specifies the return type, i.e. `|_| -> X {}` instead of
`|_| {}`, we correctly highlight all of it and not just the last
character.
r? @pnkfelix
2019-02-12 00:44:24 +00:00
Mazdak Farrokhzad
0ce5129d05
libterm => 2018
2019-02-12 00:08:08 +01:00
Wesley Wiser
e9ebc2e956
[self-profiler] Misc cleanups
2019-02-11 18:01:37 -05:00
Wesley Wiser
8170828cb9
Capture time spent blocked waiting on queries
...
This captures time spent blocked when a query is waiting for another
query to finish executing in another thread.
2019-02-11 18:01:33 -05:00
Wesley Wiser
ae044ee893
Add self profiler events for loading incremental query results from disk
2019-02-11 18:00:46 -05:00
Mazdak Farrokhzad
f996e2b6dc
libarena => 2018
2019-02-11 23:49:48 +01:00
Andy Russell
f15d20c1f7
use ignore directives for run-make tests
...
This makes the tests easier to read, and makes it possible to tell which
tests aren't being run on the host platform.
Fixes #56704 .
2019-02-11 17:02:06 -05:00
Andy Russell
34052a19a2
remove "experimental" wording from std::os::unix
2019-02-11 15:36:45 -05:00
Esteban Küber
87dd2e1df9
Use hidden suggestions for unused imports lint
2019-02-11 11:16:22 -08:00
David Wood
48b0c9da69
Only suggest imports if not imported.
...
This commit modifies name resolution error reporting so that if a name
is in scope and has been imported then we do not suggest importing it.
This can occur when we add a label about constructors not being visible
due to private fields. In these cases, we know that the struct/variant
has been imported and we should silence any suggestions to import the
struct/variant.
2019-02-11 19:29:10 +01:00
Esteban Küber
235523c7d4
Add way to completely hide suggestion from cli output
2019-02-11 10:01:40 -08:00
Esteban Küber
7cfba1c5e8
Never inline HideCodeAlways suggestions
2019-02-11 10:01:40 -08:00
Esteban Küber
6ea159ea7e
Expose hidden snippet suggestions
2019-02-11 10:01:40 -08:00
Esteban Küber
05b4e7c8a9
Add way to hide suggestion snippet window from cli output
2019-02-11 10:01:40 -08:00
Patrick McCarter
b04d8aa774
rename variable and add test directive for #58030
2019-02-11 11:20:50 -05:00
Oliver Scherer
bbe524d7c1
Parallel rustc needs synchronizing smart pointer cloning
2019-02-11 15:09:05 +01:00
Oliver Scherer
b0cf52f6a5
Allow platform specific tests
2019-02-11 15:08:17 +01:00
Oliver Scherer
b681433b9d
Use Rc<[Symbol]>
instead of Vec<Symbol>
to reduce # of allocs
2019-02-11 15:08:17 +01:00
Oliver Scherer
1dba7cb202
Fiddle through the module visibilities for tests
2019-02-11 15:08:17 +01:00
Oliver Scherer
a83e73dce4
Move out tests of a deprecated module to work around #[test]
bugs
...
https://github.com/rust-lang/rust/issues/47238
2019-02-11 15:08:17 +01:00
Oliver Scherer
4cfc2ce46d
Use allow_internal_unstable
in rustc itself
2019-02-11 15:08:17 +01:00
Oliver Scherer
36e7424b86
Update fulldeps test
2019-02-11 15:08:17 +01:00
Oliver Scherer
da8352cee4
Fixup RustcDeserialize internal features
2019-02-11 15:08:17 +01:00
Oliver Scherer
19208367d4
Use a more fitting name for a respanning function
2019-02-11 15:08:17 +01:00
Oliver Scherer
0b3d8de2a0
Consistent attribute argument suggestion
2019-02-11 15:08:17 +01:00
Oliver Scherer
87d5383ec3
Rename the exp
field to mirror its uses
2019-02-11 15:08:17 +01:00
Oliver Scherer
33bf81eec0
Ease the transition to requiring features by just warning if there's no feature list
...
while we could make this change (it's all unstable after all), there are crates.io crates that use the feature and that the compiler depends upon. We can instead roll out this feature while still supporting the old way.
2019-02-11 15:08:17 +01:00
Oliver Scherer
d3c212c552
Require a list of features to allow in allow_internal_unstable
2019-02-11 15:08:16 +01:00
Mark Rousskov
bb23b175e9
This fixes doctests in stage 1
...
The RUSTDOC_LIBDIR should be rustc_libdir, not sysroot_libdir; rustdoc
is like the compiler and should link against rustc's libdir.
Some people currently (i.e., in general, may not be on master) have doc
tests working, but no attempt to determine why has been attempted.
2019-02-11 06:28:36 -07:00
Mark Rousskov
861d007da3
Never build rustdoc in stage 0
...
When a request for rustdoc is passed for stage 0, x.py build --stage 0
src/tools/rustdoc or ensure(tool::Rustdoc { .. }) with top_stage = 0, we
return the rustdoc for that compiler (i.e., the beta rustdoc).
2019-02-11 06:23:47 -07:00
varkor
b5fa870760
Add a test for rustc_deprecated
2019-02-11 13:18:33 +00:00
varkor
c8752415dc
Add rustdoc index page test for future deprecation attributes
2019-02-11 11:17:35 +00:00
varkor
01df8fe8ff
Add a rustdoc test for future rustc_deprecated attributes
2019-02-11 11:17:35 +00:00
varkor
3dc660f1f5
Update existing rustdoc test
2019-02-11 11:17:35 +00:00
varkor
2a8a25be37
Display "Deprecation planned" in rustdoc for future rustc deprecations
2019-02-11 11:17:35 +00:00
varkor
87cd09b94c
Don't display "Deprecated since" for non-rustc deprecated items
2019-02-11 11:17:35 +00:00
varkor
3737d4d87d
Do not apply future deprecation warning for #[deprecated]
2019-02-11 11:17:35 +00:00
bors
57d7cfc3cf
Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebank
...
Initial implementation of rustfixable unused_imports lint
This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless.
cc https://github.com/rust-lang/rust/issues/47888
<details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary>
![screenshot from 2018-12-09 15-49-01](https://user-images.githubusercontent.com/2299951/49698874-3a026080-fbca-11e8-9bf1-24060b6c59c8.png )
</details>
2019-02-11 10:34:09 +00:00
bors
576df31bed
Auto merge of #58153 - ljedrz:HirIdify_typeck, r=Zoxc
...
Partially Hiridify typeck
Another step towards https://github.com/rust-lang/rust/pull/57578 .
2019-02-11 06:03:58 +00:00
Nicholas Nethercote
c80466cb97
Remove two dead functions.
2019-02-11 16:27:56 +11:00
bors
4424a2c31a
Auto merge of #58152 - ljedrz:HirIdify_mir, r=Zoxc
...
Partially HirIdify mir
Another step towards https://github.com/rust-lang/rust/pull/57578 .
2019-02-11 03:35:22 +00:00