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 10 pull requests #105486

Merged
merged 35 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7bff720
Remove unused GUI test
GuillaumeGomez Dec 3, 2022
ee21454
attempt to clarify align_to docs
RalfJung Dec 5, 2022
0da7f3e
Enable profiler in dist-powerpc64le-linux
Dec 6, 2022
0669379
Don't silently ignore errors that happen during rendering
GuillaumeGomez Dec 7, 2022
6ccd14a
Improve several aspects of the Rustdoc scrape-examples UI.
willcrichton Nov 27, 2022
acd70e6
Add explanations to scrape-examples integration test
willcrichton Dec 6, 2022
4574217
Only put title over example on large screens
willcrichton Dec 6, 2022
679d7ea
Include additional documentation for scrape-examples changes
willcrichton Dec 6, 2022
212d03d
Factor scrape-examples toggle test into a new file
willcrichton Dec 6, 2022
ae270f1
Update scrape-examples help, fix documentation typos
willcrichton Dec 6, 2022
bcdab87
Fix es-check
willcrichton Dec 6, 2022
0709e53
Fix rustdoc error with no providec crate-type, fix scrape examples bu…
willcrichton Dec 6, 2022
8a45938
Revert crate_types change, add new bin_crate field
willcrichton Dec 6, 2022
9499d2c
Improve calculation of scraped example minimized height
willcrichton Dec 7, 2022
4827004
Move has_structural_eq_impls provider to rustc_ty_utils
compiler-errors Dec 8, 2022
b36035c
Move vtable methods into its own module
compiler-errors Dec 8, 2022
25a6dac
Move codegen_select_candidate to a rustc_traits
compiler-errors Dec 8, 2022
a09e8c5
rustdoc: clean up docblock table CSS
notriddle Dec 8, 2022
3b9daac
Move some suggestions from error_reporting to error_reporting::suggest
compiler-errors Dec 8, 2022
dd9d05c
validate: use the correct reveal during opts
lcnr Dec 8, 2022
e73ef59
add regression test for #105009
lcnr Dec 8, 2022
b5a9f6a
Update rustdoc test to check its error output
GuillaumeGomez Dec 7, 2022
34700f6
rustdoc: add GUI test case for docblock table colors
notriddle Dec 8, 2022
3c29e74
Fix #10021
smoelius Dec 3, 2022
a25791e
lib docs: fix typo
RalfJung Dec 8, 2022
2b98858
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
matthiaskrgr Dec 9, 2022
0b4d57b
Rollup merge of #105245 - RalfJung:align_to, r=Amanieu
matthiaskrgr Dec 9, 2022
5fd540b
Rollup merge of #105387 - willcrichton:scrape-examples-ui-improvement…
matthiaskrgr Dec 9, 2022
5b4723f
Rollup merge of #105389 - ogarokpeter:patch-1, r=Mark-Simulacrum
matthiaskrgr Dec 9, 2022
4b09861
Rollup merge of #105427 - GuillaumeGomez:dont-silently-ignore-rustdoc…
matthiaskrgr Dec 9, 2022
441669c
Rollup merge of #105442 - notriddle:notriddle/docblock-table-css, r=G…
matthiaskrgr Dec 9, 2022
6111a73
Rollup merge of #105443 - compiler-errors:move-more, r=oli-obk
matthiaskrgr Dec 9, 2022
04dac42
Rollup merge of #105455 - lcnr:correct-reveal-in-validate, r=jackh726
matthiaskrgr Dec 9, 2022
3e7aadc
Rollup merge of #105470 - flip1995:clippy_backport, r=Manishearth
matthiaskrgr Dec 9, 2022
3d72731
Rollup merge of #105474 - RalfJung:typo, r=dtolnay
matthiaskrgr Dec 9, 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
6 changes: 5 additions & 1 deletion compiler/rustc_const_eval/src/transform/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use rustc_data_structures::fx::FxHashSet;
use rustc_index::bit_set::BitSet;
use rustc_infer::traits::Reveal;
use rustc_middle::mir::interpret::Scalar;
use rustc_middle::mir::visit::NonUseContext::VarDebugInfo;
use rustc_middle::mir::visit::{PlaceContext, Visitor};
Expand Down Expand Up @@ -44,8 +45,11 @@ impl<'tcx> MirPass<'tcx> for Validator {
return;
}
let def_id = body.source.def_id();
let param_env = tcx.param_env(def_id);
let mir_phase = self.mir_phase;
let param_env = match mir_phase.reveal() {
Reveal::UserFacing => tcx.param_env(def_id),
Reveal::All => tcx.param_env_reveal_all_normalized(def_id),
};

let always_live_locals = always_storage_live_locals(body);
let storage_liveness = MaybeStorageLive::new(always_live_locals)
Expand Down
662 changes: 2 additions & 660 deletions compiler/rustc_infer/src/infer/error_reporting/mod.rs

Large diffs are not rendered by default.

Loading