public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1417
@ 2022-07-28  7:53 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-07-28  7:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:205096066a50f501eb1c1d1f7acb4b0daa8be15a

commit 205096066a50f501eb1c1d1f7acb4b0daa8be15a
Merge: 50ca4b2ba00 f4e4c2444fc
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Wed Jul 27 20:19:02 2022 +0000

    Merge #1417
    
    1417: unsafe: check uses of static variables r=CohenArthur a=CohenArthur
    
    Addresses #1411
    
    Accessing an extern static or a mut static is unsafe and requires an unsafe function or block
    
    Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>

Diff:

 gcc/rust/checks/errors/rust-unsafe-checker.cc | 78 +++++++++++++++++++++++++--
 gcc/rust/checks/errors/rust-unsafe-checker.h  |  9 ++++
 gcc/rust/hir/tree/rust-hir-item.h             | 37 +++++++++++++
 gcc/rust/hir/tree/rust-hir.h                  | 20 +++++++
 gcc/testsuite/rust/compile/unsafe1.rs         | 14 +++++
 gcc/testsuite/rust/compile/unsafe2.rs         | 16 ++++++
 gcc/testsuite/rust/compile/unsafe3.rs         | 10 ++++
 7 files changed, 180 insertions(+), 4 deletions(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-28  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28  7:53 [gcc/devel/rust/master] Merge #1417 Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).