about summary refs log tree commit diff
path: root/compiler/rustc_target/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2023-12-14Move rustc_codegen_ssa target features to rustc_targetUrgau-0/+1
2023-11-15Bump cfg(bootstrap)sMark Rousskov-2/+2
2023-10-08rustdoc: remove rust logo from non-Rust cratesMichael Howell-0/+2
2023-08-23Bump cfg(bootstrap)Mark Rousskov-1/+1
2023-08-03Add `internal_features` lintNilstrieb-0/+1
It lints against features that are inteded to be internal to the compiler and standard library. Implements MCP #596. We allow `internal_features` in the standard library and compiler as those use many features and this _is_ the standard library from the "internal to the compiler and standard library" after all. Marking some features as internal wasn't exactly the most scientific approach, I just marked some mostly obvious features. While there is a categorization in the macro, it's not very well upheld (should probably be fixed in another PR). We always pass `-Ainternal_features` in the testsuite About 400 UI tests and several other tests use internal features. Instead of throwing the attribute on each one, just always allow them. There's nothing wrong with testing internal features^^
2023-07-10i686-windows: pass arguments with requested alignment > 4 indirectlyErik Desjardins-0/+1
2023-05-29linker: Report linker flavors incompatible with the current targetVadim Petrochenkov-0/+1
Previously they would be reported as link time errors about unknown linker options
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
2022-11-24move things from rustc_target::abi to rustc_abihkalbasi-15/+8
2022-11-24make rustc_target usable outside of rustchkalbasi-7/+11
2022-09-26remove cfg(bootstrap)Pietro Albini-1/+0
2022-09-15Only enable the let_else feature on bootstrapest31-1/+1
On later stages, the feature is already stable. Result of running: rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
2022-08-18Add diagnostic translation lints to crates that don't emit them5225225-0/+2
2022-06-25rustc_target: Some more tests and fixes for linker argumentsVadim Petrochenkov-0/+1
2022-06-03Fully stabilize NLLJack Huey-1/+0
2022-06-03Use serde_json for target spec jsonbjorn3-0/+1
2022-05-04Stabilize `bool::then_some`Josh Triplett-1/+0
2022-03-07Clarify `Layout` interning.Nicholas Nethercote-4/+5
`Layout` is another type that is sometimes interned, sometimes not, and we always use references to refer to it so we can't take any advantage of the uniqueness properties for hashing or equality checks. This commit renames `Layout` as `LayoutS`, and then introduces a new `Layout` that is a newtype around an `Interned<LayoutS>`. It also interns more layouts than before. Previously layouts within layouts (via the `variants` field) were never interned, but now they are. Hence the lifetime on the new `Layout` type. Unlike other interned types, these ones are in `rustc_target` instead of `rustc_middle`. This reflects the existing structure of the code, which does layout-specific stuff in `rustc_target` while `TyAndLayout` is generic over the `Ty`, allowing the type-specific stuff to occur in `rustc_middle`. The commit also adds a `HashStable` impl for `Interned`, which was needed. It hashes the contents, unlike the `Hash` impl which hashes the pointer.
2022-02-19Adopt let else in more placesest31-0/+1
2021-12-04Use IntoIterator for array impl everywhere.Mara Bos-2/+2
2021-10-02Remove various unused feature gatesbjorn3-1/+0
2021-08-25use undef for uninitialized bytes in constantsErik Desjardins-0/+2
2021-06-17Emit warnings for unused fields in custom targets.Adam Bratschi-Kaye-0/+3
2021-05-31Remove unused feature gatesbjorn3-2/+0
2021-05-26Specialize implementationsJacob Pratt-0/+2
Implementations in stdlib are now optimized as they were before.
2021-05-10Adjust target search algorithm for rustlib pathSimonas Kazlauskas-0/+51
With this the concerns expressed in #83800 should be addressed.
2021-04-18fix feature use in rustc libsRalf Jung-1/+0
2021-04-08Fix outdated crate names in compiler docspierwill-1/+1
Changes `librustc_X` to `rustc_X`, only in documentation comments. Plain code comments are left unchanged. Also fix incorrect file paths.
2021-02-09Stabilize str_split_onceJacob Pratt-1/+0
2020-12-07Dogfood 'str_split_once() with `compiler/`Eric Arellano-0/+1
2020-09-23/nightly/nightly-rustcErik Hofmayer-1/+1
2020-09-23Updated html_root_url for compiler cratesErik Hofmayer-1/+1
2020-08-30mv compiler to compiler/mark-0/+32