<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_feature/src/lib.rs, branch 1.51.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.51.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.51.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-12-12T16:18:44+00:00</updated>
<entry>
<title>tidy: Re-enable check for inline unit tests</title>
<updated>2020-12-12T16:18:44+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2020-12-12T16:18:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec09616078e89deab5f97e578b3400b045c09575'/>
<id>urn:sha1:ec09616078e89deab5f97e578b3400b045c09575</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow making `RUSTC_BOOTSTRAP` conditional on the crate name</title>
<updated>2020-11-07T18:45:11+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>jyn514@gmail.com</email>
</author>
<published>2020-10-10T18:27:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=622c48e4f1a5bc3727f8ead89767c8a9e367a77e'/>
<id>urn:sha1:622c48e4f1a5bc3727f8ead89767c8a9e367a77e</id>
<content type='text'>
The main change is that `UnstableOptions::from_environment` now requires
an (optional) crate name. If the crate name is unknown (`None`), then the new feature is not available and you still have to use `RUSTC_BOOTSTRAP=1`. In practice this means the feature is only available for `--crate-name`, not for `#![crate_name]`; I'm interested in supporting the second but I'm not sure how.

Other major changes:

- Added `Session::is_nightly_build()`, which uses the `crate_name` of
the session
- Added `nightly_options::match_is_nightly_build`, a convenience method
for looking up `--crate-name` from CLI arguments.
`Session::is_nightly_build()`should be preferred where possible, since
it will take into account `#![crate_name]` (I think).
- Added `unstable_features` to `rustdoc::RenderOptions`

  There is a user-facing change here: things like `RUSTC_BOOTSTRAP=0` no
  longer active nightly features. In practice this shouldn't be a big
  deal, since `RUSTC_BOOTSTRAP` is the opposite of stable and everyone
  uses `RUSTC_BOOTSTRAP=1` anyway.

- Add tests

  Check against `Cheat`, not whether nightly features are allowed.
  Nightly features are always allowed on the nightly channel.

- Only call `is_nightly_build()` once within a function

- Use booleans consistently for rustc_incremental

  Sessions can't be passed through threads, so `read_file` couldn't take a
  session. To be consistent, also take a boolean in `write_file_header`.
</content>
</entry>
<entry>
<title>Add note about possible future improvement</title>
<updated>2020-10-01T15:32:23+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-10-01T15:32:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2140d80a9d69cce7a9fb2c90051af4328737a446'/>
<id>urn:sha1:2140d80a9d69cce7a9fb2c90051af4328737a446</id>
<content type='text'>
Co-authored-by: David Tolnay &lt;dtolnay@gmail.com&gt;</content>
</entry>
<entry>
<title>Fix 'FIXME' about using NonZeroU32 instead of u32.</title>
<updated>2020-09-17T19:54:13+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-09-17T19:11:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ef603c8400db203fefd714de963c88e5523424'/>
<id>urn:sha1:84ef603c8400db203fefd714de963c88e5523424</id>
<content type='text'>
It was blocked by #58732 (const fn NonZeroU32::new), which is fixed now.
</content>
</entry>
<entry>
<title>Implementation of incompatible features error</title>
<updated>2020-09-04T14:17:28+00:00</updated>
<author>
<name>Amjad Alsharafi</name>
<email>amjadsharafi10@gmail.com</email>
</author>
<published>2020-09-03T17:47:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f2d9069a8c19c5471c4f3490ce21eb910cf3074'/>
<id>urn:sha1:8f2d9069a8c19c5471c4f3490ce21eb910cf3074</id>
<content type='text'>
If two features are defined as incompatible, using them together would
result in an error
</content>
</entry>
<entry>
<title>feature: replace `lazy_static` by `SyncLazy` from std</title>
<updated>2020-09-01T21:06:47+00:00</updated>
<author>
<name>marmeladema</name>
<email>xademax@gmail.com</email>
</author>
<published>2020-09-01T20:42:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73a7204983a28177b296a3dcd8632540a6fcee1a'/>
<id>urn:sha1:73a7204983a28177b296a3dcd8632540a6fcee1a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mv compiler to compiler/</title>
<updated>2020-08-30T15:45:07+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-08-28T03:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e5f7d5631b8f4009ac1c693e585d4b7108d4275'/>
<id>urn:sha1:9e5f7d5631b8f4009ac1c693e585d4b7108d4275</id>
<content type='text'>
</content>
</entry>
</feed>
