Niko Matsakis
da12d02b37
useful debug in universal_regions
2018-09-06 19:58:23 -04:00
Niko Matsakis
bf6fe2a51e
region_name: rustfmt
2018-09-06 19:58:23 -04:00
Niko Matsakis
2eb76fc8a1
add a useful debug to give_region_a_name
2018-09-06 19:58:22 -04:00
Wesley Wiser
4e706f56bd
[nll] teach SCC about 'static
...
Fixes #53178
2018-09-06 19:58:22 -04:00
Wesley Wiser
db01b6789d
[nll] Refactor the Edges
iterator to return OutlivesConstraints
...
Part of #53178
2018-09-06 19:58:22 -04:00
bors
ad7b22ef29
Auto merge of #54005 - eddyb:uniform-paths-self-resolve, r=petrochenkov
...
rustc_resolve: allow `use crate_name;` under `uniform_paths`.
Specifically, `use crate_name;` and `use crate_name::{self, ...};` are now allowed, whereas previously there would produce a (false positive) ambiguity error, as the ambiguity detection code was seeing the `crate_name` import as a locally-available definition to conflict with the crate.
r? @petrochenkov cc @aturon @joshtriplett @Centril
2018-09-06 23:29:56 +00:00
David Wood
0a8cf67e61
Added note referencing issue which added error.
2018-09-07 00:37:44 +02:00
Mikhail Modin
d0c1e5a99e
rustfmt src/librustc_mir/build/expr
2018-09-06 22:34:56 +01:00
Guillaume Gomez
d5409141d6
Fix link
2018-09-06 23:32:30 +02:00
Guillaume Gomez
c1b1d6804b
Don't show default docs
2018-09-06 23:32:30 +02:00
Guillaume Gomez
c1ad1b0338
Fix invalid urls
2018-09-06 23:32:30 +02:00
Guillaume Gomez
1b3382f2b9
Fix implementors generation as well
2018-09-06 23:32:30 +02:00
Guillaume Gomez
d65c8636d9
Fix hover on impls
2018-09-06 23:32:30 +02:00
Jakub Kozlowski
4b7f2eb947
Fixup whitespace
2018-09-06 22:18:39 +01:00
bors
a8c11d216b
Auto merge of #53575 - matthewjasper:unsized-is-an-error, r=estebank
...
Don't reduce E0161 to a warning in NLL migrate mode
This error has been on stable for a while, and allowing such code cause the compile to later ICE (since we can't codegen it). Errors `box UNSIZED EXPR` with unsized locals because it's not compatible with the current evaluation order (create the box before evaluating the expressions).
cc #53469 (fixes the ICE in this case)
cc @qnighy
2018-09-06 21:02:35 +00:00
Jorge Aparicio
6c4f3f512e
update UI test
2018-09-06 23:01:35 +02:00
Mikhail Modin
527a29a5c6
Skip a shared borrow of a immutable local variables
...
issue #53643
2018-09-06 21:46:52 +01:00
Without Boats
972cd8bb69
Fix typos.
2018-09-06 21:31:06 +02:00
Jorge Aparicio
9b764c3190
crates that provide a panic_handler
are exempt from unused_extern_crates
...
fixes the *first* false positive reported in #53964
2018-09-06 21:24:33 +02:00
Eduard-Mihai Burtescu
31fce914b2
rustc_resolve: allow use crate_name;
under uniform_paths
.
2018-09-06 22:07:56 +03:00
Jakub Kozlowski
4088a385a7
Allow named lifetimes in async functions.
...
- Fixes #53174
2018-09-06 19:02:51 +01:00
Eduard-Mihai Burtescu
b9e7574bf2
rustc_codegen_llvm: don't assume offsets are always aligned.
2018-09-06 20:56:20 +03:00
ms2300
f4d4faaeed
Fixing tests from anon -> opaque
2018-09-06 11:43:31 -06:00
bors
c318691407
Auto merge of #52626 - brunocodutra:issue-52475, r=oli-obk
...
Fix issue #52475 : Make loop detector only consider reachable memory
As [suggested](https://github.com/rust-lang/rust/pull/51702#discussion_r197585664 ) by @oli-obk `alloc_id`s should be ignored by traversing all `Allocation`s in interpreter memory at a given moment in time, beginning by `ByRef` locals in the stack.
- [x] Generalize the implementation of `Hash` for `EvalSnapshot` to traverse `Allocation`s
- [x] Generalize the implementation of `PartialEq` for `EvalSnapshot` to traverse `Allocation`s
- [x] Commit regression tests
Fixes #52626
Fixes https://github.com/rust-lang/rust/issues/52849
2018-09-06 17:35:40 +00:00
Tim
43eb9259ec
Use binary_op_val instead of doing the check manually.
2018-09-06 15:11:56 +02:00
Felix S. Klock II
4973094feb
Allow illegal_floating_point_literal_pattern. These will need to be updated at some point.
...
Discussion can be found on rust-lang/rust#41620 .
2018-09-06 14:55:24 +02:00
Felix S. Klock II
8e72955526
Allow unions_with_drop_fields for unions with members with destructors
...
(or generics that *might* have dtors)
2018-09-06 14:55:24 +02:00
Felix S. Klock II
84a02e17da
Allow various name convention lints.
2018-09-06 14:55:21 +02:00
Felix S. Klock II
f3b766d7ad
Add // run-pass
to collection of tests.
2018-09-06 14:41:12 +02:00
Felix S. Klock II
76ceeddb2b
Migrated remaining src/test/run-pass/
subdirectories to src/test/ui/run-pass/
.
2018-09-06 14:36:26 +02:00
Eduard-Mihai Burtescu
c34dd37f85
rustc_resolve: don't record uniform_paths canaries as reexports.
2018-09-06 15:04:21 +03:00
Tim
92dd526a4e
Move check out of the match on the intrinsic name
2018-09-06 13:54:27 +02:00
Felix S. Klock II
ff8f1a3b94
Allow some lints to let the ported run-pass/borrowck tests get through.
2018-09-06 13:51:09 +02:00
Felix S. Klock II
4a7c8cc4b9
Add // run-pass
to collection of tests.
2018-09-06 13:29:24 +02:00
Felix S. Klock II
65780bc0c7
Migrated src/test/run-pass/borrowck
to src/test/ui/run-pass
.
...
Just shuffling files here; the needed updates to content come later.
2018-09-06 13:29:24 +02:00
Tim
58af73c370
Add unchecked_shl/shr checks for intrinsics
2018-09-06 13:13:07 +02:00
Felix S. Klock II
5fe0851548
Allow more lints, mainly overflowing_literals for cases that only arose on 32-bit.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
dc124e4d0b
Add #![allow(stable_features)]
to ease review.
...
That is, opting to ignore stable `#![feature(..)]`, under my theory
that a reviewer would prefer as much stuff to be bucketed under "ah
another `#![allow(..)]` here." as possible.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
f97eea1c10
Add .stderr
file for test that appears to trigger a lint that cannot be silenced.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
2bce9b031f
Add .stdout
file for test of log_syntax!
and trace_macros!
.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
18a77ae4ab
Allow uses of #[unsafe_destructor_blind_to_params]
. Should be ported to #[may_dangle]
.
...
See rust-lang/rust#34761 .
2018-09-06 13:00:26 +02:00
Felix S. Klock II
4a9e55e05a
Allow illegal_floating_point_literal_pattern. These will need to be updated at some point.
...
Discussion can be found on rust-lang/rust#41620 .
2018-09-06 13:00:26 +02:00
Felix S. Klock II
dc7685e958
Update line numbers to reflect added lines at beginning of tests.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
90412f149c
Add .stderr
files for shadowed labels where the point of the test is to test such cases.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
f78b9add44
Alpha-rename label to avoid the shadowing lint (which cannot be silenced).
2018-09-06 13:00:26 +02:00
Felix S. Klock II
175d7f4e48
Add .stderr
file for test where there are conflicting repr hints.
...
See rust-lang/rust#53857 .
2018-09-06 13:00:26 +02:00
Felix S. Klock II
d18b3bf104
Add #![allow(improper_ctypes)]
to extern-pass-empty.rs; note this test seems bogus.
...
that is, I suspect it should be retired because it is testing behavior
(namely a `#[repr(C)] struct Empty;`) that, if I understand correctly,
is undefined.
See also rust-lang/rust#53859 .
2018-09-06 13:00:26 +02:00
Felix S. Klock II
8bcf37d949
Add #[allow(improper_ctypes)]
to slew of cases that need e.g. repr(C)
.
...
See also rust-lang/rust#53858 .
2018-09-06 13:00:26 +02:00
Felix S. Klock II
e462c1adc5
Add #![allow(..)]
for a slew of lints of migrated run-pass tests, to silence stderr output.
2018-09-06 13:00:26 +02:00
Felix S. Klock II
90241dfba3
Remove references to a collection of unknown lints.
2018-09-06 13:00:26 +02:00