summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-14 07:27:11 +0000
committerbors <bors@rust-lang.org>2024-02-14 07:27:11 +0000
commitbb89df6903539e7014b8db29bccd6a9ee9553122 (patch)
tree1898591699565938209b492bc21d9151654bf31d /compiler/rustc_middle/src
parentcc1c0990ab6f7136d1d54fd008598095b2c53c66 (diff)
parent7320623f3a646bcd6eba661d14cd6f3891ede495 (diff)
downloadrust-bb89df6903539e7014b8db29bccd6a9ee9553122.tar.gz
rust-bb89df6903539e7014b8db29bccd6a9ee9553122.zip
Auto merge of #121018 - oli-obk:impl_unsafety, r=TaKO8Ki
Fully stop using the HIR in trait impl checks

At least I hope I found all happy path usages. I'll need to check if I can figure out a way to make queries declare that they don't access the HIR except in error paths
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs
index 6ee74ef2fb6..2d6c6cfbcd1 100644
--- a/compiler/rustc_middle/src/ty/mod.rs
+++ b/compiler/rustc_middle/src/ty/mod.rs
@@ -252,6 +252,7 @@ pub struct ImplHeader<'tcx> {
 pub struct ImplTraitHeader<'tcx> {
     pub trait_ref: ty::TraitRef<'tcx>,
     pub polarity: ImplPolarity,
+    pub unsafety: hir::Unsafety,
 }
 
 #[derive(Copy, Clone, PartialEq, Eq, Debug, TypeFoldable, TypeVisitable)]