<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustc/traits/query, branch try-perf</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try-perf</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try-perf'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-02-16T10:41:25+00:00</updated>
<entry>
<title>Move librustc/{traits,infer} to librustc_infer.</title>
<updated>2020-02-16T10:41:25+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2020-01-06T19:13:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5691209b6d5fe5e47560b1db7b822dbeb0880fd'/>
<id>urn:sha1:d5691209b6d5fe5e47560b1db7b822dbeb0880fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move traits::query datatypes to traits::types.</title>
<updated>2020-02-05T07:45:09+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2020-01-22T08:04:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4e42f388c375b0d6eb25af087cb2a66069419529'/>
<id>urn:sha1:4e42f388c375b0d6eb25af087cb2a66069419529</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add an early-exit to `QueryNormalizer::fold_ty`</title>
<updated>2020-01-28T16:28:19+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2020-01-27T23:52:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=474d0e33717062696be4c9799ce9822bf7b56fc2'/>
<id>urn:sha1:474d0e33717062696be4c9799ce9822bf7b56fc2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #68140 - ecstatic-morse:const-trait-bound-opt-out, r=oli-obk</title>
<updated>2020-01-21T18:42:20+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-01-21T18:42:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3484e2fab4153068e4e5eaebab215e680efe38f1'/>
<id>urn:sha1:3484e2fab4153068e4e5eaebab215e680efe38f1</id>
<content type='text'>
Implement `?const` opt-out for trait bounds

For now, such bounds are treated exactly the same as unprefixed ones in all contexts. [RFC 2632](https://github.com/rust-lang/rfcs/pull/2632) does not specify whether such bounds are forbidden outside of `const` contexts, so they are allowed at the moment.

Prior to this PR, the constness of a trait bound/impl was stored in `TraitRef`. Now, the constness of an `impl` is stored in `ast::ItemKind::Impl` and the constness of a bound in `ast::TraitBoundModifer`. Additionally, constness of trait bounds is now stored in an additional field of `ty::Predicate::Trait`, and the combination of the constness of the item along with any `TraitBoundModifier` determines the constness of the bound in accordance with the RFC. Encoding the constness of impls at the `ty` level is left for a later PR.

After a discussion in \#wg-grammar on Discord, it was decided that the grammar should not encode the mutual exclusivity of trait bound modifiers. The grammar for trait bound modifiers remains `[?const] [?]`. To encode this, I add a dummy variant to `ast::TraitBoundModifier` that is used when the syntax `?const ?` appears. This variant causes an error in AST validation and disappears during HIR lowering.

cc #67794

r? @oli-obk
</content>
</entry>
<entry>
<title>Add `constness` field to `ty::Predicate::Trait`</title>
<updated>2020-01-20T08:00:08+00:00</updated>
<author>
<name>Dylan MacKenzie</name>
<email>ecstaticmorse@gmail.com</email>
</author>
<published>2020-01-14T04:30:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ab3081a70e5d402188c26c6f3e671a3c44812d1b'/>
<id>urn:sha1:ab3081a70e5d402188c26c6f3e671a3c44812d1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove rustc_error_codes deps except in rustc_driver</title>
<updated>2020-01-18T20:53:53+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-01-18T20:53:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de6046fa0ff6e57afa50174c001d1668ee7f3cf6'/>
<id>urn:sha1:de6046fa0ff6e57afa50174c001d1668ee7f3cf6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nix syntax::errors &amp; prefer rustc_errors over errors</title>
<updated>2020-01-10T06:41:30+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-01-09T10:18:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bd3d240e3fbfe5ad39585faef1fcfb4ae42ac59'/>
<id>urn:sha1:8bd3d240e3fbfe5ad39585faef1fcfb4ae42ac59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}</title>
<updated>2020-01-08T03:25:33+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-12-31T20:25:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c3e5d3de023c0bfbf4a4c4d3b0d7a9844e96ffe'/>
<id>urn:sha1:2c3e5d3de023c0bfbf4a4c4d3b0d7a9844e96ffe</id>
<content type='text'>
- remove syntax::{help!, span_help!, span_note!}
- remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!}
- lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints
- inline syntax::{struct_span_warn!, diagnostic_used!}
- stringify_error_code! -&gt; error_code! &amp; use it more.
- find_plugin_registrar: de-fatalize an error
- de-fatalize metadata errors
- move type_error_struct! to rustc_typeck
- struct_span_err! -&gt; rustc_errors
</content>
</entry>
<entry>
<title>Move normalize_erasing_regions to rustc::ty.</title>
<updated>2020-01-07T16:46:23+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2020-01-05T18:43:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a80bff87c19cf91deafefc8fdaace71f77727258'/>
<id>urn:sha1:a80bff87c19cf91deafefc8fdaace71f77727258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove rustc_hir reexports in rustc::hir.</title>
<updated>2020-01-05T11:49:22+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-01-05T01:37:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebfd8673a791661d9cb526d9994f2f6bbfa49348'/>
<id>urn:sha1:ebfd8673a791661d9cb526d9994f2f6bbfa49348</id>
<content type='text'>
</content>
</entry>
</feed>
