<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustc/middle/effect.rs, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2017-09-24T09:46:00+00:00</updated>
<entry>
<title>move unsafety checking to MIR</title>
<updated>2017-09-24T09:46:00+00:00</updated>
<author>
<name>Ariel Ben-Yehuda</name>
<email>ariel.byd@gmail.com</email>
</author>
<published>2017-09-19T13:20:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c72a979979fef0cc00c3023cd4a4ce550a22935b'/>
<id>urn:sha1:c72a979979fef0cc00c3023cd4a4ce550a22935b</id>
<content type='text'>
No functional changes intended.
</content>
</entry>
<entry>
<title>rustc: Remove the `used_unsafe` field on TyCtxt</title>
<updated>2017-08-30T23:09:02+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-08-30T22:18:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=058202e5235d334f8b3017b057c684b01a6bde27'/>
<id>urn:sha1:058202e5235d334f8b3017b057c684b01a6bde27</id>
<content type='text'>
Now that lint levels are available for the entire compilation, this can be an
entirely local lint in `effect.rs`
</content>
</entry>
<entry>
<title>Improve validation of TypeckTables keys.</title>
<updated>2017-08-11T10:17:07+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2017-08-11T09:56:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a69eaf62c5e325c96c9924102829a42cbfd37424'/>
<id>urn:sha1:a69eaf62c5e325c96c9924102829a42cbfd37424</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Encapsulate sub-table access in TypeckTables and validate keys on each access.</title>
<updated>2017-08-11T10:17:07+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2017-08-10T14:10:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f54df1101cabc4663906a5b8b6ca99bab6267a3'/>
<id>urn:sha1:1f54df1101cabc4663906a5b8b6ca99bab6267a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make TypeckTables::type_dependent_defs use ItemLocalId instead of NodeId.</title>
<updated>2017-08-11T10:11:38+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2017-08-04T07:49:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=783ccc443b88884a10eed564e0fdc3c1e6f974a4'/>
<id>urn:sha1:783ccc443b88884a10eed564e0fdc3c1e6f974a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: Rearchitect lints to be emitted more eagerly</title>
<updated>2017-08-09T16:13:51+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-07-27T04:51:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0374e6aab7ef60b523872556ae4aca33c59fbfc9'/>
<id>urn:sha1:0374e6aab7ef60b523872556ae4aca33c59fbfc9</id>
<content type='text'>
In preparation for incremental compilation this commit refactors the lint
handling infrastructure in the compiler to be more "eager" and overall more
incremental-friendly. Many passes of the compiler can emit lints at various
points but before this commit all lints were buffered in a table to be emitted
at the very end of compilation. This commit changes these lints to be emitted
immediately during compilation using pre-calculated lint level-related data
structures.

Linting today is split into two phases, one set of "early" lints run on the
`syntax::ast` and a "late" set of lints run on the HIR. This commit moves the
"early" lints to running as late as possible in compilation, just before HIR
lowering. This notably means that we're catching resolve-related lints just
before HIR lowering. The early linting remains a pass very similar to how it was
before, maintaining context of the current lint level as it walks the tree.

Post-HIR, however, linting is structured as a method on the `TyCtxt` which
transitively executes a query to calculate lint levels. Each request to lint on
a `TyCtxt` will query the entire crate's 'lint level data structure' and then go
from there about whether the lint should be emitted or not.

The query depends on the entire HIR crate but should be very quick to calculate
(just a quick walk of the HIR) and the red-green system should notice that the
lint level data structure rarely changes, and should hopefully preserve
incrementality.

Overall this resulted in a pretty big change to the test suite now that lints
are emitted much earlier in compilation (on-demand vs only at the end). This in
turn necessitated the addition of many `#![allow(warnings)]` directives
throughout the compile-fail test suite and a number of updates to the UI test
suite.
</content>
</entry>
<entry>
<title>use field init shorthand in src/librustc</title>
<updated>2017-07-06T05:37:10+00:00</updated>
<author>
<name>Zack M. Davis</name>
<email>code@zackmdavis.net</email>
</author>
<published>2017-07-03T18:19:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f668999153d78903658b6937a099819e0b634a06'/>
<id>urn:sha1:f668999153d78903658b6937a099819e0b634a06</id>
<content type='text'>
The field init shorthand syntax was stabilized in 1.17.0 (aebd94f); we
are now free to use it in the compiler.
</content>
</entry>
<entry>
<title>rustc: move the PolyFnSig out of TyFnDef.</title>
<updated>2017-06-27T13:39:52+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-05-13T14:11:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=33ecf72e8e26b5bf5449ae27297e83c9f78aa3ad'/>
<id>urn:sha1:33ecf72e8e26b5bf5449ae27297e83c9f78aa3ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: replace method_map with Def::Method and node_substs entries.</title>
<updated>2017-06-01T05:59:47+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-05-20T13:11:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=552ab37a100231f8f2416b5ecc7e350c17e6487f'/>
<id>urn:sha1:552ab37a100231f8f2416b5ecc7e350c17e6487f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: avoid using MethodCallee's signature where possible.</title>
<updated>2017-06-01T05:59:47+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-05-19T09:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a65ced5d161d31e7e5b097b36bff0f51ec0843bc'/>
<id>urn:sha1:a65ced5d161d31e7e5b097b36bff0f51ec0843bc</id>
<content type='text'>
</content>
</entry>
</feed>
