1
Fork 0
rust/compiler/rustc_resolve/src
bors 341f60327f Auto merge of #134353 - oli-obk:safe-target-feature-unsafe-by-default, r=wesleywiser
Treat safe target_feature functions as unsafe by default [less invasive variant]

This unblocks
* #134090

As I stated in https://github.com/rust-lang/rust/pull/134090#issuecomment-2541332415 I think the previous impl was too easy to get wrong, as by default it treated safe target feature functions as safe and had to add additional checks for when they weren't. Now the logic is inverted. By default they are unsafe and you have to explicitly handle safe target feature functions.

This is the less (imo) invasive variant of #134317, as it doesn't require changing the Safety enum, so it only affects FnDefs and nothing else, as it should.
2025-01-15 12:06:56 +00:00
..
late Auto merge of #135268 - pietroalbini:pa-bump-stage0, r=Mark-Simulacrum 2025-01-09 13:33:16 +00:00
build_reduced_graph.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
check_unused.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
def_collector.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
diagnostics.rs Auto merge of #134243 - nnethercote:re-export-more-rustc_span, r=jieyouxu 2024-12-18 02:56:38 +00:00
effective_visibilities.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
ident.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
imports.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
late.rs Add hir::HeaderSafety to make follow up commits simpler 2025-01-14 10:54:11 +00:00
lib.rs Fix spacing of markdown code block fences in compiler rustdoc 2024-12-22 10:16:31 -08:00
macros.rs Enforce syntactical stability of const traits in HIR 2025-01-14 19:12:08 +00:00
rustdoc.rs Deny clippy:;four_forward_slashes and fix the only occurrence 2025-01-12 15:09:16 +02:00