Vadim Petrochenkov
e60eaf59df
Fix naming conventions for new lints
2018-05-25 02:35:07 +03:00
bors
b86d909f86
Auto merge of #50937 - nikomatsakis:chalkify-engine-2, r=scalexm
...
implement the chalk-engine traits
Preliminary implementation for the Chalk traits in rustc. Lots of `panic!()` placeholders to be filled in later.
This is currently blocked on us landing https://github.com/rust-lang-nursery/chalk/pull/131 in chalk and issuing a new release, which should occur later today.
r? @scalexm
cc @leodasvacas
2018-05-24 23:10:18 +00:00
Santiago Pastorino
8429d11a0b
Use AllFacts from polonius-engine
2018-05-24 19:56:02 -03:00
Niko Matsakis
01d6ed525f
restore emplacement syntax (obsolete)
2018-05-24 18:49:58 -04:00
Niko Matsakis
558cbfb19b
prohibit turbofish in impl Trait
methods
2018-05-24 18:43:48 -04:00
bors
c2d46037fa
Auto merge of #50984 - cramertj:unpin-changes, r=aturon
...
Unpin changes
r? @aturon
cc @withoutboats, @RalfJung, @pythonesque, #49150
2018-05-24 20:58:12 +00:00
Guillaume Gomez
6ff9409637
Add more missing examples for Formatter
2018-05-24 22:27:19 +02:00
Oliver Schneider
0b1b26f17f
Update issue-50993.rs
2018-05-24 21:03:48 +02:00
Alex Crichton
f67453729c
std: Ensure OOM is classified as nounwind
...
OOM can't unwind today, and historically it's been optimized as if it can't
unwind. This accidentally regressed with recent changes to the OOM handler, so
this commit adds in a codegen test to assert that everything gets optimized away
after the OOM function is approrpiately classified as nounwind
Closes #50925
2018-05-24 12:03:05 -07:00
Oliver Schneider
fb9060ac06
Revert "Ensure llvm doesn't trigger an assert for crazy transmutes"
...
This reverts commit 776c632e2a9a044fd134321a9d561e28994ff3ff.
2018-05-24 20:49:38 +02:00
Oliver Schneider
85de4efdd8
Rename amt
variables to shift
2018-05-24 20:49:38 +02:00
Oliver Schneider
5c8741f32e
Use in-band-lifetimes instead of unused explicit lifetimes
2018-05-24 20:49:38 +02:00
Oliver Schneider
80a1488601
Prefer to_value_with_len
over manual expanison of it
2018-05-24 20:49:38 +02:00
Oliver Schneider
6d513f752f
Remove dead code
2018-05-24 20:49:38 +02:00
Oliver Schneider
d0610fd26e
Add missing newlines
2018-05-24 20:49:38 +02:00
Oliver Schneider
bdd23bf215
tcx.lift_to_global
> tcx.global_tcx().lift
2018-05-24 20:49:38 +02:00
Oliver Schneider
569ae80a0a
Wrongly named a closure clamp
when it was doing truncation
2018-05-24 20:49:38 +02:00
Oliver Schneider
1f9fa53738
Sanity check the bits
argument to the from_bits
function
2018-05-24 20:49:38 +02:00
Oliver Schneider
f1ea9ef315
Remove ty_to_primitive
2018-05-24 20:49:38 +02:00
Oliver Schneider
879d8f7070
Properly check defined bits range
2018-05-24 20:49:38 +02:00
Oliver Schneider
cfd5fb5102
Reuse to_bits
instead of badly reinventing it
2018-05-24 20:49:38 +02:00
Oliver Schneider
50628b7373
Only defined bits are relevant
2018-05-24 20:49:38 +02:00
Oliver Schneider
c6d25dc224
Don't ICE on horrible transmutes in pattern constants
2018-05-24 20:49:38 +02:00
Oliver Schneider
1a2964a541
Simplify a ScalarPair creation
2018-05-24 20:49:38 +02:00
Oliver Schneider
ca8c27e1c1
Ensure llvm doesn't trigger an assert for crazy transmutes
2018-05-24 20:49:38 +02:00
Oliver Schneider
bc3ba91737
Printing a fn definition needs to know nothing about its ZST's value
2018-05-24 20:49:38 +02:00
Oliver Schneider
09a996b0a6
Printing values should ignore whether bits are undefined
2018-05-24 20:49:38 +02:00
Oliver Schneider
98e5129375
Better variable naming
2018-05-24 20:49:38 +02:00
Oliver Schneider
97da01f8ad
Remove the last mention of Undef
2018-05-24 20:49:38 +02:00
Oliver Schneider
c420531304
Replace ScalarKind
with Primitive
2018-05-24 20:49:37 +02:00
Oliver Schneider
cc60a22b10
Get rid of scalar_size
2018-05-24 20:49:37 +02:00
Oliver Schneider
0da702a6d4
Remove an instance of scalar_size
in a Debug
impl
2018-05-24 20:49:37 +02:00
Oliver Schneider
ff652b8a01
Update outdated comment
2018-05-24 20:49:37 +02:00
Oliver Schneider
f82256e473
primval -> scalar rename
2018-05-24 20:49:37 +02:00
Oliver Schneider
1550fd212b
Use the destination type size instead of the source type size
2018-05-24 20:49:37 +02:00
Oliver Schneider
edbdf3d263
Formatting nit
2018-05-24 20:49:37 +02:00
Oliver Schneider
ea8f544964
Rebase fallout
2018-05-24 20:49:37 +02:00
Oliver Schneider
9456ba66bf
Accidentally used byte-size instead of bit-size
2018-05-24 20:49:37 +02:00
Oliver Schneider
4ca169ce84
Use the target types bitsize instead of the source type's
2018-05-24 20:49:37 +02:00
Oliver Schneider
bf39c7f87c
Floats are scalars!
2018-05-24 20:49:37 +02:00
Oliver Schneider
64a75ecc80
change Value::Bytes
to Value::Bits
2018-05-24 20:49:37 +02:00
Oliver Schneider
3bbf2fd715
Remove Pointer::zero in favor of Pointer::from
2018-05-24 20:48:54 +02:00
Oliver Schneider
d7324631ae
Rename MemoryPointer to Pointer
2018-05-24 20:48:54 +02:00
Oliver Schneider
03a92b61ec
Eliminate the Pointer
wrapper type
2018-05-24 20:48:13 +02:00
Oliver Schneider
6436de89fe
Differentiate between interpret::Scalar and layout::Scalar
2018-05-24 20:47:35 +02:00
Oliver Schneider
ef2177cffc
Rename ByVal(Pair) to Scalar(Pair)
2018-05-24 20:47:35 +02:00
Oliver Schneider
1606e137e7
Rename PrimVal to Scalar
2018-05-24 20:47:35 +02:00
Oliver Schneider
9cc5d927c9
Add constant for Size::from_bytes(0)
2018-05-24 20:46:07 +02:00
Guillaume Gomez
fe9a19580c
Add documentation about env! second argument
2018-05-24 20:08:10 +02:00
Esteban Küber
f36c643d4f
Fix impl Trait suggestion
2018-05-24 10:01:13 -07:00