Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
42fbaf1
Add a new trait `proc_macro::ToTokens`
SpriteOvO Oct 9, 2024
4839d6e
compiler: Add rustc_abi dependence to the compiler
workingjubilee Oct 28, 2024
cb08e08
Lower AST node id only once
adwinwhite Sep 12, 2024
1a39247
Add duplicate lowering check
adwinwhite Sep 15, 2024
e3bf50e
more consistent debug_assertions
adwinwhite Oct 14, 2024
3f73fe7
compiler: Depend on rustc_abi in rustc_lint
workingjubilee Oct 28, 2024
7cfbe23
Unify variant struct fields margins with struct fields
GuillaumeGomez Oct 28, 2024
26b6ccd
Add GUI regression test for variant structfields margins
GuillaumeGomez Oct 28, 2024
4bd84b2
Use a type-safe helper to cast `&str` and `&[u8]` to `*const c_char`
Zalathar Oct 28, 2024
82bfe05
refactor: cleaner check to return None
ChrisCho-H Oct 28, 2024
2cc9d58
Updating Fuchsia platform-support documentation
claywilkinson Oct 28, 2024
88a9edc
compiler: Add `is_uninhabited` and use LayoutS accessors
workingjubilee Oct 28, 2024
641ce06
rustdoc: Use accessors to interrogate type layouts
workingjubilee Oct 28, 2024
3d76418
stable_mir: Directly use types from rustc_abi
workingjubilee Oct 28, 2024
55edadc
Rollup merge of #130259 - adwinwhite:lower-node-id-once, r=cjgillot
workingjubilee Oct 28, 2024
ebb52ff
Rollup merge of #131441 - SpriteOvO:proc-macro-to-tokens-trait, r=dto…
workingjubilee Oct 28, 2024
1865e2b
Rollup merge of #132247 - workingjubilee:add-rustc-abi-to-smir, r=cel…
workingjubilee Oct 28, 2024
114c45f
Rollup merge of #132249 - workingjubilee:add-rustc-abi, r=compiler-er…
workingjubilee Oct 28, 2024
9552f54
Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errors
workingjubilee Oct 28, 2024
9d1f9ab
Rollup merge of #132258 - GuillaumeGomez:variant-structfields-margins…
workingjubilee Oct 28, 2024
ec388ee
Rollup merge of #132260 - Zalathar:type-safe-cast, r=compiler-errors
workingjubilee Oct 28, 2024
92d4733
Rollup merge of #132261 - ChrisCho-H:refactor/cleaner-check-none, r=c…
workingjubilee Oct 28, 2024
d3946e1
Rollup merge of #132271 - claywilkinson:master, r=tmandry
workingjubilee Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: cleaner check to return None
  • Loading branch information
ChrisCho-H committed Oct 28, 2024
commit 82bfe053095be8f5b159c82b8161e39b351a1043
5 changes: 1 addition & 4 deletions compiler/rustc_codegen_llvm/src/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,12 +698,9 @@ fn backend_feature_name<'a>(sess: &Session, s: &'a str) -> Option<&'a str> {
let feature = s
.strip_prefix(&['+', '-'][..])
.unwrap_or_else(|| sess.dcx().emit_fatal(InvalidTargetFeaturePrefix { feature: s }));
if s.is_empty() {
return None;
}
// Rustc-specific feature requests like `+crt-static` or `-crt-static`
// are not passed down to LLVM.
if RUSTC_SPECIFIC_FEATURES.contains(&feature) {
if s.is_empty() || RUSTC_SPECIFIC_FEATURES.contains(&feature) {
return None;
}
Some(feature)
Expand Down
Loading