bors
b18b9edf00
Auto merge of #52681 - pnkfelix:z-borrowck-migrate, r=nikomatsakis
...
Add `-Z borrowck=migrate`
This adds `-Z borrowck=migrate`, which represents the way we want to migrate to NLL under Rust versions to come. It also hooks this new mode into `--edition 2018`, which means we're officially turning NLL on in the 2018 edition.
The basic idea of `-Z borrowck=migrate` that there are cases where NLL is fixing old soundness bugs in the borrow-checker, but in order to avoid just breaking code by immediately rejecting the programs that hit those soundness bugs, we instead use the following strategy:
If your code is accepted by NLL, then we accept it.
If your code is rejected by both NLL and the old AST-borrowck, then we reject it.
If your code is rejected by NLL but accepted by the old AST-borrowck, then we emit the new NLL errors as **warnings**.
These warnings will be turned into hard errors in the future, and they say so in these diagnostics.
Fix #46908
2018-07-27 09:10:07 +00:00
..
2018-07-19 21:14:01 +00:00
2018-07-27 09:10:07 +00:00
2018-07-22 12:49:35 +01:00
2018-07-23 14:31:06 +02:00
2018-07-26 22:20:17 +00:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-20 20:01:15 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-18 14:14:04 +02:00
2018-07-19 23:18:07 -07:00
2018-07-27 09:10:07 +00:00
2018-07-23 14:31:06 +02:00
2018-07-27 07:16:12 +00:00
2018-07-20 12:22:24 +03:00
2018-07-22 20:54:05 +00:00
2018-07-25 16:36:03 +03:00
2018-07-23 14:31:06 +02:00
2018-07-26 09:18:30 -06:00
2018-07-25 09:30:53 +08:00
2018-07-26 17:42:59 +00:00
2018-07-23 14:31:06 +02:00
2018-07-18 15:04:17 +00:00
2018-07-26 09:18:26 -06:00
2018-07-23 14:31:06 +02:00
2018-07-25 16:36:03 +03:00
2018-07-22 12:19:34 -07:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-21 17:58:05 -07:00
2018-07-21 17:58:05 -07:00
2018-07-20 20:01:15 +01:00
2018-07-23 16:03:26 -07:00
2018-07-24 20:46:22 -07:00
2018-07-20 09:17:18 -07:00
2018-07-23 20:54:09 +01:00
2018-07-20 09:17:18 -07:00
2018-07-21 22:33:32 -07:00
2018-07-19 23:21:00 -07:00
2018-07-20 09:17:18 -07:00
2018-07-20 09:17:18 -07:00
2018-07-23 20:54:09 +01:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-23 20:54:09 +01:00
2018-07-20 09:17:18 -07:00
2018-07-22 12:53:55 +01:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-22 12:53:55 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-20 09:17:18 -07:00
2018-07-20 09:17:18 -07:00
2018-07-21 18:40:46 +01:00
2018-07-21 18:40:46 +01:00
2018-07-21 15:56:49 +03:00
2018-07-21 15:56:49 +03:00
2018-07-20 20:01:15 +01:00
2018-07-20 09:17:18 -07:00
2018-07-20 09:17:18 -07:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-21 18:40:46 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-23 21:54:43 -05:00
2018-07-23 21:55:51 -05:00
2018-07-25 16:36:03 +03:00
2018-07-20 20:01:15 +01:00
2018-07-23 21:24:38 -04:00
2018-07-23 21:24:38 -04:00
2018-07-20 20:01:15 +01:00
2018-07-23 21:24:38 -04:00
2018-07-23 21:24:38 -04:00
2018-07-18 07:50:08 -07:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-20 20:01:15 +01:00
2018-07-20 20:01:15 +01:00
2018-07-23 14:31:06 +02:00
2018-07-20 09:17:55 -07:00
2018-07-20 09:17:55 -07:00
2018-07-23 14:31:06 +02:00
2018-07-23 14:31:06 +02:00
2018-07-23 20:54:09 +01:00
2018-07-20 14:26:40 +02:00
2018-07-20 14:26:40 +02:00
2018-07-23 20:54:09 +01:00
2018-07-23 20:54:09 +01:00
2018-07-20 20:01:15 +01:00
2018-07-25 17:26:12 -07:00
2018-07-18 07:50:08 -07:00
2018-07-18 07:50:08 -07:00