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

beta backport rollup #56102

Merged
merged 31 commits into from
Nov 21, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bd27131
Add helpful logging statements.
davidtwco Oct 26, 2018
6c1d718
Test for cast causing static promotion failure.
davidtwco Oct 26, 2018
0c3dfe1
Refactor and add `PlaceContext::AscribeUserTy`.
davidtwco Oct 26, 2018
8a6f4c8
remove "approx env bounds" if we already know from trait
nikomatsakis Nov 18, 2018
410f520
improve debug output related to bound calculation
nikomatsakis Nov 16, 2018
84afecc
handle trait objects formed from traits with `Self::Foo: 'a` clauses
nikomatsakis Nov 16, 2018
0a26e79
Rewrite `...` as `..=` as a MachineApplicable 2018 idiom lint
varkor Nov 10, 2018
9ab3b0f
Use non-short suggestion for parenthesised ..=
varkor Nov 10, 2018
4541827
don't inline `pub use some_crate` unless directly asked to
QuietMisdreavus Nov 9, 2018
1d1213f
Increase `Duration` approximate equal threshold to 1us
alexcrichton Nov 19, 2018
e2a9ee4
squashed form of #54145
nrc Aug 31, 2018
14bf347
Adjust Ids of path segments in visibility modifiers
nrc Oct 29, 2018
beb61b4
save analysis: don't dump macro refs
nrc Oct 30, 2018
9201260
save-analysis: make sure we save the def for the last segment of a path
nrc Oct 30, 2018
0af0260
save-analysis: be even more aggressive about ignorning macro-generate…
nrc Nov 13, 2018
396e009
save-analysis: fallback to using path id
nrc Nov 19, 2018
90580ca
save-analysis: Don't panic for macro-generated use globs
Xanewok Nov 11, 2018
ddeb85f
Add temporary renames to manifests for rustfmt/clippy
alexcrichton Nov 19, 2018
c8feb63
revert
newpavlov Nov 18, 2018
224eb83
tests
newpavlov Nov 18, 2018
beaf59f
fix test
newpavlov Nov 18, 2018
a830c06
Fix stability hole with `static _`
oli-obk Nov 15, 2018
46dd614
Update stderr file
oli-obk Nov 16, 2018
feede07
Updated RELEASES.md for 1.31.0
Nov 4, 2018
74bcc4c
Update releases to add rename dependencies feature
Aaronepower Nov 20, 2018
01e090d
Fix Rustdoc ICE when checking blanket impls
Aaron1011 Oct 22, 2018
0f84c8e
Update clippy module to fix breakage
alexcrichton Nov 20, 2018
5ea8c58
Update RLS and Rustfmt
nikomatsakis Nov 20, 2018
8129c41
Update the `cargo_metadata` dependency
alexcrichton Nov 20, 2018
e6c93e7
Stabilize `extern_crate_item_prelude`
petrochenkov Nov 17, 2018
93704f2
Add a couple more tests
petrochenkov Nov 17, 2018
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
Prev Previous commit
Next Next commit
save-analysis: be even more aggressive about ignorning macro-generate…
…d defs
  • Loading branch information
nrc authored and nikomatsakis committed Nov 20, 2018
commit 0af02602c287e4b1782736867d27902a6e4b2a43
12 changes: 7 additions & 5 deletions src/librustc_save_analysis/dump_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,13 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
impl_items: &'l [ast::ImplItem],
) {
if let Some(impl_data) = self.save_ctxt.get_item_data(item) {
if let super::Data::RelationData(rel, imp) = impl_data {
self.dumper.dump_relation(rel);
self.dumper.dump_impl(imp);
} else {
span_bug!(item.span, "unexpected data kind: {:?}", impl_data);
if !self.span.filter_generated(item.span) {
if let super::Data::RelationData(rel, imp) = impl_data {
self.dumper.dump_relation(rel);
self.dumper.dump_impl(imp);
} else {
span_bug!(item.span, "unexpected data kind: {:?}", impl_data);
}
}
}
self.visit_ty(&typ);
Expand Down
6 changes: 1 addition & 5 deletions src/librustc_save_analysis/span_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,10 @@ impl<'a> SpanUtils<'a> {
/// Used to filter out spans of minimal value,
/// such as references to macro internal variables.
pub fn filter_generated(&self, span: Span) -> bool {
if span.is_dummy() {
if generated_code(span) {
return true;
}

if !generated_code(span) {
return false;
}

//If the span comes from a fake source_file, filter it.
!self.sess
.source_map()
Expand Down