about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-04-28 14:40:16 +0000
committerMichael Goulet <michael@errs.io>2025-05-05 13:17:35 +0000
commitafaedbb29b5cb2a1bde4680c8b87d51b62399ef8 (patch)
treed3682049e3f8419893864aea7ac579fff31a8322
parentdd5113daab0758bdd150bdbf6f16d6f2f86c52cd (diff)
downloadrust-afaedbb29b5cb2a1bde4680c8b87d51b62399ef8.tar.gz
rust-afaedbb29b5cb2a1bde4680c8b87d51b62399ef8.zip
Rename Instance::new to Instance::new_raw and add a note that it is raw
-rw-r--r--clippy_lints/src/non_copy_const.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/non_copy_const.rs b/clippy_lints/src/non_copy_const.rs
index 63859c0396e..6d3e77b6b6e 100644
--- a/clippy_lints/src/non_copy_const.rs
+++ b/clippy_lints/src/non_copy_const.rs
@@ -263,7 +263,7 @@ impl<'tcx> NonCopyConst<'tcx> {
     fn is_value_unfrozen_poly(cx: &LateContext<'tcx>, body_id: BodyId, ty: Ty<'tcx>) -> bool {
         let def_id = body_id.hir_id.owner.to_def_id();
         let args = ty::GenericArgs::identity_for_item(cx.tcx, def_id);
-        let instance = ty::Instance::new(def_id, args);
+        let instance = ty::Instance::new_raw(def_id, args);
         let cid = GlobalId {
             instance,
             promoted: None,