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 7 pull requests #68933

Merged
merged 21 commits into from
Feb 7, 2020
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
49d78fc
Add GitHub issue templates
XAMPPRocky Jan 21, 2020
b846b42
Selectively disable sanitizer instrumentation
tmiasko Jan 12, 2020
1caa875
Apply LLVM sanitize attributes to generated entry wrapper
tmiasko Jan 16, 2020
80adde2
Add CodegenFnAttrFlags::NO_SANITIZE_ANY
tmiasko Feb 6, 2020
63980cd
Add a Hir wrapper type
Zoxc Feb 6, 2020
513e326
Add a `hir_krate` query
Zoxc Feb 6, 2020
20ce2f6
Move the `krate` method to Hir and remove the Krate dep node
Zoxc Feb 6, 2020
623dcb0
Remove the `Forest` type
Zoxc Feb 6, 2020
dc4fd3d
Comment tweaks
Zoxc Feb 6, 2020
a575495
Make `krate` private
Zoxc Feb 6, 2020
861b328
Respect --nocapture in panic=abort test mode
tmandry Feb 6, 2020
c39f209
Add myself to .mailmap
hanna-kruppe Feb 6, 2020
44edbc0
Remove HashStable impl for ast::Lifetime
Zoxc Feb 7, 2020
26020f5
clean up E0276 explanation
GuillaumeGomez Feb 7, 2020
2f1eaee
Rollup merge of #68164 - tmiasko:no-sanitize, r=nikomatsakis
Dylan-DPC Feb 7, 2020
f9ebad3
Rollup merge of #68413 - XAMPPRocky:master, r=Mark-Simulacrum
Dylan-DPC Feb 7, 2020
90f6267
Rollup merge of #68889 - Zoxc:hir-krate, r=eddyb
Dylan-DPC Feb 7, 2020
f734e47
Rollup merge of #68909 - tmandry:panic-abort-nocapture, r=alexcrichton
Dylan-DPC Feb 7, 2020
9047c57
Rollup merge of #68910 - hanna-kruppe:master, r=Mark-Simulacrum
Dylan-DPC Feb 7, 2020
88573a7
Rollup merge of #68919 - Zoxc:ast-lifetime, r=nikomatsakis
Dylan-DPC Feb 7, 2020
9681544
Rollup merge of #68928 - GuillaumeGomez:cleanup-e0276, r=Dylan-DPC
Dylan-DPC Feb 7, 2020
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
Add a hir_krate query
  • Loading branch information
Zoxc committed Feb 6, 2020
commit 513e326f5b87a671540ab7959d9205f0cb743491
1 change: 1 addition & 0 deletions src/librustc/hir/mod.rs
Original file line number Diff line number Diff line change
@@ -41,5 +41,6 @@ impl<'tcx> TyCtxt<'tcx> {
}

pub fn provide(providers: &mut Providers<'_>) {
providers.hir_crate = |tcx, _| tcx.hir_map.forest.untracked_krate();
map::provide(providers);
}
6 changes: 6 additions & 0 deletions src/librustc/query/mod.rs
Original file line number Diff line number Diff line change
@@ -43,6 +43,12 @@ rustc_queries! {
}

Other {
query hir_crate(key: CrateNum) -> &'tcx Crate<'tcx> {
eval_always
no_hash
desc { "get the crate HIR" }
}

/// Records the type of every item.
query type_of(key: DefId) -> Ty<'tcx> {
cache_on_disk_if { key.is_local() }
2 changes: 1 addition & 1 deletion src/librustc/ty/query/mod.rs
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ use rustc_data_structures::sync::Lrc;
use rustc_hir as hir;
use rustc_hir::def::DefKind;
use rustc_hir::def_id::{CrateNum, DefId, DefIdMap, DefIdSet, DefIndex};
use rustc_hir::{HirIdSet, ItemLocalId, TraitCandidate};
use rustc_hir::{Crate, HirIdSet, ItemLocalId, TraitCandidate};
use rustc_index::vec::IndexVec;
use rustc_target::spec::PanicStrategy;