Commit Graph

107435 Commits

Author SHA1 Message Date
bors
1d7e818747 Auto merge of #69242 - cjgillot:object_violations, r=Zoxc
Querify object_safety_violations.

Split from #69076

r? @Zoxc
2020-02-21 20:25:50 +00:00
Ralf Jung
1a0e2001bc fix miri and bootstrap interaction 2020-02-21 20:45:16 +01:00
Jonas Schievink
af2931bdfe Mark E0399 test as obsolete 2020-02-21 19:43:03 +01:00
Jonas Schievink
4d4da926f2 Fix rebase damage 2020-02-21 19:42:28 +01:00
Jonas Schievink
9930e1ff0a Fix tests that fail with --emit metadata 2020-02-21 19:42:28 +01:00
Jonas Schievink
232c1f331c Format code 2020-02-21 19:42:28 +01:00
Jonas Schievink
ec50190399 Bless test output 2020-02-21 19:41:22 +01:00
Jonas Schievink
a01846f0c3 appease tidy 2020-02-21 19:41:22 +01:00
Jonas Schievink
708f053807 Add test for #65774
Closes #65774
2020-02-21 19:41:22 +01:00
Jonas Schievink
f94eaeaf73 Fix rebase damage 2020-02-21 19:41:22 +01:00
Jonas Schievink
24ec364713 Test mixed default and non-default 2020-02-21 19:41:22 +01:00
Jonas Schievink
c8da9ee50a Improve specialization test 2020-02-21 19:41:22 +01:00
Jonas Schievink
fbcd136b65 Improve the cycle tests 2020-02-21 19:41:22 +01:00
Jonas Schievink
f40879408c Improve defaults-in-other-trait-items-pass 2020-02-21 19:41:22 +01:00
Jonas Schievink
3f03d95bb0 Improve associated-types-overridden-default.rs
Check that the resulting assoc. types are as expected
2020-02-21 19:41:22 +01:00
Jonas Schievink
c964520740 Update tests after compiletest changes 2020-02-21 19:41:22 +01:00
Jonas Schievink
fd28614cb7 Add regression test for #26681 2020-02-21 19:41:22 +01:00
Jonas Schievink
1f61f36849 Add comment about the shallow subst rule 2020-02-21 19:41:22 +01:00
Jonas Schievink
485111c48e Add regression tests for issues 2020-02-21 19:41:22 +01:00
Jonas Schievink
fead45815c Fix tests after rebase 2020-02-21 19:41:22 +01:00
Jonas Schievink
07ad64f70f Add tests for #62211 2020-02-21 19:41:22 +01:00
Jonas Schievink
ff5d11e043 Add comments and tests explaining the shallow substitution rule 2020-02-21 19:41:22 +01:00
Jonas Schievink
5e9317a023 Put the check into its own function 2020-02-21 19:41:22 +01:00
Jonas Schievink
f403882927 Add a Self: Sized bound 2020-02-21 19:41:22 +01:00
Jonas Schievink
c73ee9861b Check suitability of the provided default 2020-02-21 19:41:21 +01:00
Jonas Schievink
d3be26d6a8 Improve test 2020-02-21 19:41:21 +01:00
Jonas Schievink
1e3c020063 Test interactions with specialization 2020-02-21 19:41:21 +01:00
Jonas Schievink
de447eb9f2 Add tests for assoc. const defaults 2020-02-21 19:41:21 +01:00
Jonas Schievink
37686edb85 Add comments and assertions to tests 2020-02-21 19:41:21 +01:00
Jonas Schievink
a549bbdc32 Add regression test for #54182 2020-02-21 19:41:21 +01:00
Jonas Schievink
a323ff2c86 Implement RFC 2532 – Associated Type Defaults 2020-02-21 19:41:21 +01:00
Mazdak Farrokhzad
14442e0ebb print vis & defaultness for nested items 2020-02-21 18:30:56 +01:00
bors
8aa9d2014f Auto merge of #69347 - matthiaskrgr:submodule_upd, r=Xanewok
submodules: update rls from 0100ac8 to 10bf331

Changes:
````
Update cargo
````

r? @Xanewok
2020-02-21 16:57:24 +00:00
Michael Mc Donnell
e1c8c8cf63 Test Duration::new panics on overflow
A `Duration` is created from a second and nanoseconds variable. The
documentation says: "This constructor will panic if the carry from the
nanoseconds overflows the seconds counter". This was, however, not tested
in the tests. I doubt the behavior will ever regress, but it is usually a
good idea to test all documented behavior.
2020-02-21 08:04:16 -08:00
Mateusz Mikuła
4904b9c228 Detect Chocolatey MinGW installation 2020-02-21 16:47:04 +01:00
Mateusz Mikuła
b3b252b401 Fix MinGW detection for Cygwin 2020-02-21 15:36:29 +01:00
Santiago Pastorino
8893607a54
MIR is not an experiment anymore 2020-02-21 11:03:21 -03:00
bors
187f3d73ab Auto merge of #69342 - flip1995:clippyup, r=Dylan-DPC
Update Clippy from 2855b21 to 8fbb23f

```
Fix ICE in `missing_errors_doc`
Update License
Migrate Clippy to GitHub Actions
redundant_clone: Migrate to new dataflow framework
Move unneeded_field_pattern to pedantic group
Rustup to rust-lang/rust#69325
Rustup to rust-lang/rust#69072
```

Fixes #69338

r? @Manishearth
2020-02-21 13:33:23 +00:00
Guillaume Gomez
8f3fcec351 Clean up E0326 explanation 2020-02-21 13:34:10 +01:00
Guillaume Gomez
c3303c7b08 Clean up E0323, E0324 and E0325 explanations 2020-02-21 13:34:06 +01:00
Matthias Krüger
211fefc78c submodules: update rls from 0100ac8 to 10bf331
Changes:
````
Update cargo
````
2020-02-21 13:33:51 +01:00
Ralf Jung
821c4408f9 bump Miri 2020-02-21 11:50:15 +01:00
bors
212aa3ea28 Auto merge of #69330 - Centril:literally-melting-ice, r=eddyb
`lit_to_const`: gracefully bubble up type errors.

Fixes https://github.com/rust-lang/rust/issues/69310 which was injected by https://github.com/rust-lang/rust/pull/68118.

r? @pnkfelix @varkor @eddyb
cc @skinny121
2020-02-21 10:04:22 +00:00
flip1995
df11447ca8
Update Clippy 2020-02-21 10:32:57 +01:00
bors
01a8b5f26e Auto merge of #69290 - wesleywiser:speed_up_ctfe_stress_4, r=RalfJung
Check `RUSTC_CTFE_BACKTRACE` much less by generating fewer errors

Before this change, `get_size_and_align()`  calls `get_fn_alloc()` *a
lot* in CTFE heavy code. This previously returned an `Error` which would
check if `RUSTC_CTFE_BACKTRACE` was set on construction. Doing this
turned out to be a performance hotspot as @nnethercote discovered in
#68792.

This is an alternate take on that PR which resolves the performance
issue by generating *many* fewer errors. Previously, `ctfe-stress-4`
would generate over 5,000,000 errors each of which would check for the
presence of the environment variable. With these changes, that number is
reduced to 30.

r? @RalfJung
2020-02-21 06:43:40 +00:00
bors
2851e59a52 Auto merge of #69281 - nnethercote:inline-some-encoding-decoding-methods, r=Centril
Inline some encoding and decoding methods.

This is a small performance win.

r? @Centril
2020-02-21 03:14:55 +00:00
Wesley Wiser
5b7e6c0f3c Add documentation for the -Zself-profile-events flag 2020-02-20 21:32:15 -05:00
Wesley Wiser
ec980a21b0 Add test for #69312
This bug was fixed by #67501.

Closes #69312
2020-02-20 21:25:19 -05:00
Mark Rousskov
e7ee42baeb Do not ping the infrastructure team on toolstate changes
To my knowledge, there is essentially never any particular action that the
infra team needs to take on these pings, and they are currently relatively
annoying.
2020-02-20 19:46:09 -05:00
Dylan MacKenzie
16790ae1f9 Revert "Rollup merge of #69280 - ecstatic-morse:promote-shuffle-no-special-case, r=petrochenkov"
This reverts commit 61d3b6dedb, reversing
changes made to c6ad1e2c2a.
2020-02-20 16:00:39 -08:00