1
Fork 0
rust/compiler/rustc_resolve/src
bors c03ea3dfd9 Auto merge of #121926 - tgross35:f16-f128-step3-feature-gate, r=compiler-errors,petrochenkov
`f16` and `f128` step 3: compiler support & feature gate

Continuation of https://github.com/rust-lang/rust/pull/121841, another portion of https://github.com/rust-lang/rust/pull/114607

This PR exposes the new types to the world and adds a feature gate. Marking this as a draft because I need some feedback on where I did the feature gate check. It also does not yet catch type via suffixed literals (so the feature gate test will fail, probably some others too because I haven't belssed).

If there is a better place to check all types after resolution, I can do that. If not, I figure maybe I can add a second gate location in AST when it checks numeric suffixes.

Unfortunately I still don't think there is much testing to be done for correctness (codegen tests or parsed value checks) until we have basic library support. I think that will be the next step.

Tracking issue: https://github.com/rust-lang/rust/issues/116909

r? `@compiler-errors`
cc `@Nilstrieb`
`@rustbot` label +F-f16_and_f128
2024-03-16 02:02:00 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rename DiagnosticMetadata as DiagMetadata. 2024-03-05 12:15:13 +11:00
build_reduced_graph.rs Change DefKind::Static to a struct variant 2024-03-12 05:53:46 +00:00
check_unused.rs fixes #121331 2024-03-14 09:54:42 +08:00
def_collector.rs s/mt/mutability/ 2024-03-12 05:53:46 +00:00
diagnostics.rs Manual rustfmt 2024-03-12 05:53:46 +00:00
effective_visibilities.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
errors.rs Remove Default derive from MacroExpectedFound. 2024-03-11 08:52:50 +11:00
ident.rs Add feature gates for f16 and f128 2024-03-14 13:32:54 -04:00
imports.rs fixes #121331 2024-03-14 09:54:42 +08:00
late.rs Auto merge of #121926 - tgross35:f16-f128-step3-feature-gate, r=compiler-errors,petrochenkov 2024-03-16 02:02:00 +00:00
lib.rs fixes #121331 2024-03-14 09:54:42 +08:00
macros.rs delay expand macro bang when there has indeterminate path 2024-03-13 16:11:16 +08:00
rustdoc.rs less symbols interner locks 2024-03-15 10:54:40 +03:00