Conversation
459e6ca to
f64623c
Compare
|
LGTM. Unsure about having a separate vector for visibility scope information (and I'd rename them to "lexical" or "source" scopes). r? @nikomatsakis |
src/librustc/mir/mod.rs
Outdated
There was a problem hiding this comment.
.map(|()| ...) is possible here. (() matches the only val of type ()
src/librustc/ich/impls_mir.rs
Outdated
There was a problem hiding this comment.
StableHashingContext now only takes one lifetime: StableHashingContext<'gcx>.
f64623c to
09030aa
Compare
|
☔ The latest upstream changes (presumably #44505) made this pull request unmergeable. Please resolve the merge conflicts. |
09030aa to
9be1ef7
Compare
src/librustc/mir/mod.rs
Outdated
There was a problem hiding this comment.
hate that keyboard. should get a new one that is actually good.
src/librustc_driver/driver.rs
Outdated
There was a problem hiding this comment.
... we can remove the FIXME as part of this PR, right?
|
(LGTM too.) |
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks pretty awesome. r=me but I'm not sure what's up with the THIS IS A TEST comment.
There was a problem hiding this comment.
what does this comment mean?
There was a problem hiding this comment.
I wanted to see that lints worked before I actually used them to implement effect checking.
There was a problem hiding this comment.
oops. this should never have reached github. removing.
f4b3b24 to
48466b7
Compare
|
@bors r=nikomatsakis |
|
📌 Commit 48466b7 has been approved by |
|
⌛ Testing commit 48466b75cf16294f1d3bef913f2ac4c34cb80a94 with merge 3a3144bc996f5950bc3415dd6c7325ed87ebbd2c... |
|
💔 Test failed - status-appveyor |
src/test/compile-fail/issue-43733.rs
Outdated
There was a problem hiding this comment.
check x86_64-pc-windows-gnu failed, can't find these two errors.
Windows aren't cfg(target_thread_local) IIRC.
---- [compile-fail] compile-fail\issue-43733.rs stdout ----
error: C:/projects/rust/src/test/compile-fail/issue-43733.rs:17: expected error not found: Sync` is not satisfied
error: C:/projects/rust/src/test/compile-fail/issue-43733.rs:17: expected error not found: Sync` is not satisfied
error: 0 unexpected errors found, 2 expected errors not found
There was a problem hiding this comment.
Only mingw windows. MSVC windows does have cfg(target_thread_local).
However... this error shouldn't be there, I think I forgot to put #[thread_local] on it when I wrote the test? Or maybe I wrote the test, then later changed #[thread_local] and forgot to update the test (because it didn't give these errors because MIR checks run far too late :/).
Anyway, just adding #[thread_local] should work.
48466b7 to
516534f
Compare
|
@bors r=nikomatsakis |
|
📌 Commit 516534f has been approved by |
Move effect-checking to MIR This allows emitting lints from MIR and moves the effect-checking pass to work on it. I'll make `repr(packed)` misuse unsafe in a separate PR. r? @eddyb
|
☀️ Test successful - status-appveyor, status-travis |
This allows emitting lints from MIR and moves the effect-checking pass to work on it.
I'll make
repr(packed)misuse unsafe in a separate PR.r? @eddyb