Uh oh!
There was an error while loading. Please reload this page.
Don't promote function calls to nonpromotable things - #58784
Conversation
pnkfelix
commented
Feb 28, 2019
discussed at T-compiler meeting. approved for beta backport. |
eddyb
commented
Mar 1, 2019
Looks like the reason this regressed is because "not promotable" used to be turned into "not const" but at some point in the refactor I simplified it too much and only preserved "not const" from callee/arguments, but not "not promotable". r=me with a FIXME about removing |
oli-obk
commented
Mar 1, 2019
@bors r=eddyb |
bors
commented
Mar 1, 2019
📌 Commit 8c16507 has been approved by |
bors
commented
Mar 4, 2019
⌛ Testing commit 8c16507 with merge f40e37747ba74cd7fd974cb092033474d4d8c6f9... |
bors
commented
Mar 4, 2019
💔 Test failed - status-appveyor |
ljedrz
commented
Mar 4, 2019
The error looks spurious; maybe my try rights are already in force? @bors retry |
bors
commented
Mar 4, 2019
⌛ Testing commit 8c16507 with merge 113a74e1c5bdcf894fd624d1465b342324779fc6... |
bors
commented
Mar 4, 2019
💔 Test failed - status-appveyor |
oli-obk
commented
Mar 5, 2019
@bors retry (different builder failed that passed in the previous run) |
oli-obk
commented
Mar 10, 2019
@bors r=eddyb p=1 |
bors
commented
Mar 10, 2019
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
Mar 10, 2019
📌 Commit 8c16507 has been approved by |
bors
commented
Mar 10, 2019
bors
commented
Mar 10, 2019
💔 Test failed - checks-travis |
rust-highfive
commented
Mar 10, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
oli-obk
commented
Mar 10, 2019
@bors retry timeout |
bors
commented
Mar 11, 2019
bors
commented
Mar 11, 2019
☀️ Test successful - checks-travis, status-appveyor |
[beta] Rollup backports Cherry-picked: * Include bounds from promoted constants in NLL #57202 * Warning period for detecting nested impl trait #58608 * Don't promote function calls to nonpromotable things #58784 * Make migrate mode work at item level granularity #58788 * Expand where negative supertrait specific error is shown #58861 * Expand where negative supertrait specific error is shown #58861 Rolled up: * [BETA] Update cargo #59217 r? @ghost
Retire `IsNotConst` naming This naming scheme caused a lot of confusion lately (including ICEs) due to misrefactored code. Also clean up the initialization code for said flag. r? @eddyb previous discussions: rust-lang#58784 (comment)rust-lang#58403 (comment)
Retire `IsNotConst` naming This naming scheme caused a lot of confusion lately (including ICEs) due to misrefactored code. Also clean up the initialization code for said flag. r? @eddyb previous discussions: rust-lang#58784 (comment)rust-lang#58403 (comment)
Retire `IsNotConst` naming This naming scheme caused a lot of confusion lately (including ICEs) due to misrefactored code. Also clean up the initialization code for said flag. r? @eddyb previous discussions: rust-lang#58784 (comment)rust-lang#58403 (comment)
Retire `IsNotConst` naming This naming scheme caused a lot of confusion lately (including ICEs) due to misrefactored code. Also clean up the initialization code for said flag. r? @eddyb previous discussions: rust-lang#58784 (comment)rust-lang#58403 (comment)
fixes#58767 and fixes#58634
r? @eddyb
should we additionally check the function call return type? It might be a promotable function (or any
const fninside aconst fn), but its return type might contain interior mutability.