Eduard-Mihai Burtescu
fff08cb043
Run rustfmt --file-lines ... for changes from previous commits.
2019-06-12 13:38:28 +03:00
Eduard-Mihai Burtescu
17cdd356da
rustc: replace TyCtxt<'tcx, 'gcx, 'tcx> with TyCtxt<'gcx, 'tcx>.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
37799a5552
rustc: replace TyCtxt<'a, 'gcx, 'tcx> with TyCtxt<'tcx, 'gcx, 'tcx>.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
630ec8880c
Add deny(unused_lifetimes) to all the crates that have deny(internal).
2019-06-11 14:11:59 +03:00
Niels Sascha Reedijk
56a7f1e77e
Haiku: the maximum stack size is 16 MB
...
When one tries to create a thread with a requested stack size larger
than 16 MB, the call will fail and the compiler will bail out. Therefore
we should limit the size of the thread stack to 16 MB on Haiku.
2019-06-10 08:10:06 +02:00
Alexander Regueiro
a71d55701e
Addressed points raised in review.
2019-06-05 21:09:27 +01:00
Alexander Regueiro
aaa53ec853
Implemented for traits (associated type definitions).
2019-06-05 21:09:26 +01:00
Alexander Regueiro
3816958f18
Implemented for function bounds, type bounds, and named existential types.
2019-06-05 21:09:26 +01:00
Eduard-Mihai Burtescu
f7a4c9d7b5
rustc: collect upvars from HIR, instead of during name resolution.
2019-06-01 20:44:05 +03:00
Nicholas Nethercote
26451ef7b5
Avoid unnecessary internings.
...
Most involving `Symbol::intern` on string literals.
2019-05-27 13:58:38 +10:00
Mazdak Farrokhzad
e4e97caba0
Rollup merge of #61014 - jsgf:emit-artifact-type, r=alexcrichton
...
Make -Zemit-artifact-notifications also emit the artifact type
This is easier for tooling to handle than trying to reverse-engineer the type from the filename extension. The field name and value is intended to reflect the `--emit` command-line option.
Related issues https://github.com/rust-lang/rust/issues/60988 https://github.com/rust-lang/rust/issues/58465
cc @alexcrichton
2019-05-23 08:37:12 +02:00
Jeremy Fitzhardinge
6c38625942
Make -Zemit-artifact-notifications also emit the artifact type
...
This is easier for tooling to handle than trying to reverse-engineer it from the filename extension.
2019-05-21 13:51:36 -07:00
John Kåre Alsaker
0b37900b40
Specify the edition for the rustdoc thread-pool
2019-05-21 18:17:06 +02:00
John Kåre Alsaker
a1f2dceaeb
Move edition outside the hygiene lock and avoid accessing it
2019-05-21 18:17:05 +02:00
Nicholas Nethercote
999c1fc281
Remove the equality operation between Symbol and strings.
...
And also the equality between `Path` and strings, because `Path` is made
up of `Symbol`s.
2019-05-13 09:31:30 +10:00
Nicholas Nethercote
fb084a48e2
Pass a Symbol to check_name, emit_feature_err, and related functions.
2019-05-13 09:29:22 +10:00
Eduard-Mihai Burtescu
1618c079ab
rustc: rename -Z emit-directives to -Z emit-artifact-notifications and simplify the output.
2019-05-07 04:49:54 +03:00
Eduard-Mihai Burtescu
8d9f4a128c
rustc: rename all occurences of "freevar" to "upvar".
2019-05-05 18:49:32 +03:00
Nicholas Nethercote
38dffeba21
Move metadata writing earlier.
...
The commit moves metadata writing from `link_binary` to
`encode_metadata` (and renames the latter as
`encode_and_write_metadata`). This is at the very start of code
generation.
2019-05-01 17:17:13 +10:00
Nicholas Nethercote
faf5eac854
Move metadata encoding earlier.
...
This commit separates metadata encoding (`tcx.encode_metadata`) from the
creation of the metadata module (which is now handled by
`write_compressed_metadata`, formerly `write_metadata`).
The metadata encoding now occurs slightly earlier in the pipeline, at
the very start of code generation within `start_codegen`.
Metadata *writing* still occurs near the end of compilation; that will
be moved forward in subsequent commits.
2019-04-30 14:55:10 +10:00
John Kåre Alsaker
0e05a9bb85
Update rustc-rayon version
2019-04-26 19:08:36 +02:00
bors
31f5d69ba4
Auto merge of #60125 - estebank:continue-evaluating, r=oli-obk
...
Don't stop evaluating due to errors before borrow checking
r? @oli-obk
Fix #60005 . Follow up to #59903 . Blocked on #53708 , fixing the ICE in `src/test/ui/consts/match_ice.rs`.
2019-04-23 09:38:34 +00:00
Esteban Küber
6e723c24a8
Never stop due to errors before borrow checking
2019-04-22 13:11:53 -07:00
Esteban Küber
45bbd14db4
Continue evaluating after item-type checking
2019-04-22 11:31:35 -07:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
Mateusz Mikuła
87e4b43d51
Deny internal in stage0
2019-04-17 05:15:00 +02:00
Mazdak Farrokhzad
bdf2473289
Rollup merge of #59903 - estebank:after-main, r=oli-obk
...
Continue evaluating after missing main
2019-04-16 05:14:21 +02:00
Wesley Wiser
56e434d84d
Use measureme in self-profiler
...
Related to #58372
Related to #58967
2019-04-12 20:27:29 -04:00
Esteban Küber
13a05a27e9
Continue evaluating after missing main
2019-04-11 20:01:19 -07:00
flip1995
818d300451
Deny internal lints on librustc_interface
2019-04-03 18:24:21 +02:00
flip1995
28a5c414c3
Check for unstable-options flag before register internals
2019-04-03 18:22:19 +02:00
flip1995
9b2bf70851
Make internal lints allow-by-default
2019-04-03 18:22:19 +02:00
Fabian Drinck
541c4999a9
Remove redundant imports
2019-03-30 22:37:02 +01:00
Mazdak Farrokhzad
bf3e6c63d6
Rollup merge of #59496 - Zoxc:fix-globals, r=oli-obk
...
Remove unnecessary with_globals calls
2019-03-29 02:40:56 +01:00
John Kåre Alsaker
e9a8befd2d
Remove unnecessary with_globals calls
2019-03-28 18:58:43 +01:00
John Kåre Alsaker
cd32f9bcca
Remove LintSession and run incremental and whole crate lints in parallel
2019-03-28 16:29:08 +01:00
John Kåre Alsaker
41316f0449
Combine all builtin late lints
2019-03-28 16:29:07 +01:00
Josh Stone
ecf63630cf
Rollup merge of #58837 - Centril:librustc_interface_2018, r=petrochenkov
...
librustc_interface => 2018
r? @oli-obk
This will likely produce an ICE for some reason... so super-WIP.
2019-03-27 18:15:22 -07:00
Mazdak Farrokhzad
bf1068b137
librustc_interface => 2018; rename rustc-rayon to rayon in Cargo.toml
2019-03-27 09:48:50 +01:00
Mazdak Farrokhzad
14f3f6c712
librustc_interface => 2018
2019-03-27 09:41:42 +01:00
John Kåre Alsaker
7e156c2066
Make some lints incremental
2019-03-25 23:00:34 +01:00
Esteban Küber
c89872cb7d
Do not track_errors in register_plugins
2019-03-22 20:15:32 -07:00
bors
0f88167f89
Auto merge of #58847 - bjorn3:remove_metadata_only_cg, r=alexcrichton
...
Remove metadata only codegen backend
It is unused and probably broken at the moment.
2019-03-18 11:28:12 +00:00
bjorn3
ca2ff089f3
Remove MetadataOnlyCodegenBackend
2019-03-16 10:54:38 +01:00
Tyler Mandry
7c59ce9f5d
Add -Z allow_features=... flag
2019-03-14 15:42:20 -07:00
bors
2a8f6a7806
Auto merge of #58488 - wesleywiser:llvm_prof, r=michaelwoerister
...
Replace TimeLine LLVM profiling with the self profiler
2019-03-14 08:38:56 +00:00
Mazdak Farrokhzad
445c4bc0f8
Rollup merge of #58829 - Xanewok:scoped-tls, r=Zoxc
...
librustc_interface: Update scoped-tls to 1.0
Done previously as a part of https://github.com/rust-lang/rust/pull/58748 .
r? @Zoxc
2019-03-13 03:33:34 +01:00
Wesley Wiser
4c8cc14186
Replace TimeLine with SelfProfiler
2019-03-10 11:10:55 -04:00
John Kåre Alsaker
51938c61f6
Make the rustc driver and interface demand driven
2019-03-10 04:49:45 +01:00
John Kåre Alsaker
7985c6f8ec
Rename check_privacy to check_private_in_public
2019-03-06 04:50:50 +01:00