bors
1cbd8a4d68
Auto merge of #61506 - imbrem:mir_body_renaming, r=eddyb
...
Changed usages of `mir` in librustc::mir and librustc_mir to `body`
Work on part 2 of #60229
2019-06-10 08:07:22 +00: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
bors
5d4aef6055
Auto merge of #61608 - Aaron1011:feature/weird-expr-yield, r=Centril
...
Add nested 'yield' expression to weird expressions test
2019-06-10 05:17:12 +00:00
Yuki Okushi
3cfceb94cf
Add an example
2019-06-10 13:30:45 +09:00
bors
ad3829fd66
Auto merge of #61706 - petrhosek:bootstrap-cp-r, r=Mark-Simulacrum
...
Use Build::read_dir instead of fs::read_dir in Build::cp_r
Build::read_dir does better error handling when the directory doesn't
exist; it actually prints the name of the directory rather than just
printing the underlying error "No such file or directory" which on
its own isn't very useful.
2019-06-10 02:35:29 +00:00
Chris Gregory
8e7ade85e6
Reword const fn conditional and loop error text
2019-06-09 19:02:28 -07:00
Wesley Wiser
41e976baa9
Azure: retry failed awscli installs
...
Fixes #61604
2019-06-09 21:28:47 -04:00
Nicholas Nethercote
35b5f43770
Special-case literals in parse_bottom_expr
.
...
This makes parsing faster, particularly for code with large constants,
for two reasons:
- it skips all the keyword comparisons for literals;
- it replaces the unnecessary `parse_literal_maybe_minus` call with
`parse_lit`, avoiding an unnecessary allocation via `mk_expr`.
2019-06-10 10:04:25 +10:00
Petr Hosek
449db68910
Use Build::read_dir instead of fs::read_dir in Build::cp_r
...
Build::read_dir does better error handling when the directory doesn't
exist; it actually prints the name of the directory rather than just
printing the underlying error "No such file or directory" which on
its own isn't very useful.
2019-06-09 16:57:17 -07:00
Petr Hosek
715578ea57
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
...
We mistakenly pass cxxflags from the configuration to LLVM build as
CMAKE_C_FLAGS.
2019-06-09 16:53:46 -07:00
bors
61a60ce7d3
Auto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisa
...
Stabilize #![feature(repr_align_enum)] in Rust 1.37.0
On an `enum` item, you may now write:
```rust
#[repr(align(X))]
enum Foo {
// ...
}
```
This has equivalent effects to first defining:
```rust
#[repr(align(X))]
struct AlignX<T>(T);
```
and then using `AlignX<Foo>` in `Foo`'s stead.
r? @nagisa
2019-06-09 23:50:04 +00:00
Adrian Friedli
8590074a01
implement nth_back for RangeInclusive
2019-06-09 22:45:11 +02:00
Mark Rousskov
45df52f2cc
Properly point at the last opening brace
2019-06-09 14:09:36 -06:00
Mark Rousskov
6b9740bf02
Add comment about raw strings to self.style
2019-06-09 14:09:36 -06:00
Mark Rousskov
b1c357e0c3
Introduce InnerSpan abstraction
...
This should be used when trying to get at subsets of a larger span,
especially when the larger span is not available in the code attempting
to work with those subsets (especially common in the fmt_macros crate).
This is usually a good replacement for (BytePos, BytePos) and (usize,
usize) tuples.
This commit also removes from_inner_byte_pos, since it took usize
arguments, which is error prone.
2019-06-09 14:09:36 -06:00
Mark Rousskov
a859440092
Shift padding out of suggestions for format strings
2019-06-09 14:06:34 -06:00
Jad Ghalayini
80ff07f30d
Changed usages of mir
in librustc::mir and librustc_mir to body
2019-06-09 16:05:05 -04:00
Mark Rousskov
dc13072b7b
Use Symbol for named arguments in fmt_macros
2019-06-09 13:45:16 -06:00
Mark Rousskov
7795b155e0
Inline raw method
2019-06-09 13:44:55 -06:00
Mark Rousskov
20efb19043
Make a few methods private
2019-06-09 13:44:55 -06:00
Matthias Krüger
1d045149f0
submodules: update clippy from 71be6f62
to c0dbd34b
...
Changes:
````
travis: disable rls integration test.
rustup https://github.com/rust-lang/rust/pull/61669/
Add OUTER_EXPN_INFO lint
````
2019-06-09 21:37:26 +02:00
bors
400b409efc
Auto merge of #61691 - RalfJung:miri-slow, r=Centril
...
Miri: disable a slow test
2019-06-09 17:47:48 +00:00
Igor Matuszewski
eb5aa7583d
Update RLS
...
This includes https://github.com/rust-lang/rls/pull/1482 which should
finally fix the spurious tests in Rust CI (test-pass -> test-fail).
2019-06-09 16:14:52 +02:00
Igor Matuszewski
63dc7da703
Use char byte calculation using existing iterator
2019-06-09 15:44:57 +02:00
Igor Matuszewski
735ac057bb
Actually translate CRLF in raw byte strings and unify unescape impl
2019-06-09 15:14:55 +02:00
Igor Matuszewski
3c1d352dc4
Add a doc comment for scan_raw_string
2019-06-09 14:20:29 +02:00
Igor Matuszewski
8cd51fff82
Add test for raw byte CRLF translation
2019-06-09 14:15:31 +02:00
Ralf Jung
60d8675312
Miri: disable a slow test
2019-06-09 14:04:30 +02:00
Ralf Jung
8dfc8db235
forgot about multivariant enum casts
2019-06-09 13:53:44 +02:00
Caio
1eaaf440d5
Allow attributes in formal function parameters
2019-06-09 07:58:40 -03:00
Ralf Jung
2ad303eb07
make floating point casts nicer with generics
2019-06-09 12:51:07 +02:00
Ralf Jung
de7bcca6e4
Apply suggestions from code review
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-06-09 11:35:41 +02:00
bors
07c3967de9
Auto merge of #61677 - napen123:string-examples, r=sfackler
...
Add examples for make_ascii_{uppercase, lowercase}
As the title says, this adds simple usage examples for make_ascii_uppercase and make_ascii_lowercase.
2019-06-09 07:48:10 +00:00
bors
e6e60ef6ea
Auto merge of #60932 - Centril:macro-at-most-once-2015, r=mark-i-m
...
Support ? Kleene macro operator in 2015
Closes https://github.com/rust-lang/rust/issues/56668 .
See that issue for rationale and discussion.
Crater will be needed (done in https://github.com/rust-lang/rust/pull/60932#issuecomment-494188577 , zero regressions) and then, if all goes well, FCP (in https://github.com/rust-lang/rust/pull/60932#issuecomment-494189802 ).
2019-06-09 05:00:22 +00:00
Mazdak Farrokhzad
3ba82f7cd8
pacify tidy.
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
73c6563ce0
Fix typo in comment.
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
a4b9a03362
Fix inaccurate comments in '?' Kleene operator tests.
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
f86719a111
Some more cleanup in libsyntax::ext::tt::quoted
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
ab7d75d89b
Cleanups in parse_sep_and_kleene_op.
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
1e793c71b5
Update tests since ? macro op is supported on 2015.
2019-06-09 04:16:34 +02:00
Mazdak Farrokhzad
39fbcfb277
Support ? Kleene operator in 2015.
2019-06-09 04:16:33 +02:00
bors
57e13e0325
Auto merge of #61653 - oli-obk:visit_place_recursion, r=spastorino
...
get rid of visit_place recursion
r? @spastorino
this is groundwork for https://github.com/rust-lang/rust/pull/60913 , since after that PR we won't be able to implement `visit_place` in a recursive manner without heavy cloning everywhere.
cc @eddyb this touches const qualif
2019-06-09 02:07:44 +00:00
Napen123
1b6b7597ed
Add examples for make_ascii_{uppercase, lowercase}
2019-06-08 18:28:29 -06:00
Jonathan Behrens
493d1b473a
Include frame pointer for bare metal RISC-V targets
2019-06-08 19:21:38 -04:00
bors
053666f906
Auto merge of #61672 - Centril:rollup-jxo89ir, r=Centril
...
Rollup of 6 pull requests
Successful merges:
- #61646 (Remove useless allocations in macro_rules follow logic.)
- #61658 (remove useless ident() functions in const tests)
- #61660 (Minimize use of `#![feature(custom_attribute)]`)
- #61666 (Add test for trait ICE)
- #61669 ( syntax: Remove `Deref` impl from `Token`)
- #61670 (Update RLS)
Failed merges:
r? @ghost
2019-06-08 23:17:06 +00:00
Ralf Jung
8316cecf69
make unary float negation slightly nicer
2019-06-09 00:51:47 +02:00
Ralf Jung
0012af695e
trait-ize binary_float_op
2019-06-09 00:41:20 +02:00
Igor Matuszewski
d4632744fa
Translate CRLF -> LF in raw (byte) strings
2019-06-09 00:33:21 +02:00
Mazdak Farrokhzad
e0c825cc72
Rollup merge of #61670 - Xanewok:update-rls, r=oli-obk
...
Update RLS
This bumps the version to 1.37 and also doesn't build clippy by default (should reduce toolstate breakages, see https://github.com/rust-lang/rust/issues/59761#issuecomment-498616465 for more details)
r? @oli-obk
2019-06-09 00:20:39 +02:00
Mazdak Farrokhzad
6b71fba9c1
Rollup merge of #61669 - petrochenkov:tokderef2, r=oli-obk
...
syntax: Remove `Deref` impl from `Token`
Follow up to https://github.com/rust-lang/rust/pull/61541
r? @oli-obk
2019-06-09 00:20:38 +02:00