rust/compiler/rustc_middle/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
..
dep_graph Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
hir Eagerly collect mono items for non-generic closures 2025-01-10 01:27:13 +00:00
hooks Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
infer remove non-borrowck member constraints 2024-12-20 10:04:01 +01:00
middle Auto merge of #134353 - oli-obk:safe-target-feature-unsafe-by-default, r=wesleywiser 2025-01-15 12:06:56 +00:00
mir Rollup merge of #134498 - oli-obk:push-wmxynprsyxvr, r=compiler-errors 2025-01-13 20:43:44 -05:00
query Auto merge of #135278 - tgross35:ignore-std-dep-crates, r=SparrowLii 2025-01-14 14:15:39 +00:00
thir Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
traits Add derived causes for host effect predicates 2025-01-06 17:49:46 +00:00
ty Auto merge of #134353 - oli-obk:safe-target-feature-unsafe-by-default, r=wesleywiser 2025-01-15 12:06:56 +00:00
util Assert that Instance::try_resolve is only used on body-like things 2025-01-13 02:20:08 +00:00
arena.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
error.rs Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
macros.rs Improve const traits diagnostics for new desugaring 2024-10-02 19:45:17 +08:00
metadata.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
values.rs Rename ty_def_id so people will stop using it by accident 2024-12-13 16:36:38 +00:00