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 6 pull requests #94199

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4870ee6
Move the set of features to the `features` query.
cjgillot Jan 16, 2022
a54f6dc
Remove useless map.
cjgillot Jan 16, 2022
19c1baa
Force ensure stability_index.
cjgillot Jan 16, 2022
44ae1cb
Bless test.
cjgillot Jan 16, 2022
17daa96
Move query providers.
cjgillot Jan 16, 2022
ebf467d
Gate stability attrs with other attributes.
cjgillot Jan 18, 2022
5ff235b
Cleanup feature gates.
cjgillot Jan 19, 2022
297364e
Some improvements to the async docs
wooster0 Feb 19, 2022
2e2aa50
Simplify gating of BPF w registers behind the alu32 target feature
Amanieu Feb 17, 2022
904d0c3
On ARM, use relocation_model to detect whether r9 should be reserved
Amanieu Feb 17, 2022
f222021
Take CodegenFnAttrs into account when validating asm! register operands
Amanieu Feb 17, 2022
f10f921
Add tests
Amanieu Feb 19, 2022
f233323
Gracefully handle non-UTF-8 string slices when pretty printing
tmiasko Feb 19, 2022
c358ffe
Implement LowerHex on Scalar to clean up their display in rustdoc
GuillaumeGomez Feb 20, 2022
b45cb09
Use Metadata::modified instead of FileTime::from_last_modification_ti…
bjorn3 Feb 20, 2022
ca00dae
Rollup merge of #91192 - r00ster91:futuredocs, r=GuillaumeGomez
Manishearth Feb 20, 2022
4cdfd89
Rollup merge of #94096 - cjgillot:ensure-stability, r=lcnr
Manishearth Feb 20, 2022
780007e
Rollup merge of #94156 - tmiasko:pp-str, r=petrochenkov
Manishearth Feb 20, 2022
97abac2
Rollup merge of #94169 - Amanieu:asm_stuff, r=nagisa
Manishearth Feb 20, 2022
17a13bc
Rollup merge of #94189 - GuillaumeGomez:scalar-lower-hex, r=RalfJung
Manishearth Feb 20, 2022
b172749
Rollup merge of #94190 - bjorn3:less_filetime, r=Mark-Simulacrum
Manishearth Feb 20, 2022
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
Move query providers.
cjgillot committed Feb 16, 2022
commit 17daa9602e7dddd9068b205aa947bed9dd76b6da
5 changes: 0 additions & 5 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
@@ -2964,11 +2964,6 @@ pub fn provide(providers: &mut ty::query::Providers) {
tcx.arena.alloc(tcx.resolutions(()).glob_map.get(&id).cloned().unwrap_or_default())
};

providers.lookup_stability = |tcx, id| tcx.stability().local_stability(id.expect_local());
providers.lookup_const_stability =
|tcx, id| tcx.stability().local_const_stability(id.expect_local());
providers.lookup_deprecation_entry =
|tcx, id| tcx.stability().local_deprecation_entry(id.expect_local());
providers.extern_mod_stmt_cnum =
|tcx, id| tcx.resolutions(()).extern_crate_map.get(&id).cloned();
providers.output_filenames = |tcx, ()| &tcx.output_filenames;
11 changes: 10 additions & 1 deletion compiler/rustc_passes/src/stability.rs
Original file line number Diff line number Diff line change
@@ -714,7 +714,16 @@ fn check_mod_unstable_api_usage(tcx: TyCtxt<'_>, module_def_id: LocalDefId) {
}

pub(crate) fn provide(providers: &mut Providers) {
*providers = Providers { check_mod_unstable_api_usage, stability_index, ..*providers };
*providers = Providers {
check_mod_unstable_api_usage,
stability_index,
lookup_stability: |tcx, id| tcx.stability().local_stability(id.expect_local()),
lookup_const_stability: |tcx, id| tcx.stability().local_const_stability(id.expect_local()),
lookup_deprecation_entry: |tcx, id| {
tcx.stability().local_deprecation_entry(id.expect_local())
},
..*providers
};
}

struct Checker<'tcx> {