Skip to content

address more FIXME whose associated issues were marked as closed #45097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 17, 2017

Conversation

nivkner
Copy link
Contributor

@nivkner nivkner commented Oct 7, 2017

part of #44366

update FIXME(rust-lang#6298) to point to open issue 15020
update FIXME(rust-lang#6268) to point to RFC 811
update FIXME(rust-lang#10520) to point to RFC 1751
remove FIXME for emscripten issue 4563 and include target in `test_estimate_scaling_factor`
remove FIXME(rust-lang#18207) since node_id isn't used for `ref` pattern analysis
remove FIXME(rust-lang#6308) since DST was implemented in rust-lang#12938
remove FIXME(rust-lang#2658) since it was decided to not reorganize module
remove FIXME(rust-lang#20590) since it was decided to stay conservative with projection types
remove FIXME(rust-lang#20297) since it was decided that solving the issue is unnecessary
remove FIXME(rust-lang#27086) since closures do correspond to structs now
remove FIXME(rust-lang#13846) and enable `function_sections` for windows
remove mention of rust-lang#22079 in FIXME(rust-lang#22079) since this is a general FIXME
remove FIXME(rust-lang#5074) since the restriction on borrow were lifted
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@carols10cents carols10cents added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 9, 2017
@shepmaster shepmaster added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 15, 2017
@shepmaster
Copy link
Member

ping @rust-lang/compiler — no word from @pnkfelix in 8 days. I'm going to reassign to...

r? @estebank

@rust-highfive rust-highfive assigned estebank and unassigned pnkfelix Oct 15, 2017
Copy link
Contributor

@estebank estebank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me once the review comments are addressed.

@@ -64,8 +64,7 @@ pub fn opts() -> TargetOptions {
]);

TargetOptions {
// FIXME(#13846) this should be enabled for windows
function_sections: false,
function_sections: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be changed to true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tested this locally and it links successfully with x86_64-pc-windows-gnu. The FIXME was about turning on the flag once it is no longer an issue.

@@ -781,8 +781,9 @@ the base path, it will still be considered freezable.



**FIXME #10520: Restrictions against mutating the base pointer.** When
an `&mut` pointer is frozen or claimed, we currently pass along the
**FIXME(https://github.com/rust-lang/rfcs/issues/1751)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this is md, should this be a link?

**FIXME [rfcs/1751](https://github.com/rust-lang/rfcs/issues/1751)

@@ -659,7 +659,7 @@ impl<'a, 'tcx> CheckLoanCtxt<'a, 'tcx> {
debug!("check_if_path_is_moved(id={:?}, use_kind={:?}, lp={:?})",
id, use_kind, lp);

// FIXME (22079): if you find yourself tempted to cut and paste
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This points to a PR, not an issue. It's fine to remove as you're doing, just pointing it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, it's just that the FIXME is general and the number makes it seem like it is waiting on problem to be fixed.

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 16, 2017
@nivkner
Copy link
Contributor Author

nivkner commented Oct 16, 2017

r=@estebank

@kennytm
Copy link
Member

kennytm commented Oct 16, 2017

@bors r=estebank

@bors
Copy link
Collaborator

bors commented Oct 16, 2017

📌 Commit 90f6bc0 has been approved by estebank

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 16, 2017
@bors
Copy link
Collaborator

bors commented Oct 16, 2017

⌛ Testing commit 90f6bc0 with merge 0a2b5c7bdddcdcfda10e07f4748ebab37b60aa6c...

@bors
Copy link
Collaborator

bors commented Oct 16, 2017

💔 Test failed - status-appveyor

@kennytm
Copy link
Member

kennytm commented Oct 16, 2017

x86_64-pc-windows-gnu, many compile-fail tests failed with error code 3780268884 (0xe1525354). Are you sure that function_sections field can be set to true?

---- [compile-fail] compile-fail\type_length_limit.rs stdout ----
	
error: failure produced the wrong error: exit code: 3780268884
status: exit code: 3780268884
command: PATH="C:\projects\rust\build\x86_64-pc-windows-gnu\stage2\bin;C:\projects\rust\build\x86_64-pc-windows-gnu\stage0-tools\x86_64-pc-windows-gnu\release\deps;C:\projects\rust\build\x86_64-pc-windows-gnu\stage0-sysroot\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files (x86)\Inno Setup 5;C:\Python27;C:\projects\rust\mingw64\bin;C:\msys64\usr\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer;C:\Tools\GitVersion;C:\Tools\PsTools;C:\Program Files\Git LFS;C:\Program Files (x86)\Subversion\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Tools\WebDriver;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\Ruby193\bin;C:\Tools\NUnit\bin;C:\Tools\xUnit;C:\Tools\MSpec;C:\Tools\Coverity\bin;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Python27;C:\Program Files\nodejs;C:\Program Files (x86)\iojs;C:\Program Files\iojs;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Tools\NuGet;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Apache\Maven\bin;C:\Python27\Scripts;C:\Tools\NUnit3;C:\Program Files\Mercurial;C:\Program Files\LLVM\bin;C:\Program Files\dotnet;C:\Program Files\erl8.3\bin;C:\Tools\curl\bin;C:\Program Files\Amazon\AWSCLI;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140;C:\Program Files (x86)\Yarn\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\ProgramData\chocolatey\bin;C:\Tools\vcpkg;C:\Program Files (x86)\nodejs;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\AppVeyor\BuildAgent;C:\projects\rust;C:\projects\rust\handle" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "C:\\projects\\rust\\src/test\\compile-fail\\type_length_limit.rs" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail" "--target=x86_64-pc-windows-gnu" "-C" "prefer-dynamic" "-o" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\type_length_limit.stage2-x86_64-pc-windows-gnu.exe" "-Crpath" "-O" "-Lnative=C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\type_length_limit.stage2-x86_64-pc-windows-gnu.compile-fail.libaux" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
error: reached the type-length limit while instantiating `std::mem::drop::<std::option::Option<((((((G, G, G), (G, G, G), ...`
  |
  = note: consider adding a `#![type_length_limit="512"]` attribute to your crate
error: aborting due to previous error
------------------------------------------
thread '[compile-fail] compile-fail\type_length_limit.rs' panicked at 'explicit panic', src\tools\compiletest\src\runtest.rs:2478:8
failures:
    [compile-fail] compile-fail\E0275.rs
    [compile-fail] compile-fail\E0404.rs
    [compile-fail] compile-fail\E0405.rs
    [compile-fail] compile-fail\bad-lint-cap.rs
    [compile-fail] compile-fail\cdylib-deps-must-be-static.rs
    [compile-fail] compile-fail\cfg-arg-invalid.rs
    [compile-fail] compile-fail\cfg-empty-codemap.rs
    [compile-fail] compile-fail\coherence-inherited-assoc-ty-cycle-err.rs
    [compile-fail] compile-fail\const-size_of-cycle.rs
    [compile-fail] compile-fail\dupe-symbols-1.rs
    [compile-fail] compile-fail\dupe-symbols-2.rs
    [compile-fail] compile-fail\dupe-symbols-3.rs
    [compile-fail] compile-fail\dupe-symbols-4.rs
    [compile-fail] compile-fail\dupe-symbols-5.rs
    [compile-fail] compile-fail\dupe-symbols-6.rs
    [compile-fail] compile-fail\dupe-symbols-7.rs
    [compile-fail] compile-fail\extern-with-type-bounds.rs
    [compile-fail] compile-fail\huge-array.rs
    [compile-fail] compile-fail\huge-enum.rs
    [compile-fail] compile-fail\huge-struct.rs
    [compile-fail] compile-fail\impl-trait\auto-trait-leak.rs
    [compile-fail] compile-fail\import-loop-2.rs
    [compile-fail] compile-fail\infinite-instantiation.rs
    [compile-fail] compile-fail\inhabitedness-infinite-loop.rs
    [compile-fail] compile-fail\issue-15919.rs
    [compile-fail] compile-fail\issue-17913.rs
    [compile-fail] compile-fail\issue-17999.rs
    [compile-fail] compile-fail\issue-18400.rs
    [compile-fail] compile-fail\issue-19660.rs
    [compile-fail] compile-fail\issue-20413.rs
    [compile-fail] compile-fail\issue-21946.rs
    [compile-fail] compile-fail\issue-22599.rs
    [compile-fail] compile-fail\issue-22638.rs
    [compile-fail] compile-fail\issue-23122-1.rs
    [compile-fail] compile-fail\issue-23122-2.rs
    [compile-fail] compile-fail\issue-2330.rs
    [compile-fail] compile-fail\issue-31109.rs
    [compile-fail] compile-fail\issue-31495.rs
    [compile-fail] compile-fail\issue-8727.rs
    [compile-fail] compile-fail\lang-item-missing.rs
    [compile-fail] compile-fail\linkage2.rs
    [compile-fail] compile-fail\linkage3.rs
    [compile-fail] compile-fail\lint-removed-allow.rs
    [compile-fail] compile-fail\lint-removed-cmdline.rs
    [compile-fail] compile-fail\lint-removed.rs
    [compile-fail] compile-fail\lint-renamed-allow.rs
    [compile-fail] compile-fail\lint-renamed-cmdline.rs
    [compile-fail] compile-fail\lint-renamed.rs
    [compile-fail] compile-fail\lint-unknown-lint.rs
    [compile-fail] compile-fail\liveness-dead.rs
    [compile-fail] compile-fail\liveness-unused.rs
    [compile-fail] compile-fail\main-wrong-location.rs
    [compile-fail] compile-fail\manual-link-bad-kind.rs
    [compile-fail] compile-fail\manual-link-bad-search-path.rs
    [compile-fail] compile-fail\mir-dataflow\def-inits-1.rs
    [compile-fail] compile-fail\mir-dataflow\inits-1.rs
    [compile-fail] compile-fail\mir-dataflow\uninits-1.rs
    [compile-fail] compile-fail\mir-dataflow\uninits-2.rs
    [compile-fail] compile-fail\no-implicit-prelude-nested.rs
    [compile-fail] compile-fail\no-implicit-prelude.rs
    [compile-fail] compile-fail\no_owned_box_lang_item.rs
    [compile-fail] compile-fail\panic-runtime\abort-link-to-unwind-dylib.rs
    [compile-fail] compile-fail\panic-runtime\bad-panic-flag1.rs
    [compile-fail] compile-fail\panic-runtime\bad-panic-flag2.rs
    [compile-fail] compile-fail\panic-runtime\libtest-unwinds.rs
    [compile-fail] compile-fail\panic-runtime\transitive-link-a-bunch.rs
    [compile-fail] compile-fail\panic-runtime\two-panic-runtimes.rs
    [compile-fail] compile-fail\panic-runtime\want-abort-got-unwind.rs
    [compile-fail] compile-fail\panic-runtime\want-abort-got-unwind2.rs
    [compile-fail] compile-fail\panic-runtime\want-unwind-got-abort.rs
    [compile-fail] compile-fail\panic-runtime\want-unwind-got-abort2.rs
    [compile-fail] compile-fail\privacy2.rs
    [compile-fail] compile-fail\privacy3.rs
    [compile-fail] compile-fail\recursion.rs
    [compile-fail] compile-fail\required-lang-item.rs
    [compile-fail] compile-fail\resolve-self-in-impl-2.rs
    [compile-fail] compile-fail\resolve-unknown-trait.rs
    [compile-fail] compile-fail\rmeta_lib.rs
    [compile-fail] compile-fail\simd-type-generic-monomorphisation.rs
    [compile-fail] compile-fail\trait-bounds-not-on-struct.rs
    [compile-fail] compile-fail\trait-test.rs
    [compile-fail] compile-fail\traits-inductive-overflow-simultaneous.rs
    [compile-fail] compile-fail\traits-inductive-overflow-supertrait.rs
    [compile-fail] compile-fail\traits-inductive-overflow-two-traits.rs
    [compile-fail] compile-fail\type_length_limit.rs
test result: FAILED. 2679 passed; 85 failed; 14 ignored; 0 measured; 0 filtered out

@nivkner
Copy link
Contributor Author

nivkner commented Oct 16, 2017

guess not, didn't test thoroughly enough. Reverted change

@estebank
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 17, 2017

📌 Commit 094c2ae has been approved by estebank

kennytm added a commit to kennytm/rust that referenced this pull request Oct 17, 2017
address more FIXME whose associated issues were marked as closed

part of rust-lang#44366
bors added a commit that referenced this pull request Oct 17, 2017
Rollup of 10 pull requests

- Successful merges: #45097, #45151, #45307, #45308, #45310, #45315, #45321, #45329, #45338, #45339
- Failed merges:
@bors bors merged commit 094c2ae into rust-lang:master Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants