Christopher Durham
e47fec56dd
Make Layout::new const
2020-01-09 13:41:40 -05:00
Vadim Petrochenkov
642669c74d
Update tests
2020-01-09 21:23:12 +03:00
Vadim Petrochenkov
41318e9a26
compiletest: Do not deduplicate diagnostics in UI tests
2020-01-09 21:23:12 +03:00
bors
59eb49d0da
Auto merge of #68047 - pietroalbini:fix-toolstate-again, r=Mark-Simulacrum
...
ci: another take at fixing toolstate
Seems like the variable showed by `$(ciCheckoutPath)` on Azure Pipelines was wrong, making the toolstate script fail. This commit changes that function to return the variable previously used by the toolstate script. Other uses of the function were audited, and there should be no conflict.
Failure log: https://dev.azure.com/rust-lang/rust/_build/results?buildId=17933
r? @Mark-Simulacrum
2020-01-09 16:10:01 +00:00
Trevor Spiteri
f8428cf8d8
doc: add Null-unchecked version section to mut pointer as_mut method
...
The as_ref method already has a Null-unchecked version section, its
example is a modification of the example in the main as_ref section.
Similarly the example in this commit is a modification of the example
in main as_mut section.
2020-01-09 14:51:58 +01:00
bors
c404ce689f
Auto merge of #67988 - Zoxc:prof-fix, r=michaelwoerister
...
Change -Z time event naming scheme and make them generic activities
I made the `-Z time-passes` only events (which encodes argument in the event id) use a `extra_verbose_generic_activity` function which does not emit self-profiling events.
r? @michaelwoerister
cc @wesleywiser
2020-01-09 11:36:44 +00:00
Oliver Scherer
c5c4fa8e76
Switch assertion order to be more helpful to ppl that encounter them
2020-01-09 12:04:15 +01:00
Oliver Scherer
a4fa5bb6a0
Rename Unsized
to Meta
2020-01-09 12:04:15 +01:00
Stein Somers
9b92bf8315
Apply suggestions from code review
...
Co-Authored-By: Ralf Jung <post@ralfj.de>
2020-01-09 12:03:49 +01:00
Stein Somers
37b5cca3d5
Simplify into_key_slice_mut and document bits and bobs
2020-01-09 11:45:32 +01:00
Oliver Scherer
e632940a41
Update src/librustc_mir/interpret/place.rs
...
Co-Authored-By: Ralf Jung <post@ralfj.de>
2020-01-09 10:56:05 +01:00
Pietro Albini
cdbb60e6a8
ci: another take at fixing toolstate
...
Seems like the variable showed by $(ciCheckoutPath) on Azure Pipelines
was wrong, making the toolstate script fail. This commit changes that
function to return the variable previously used by the toolstate script.
Other uses of the function were audited, and there should be no
conflict.
2020-01-09 09:49:25 +01:00
Tomasz Miąsko
e88f071ed3
Document sanitizers in unstable-book
2020-01-09 09:33:49 +01:00
Mazdak Farrokhzad
5dafa6a464
add CStore::item_generics_num_lifetimes
2020-01-09 09:26:55 +01:00
Mazdak Farrokhzad
b743af6a24
rename a method in Resolver trait
2020-01-09 08:57:25 +01:00
Mazdak Farrokhzad
7472f9ef13
lowering: remove dep on CrateStore
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
402907f273
lowering: rustc::session -> rustc_session
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
69b1e5cc3d
{rustc::util -> rustc_data_structures}::captures
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
2db97ede27
refactor 'Output = $ty' & reduce rustc dep
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
4e6329ec3a
extract path lowering -> path.rs
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
ae6e31b1a3
move lower_binding_mode -> pat.rs
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
f75ccdef10
extract pattern lowering -> pat.rs
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
956265d55b
lowering: elide some lifetimes
2020-01-09 08:57:24 +01:00
Mazdak Farrokhzad
bcab59ed83
lowering: simplify HoFs
2020-01-09 08:57:24 +01:00
Tomasz Miąsko
ae57259403
Add bootstrap step for building sanitizer runtimes
2020-01-09 07:54:02 +01:00
Tomasz Miąsko
0c6b1a7e3c
Link sanitizer runtimes instead of injecting crate dependencies
2020-01-09 07:54:02 +01:00
Tomasz Miąsko
36d0812570
Remove sanitizer_runtime attribute
2020-01-09 07:54:02 +01:00
Tomasz Miąsko
78e7eeeaa1
Remove sanitizer runtime crates
2020-01-09 07:54:02 +01:00
John Kåre Alsaker
7db4b7efa2
More comments
2020-01-09 07:06:41 +01:00
John Kåre Alsaker
5427601e9e
Change -Z time event naming scheme and make them generic activities
2020-01-09 07:06:40 +01:00
Felix S. Klock II
31938366d2
Keep plugging holes in the test to placate CI.
...
If this happens again, I'm going to change tack and make this
an `// only-linux` test or something along those lines.
2020-01-09 05:20:06 +01:00
Shotaro Yamada
f443ae68c2
Remove unused dependencies
2020-01-09 11:52:03 +09:00
Shotaro Yamada
dbcce10bb1
Remove unused struct ClosureUpvar
2020-01-09 11:47:32 +09:00
Andy Russell
826780772e
remove strip-hidden pass from compiler doc generation
2020-01-08 21:43:54 -05:00
bors
adc6572500
Auto merge of #68034 - Centril:rollup-3d9pq14, r=Centril
...
Rollup of 12 pull requests
Successful merges:
- #67630 (Treat extern statics just like statics in the "const pointer to static" representation)
- #67747 (Explain that associated types and consts can't be accessed directly on the trait's path)
- #67884 (Fix incremental builds of core by allowing unused attribute.)
- #67966 (Use matches macro in libcore and libstd)
- #67979 (Move `intravisit` => `rustc_hir` + misc cleanup)
- #67986 (Display more informative ICE)
- #67990 (slice patterns: harden match-based borrowck tests)
- #68005 (Improve E0184 explanation)
- #68009 (Spell check librustc_error_codes)
- #68023 (Fix issue #68008 )
- #68024 (Remove `-Z continue-parse-after-error`)
- #68026 (Small improvements in lexical_region_resolve)
Failed merges:
r? @ghost
2020-01-09 02:05:15 +00:00
Josh Stone
4ede63bee1
Add HashSet::get_or_insert_owned
2020-01-08 15:34:06 -08:00
Mazdak Farrokhzad
b24de8f0f8
Rollup merge of #68026 - llogiq:ch-ch-ch-ch-changes, r=varkor
...
Small improvements in lexical_region_resolve
This just replaces a trivial `if` condition with a `|=` in two places.
I could even have used a `fold` in the first case, but I think it would be less readable.
2020-01-09 00:22:21 +01:00
Mazdak Farrokhzad
5e6eeb092d
Rollup merge of #68024 - petrochenkov:recoverall, r=Centril
...
Remove `-Z continue-parse-after-error`
We are just always recovering and continuing now.
r? @estebank @Centril
2020-01-09 00:22:20 +01:00
Mazdak Farrokhzad
d2922e51a7
Rollup merge of #68023 - FSciammarella:master, r=Centril,varkor
...
Fix issue #68008
Correcting Typo on error message. From "substract" to "subtract".
Fixes #68008 .
2020-01-09 00:22:18 +01:00
Mazdak Farrokhzad
1355fb58be
Rollup merge of #68009 - wcampbell0x2a:spellcheck-librustc_error_codes, r=Centril
...
Spell check librustc_error_codes
Found one wrongly spelled error message and decided to check all the
error messages for wrongly spelled statements.
2020-01-09 00:22:17 +01:00
Mazdak Farrokhzad
91d5fbaeb1
Rollup merge of #68005 - GuillaumeGomez:explanation-e0184, r=Dylan-DPC
...
Improve E0184 explanation
r? @Dylan-DPC
2020-01-09 00:22:16 +01:00
Mazdak Farrokhzad
916a7d3a2c
Rollup merge of #67990 - Centril:slice-pats-move-tests-match, r=matthewjasper
...
slice patterns: harden match-based borrowck tests
This hardens some move-checking tests wrt. slice patterns and `match` expressions.
r? @matthewjasper
cc @pnkfelix
cc https://github.com/rust-lang/rust/pull/67712
cc https://github.com/rust-lang/rust/issues/53114
2020-01-09 00:22:14 +01:00
Mazdak Farrokhzad
ea9a03dbb8
Rollup merge of #67986 - JohnTitor:fix-ice-rust-call, r=varkor
...
Display more informative ICE
Fixes #66696
2020-01-09 00:22:13 +01:00
Mazdak Farrokhzad
0b3ef24e75
Rollup merge of #67979 - Centril:hir-cleanup, r=Zoxc
...
Move `intravisit` => `rustc_hir` + misc cleanup
Working towards https://github.com/rust-lang/rust/issues/65031 .
This should eventually enable getting rid of rustc as a dependency in various passes (e.g. lints).
cc https://github.com/rust-lang/rust/pull/67806 (this also facilitates liberating lints from tcx)
cc https://github.com/rust-lang/rust/pull/67922 (some other dep reductions)
r? @Zoxc
2020-01-09 00:22:11 +01:00
Mazdak Farrokhzad
5ea69781f4
Rollup merge of #67966 - popzxc:core-std-matches, r=Centril
...
Use matches macro in libcore and libstd
This PR replaces matches like
```rust
match var {
value => true,
_ => false,
}
```
with use of `matches!` macro.
r? @Centril
2020-01-09 00:22:10 +01:00
Mazdak Farrokhzad
11f0013378
Rollup merge of #67884 - anp:allow-unused-const-attr, r=oli-obk
...
Fix incremental builds of core by allowing unused attribute.
I *think* that the same problem as in https://github.com/rust-lang/rust/issues/65023 was introduced by https://github.com/rust-lang/rust/pull/67657 . This works around the current incrcomp issue with these attributes by allowing it here. This resolves the near-term issue for me, at least.
2020-01-09 00:22:08 +01:00
Mazdak Farrokhzad
1a0b2a5aaa
Rollup merge of #67747 - estebank:bare-assoc-const, r=Centril
...
Explain that associated types and consts can't be accessed directly on the trait's path
Partially address #44539 .
2020-01-09 00:22:07 +01:00
Mazdak Farrokhzad
60bef14bbc
Rollup merge of #67630 - oli-obk:extern_ptr_dangling, r=spastorino
...
Treat extern statics just like statics in the "const pointer to static" representation
fixes #67612
r? @spastorino
cc @RalfJung this does not affect runtime promotion at all. This is just about promotion within static item bodies.
2020-01-09 00:22:05 +01:00
Josh Stone
686d5f83ef
Comment on allowing only feature(test) in compiletest
2020-01-08 15:13:50 -08:00
Felipe Sciammarella
7de174b86e
Fix Typo on cannot "substract"
...
Fix Typo on hir::BinOpKind::Sub
"substract" to "subtract"
Fix Typo on "Error cannot substract"
Fix Typo on cannot "substract"
2020-01-08 19:25:38 -03:00