Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 11 pull requests #40810

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8c92044
On-demandify the typechecking of item bodies
cramertj Mar 15, 2017
5ca8a73
std: Don't cache stdio handles on Windows
alexcrichton Mar 14, 2017
c2b44a3
rustbuild: Update bootstrap compiler
alexcrichton Mar 14, 2017
1a87fc2
convert `custom_coerce_unsized_kind` into a `coerce_unsized_info`
nikomatsakis Mar 17, 2017
8e6b10a
move `check` to the top of the file, where I would expect to find it
nikomatsakis Mar 20, 2017
8ffe406
keep the AST node-id when lowering ExprKind::Range
arielb1 Mar 23, 2017
a29ae30
convert inherent-impl-related things to on-demand queries
nikomatsakis Mar 20, 2017
e341d60
Remove internal liblog
alexcrichton Feb 15, 2017
b470354
Update cargo submodule
alexcrichton Mar 23, 2017
8fba638
Rewrite `io::BufRead` doc examples to better demonstrate behaviors.
frewsxcv Mar 18, 2017
64e9af4
Allow declarative macros 2.0 and `use` macro imports to shadow builti…
jseyfried Mar 11, 2017
d64d381
Rename `builtin` => `global`.
jseyfried Mar 16, 2017
2c816f7
Optimize insertion sort
Mar 24, 2017
bff332e
travis: Update sccache again
alexcrichton Mar 25, 2017
16bfc19
Rollup merge of #40347 - alexcrichton:rm-liblog, r=brson
alexcrichton Mar 25, 2017
c43d5e3
Rollup merge of #40501 - jseyfried:shadow_builtin_macros, r=nrc
alexcrichton Mar 25, 2017
22380e7
Rollup merge of #40516 - alexcrichton:no-cache-handles, r=aturon
alexcrichton Mar 25, 2017
299a8f3
Rollup merge of #40524 - alexcrichton:update-bootstrap, r=brson
alexcrichton Mar 25, 2017
593b535
Rollup merge of #40540 - cramertj:check-bodies-as-query, r=nikomatsakis
alexcrichton Mar 25, 2017
e5f66fe
Rollup merge of #40642 - frewsxcv:io-bufread-doc-examples, r=Guillaum…
alexcrichton Mar 25, 2017
bbeb0c0
Rollup merge of #40683 - nikomatsakis:incr-comp-coerce-unsized-info, …
alexcrichton Mar 25, 2017
874045c
Rollup merge of #40764 - arielb1:range-nodes, r=eddyb
alexcrichton Mar 25, 2017
6b23772
Rollup merge of #40778 - alexcrichton:update-cargo, r=alexcrichton
alexcrichton Mar 25, 2017
1ae5b9a
Rollup merge of #40807 - stjepang:optimize-insertion-sort, r=alexcric…
alexcrichton Mar 25, 2017
9dc591c
Rollup merge of #40809 - alexcrichton:update-sccache-again, r=alexcri…
alexcrichton Mar 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/librustc_typeck/coherence/inherent.rs
Original file line number Diff line number Diff line change
@@ -19,6 +19,13 @@ use rustc::ty::{self, TyCtxt};
use syntax::ast;
use syntax_pos::Span;

pub fn check<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
tcx.visit_all_item_likes_in_krate(DepNode::CoherenceCheckImpl,
&mut InherentCollect { tcx });
tcx.visit_all_item_likes_in_krate(DepNode::CoherenceOverlapCheckSpecial,
&mut InherentOverlapChecker { tcx });
}

struct InherentCollect<'a, 'tcx: 'a> {
tcx: TyCtxt<'a, 'tcx, 'tcx>
}
@@ -348,9 +355,3 @@ impl<'a, 'tcx, 'v> ItemLikeVisitor<'v> for InherentOverlapChecker<'a, 'tcx> {
}
}

pub fn check<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
tcx.visit_all_item_likes_in_krate(DepNode::CoherenceCheckImpl,
&mut InherentCollect { tcx });
tcx.visit_all_item_likes_in_krate(DepNode::CoherenceOverlapCheckSpecial,
&mut InherentOverlapChecker { tcx });
}